/* =====================================================================
   TESTIMONIALS — Scroll-pinned horizontal cards
   ===================================================================== */
.testimonials {
    position: relative;
    width: 100%;
    height: 300vh;
    overflow: visible;
    background: var(--bg-color);
    color: var(--color-white);
    font-family: var(--font-family-base);
}

.testimonials__pin {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    padding: 8vw 0 6vh;
}

.testimonials__header {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    margin: 0 0 var(--space-xl);
    padding: 0 var(--space-section-x);
}

.testimonials__header-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonials__eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-family-base);
    font-size: var(--font-size-button-sm);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-label);
    letter-spacing: var(--letter-spacing-eyebrow);
    text-transform: uppercase;
    color: var(--gold);
}

.testimonials__eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.testimonials__title {
    margin: 0;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-h2, 3rem);
    line-height: var(--line-height-heading);
    color: var(--color-white, #fff);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-none);
    
}

.testimonials__title-line {
    display: block;
    white-space: nowrap;
}

.testimonials__title-gold {
    color: var(--gold);
    font-style: normal;
}

.testimonials__intro {
    max-width: 540px;
}

.testimonials__intro > * {
    margin: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.testimonials__intro > * + * {
    margin-top: var(--space-sm);
}

.testimonials__track {
    position: relative;
    z-index: 2;
    flex: 1;
    width: max-content;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0 var(--space-section-x);
    will-change: transform;
}

.testimonials__card {
    position: relative;
    flex-shrink: 0;
    width: clamp(560px, 44vw, 680px);
    height: clamp(360px, 50vh, 460px);
    display: grid;
    grid-template-columns: 38% 1fr;
    overflow: hidden;
    border: 1px solid rgba(var(--color-white-rgb), 0.08);
    border-radius: var(--card-radius);
    background: rgba(var(--color-white-rgb), 0.04);
}

.testimonials__card--no-image {
    grid-template-columns: 1fr;
}

/* ---------------------------------------------------------------------
   Two testimonials only — static 50/50 grid, no scroll pinning.
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .testimonials--duo {
        height: auto;
    }

    .testimonials--duo .testimonials__pin {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .testimonials--duo .testimonials__track {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        transform: none !important;
    }

    .testimonials--duo .testimonials__card {
        width: auto;
    }
}

.testimonials__card-media {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.testimonials__card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.testimonials__card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow: hidden;
    padding: 1.75rem;
}

.testimonials__quote-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.85;
}

.testimonials__quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonials__quote-title {
    margin: 0;
}

.testimonials__quote {
    flex: 1;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-copy-snug);
    color: rgba(var(--color-white-rgb), 0.92);
    /* Show the global designed scrollbar (see unification.css): gold thumb on a
       subtle dark track. Firefox needs these on the element itself because
       scrollbar-width is not inherited; WebKit picks up the global
       ::-webkit-scrollbar rules now that the hide override is removed. */
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) transparent;
}

.testimonials__quote > * {
    margin: 0;
}

.testimonials__quote > * + * {
    margin-top: 0.75em;
}

.testimonials__attribution {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    flex-shrink: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.testimonials__name {
    font-size: var(--font-size-sm-8);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-heading-open);
    color: var(--color-white);
}

.testimonials__role {
    font-size: var(--font-size-xs-4);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-label);
    letter-spacing: var(--letter-spacing-button);
    text-transform: uppercase;
    color: var(--gold);
}

.testimonials__read-more {
    position: relative;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
    overflow: hidden;
    margin-top: var(--space-3xs);
    padding: 12px 26px;
    border: 1px solid rgba(var(--color-white-rgb), 0.3);
    border-radius: var(--button-radius);
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-family-base);
    font-size: var(--font-size-xs-4);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-button);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-standard);
}

.testimonials__read-more svg {
    width: 14px;
    height: 14px;
    transition: var(--transition-transform);
}

.testimonials__read-more::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--color-gold-rgb), 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.testimonials__read-more:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.testimonials__read-more:hover::after {
    width: 300px;
    height: 300px;
}

.testimonials__read-more:hover svg {
    transform: translateX(4px);
}

.testimonials__read-more:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.testimonials__modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    z-index: 10000;
    overflow: hidden;
    box-sizing: border-box;
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@supports (height: 100dvh) {
    .testimonials__modal {
        height: 100dvh;
        min-height: 100dvh;
    }
}

html.testimonials-modal-open,
body.testimonials-modal-open {
    overscroll-behavior: none;
}

.testimonials__modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.testimonials__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--color-dark-blue-rgb), 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.testimonials__modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10001;
    width: min(960px, calc(100vw - 3rem));
    max-height: min(88vh, 920px);
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.4rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.09);
    background: rgba(var(--color-dark-blue-rgb), 0.92);
    box-shadow: 0 30px 100px rgba(var(--color-black-rgb), 0.4);
    transform: translate(-50%, -50%)!important;
}

.testimonials__modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: rgba(var(--color-white-rgb), 0.7);
    font-family: var(--font-family-base);
    font-size: var(--font-size-xl);
    line-height: var(--line-height-flat);
    cursor: pointer;
    transition: var(--transition-color);
}

.testimonials__modal-close:hover {
    color: var(--gold);
}

.testimonials__modal-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.84;
}

.testimonials__modal-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 50%;
    transition: opacity 0.25s ease;
}

