.landing-testimonials { margin-top: 150px; overflow: clip; scroll-margin-top: 88px; }
.landing-testimonials .section-heading { max-width: 780px; }
.landing-testimonials .section-heading p { margin-top: 20px; }
.testimonials-track { display: grid; gap: 16px; margin-inline: 24px; }
.testimonial-card { position: relative; padding: 40px; border-radius: 18px; background: var(--testimonial-surface); }
.testimonial-brand { display: flex; align-items: center; width: 224px; max-width: calc(100% - 48px); min-height: 84px; font-size: 40px; font-weight: 550; letter-spacing: -.04em; }
.testimonial-brand-logo { display: block; width: 100%; height: 84px; object-fit: contain; object-position: left center; filter: brightness(0); }
.testimonial-brand--akilora { gap: 12px; }
.testimonial-brand--akilora .testimonial-brand-logo { width: 72px; height: 72px; flex: none; filter: none; }
.testimonial-details { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: start; gap: 38px 56px; margin-top: 60px; }
.testimonial-quote { margin: 0; padding-left: 20px; border-left: 1px solid var(--public-accent); font-size: 23px; font-weight: 550; line-height: 1.4; letter-spacing: -.035em; }
.testimonial-metrics { display: grid; gap: 22px; margin: 0; }
.testimonial-metrics dt { font-size: 29px; line-height: 1.15; letter-spacing: -.055em; }
.testimonial-metrics dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; gap: 14px; align-self: end; font-size: 13px; }
.testimonial-author small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.testimonials-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.testimonials-controls { display: flex; justify-content: center; gap: 10px; margin-top: 52px; }
.testimonials-controls[hidden], .testimonial-card-select[hidden] { display: none; }
.testimonials-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); box-shadow: 0 2px 4px var(--public-shadow); cursor: pointer; transition: background-color .2s; }
.testimonials-arrow:hover { background: var(--testimonial-surface); }
.testimonials-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.testimonials-arrow svg { width: 19px; height: 19px; }

/* All card geometry and track movement share the same easing and duration. */
.testimonials-ready { --testimonial-expanded: 720px; --testimonial-collapsed: 304px; --testimonial-gap: 8px; --testimonial-height: 568px; --testimonial-duration: 340ms; --testimonial-easing: cubic-bezier(.22, 1, .36, 1); }
.testimonials-ready .testimonials-viewport { height: var(--testimonial-height); touch-action: pan-y pinch-zoom; cursor: grab; }
.testimonials-ready .testimonials-track { display: flex; align-items: center; gap: var(--testimonial-gap); width: max-content; height: 100%; margin: 0; transform: translate3d(0, 0, 0); transition: transform var(--testimonial-duration) var(--testimonial-easing); }
.testimonials-ready .testimonial-card { flex: 0 0 var(--testimonial-collapsed); width: var(--testimonial-collapsed); height: 400px; overflow: hidden; transition: flex-basis var(--testimonial-duration) var(--testimonial-easing), width var(--testimonial-duration) var(--testimonial-easing), height var(--testimonial-duration) var(--testimonial-easing); }
.testimonials-ready .testimonial-card.is-active { flex-basis: var(--testimonial-expanded); width: var(--testimonial-expanded); height: var(--testimonial-height); }
.testimonials-ready .testimonial-card-select { position: absolute; z-index: 3; inset: 0; width: 100%; padding: 0; border: 0; border-radius: inherit; color: inherit; background: transparent; cursor: grab; }
.testimonials-ready .testimonial-card-select:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.testimonials-ready .testimonial-card.is-active .testimonial-card-select { pointer-events: none; }
.testimonials-ready .testimonial-brand { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: top var(--testimonial-duration) var(--testimonial-easing), left var(--testimonial-duration) var(--testimonial-easing), transform var(--testimonial-duration) var(--testimonial-easing); white-space: nowrap; }
.testimonials-ready .testimonial-card:not(.is-active) .testimonial-brand-logo { object-position: center; }
.testimonials-ready .testimonial-card.is-active .testimonial-brand { top: 40px; left: 40px; transform: translate(0, 0); }
.testimonials-ready .testimonial-details { position: absolute; top: 172px; left: 40px; right: auto; width: calc(var(--testimonial-expanded) - 80px); height: calc(var(--testimonial-height) - 204px); margin: 0; grid-template-rows: 1fr auto; }
.testimonials-ready .testimonial-reveal { opacity: 0; transform: translateY(9px); transition: opacity 180ms ease, transform 180ms ease; }
.testimonials-entered .is-active .testimonial-reveal { opacity: 1; transform: translateY(0); transition-duration: 260ms; transition-timing-function: cubic-bezier(.22, 1, .36, 1); transition-delay: 100ms; }
.testimonials-entered .is-active .testimonial-quote { transition-delay: 120ms; }
.testimonials-entered .is-active .testimonial-metrics > :nth-child(1) { transition-delay: 150ms; }
.testimonials-entered .is-active .testimonial-metrics > :nth-child(2) { transition-delay: 175ms; }
.testimonials-entered .is-active .testimonial-metrics > :nth-child(3) { transition-delay: 200ms; }
.testimonials-entered .is-active .testimonial-author { transition-delay: 225ms; }
.testimonials-resetting .testimonials-track, .testimonials-resetting .testimonial-card, .testimonials-resetting .testimonial-brand, .testimonials-resetting .testimonial-reveal { transition: none !important; }
.testimonials-dragging .testimonials-track { transition: none; }
.testimonials-dragging .testimonials-viewport { user-select: none; }
.testimonials-dragging .testimonials-viewport, .testimonials-dragging .testimonial-card-select { cursor: grabbing; }

@media (max-width: 900px) {
    .landing-testimonials { margin-top: 100px; }
    .testimonials-ready { --testimonial-expanded: 650px; --testimonial-collapsed: 240px; }
    .testimonial-details { column-gap: 32px; }
    .testimonial-quote { font-size: 21px; }
}
@media (max-width: 700px) {
    .testimonials-ready { --testimonial-expanded: calc(100vw - 48px); --testimonial-collapsed: 180px; }
    .testimonials-ready .testimonials-viewport, .testimonials-ready .testimonials-track { height: auto; }
    .testimonial-card { padding: 24px; }
    .testimonial-details { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
    .testimonial-metrics { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
    .testimonial-metrics dt { font-size: 22px; white-space: nowrap; }
    .testimonial-metrics dd { font-size: 11px; }
    .testimonial-brand { min-height: 56px; font-size: 32px; }
    .testimonial-brand-logo { height: 56px; }
    .testimonial-brand--akilora { gap: 8px; font-size: 24px; }
    .testimonial-brand--akilora .testimonial-brand-logo { width: 40px; height: 40px; }
    .testimonial-quote { font-size: 20px; padding-left: 16px; }
    .testimonials-ready .testimonial-card { height: 320px; }
    .testimonials-ready .testimonial-card.is-active { height: auto; min-height: 400px; }
    .testimonials-ready .testimonial-card.is-active .testimonial-brand { position: static; max-width: 100%; transform: none; }
    .testimonials-ready .testimonial-card.is-active .testimonial-details { position: static; width: auto; height: auto; margin-top: 36px; grid-template-rows: auto; gap: 24px; }
    .testimonials-controls { margin-top: 32px; }
}
@media (max-width: 380px) {
    .testimonial-metrics dt { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .testimonials-ready .testimonials-track, .testimonials-ready .testimonial-card, .testimonials-ready .testimonial-brand, .testimonials-ready .testimonial-reveal, .testimonials-ready .is-active .testimonial-reveal { transition: none; }
}
