/* Customer stories carousel — home */
#customer-stories {
  scroll-margin-top: 88px;
}

.cs-root {
  --cs-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

.cs-title {
  margin: 0 0 48px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.cs-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  padding: 8px 0;
  box-sizing: border-box;
}

.cs-viewport {
  width: 100%;
  overflow: hidden;
}

.cs-track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
  touch-action: pan-y;
}

.cs-slide {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
  color: #000;
  border-radius: 18px;
}

.cs-slide:focus-visible {
  outline: 2px solid rgba(234, 88, 88, 0.55);
  outline-offset: 4px;
}

.cs-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e8ea;
}

.cs-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 80px 80px;
  background-image: url("/assets/img/noise.webp");
}

.cs-logo {
  position: absolute;
  top: 8px;
  left: 8px;
  pointer-events: none;
  width: 52%;
  height: 26px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.cs-logo--normal {
  mix-blend-mode: normal;
}

.cs-logo--multiply {
  mix-blend-mode: multiply;
}

.cs-caption {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.45;
  min-height: calc(2 * 1.45em);
  font-weight: 400;
  color: #000;
  text-wrap: pretty;
}

.cs-caption strong {
  font-weight: 600;
}

.cs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.cs-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #f4f4f5;
}

.cs-dot {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
  transition: width 420ms var(--cs-ease), background 420ms ease;
  width: 6px;
}

.cs-dot.is-active {
  width: 40px;
}

.cs-dot-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #000;
  border-radius: 999px;
}

.cs-play {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 160ms ease;
}

.cs-play:hover {
  background: #e8e8ea;
}

.cs-play:focus-visible {
  outline: 2px solid rgba(234, 88, 88, 0.55);
  outline-offset: 2px;
}

.cs-play svg {
  display: block;
}

.cs-play .cs-icon-pause {
  display: none;
}

.cs-root.is-playing .cs-play .cs-icon-play {
  display: none;
}

.cs-root.is-playing .cs-play .cs-icon-pause {
  display: block;
}

.cs-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 759px) {
  .cs-title {
    margin: 0 0 28px;
    font-size: 28px;
  }

  .cs-carousel {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .cs-card {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .cs-logo {
    top: 14px;
    left: 14px;
    width: 48%;
    height: 22px;
  }

  .cs-caption {
    margin: 12px 0 0;
    font-size: 15px;
    min-height: calc(3 * 1.45em);
  }

  .cs-controls {
    margin-top: 24px;
  }
}

@media (min-width: 760px) {
  .cs-logo {
    top: 28px;
    left: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-track {
    transition: none !important;
  }

  .cs-dot,
  .cs-dot-fill {
    transition: none;
  }
}