.testimonials__modal-copy {
    align-self: center;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md) var(--space-md) 0;
}

.testimonials__modal-name {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-h3-8);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-flat);
    letter-spacing: var(--letter-spacing-none);
    color: var(--color-white);
}

.testimonials__modal-role {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm-4);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-copy-tight);
    letter-spacing: var(--letter-spacing-button);
    text-transform: uppercase;
    color: var(--gold);
}

.testimonials__modal-bio {
    margin-top: var(--space-xs);
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-copy-loose);
    color: rgba(var(--color-white-rgb), 0.92);
}

.testimonials__modal-bio > * {
    margin: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.testimonials__modal-bio > * + * {
    margin-top: var(--space-sm);
}

@media (max-width: 1023px) {
    .testimonials__card[data-has-modal="true"] {
        cursor: pointer;
    }

    .testimonials__modal {
        display: grid;
        place-items: center;
        padding: 4.5rem 1rem;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    @supports (height: 100svh) {
        .testimonials__modal {
            padding-top: max(4.5rem, calc(env(safe-area-inset-top) + 3.5rem));
            padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem));
        }
    }

    .testimonials__modal-dialog {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 10001;
        transform: none;
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 1.2rem;
        width: min(420px, calc(100vw - 2rem));
        max-height: calc(100vh - 9rem);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 1rem;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translate(0%, 0%) !important;
    }

    @supports (height: 100svh) {
        .testimonials__modal-dialog {
            max-height: calc(100svh - 9rem);
        }
    }

    @supports (height: 100dvh) {
        .testimonials__modal-dialog {
            max-height: calc(100dvh - 9rem);
        }
    }

    .testimonials__modal-close {
        position: sticky;
        top: 0;
        right: auto;
        align-self: flex-end;
        flex: 0 0 auto;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -0.25rem -0.25rem -0.95rem 0;
        border: 1px solid rgba(var(--color-white-rgb), 0.16);
        background: rgba(var(--color-dark-blue-rgb), 0.78);
        color: var(--color-white);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .testimonials__modal-media {
        flex: 0 0 auto;
        width: 100%;
        height: clamp(210px, 36vh, 300px);
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
    }

    @supports (height: 100svh) {
        .testimonials__modal-media {
            height: clamp(210px, 36svh, 300px);
        }
    }

    .testimonials__modal-copy {
        flex: 0 0 auto;
        align-self: start;
        max-width: none;
        gap: var(--space-sm);
        padding: 0 0 0.5rem;
    }

    .testimonials__modal-media,
    .testimonials__modal-copy {
        min-width: 0;
    }

    .testimonials__modal-name {
        font-size: clamp(2rem, 11vw, var(--font-size-h3-8));
        line-height: var(--line-height-heading);
    }

    .testimonials__modal-role {
        font-size: var(--font-size-xs-3);
    }

    .testimonials__modal-bio {
        margin-top: var(--space-xs);
        font-size: var(--font-size-body-mobile);
        line-height: var(--line-height-copy-compact);
    }

    .testimonials {
        height: auto;
        overflow: visible;
        padding: 0;
        padding-bottom: 4rem;
    }

    .testimonials__pin {
        position: relative;
        height: auto;
        overflow: visible;
        padding: 0;
        gap: var(--space-xl);
    }

    .testimonials__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
        padding: var(--section-padding-mobile);
        padding-bottom: 0px;
    }

    .testimonials__title {
        font-size: var(--font-size-h2-mobile);
    }

    .testimonials__title-line {
        white-space: normal;
    }

    .testimonials__track {
        width: auto;
        flex: 0 0 auto;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1.5rem;
        padding: 0 1.5rem var(--space-sm);
        scroll-padding-inline: 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        transform: none !important;
        scrollbar-width: none;
    }

    .testimonials__track::-webkit-scrollbar {
        display: none;
    }

    .testimonials__card {
        /*width: 85vw;*/
        flex-basis: min(72vw, 300px);
        max-width: 480px;
        height: auto;
        min-height: 0;
        align-self: stretch;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .testimonials__card-media {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .testimonials__card--no-image {
        grid-template-rows: 1fr;
    }

    .testimonials__card-body {
        padding: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .testimonials__modal-dialog {
        width: min(420px, calc(100vw - 2rem));
        max-height: calc(100vh - 9rem);
        gap: var(--space-lg);
        padding: var(--space-md);
        transform: none;
        overscroll-behavior: contain;
    }

    @supports (height: 100svh) {
        .testimonials__modal-dialog {
            max-height: calc(100svh - 9rem);
        }
    }

    @supports (height: 100dvh) {
        .testimonials__modal-dialog {
            max-height: calc(100dvh - 9rem);
        }
    }

    .testimonials__modal-close {
        top: 0;
        right: auto;
    }

    .testimonials__modal-media {
        height: clamp(210px, 34vh, 280px);
        max-height: none;
        aspect-ratio: auto;
    }

    @supports (height: 100svh) {
        .testimonials__modal-media {
            height: clamp(210px, 34svh, 280px);
        }
    }

    .testimonials__modal-name {
        font-size: var(--font-size-h3-6);
        line-height: var(--line-height-heading);
    }

    .testimonials__modal-role {
        font-size: var(--font-size-xs-3);
    }

    .testimonials__modal-bio {
        margin-top: var(--space-xs);
        font-size: var(--font-size-body-mobile);
        line-height: var(--line-height-copy-compact);
    }
}
