/* Testimonial carousel: 9:16 story cards, centre card emphasised. */

.voices { --card-w: min(74vw, 290px); position: relative; }
.voices__track {
    display: flex; gap: 1.1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 1.25rem calc(50% - var(--card-w) / 2) 2rem;
    position: relative;
}
.voices__track::-webkit-scrollbar { display: none; }
.voices__track:focus-visible { outline-offset: -4px; }

.voice {
    flex: 0 0 var(--card-w); scroll-snap-align: center;
    transform: scale(0.92); opacity: 0.78;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.voice.is-active { transform: scale(1); opacity: 1; }

/* Rise-in when the section appears, staggered by card. */
.voices:not(.is-in) .voice { transform: translateY(34px) scale(0.92); opacity: 0; }
.voices.is-in .voice { transition-delay: calc(var(--i) * 70ms); }
.voices.is-in .voice.is-active { transition-delay: 0s; }

.voice__frame {
    position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
    background: var(--ink); box-shadow: var(--shadow);
}
.voice__poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left; }
.voice__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 23, 20, 0) 45%, rgba(26, 23, 20, 0.82) 100%); }
.voice__play {
    position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92); color: var(--clay-deep);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease);
}
.voice__play svg { width: 30px; height: 30px; fill: currentColor; transform: translateX(2px); }
.voice__poster:hover .voice__play, .voice.is-active .voice__play { transform: scale(1.08); }
.voice__caption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; display: grid; gap: 0.15rem; }
.voice__caption strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.voice__caption em { font-style: normal; font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.video-frame__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.voices__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.voices__dots { display: flex; gap: 0.6rem; }
.voices__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width 0.3s var(--ease), background-color 0.3s; }
.voices__dot[aria-current="true"] { width: 30px; border-radius: 6px; background: var(--clay-deep); }
.voices__arrow {
    display: none; width: 48px; height: 48px; place-items: center; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--ink); background: transparent; color: var(--ink); transition: background-color 0.2s, color 0.2s;
}
.voices__arrow:hover { background: var(--ink); color: var(--paper); }
.voices__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
    .voices { --card-w: 270px; }
    .voices__arrow { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    .voice, .voices:not(.is-in) .voice { transform: none; opacity: 1; }
    .voice:not(.is-active) { opacity: 0.85; }
}

/* The full-bleed section that holds the carousel. */
.voices-section { padding-inline: 0; overflow: hidden; }
