/* ===== Testimonials: one story at a time, media left and words right ===== */
.cc_zmg6dri8_BAsFMd4LS8 .tst {
  width: 100%;
  padding: var(--space-2xl) var(--container-pad);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 1320px;
  margin: 0 auto;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__title {
  margin: 0;
  color: inherit;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__title:not([data-ts]) {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
}

/* Media spans the left column; thumbnails, words and arrows stack on the right.
   Every story's media and body land in the same cells, so the tallest one sets
   the height and switching never moves the page. */
.cc_zmg6dri8_BAsFMd4LS8 .tst__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--space-xl);
  row-gap: var(--space-lg);
}

/* The renderer wraps every child: collapse every wrapper that holds a story, and
   the story itself, so its media and body become grid items of the stage. */
.cc_zmg6dri8_BAsFMd4LS8 .tst__stories, .cc_zmg6dri8_BAsFMd4LS8 .tst__stories :has(.tsti), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti {
  display: contents;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__body {
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__media {
  z-index: 0;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 100%;
  min-height: 640px;
  /* The outgoing image stays put under the incoming one, then hides. */
  transition:
    opacity 0s linear 600ms,
    visibility 0s linear 600ms;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__body {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  gap: var(--space-sm);
  padding: 0;
  transition:
    opacity 250ms ease,
    visibility 0s linear 250ms;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage :is(.tsti__img, .tsti__video) {
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 0s linear 600ms;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product) {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 250ms ease,
    transform 0s linear 250ms;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__quote {
  --tst-delay: 120ms;
  display: block;
  overflow: visible;
  font-size: var(--text-headline-lg);
  line-height: 1.25;
  -webkit-line-clamp: unset;
  line-clamp: none;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__text {
  --tst-delay: 200ms;
  font-size: var(--text-body);
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__who {
  --tst-delay: 260ms;
  margin-top: var(--space-xs);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__product {
  --tst-delay: 320ms;
}

/* Active story, per renderer index (the parent never writes to child DOM). */
.cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="0"] [id="testimonials-0"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="1"] [id="testimonials-1"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="2"] [id="testimonials-2"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="3"] [id="testimonials-3"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="4"] [id="testimonials-4"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="5"] [id="testimonials-5"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="6"] [id="testimonials-6"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="7"] [id="testimonials-7"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="8"] [id="testimonials-8"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="9"] [id="testimonials-9"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="10"] [id="testimonials-10"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="11"] [id="testimonials-11"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="0"] [id="testimonials-0"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="1"] [id="testimonials-1"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="2"] [id="testimonials-2"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="3"] [id="testimonials-3"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="4"] [id="testimonials-4"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="5"] [id="testimonials-5"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="6"] [id="testimonials-6"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="7"] [id="testimonials-7"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="8"] [id="testimonials-8"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="9"] [id="testimonials-9"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="10"] [id="testimonials-10"] .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="11"] [id="testimonials-11"] .tsti__body {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 600ms ease,
    visibility 0s linear 0s;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="0"] [id="testimonials-0"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="1"] [id="testimonials-1"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="2"] [id="testimonials-2"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="3"] [id="testimonials-3"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="4"] [id="testimonials-4"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="5"] [id="testimonials-5"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="6"] [id="testimonials-6"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="7"] [id="testimonials-7"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="8"] [id="testimonials-8"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="9"] [id="testimonials-9"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="10"] [id="testimonials-10"] :is(.tsti__img, .tsti__video), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="11"] [id="testimonials-11"] :is(.tsti__img, .tsti__video) {
  transform: none;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="0"] [id="testimonials-0"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="1"] [id="testimonials-1"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="2"] [id="testimonials-2"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="3"] [id="testimonials-3"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="4"] [id="testimonials-4"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="5"] [id="testimonials-5"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="6"] [id="testimonials-6"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="7"] [id="testimonials-7"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="8"] [id="testimonials-8"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="9"] [id="testimonials-9"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="10"] [id="testimonials-10"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="11"] [id="testimonials-11"] :is(.tsti__quote, .tsti__text, .tsti__who, .tsti__product) {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms ease var(--tst-delay),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--tst-delay);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="0"] [id="testimonials-0"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="1"] [id="testimonials-1"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="2"] [id="testimonials-2"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="3"] [id="testimonials-3"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="4"] [id="testimonials-4"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="5"] [id="testimonials-5"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="6"] [id="testimonials-6"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="7"] [id="testimonials-7"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="8"] [id="testimonials-8"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="9"] [id="testimonials-9"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="10"] [id="testimonials-10"] .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active="11"] [id="testimonials-11"] .tsti__media {
  z-index: 1;
}

/* ----- Thumbnails ----- */
.cc_zmg6dri8_BAsFMd4LS8 .tst__thumbs {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumbs::-webkit-scrollbar {
  display: none;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb {
  position: relative;
  flex: 0 0 92px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-surface-alt);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.42;
  transform: scale(0.94);
  transition:
    opacity 400ms ease,
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb[aria-current] {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .cc_zmg6dri8_BAsFMd4LS8 .tst__thumb:not([aria-current]):hover {
    opacity: 0.7;
  }
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb img, .cc_zmg6dri8_BAsFMd4LS8 .tst__thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb-play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-text);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__thumb-play svg {
  display: block;
}

/* ----- Arrows ----- */
.cc_zmg6dri8_BAsFMd4LS8 .tst__nav {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  display: flex;
  gap: var(--space-xs);
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__arrow svg {
  display: block;
}

@media (hover: hover) {
  .cc_zmg6dri8_BAsFMd4LS8 .tst__arrow:hover {
    background: var(--color-text);
    color: var(--color-on-primary);
  }
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.cc_zmg6dri8_BAsFMd4LS8 .tst__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Phone: media, then thumbnails with arrows, then words ----- */
/* Tablet: a little less media so the words keep a readable column. */
@media (min-width: 768px) and (max-width: 1023px) {
  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-md);
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__media {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .cc_zmg6dri8_BAsFMd4LS8 .tst {
    padding-block: var(--space-xl);
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__inner {
    gap: var(--space-md);
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: var(--space-sm);
    row-gap: var(--space-md);
  }

  /* Media runs edge to edge on phones. */
  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__media {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    min-height: 0;
    margin-inline: calc(-1 * var(--container-pad));
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__thumbs {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__thumb {
    flex-basis: 64px;
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__nav {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__body {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Reduced motion: an instant swap. */
@media (prefers-reduced-motion: reduce) {
  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__media, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage .tsti__body, .cc_zmg6dri8_BAsFMd4LS8 .tst__stage :is(.tsti__img, .tsti__video, .tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__stage[data-active] [id^="testimonials-"] :is(.tsti__media, .tsti__body, .tsti__img, .tsti__video, .tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__thumb, .cc_zmg6dri8_BAsFMd4LS8 .tst__arrow {
    transition: none;
  }

  .cc_zmg6dri8_BAsFMd4LS8 .tst__stage :is(.tsti__img, .tsti__video, .tsti__quote, .tsti__text, .tsti__who, .tsti__product), .cc_zmg6dri8_BAsFMd4LS8 .tst__thumb {
    transform: none;
  }
}
