/* ==========================================================================
   Impact figures.
   Default (mobile, short screens, reduced motion): three typographic rows.
   Desktop with motion: .is-pinned — one pinned stage, one figure at a time,
   digits roll like an odometer and the whole stage changes colour per figure.
   ========================================================================== */

.impact { padding: clamp(80px, 10vw, 150px) var(--gutter); position: relative; }
.impact__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
.impact__title { grid-column: 1 / 9; font-size: clamp(3.2rem, 8.6vw, 9rem); }
.impact__sub { grid-column: 9 / 13; font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.9rem); line-height: 1.12; padding-bottom: 0.6em; }

.figs { border-top: 2px solid currentColor; }
.fig { border-bottom: 2px solid currentColor; padding-block: clamp(24px, 3.6vw, 52px); }
.fig__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: end; }
.fig__num { font-size: clamp(6.5rem, 19vw, 19rem); line-height: 0.82; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig__sfx { font-size: 0.58em; letter-spacing: -0.02em; margin-left: 0.04em; }
.fig__label { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.8rem); line-height: 1.02; max-width: 14ch; padding-bottom: 0.15em; }
.impact__index { display: none; }

@media (max-width: 900px) {
  .impact__title, .impact__sub { grid-column: 1 / -1; }
  .impact__sub { margin-top: 18px; }
  .fig__inner { grid-template-columns: 1fr; row-gap: 16px; }
  .fig__num { font-size: clamp(6.5rem, 34vw, 12rem); }
}

/* ---------- odometer reels (built by JS) ---------- */
.odo { display: inline-flex; vertical-align: top; }
.odo__d { display: block; height: 1em; overflow: hidden; line-height: 1; }
.odo__r { display: block; will-change: transform; }
.odo__r span { display: block; height: 1em; line-height: 1; text-align: center; }

/* ---------- pinned stage (desktop + motion) ---------- */
.impact.is-pinned { padding: 0; }
.is-pinned .impact__stage {
  --stage-dot: var(--navy);
  position: relative; overflow: hidden; height: 100svh; min-height: 620px;
  padding: calc(var(--header-h) + 3svh) var(--gutter) 5svh;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); color: var(--ink);
}
.is-pinned .impact__head { margin: 0; }
.is-pinned .impact__title { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
.is-pinned .impact__stage .dot { background: var(--stage-dot); }
.is-pinned .figs { position: relative; height: min(58svh, 560px); border: 0; }
.is-pinned .fig { position: absolute; inset: 0; padding: 0; border: 0; overflow: hidden; display: flex; align-items: flex-end; }
.is-pinned .fig__inner { display: block; width: 100%; padding-top: 0.06em; }
.is-pinned .fig__num { font-size: min(25vw, 41svh); line-height: 1; }
.is-pinned .fig__label { margin-top: 0.4em; font-size: clamp(1.8rem, 3vw, 3.4rem); max-width: 18ch; }
.is-pinned .fig:nth-child(3) .fig__num { color: var(--lime); }

.is-pinned .impact__index {
  display: block; position: absolute; right: var(--gutter); bottom: 5svh; width: min(25vw, 360px);
  --row: clamp(56px, 9svh, 84px);
}
.is-pinned .impact__index li { height: var(--row); display: grid; grid-template-columns: 4.6ch 1fr; align-items: center; column-gap: 14px; padding-left: 30px; border-top: 2px solid currentColor; opacity: 0.32; font-size: 0.95rem; line-height: 1.15; }
.is-pinned .impact__index li:last-of-type { border-bottom: 2px solid currentColor; }
.is-pinned .impact__index b { font-family: var(--sans); font-weight: 700; font-stretch: 75%; font-size: 1.5rem; letter-spacing: -0.01em; }
.is-pinned .impact__index li:first-child { opacity: 1; }
.is-pinned .idx__dot { position: absolute; left: 0; top: calc(var(--row) / 2 - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--stage-dot); }
