/* =========================================================
   Testimonials — Figma matched, section isolated
   ========================================================= */
.testimonials {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: clip;
    background: var(--color-page, #F7F7F5);
    padding: clamp(76px, 7.5vw, 144px) var(--page-gutter) clamp(78px, 7vw, 132px);
}

.testimonials__inner {
    width: min(100%, 1480px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials__eyebrow {
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    color: #3B3B3B;
}

.testimonials__eyebrow-dot {
    font-size: 16px;
    line-height: 1;
}

.testimonials__title {
    margin: clamp(34px, 3.5vw, 58px) 0 0;
    text-align: center;
    font-family: "Geist Mono", monospace;
    font-size: clamp(30px, 2.8vw, 54px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #111;
}

.testimonials__cards {
    position: relative;
    width: min(100%, 1479px);
    min-height: clamp(440px, 43vw, 805px);
    margin-top: clamp(46px, 4.7vw, 78px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-inline: clamp(10px, 2.2vw, 34px);
}

.testimonial-card {
    position: relative;
    width: min(100%, 448px);
    aspect-ratio: 448 / 765;
    min-width: 0;
    transform-origin: 50% 100%;
    flex: 0 0 auto;
    will-change: transform;
}

.testimonial-card--1 {
    transform: rotate(-5.9deg) translate(22px, 15px);
    margin-right: -24px;
    z-index: 1;
}

.testimonial-card--2 {
    width: min(100%, 474px);
    aspect-ratio: 474 / 795;
    transform: rotate(1.55deg) translateY(-6px);
    margin-inline: -8px;
    z-index: 3;
}

.testimonial-card--3 {
    transform: rotate(5.9deg) translate(-22px, 15px);
    margin-left: -24px;
    z-index: 1;
}

.testimonial-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 27px;
    border: 8px solid #DCDCDC;
    background: #0A0A0A;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.08);
}

.testimonial-card__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #0A0A0A;
}

.testimonial-card__play {
    position: absolute;
    left: 18px;
    bottom: 16px;
    min-width: 66px;
    height: 27px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.54);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: Inter, sans-serif;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    transition: background-color .2s ease, transform .2s ease;
}

.testimonial-card__play:hover {
    background: rgba(20, 20, 20, 0.72);
    transform: translateY(-1px);
}

.testimonial-card__play-icon {
    position: relative;
    width: 7px;
    height: 9px;
    display: inline-block;
}

.testimonial-card__play-icon::before,
.testimonial-card__play-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 9px;
    border-radius: 2px;
    background: currentColor;
}

.testimonial-card__play-icon::before { left: 1px; }
.testimonial-card__play-icon::after { right: 1px; }

.testimonial-card__play.is-paused .testimonial-card__play-icon::before {
    left: 1px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    border-left: 7px solid currentColor;
    border-radius: 0;
    background: transparent;
}

.testimonial-card__play.is-paused .testimonial-card__play-icon::after {
    display: none;
}

.testimonials__stats {
    width: min(100%, 740px);
    margin-top: clamp(32px, 3vw, 52px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonials__stat {
    position: relative;
    min-width: 0;
    text-align: center;
    padding-inline: 18px;
    font-family: Inter, sans-serif;
}

.testimonials__stat + .testimonials__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    width: 1px;
    height: 64%;
    background: #DCDCDC;
}

.testimonials__stat strong {
    display: block;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 400;
    line-height: 1;
    color: #111;
}

.testimonials__stat span {
    display: block;
    margin-top: 8px;
    font-size: clamp(9px, .82vw, 12px);
    line-height: 1.2;
    color: #9A9A9A;
}

@media (max-width: 1100px) {
    .testimonials__cards {
        width: min(100%, 900px);
        min-height: 580px;
        gap: 0;
        padding-inline: 0;
        justify-content: center;
    }

    .testimonial-card,
    .testimonial-card--2 {
        width: min(36vw, 330px);
    }

    .testimonial-card--1 { transform: rotate(-5deg) translate(8%, 12px); margin-right: -7%; }
    .testimonial-card--2 { transform: rotate(1.2deg) translateY(-4px); margin-inline: -2%; }
    .testimonial-card--3 { transform: rotate(5deg) translate(-8%, 12px); margin-left: -7%; }
}

@media (max-width: 760px) {
    .testimonials {
        padding: 68px 16px 76px;
    }

    .testimonials__title {
        font-size: clamp(27px, 8vw, 38px);
    }

    .testimonials__cards {
        width: 100%;
        min-height: auto;
        margin-top: 42px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;
    }

    .testimonial-card,
    .testimonial-card--2 {
        width: clamp(150px, 48vw, 245px);
    }

    .testimonial-card--1 {
        transform: rotate(-5deg) translate(34%, 8px);
        margin-right: -20%;
    }

    .testimonial-card--2 {
        transform: rotate(1deg) translateY(-3px);
        margin-inline: -6%;
        z-index: 4;
    }

    .testimonial-card--3 {
        transform: rotate(5deg) translate(-34%, 8px);
        margin-left: -20%;
    }

    .testimonial-card__media {
        border-width: 5px;
        border-radius: 20px;
    }

    .testimonial-card__play {
        left: 10px;
        bottom: 10px;
        height: 25px;
        min-width: 58px;
        font-size: 9px;
    }

    .testimonials__stats {
        width: min(100%, 470px);
        margin-top: 34px;
    }

    .testimonials__stat {
        padding-inline: 8px;
    }
}

@media (max-width: 520px) {
    .testimonials__cards {
        margin-top: 34px;
        transform: scale(.88);
        transform-origin: top center;
        margin-bottom: -8%;
    }

    .testimonial-card,
    .testimonial-card--2 {
        width: clamp(142px, 52vw, 205px);
    }

    .testimonial-card--1 { transform: rotate(-4.5deg) translateX(48%); }
    .testimonial-card--3 { transform: rotate(4.5deg) translateX(-48%); }

    .testimonials__stats {
        margin-top: 12px;
    }

    .testimonials__stat strong {
        font-size: 22px;
    }

    .testimonials__stat span {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card__play { transition: none; }
}
