/* Plain, hand-written CSS scoped under .testimonial-slider — renders inside Webflow's shadow root, no Tailwind. */

.testimonial-slider,
.testimonial-slider *,
.testimonial-slider *::before,
.testimonial-slider *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family, 'IBM Plex Sans'), sans-serif;
}

.testimonial-slider {
  width: 100%;
  padding-top: 70px;
  color: #fff;
}

.testimonial-slider__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding: 0 16px;
}

/* Eyebrow: Figma 64px gold rule and 15px gap at every width, IBM Plex Sans SemiBold 18px / 12px mobile, 1.4px tracking. */

.testimonial-slider__eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 27px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.testimonial-slider__eyebrow-rule {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 1px;
  background: #e0b25c;
}

@media (min-width: 768px) {
  .testimonial-slider__eyebrow {
    min-height: 0;
  }
}

@media (min-width: 1280px) {
  .testimonial-slider__eyebrow {
    font-size: 18px;
  }
}

.testimonial-slider__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.testimonial-slider__stage {
  position: relative;
  width: 100%;
  padding-bottom: 9px;
  touch-action: pan-y;
}

.testimonial-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition:
    opacity 0.5s ease,
    translate 0.5s ease,
    visibility 0s linear 0.5s;
}

.testimonial-slider__slide--active {
  position: relative;
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition:
    opacity 0.5s ease,
    translate 0.5s ease,
    visibility 0s linear;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slider__slide,
  .testimonial-slider__slide--active {
    translate: 0 0;
    transition: opacity 0.5s ease;
  }
}

.testimonial-slider__quote {
  font-size: 36px;
  font-weight: 450;
  line-height: 36px;
  letter-spacing: -1px;
  color: #fff;
  overflow-wrap: anywhere;
}

.testimonial-slider__author {
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-slider__dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.testimonial-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #535353;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.testimonial-slider__dot--active {
  width: 26px;
  height: 8px;
  background: #fff;
}

.testimonial-slider__dot:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .testimonial-slider__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 0 48px;
  }

  .testimonial-slider__eyebrow {
    flex: 1 1 0;
    max-width: 212px;
  }

  .testimonial-slider__column {
    flex: 0 1 522px;
    min-width: 0;
  }

  .testimonial-slider__stage {
    padding-bottom: 11px;
  }

  .testimonial-slider__quote {
    font-size: 36px;
    line-height: 36px;
  }
}

@media (min-width: 1280px) {
  .testimonial-slider {
    padding-top: 100px;
  }

  .testimonial-slider__inner {
    padding: 60px max(89px, calc((100% - 1646px) / 2));
  }

  .testimonial-slider__eyebrow {
    flex: 0 1 577px;
    max-width: none;
  }

  .testimonial-slider__column {
    flex: 0 1 836px;
    gap: 2px;
  }

  .testimonial-slider__stage {
    min-height: 285px;
    padding-bottom: 0;
  }

  .testimonial-slider__quote {
    font-size: 58px;
    line-height: 66px;
  }
}

/* Scroll-in: the section fades up the first time it enters the viewport. */
.testimonial-slider {
  opacity: 0;
  translate: 0 72px;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    translate 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slider--in-view {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slider {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Quotes cross-fade through a soft blur instead of a plain fade. */
@media (prefers-reduced-motion: no-preference) {
  .testimonial-slider__slide {
    filter: blur(8px);
    transition:
      opacity 0.7s ease,
      translate 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.7s ease,
      visibility 0s linear 0.7s;
  }

  .testimonial-slider__slide--active {
    filter: blur(0);
    transition:
      opacity 0.7s ease 0.15s,
      translate 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
      filter 0.7s ease 0.15s,
      visibility 0s linear;
  }
}

/* The gold rule draws in from the left, then the label fades in beside it. */
@media (prefers-reduced-motion: no-preference) {
  .testimonial-slider__eyebrow-rule {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
  }

  .testimonial-slider__eyebrow-label {
    opacity: 0;
    translate: -12px 0;
    filter: blur(6px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s,
      translate 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s,
      filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s;
  }

  .testimonial-slider--in-view .testimonial-slider__eyebrow-rule {
    transform: scaleX(1);
  }

  .testimonial-slider--in-view .testimonial-slider__eyebrow-label {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

