/* Investor testimonials. Full-bleed photograph with the statement top left and a card track that
   bleeds past the right gutter, so the next testimonial stays half visible. */

.voices {
    position: relative;
    isolation: isolate;
    min-height: min(88svh, 820px);
    display: flex;
    align-items: stretch;
    padding-block: var(--space-8);
    overflow: hidden;
}

.voices__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--bg);
}

.voices__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: saturate(0.72) brightness(0.72);
}

.voices__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(11, 10, 8, 0.9) 0%, rgba(11, 10, 8, 0.4) 42%, rgba(11, 10, 8, 0.08) 78%),
        linear-gradient(100deg, rgba(11, 10, 8, 0.78) 0%, rgba(11, 10, 8, 0.28) 46%, rgba(11, 10, 8, 0) 76%),
        rgba(11, 10, 8, 0.16);
}

.voices__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: var(--space-6);
    align-items: stretch;
}

.voices__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-5);
}

.voices__title {
    font-size: clamp(2.25rem, 4.8vw, 4rem);
    font-weight: var(--fw-light);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.voices__note {
    max-width: 30ch;
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--fg-muted);
}

.voices__deck {
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.carousel-nav {
    display: flex;
    gap: var(--space-2);
}

.carousel-nav[hidden] {
    display: none;
}

.carousel-nav__btn {
    display: grid;
    place-items: center;
    width: var(--tap-min);
    height: var(--tap-min);
    background: rgba(11, 10, 8, 0.55);
    border: 1px solid rgba(244, 241, 234, 0.24);
    border-radius: var(--radius-pill);
    color: var(--fg);
    font-size: var(--text-sm);
    backdrop-filter: blur(10px);
    transition:
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        opacity var(--dur-fast) var(--ease-out);
}

.carousel-nav__btn:hover:not([disabled]) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.carousel-nav__btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.voices__track {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.voice {
    flex: 0 0 calc((100% - (var(--space-4) * 2)) / 3);
    scroll-snap-align: start;
}

.voice__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    height: 100%;
    margin: 0;
    padding: var(--space-5);
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--fg);
}

.band--dark .voice__card {
    background: #ffffff;
    color: #12110e;
}

.voice__who {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.voice__avatar {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #edefea;
    border-radius: var(--radius-pill);
    font-size: var(--text-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    color: #4a463e;
}

/* A real client photograph fills the same circle the initials sit in. */
.voice__avatar--photo {
    object-fit: cover;
    background: #edefea;
}

.voice__name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
}

.voice__place {
    display: block;
    font-size: var(--text-2xs);
    color: #6b665c;
}

.voice__property {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
}

.voice__quote {
    margin: 0;
    font-size: var(--text-2xs);
    font-style: italic;
    line-height: 1.7;
    color: #4a463e;
}

.voice__stars {
    display: flex;
    gap: 3px;
    margin-top: auto;
    padding-top: var(--space-3);
}

.voice__stars svg {
    width: 15px;
    height: 15px;
    fill: #d9b162;
}

@media (max-width: 1000px) {
    .voices {
        min-height: 0;
    }

    .voices__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .voices__copy {
        gap: var(--space-5);
    }

    .voices__note {
        max-width: 52ch;
    }

    .voice {
        flex: 0 0 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .voices .voice {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    .voices.is-visible .voice {
        opacity: 1;
        transform: translateY(0);
        transition:
            opacity 700ms var(--ease-out),
            transform 700ms var(--ease-out);
    }

    .voices.is-visible .voice:nth-child(1) { transition-delay: 200ms; }
    .voices.is-visible .voice:nth-child(2) { transition-delay: 320ms; }
    .voices.is-visible .voice:nth-child(3) { transition-delay: 440ms; }
    .voices.is-visible .voice:nth-child(4) { transition-delay: 560ms; }
}
