/* ==========================================================================
   Testimonials — "Our Graduates" quotes + video (desktop-only section)
   --s: proportional scale unit (1px at >=1680 viewport)
   ========================================================================== */

.testimonials { display: none; }

@media (min-width: 900px) {
  .testimonials {
    --s: calc(min(100vw, 1680px) / 1680);
    display: block;
    position: relative;
    overflow: hidden;
    background: #161616;
    padding-top: calc(45 * var(--s));
    padding-bottom: calc(95 * var(--s));
  }

  .testimonials__swirl {
    position: absolute;
    left: calc(-164 * var(--s));
    top: calc(275 * var(--s));
    width: calc(717 * var(--s));
    height: calc(628 * var(--s));
    /* Figma renders this image fill vertically mirrored vs the exported asset */
    transform: scaleY(-1);
    pointer-events: none;
  }

  .testimonials__inner {
    position: relative;
    width: calc(1200 * var(--s));
    margin-inline: auto;
  }

  .testimonials__eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: calc(16 * var(--s));
    line-height: 1.425;
    letter-spacing: calc(3.2 * var(--s));
    text-transform: uppercase;
    color: var(--c-pink);
    text-align: center;
  }

  .testimonials__heading {
    margin-top: calc(16 * var(--s));
    font-family: var(--font-display);
    font-weight: 400;
    font-size: calc(57 * var(--s));
    line-height: 1.13;
    text-transform: uppercase;
    text-align: center;
  }
  .testimonials__heading-glitter {
    background: url('/wp-content/themes/ogle/assets/img/glitter-texture.webp') center / cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .testimonials__heading-pink { color: var(--c-pink); }

  .testimonials__cards {
    display: flex;
    gap: calc(45 * var(--s));
    margin-top: calc(76 * var(--s));
  }

  .testimonials__card {
    width: calc(370 * var(--s));
    height: calc(494 * var(--s));
    overflow: hidden;
    background: var(--c-black);
    box-shadow: 0 4px 29.2px rgba(0, 0, 0, 0.25);
    padding: calc(35 * var(--s)) calc(33 * var(--s));
  }

  .testimonials__quote-mark {
    width: calc(47.9 * var(--s));
    height: calc(38.6 * var(--s));
  }

  .testimonials__quote {
    margin: calc(32 * var(--s)) 0 0;
  }
  .testimonials__quote p {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: calc(20 * var(--s));
    line-height: 1.6;
    color: var(--c-white);
  }

  .testimonials__attribution {
    margin-top: calc(30 * var(--s));
    font-family: var(--font-body);
    font-weight: 500;
    font-size: calc(15 * var(--s));
    line-height: 1.6;
    color: var(--c-white);
  }
  .testimonials__role { color: var(--c-pink); }

  .testimonials__video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: calc(754 * var(--s));
    height: calc(403 * var(--s));
    margin: calc(76 * var(--s)) auto 0;
    box-shadow: 0 4px 29.2px rgba(0, 0, 0, 0.25);
  }
  .testimonials__video-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* ::after (not ::before) so the overlay paints above the absolutely
     positioned still image, which comes later in the DOM than a ::before */
  .testimonials__video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  .testimonials__play {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(108 * var(--s));
    height: calc(108 * var(--s));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .testimonials__play-icon {
    width: calc(34.6 * var(--s));
    height: calc(38.8 * var(--s));
    transform: translateX(calc(4.4 * var(--s)));
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .testimonials__play-icon path {
    fill: rgba(255, 255, 255, 0.55);
    transition: fill 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .testimonials__video:hover .testimonials__play,
  .testimonials__video:focus-visible .testimonials__play { background: var(--c-white); }
  .testimonials__video:hover .testimonials__play-icon,
  .testimonials__video:focus-visible .testimonials__play-icon { transform: translateX(calc(4.4 * var(--s))) scale(1.356); }
  .testimonials__video:hover .testimonials__play-icon path,
  .testimonials__video:focus-visible .testimonials__play-icon path { fill: var(--c-pink); }
}
