.testimonials {
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
  --row: 56.25cqw;
  --full-rows: 3;
  --all-rows: 12;
  --title-size: 27px;
  --title-line: 31px;
  --play-size: 44px;
  --play-right: 20px;
  --play-bottom: 20px;
  --header-top: 36px;
  --header-bottom: 28px;
  --footer-bottom: 36px;
  background: white;
  color: black;
}

.testimonials h2, .testimonials-action {
  width: var(--work-width);
  margin-inline: auto;
}
.testimonials h2 {
  padding-block: var(--header-top) var(--header-bottom);
  font: 400 var(--title-size)/var(--title-line) Forum, serif;
}
.testimonials-viewport {
  position: relative;
  overflow: hidden;
  height: calc(var(--row) * (var(--full-rows) + .65));
  overflow-anchor: none;
}
.testimonials.is-expanded .testimonials-viewport { height: calc(var(--row) * var(--all-rows)); }
.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.testimonial {
  container-type: inline-size;
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  color: white;
}
.testimonial:focus-visible { outline: 3px solid white; outline-offset: -4px; z-index: 1; }
.testimonial-photo {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top left;
  transform: var(--quote-crop, translate(0%,0%) scale(1));
}
.testimonial-play {
  position: absolute;
  right: var(--play-right);
  bottom: var(--play-bottom);
  width: var(--play-size);
  height: var(--play-size);
}
.testimonial-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.testimonial-copy {
  display: grid;
  width: 54.0625%;
  margin-left: 5%;
  gap: 1.5625cqw;
  text-shadow: 0 1px .12em rgb(6 15 12 / .65);
}
.testimonial-line { display: block; width: fit-content; max-width: 100%; position: relative; isolation: isolate; }
.testimonial-line::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -.1em -.32em;
  border-radius: .5em;
  background: rgb(6 16 12 / .66);
  filter: blur(.24em);
}
.testimonial-heading { font: 400 5.515625cqw/1.05556 Forum, serif; }
.testimonial-caption { font: 400 3.59375cqw/1.26087 Jost, sans-serif; }
.testimonials-viewport::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: calc(var(--row) * var(--full-rows));
  height: calc(var(--row) * .65);
  background: linear-gradient(to bottom, transparent, white 81%);
  backdrop-filter: blur(2.5px);
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.testimonials.is-expanded .testimonials-viewport::after { opacity: 0; }
.testimonials-action { padding-bottom: var(--footer-bottom); }
.testimonials.is-expanded .testimonials-action { padding-top: 32px; }
.testimonials.is-toggling .testimonials-viewport { transition: height 300ms ease-out; }
.testimonials.is-toggling .testimonials-action { transition: padding-top 300ms ease-out; }
.testimonials-action button { display: block; }
@media (min-width: 375px) {
  .testimonials { --title-size: 32px; --title-line: 37px; }
}
@media (min-width: 480px) {
  .testimonials { --title-size: 39px; --title-line: 45px; --play-size: 60px; --play-right: 48px; --play-bottom: 40px; }
}
@media (min-width: 640px) {
  .testimonials { --title-size: 43px; --title-line: 49px; --play-size: 72px; --play-right: 64px; --play-bottom: 52px; }
}
@media (min-width: 980px) {
  .testimonials {
    --row: 18.75cqw;
    --full-rows: 2;
    --all-rows: 4;
    --title-size: 31px;
    --title-line: 36px;
    --header-top: 56px;
    --header-bottom: 40px;
    --footer-bottom: 48px;
    --play-size: 40px;
    --play-right: 12%;
    --play-bottom: 14%;
  }
  .testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .testimonials { --title-size: 43px; --title-line: 49px; --play-size: 56px; }
}
@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  .testimonial-photo {
    transform: var(--rest-crop);
    transition: transform 480ms cubic-bezier(.25,.1,.25,1);
  }
  .testimonial:is(:hover,:focus-visible) .testimonial-photo {
    transform: var(--quote-crop, translate(0%,0%) scale(1));
  }
  .testimonial-overlay { opacity: 0; transition: opacity 360ms cubic-bezier(.25,.1,.25,1); }
  .testimonial:hover .testimonial-overlay, .testimonial:focus-visible .testimonial-overlay { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials.is-toggling .testimonials-viewport, .testimonials.is-toggling .testimonials-action,
  .testimonials-viewport::after, .testimonial-photo, .testimonial-overlay { transition: none; }
}
