/* Client quotes (src/templates/partials/voices.njk). One component on the
   homepage, /services and /book-a-call; tokens come from the host page.
   film: quotes float as glass cards over footage, the same language as the
   hero chips. paper: the same cards on the light ground. */
.voices { position: relative; }
.voices-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.022em; font-weight: 500; margin: 12px 0 0; max-width: 16ch; text-wrap: balance; }
.voices-eyebrow { font-size: 15px; font-weight: 500; }
.voices-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-top: 56px; }

.vcard { margin: 0; border-radius: 16px; padding: 30px 28px 26px; display: flex; flex-direction: column; }
.vcard blockquote { margin: 0; }
.vcard blockquote::before { content: '\201C'; display: block; height: 30px; font-size: 62px; line-height: 1; font-weight: 500; color: var(--slate-soft); }
.vcard blockquote p { margin-top: 16px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.34; letter-spacing: -0.012em; font-weight: 450; color: var(--ink); text-wrap: pretty; }
.vcard figcaption { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(36, 37, 31, 0.12); font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.vcard figcaption b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---- film ---- */
.voices-film { padding: 132px 0 168px; background: #17130f; color: #fff; overflow: hidden; }
.voices-bg { position: absolute; inset: 0; }
.voices-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voices-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 14, 11, 0.78) 0%, rgba(16, 14, 11, 0.5) 45%, rgba(16, 14, 11, 0.72) 100%); }
.voices-film > .wrap { position: relative; z-index: 2; }
.voices-film .voices-eyebrow { color: rgba(255, 255, 255, 0.72); }
.voices-film .voices-head h2 { color: #fff; }
.voices-film .vcard { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
/* the float: each card sits a step lower than the last */
.voices-film .vcard:nth-child(2) { margin-top: 36px; }
.voices-film .vcard:nth-child(3) { margin-top: 72px; }

/* ---- paper ---- */
.voices-paper { padding: 24px 0 96px; }
.voices-paper .voices-eyebrow { color: var(--mute); }
.voices-paper .voices-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.voices-paper .voices-row { margin-top: 36px; }
.voices-paper .vcard { background: var(--card); border: 1px solid var(--hairline); height: 100%; }
.voices-paper .vcard figcaption { margin-top: auto; }
.voices-paper .vcard blockquote { padding-bottom: 26px; }
.voices-paper .voices-row { align-items: stretch; }

/* enter: rise and fade, one after another. Only once JS has marked the page
   loaded, so a no-JS reader always sees the quotes. */
@media (prefers-reduced-motion: no-preference) {
  html.loaded .vcard[data-play] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
  html.loaded .vcard[data-play]:nth-child(2) { transition-delay: .14s; }
  html.loaded .vcard[data-play]:nth-child(3) { transition-delay: .28s; }
  html.loaded .vcard[data-play].play { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .voices-film { padding: 88px 0 96px; }
  .voices-row { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .voices-film .vcard:nth-child(2), .voices-film .vcard:nth-child(3) { margin-top: 0; }
  .voices-paper { padding-bottom: 72px; }
}
