/* ==========================================================================
   Testimonials.
   Default (mobile, short screens, reduced motion): three stacked quotes, each led by the
   client's company in a huge outlined line.
   Desktop with motion (.is-pinned): one pinned stage. The quote lights up word by word as you
   scroll, the company name drifts behind it, and the dot travels a rail to the next voice.
   ========================================================================== */

.words { padding: clamp(80px, 10vw, 150px) var(--gutter); position: relative; overflow: hidden; }
.words__head { margin-bottom: clamp(40px, 6vw, 90px); }
.words__kicker { font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.8rem); color: var(--lime); line-height: 1.1; margin-bottom: 14px; }
.words__title { font-size: clamp(3rem, 6.4vw, 7rem); }

.quotes { display: grid; gap: clamp(56px, 8vw, 110px); }
.quote { position: relative; }
.quote__co {
  font-family: var(--sans); font-weight: 720; font-stretch: 75%; line-height: 0.86; letter-spacing: -0.004em;
  font-size: clamp(4rem, 17vw, 15rem); white-space: nowrap; color: var(--lime);
  margin-bottom: clamp(16px, 2.4vw, 32px); overflow: hidden;
}
.quote blockquote { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2.5rem); line-height: 1.14; letter-spacing: -0.01em; max-width: 34em; }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { margin-top: clamp(18px, 2.2vw, 30px); display: flex; align-items: center; gap: 14px; }
.quote figcaption::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); flex: none; }
.quote figcaption strong { font-size: 1.15rem; display: block; }
.quote figcaption span { display: block; opacity: 0.8; }
.words__rail { display: none; }
.qw { display: inline; }


/* ---------- pinned stage ---------- */
.words.is-pinned { padding: 0; }
.is-pinned .words__stage {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  padding: calc(var(--header-h) + 3svh) var(--gutter) 5svh;
  display: flex; flex-direction: column;
}
.is-pinned .words__head { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.is-pinned .words__kicker { margin: 0; order: 2; text-align: right; }
.is-pinned .words__title { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
.is-pinned .quotes { position: relative; flex: 1; display: block; margin: 2svh 0; }
.is-pinned .quote { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
.is-pinned .quote:first-child { visibility: visible; }
.is-pinned .quote__co {
  position: absolute; left: 0; bottom: -2.5svh; margin: 0; overflow: visible; pointer-events: none;
  font-size: min(23vw, 44svh); z-index: 0; opacity: 0.16;
}
.is-pinned .quote blockquote, .is-pinned .quote figcaption { position: relative; z-index: 1; }
.is-pinned .quote blockquote { font-size: min(2.35vw, 4.1svh); max-width: min(62rem, 76%); margin-left: auto; margin-right: 6%; text-shadow: 0 0 24px var(--ink), 0 0 8px var(--ink); }
.is-pinned .quote figcaption { max-width: min(62rem, 76%); margin-left: auto; margin-right: 6%; }

.is-pinned .words__rail { display: block; position: relative; border-top: 2px solid currentColor; padding-top: 14px; }
.is-pinned .words__rail ol { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: 1.15rem; }
.is-pinned .words__rail li { opacity: 0.4; transition: opacity 0.3s; }
.is-pinned .words__rail li.is-on { opacity: 1; }
.is-pinned .words__rail i { position: absolute; left: 0; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); }
