/* ─────────────────────────────────────────────────────────────────
   Race Paper — cinematic scroll experience.

   Loaded on /papers/<slug>/ only. Seven scroll-pinned scenes
   driven by GSAP ScrollTrigger (papers/js/cinematic.js).

   Visual register: dark editorial cinematic. Sage accents
   (LLaMa register) + gold for the verdict moment. Generous
   100vh scenes that feel like spreads in a magazine.

   Mobile (≤768px): scenes flow as a vertical stack, GSAP
   transitions are no-ops, sticky heatmap unsticks. Reads as
   the standard magazine paper layout — graceful fallback.
   ───────────────────────────────────────────────────────── */

.page-paper-cinematic {
  background: #0a0c10;
  color: #f3f6ef;
}

/* Hide site chrome that competes with the cinematic. The base
   nav stays accessible via keyboard but doesn't visually intrude.
   (If the project has a global .site-nav, expose that here.) */
.page-paper-cinematic .site-footer { display: none; }

.cine {
  --c-bg-deep:     #0a0c10;
  --c-bg-mid:      #14181f;
  --c-bg-sage:    #1a221c;
  --c-bg-gold:    #1a1408;
  --c-ink:         #f3f6ef;
  --c-ink-70:      rgba(243, 246, 239, 0.72);
  --c-ink-40:      rgba(243, 246, 239, 0.42);
  --c-sage:        #8db28d;
  --c-sage-deep:   #6b8e6b;
  --c-sage-soft:   rgba(141, 178, 141, 0.18);
  --c-gold:        #d4af37;
  --c-gold-lt:     #f5d76e;
  --c-gold-soft:   rgba(212, 175, 55, 0.18);

  position: relative;
  display: block;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  color: var(--c-ink);
}

/* ── Scene shell ──────────────────────────────────────────── */
.cine-act {
  position: relative;
  min-height: 100vh;
  padding: 96px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cine-act__inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.cine-act__inner--centered {
  text-align: center;
  max-width: 880px;
}
.cine-act__num {
  margin: 0 0 24px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-sage);
}

/* ── Background colour per scene ──────────────────────────── */
.cine-act--title       { background: radial-gradient(ellipse at 30% 40%, #1a2030 0%, #0a0c10 65%); }
.cine-act--hypothesis  { background: linear-gradient(180deg, #0e1118 0%, #14181f 100%); }
.cine-act--method      { background: #07090c; }
.cine-act--results     { background: #faf8f2; color: #1a201c; padding: 64px 0; }
.cine-act--discussion  { background: linear-gradient(180deg, #14181f 0%, #1a221c 100%); }
.cine-act--verdict     { background: radial-gradient(ellipse at center, #1a1408 0%, #07090c 70%); }
.cine-act--citation    { background: #07090c; min-height: 80vh; }

/* ── Fade-in default state (GSAP overrides on scroll) ────── */
[data-cine-fade] {
  opacity: 0;
  transform: translateY(24px);
}

/* When JS is disabled / hasn't booted, show everything via
   no-js class on <html>. Belt-and-braces fallback so the page
   isn't blank with JS off. */
.no-js [data-cine-fade] {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   ACT 1 — TITLE
   ══════════════════════════════════════════════════════════ */

.cine-eyebrow {
  margin: 0 0 32px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cine-eyebrow__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-sage);
  box-shadow: 0 0 12px var(--c-sage-soft);
}
.cine-eyebrow__sep {
  color: var(--c-ink-40);
}

.cine-title {
  margin: 0 0 24px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-ink);
}
.cine-title__deck {
  margin: 0 0 24px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--c-ink-70);
  max-width: 760px;
}
.cine-title__meta {
  margin: 0;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-ink-40);
}

.cine-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-40);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: cine-pulse 2.4s ease-in-out infinite;
}
.cine-scroll-hint__arrow {
  display: inline-block;
  animation: cine-bob 2.4s ease-in-out infinite;
}
@keyframes cine-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
@keyframes cine-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ════════════════════════════════════════════════════════════
   ACT 2 — HYPOTHESIS (drop-cap lede on dark)
   ══════════════════════════════════════════════════════════ */

.cine-prose p {
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 22px;
  line-height: 1.7;
  color: var(--c-ink);
  margin: 0 0 18px;
  max-width: 64ch;
}
.cine-prose p:last-child { margin-bottom: 0; }

.cine-prose--lede p {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.6;
}
.cine-prose--lede p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 88px;
  line-height: 1;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--c-sage);
  font-weight: 700;
}
.cine-prose--centered p {
  margin-left: auto;
  margin-right: auto;
}

/* Sage horse-links across all prose blocks */
.cine-prose a {
  color: var(--c-sage);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--c-sage-soft);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cine-prose a:hover,
.cine-prose a:focus-visible {
  color: var(--c-gold-lt);
  border-bottom-color: var(--c-gold);
}

/* ════════════════════════════════════════════════════════════
   ACT 3 — METHOD (terminal panel)
   ══════════════════════════════════════════════════════════ */

.cine-terminal {
  max-width: 640px;
  margin: 0 0 40px;
  background: #0d1118;
  border: 1px solid rgba(141, 178, 141, 0.25);
  border-radius: 6px;
  overflow: hidden;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 24px 64px rgba(0, 0, 0, 0.5);
}
.cine-terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15191f;
  border-bottom: 1px solid rgba(141, 178, 141, 0.15);
}
.cine-terminal__dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.cine-terminal__dot--red    { background: #ff5f56; }
.cine-terminal__dot--amber  { background: #ffbd2e; }
.cine-terminal__dot--green  { background: #27c93f; }
.cine-terminal__title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--c-ink-40);
  letter-spacing: 0.05em;
}
.cine-terminal__body {
  padding: 18px 22px 22px;
}
.cine-terminal__line {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.cine-terminal__line--dim   { color: var(--c-ink-40); }
.cine-terminal__line--blink {
  color: var(--c-sage);
  animation: cine-blink 1s steps(2, start) infinite;
}
@keyframes cine-blink {
  to { opacity: 0; }
}
.cine-terminal__val {
  color: var(--c-sage);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cine-terminal__val--gold   { color: var(--c-gold-lt); }
.cine-terminal__val--green  { color: #4cdb78; }

/* ════════════════════════════════════════════════════════════
   ACT 4 — RESULTS (sticky heatmap split)
   ══════════════════════════════════════════════════════════ */

.cine-act--results .cine-act__num {
  color: var(--c-sage-deep);
}
.cine-act__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
  max-width: 1240px;
}
.cine-act__inner--stack {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Results intro row — LLaMa on the left (pointing right), prose on
   the right. Keeps the analyst "presenting" the article's findings
   BEFORE the reader hits the full-width chart panel below. */
.cine-results__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 8px 32px 0;
}
.cine-results__prose .cine-prose p {
  color: #1a201c;
  font-size: 20px;
  line-height: 1.6;
}
.cine-results__prose .cine-prose {
  max-width: 640px;
}

/* Full-width chart panel — the data hero. Elevated card with real
   contrast against the cream act background so the bars pop. */
.cine-results__stage {
  padding: 0 32px;
}
.cine-results__stage .mv-heatmap {
  background: #fff;
  border: 1px solid rgba(30, 40, 30, 0.08);
  border-radius: 16px;
  padding: 36px 44px 28px;
  box-shadow:
    0 48px 88px -32px rgba(20, 40, 30, 0.28),
    0 20px 40px -24px rgba(20, 40, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.cine-results__stage .mv-heatmap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
              rgba(214, 168, 72, 0.9) 0%,
              rgba(126, 146, 118, 0.7) 55%,
              rgba(126, 146, 118, 0.2) 100%);
}

/* Caption — turn "1000 simulations..." into a proper section header */
.cine-results__stage .mv-heatmap__caption {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(30, 40, 30, 0.08);
}
.cine-results__stage .mv-heatmap__caption-lead {
  font-size: 13px;
  letter-spacing: 0.18em;
}
.cine-results__stage .mv-heatmap__caption-sub {
  margin-top: 6px;
  font-size: 13px;
}

/* Rows — bigger typography, dashed rule between */
.cine-results__stage .mv-heatmap__row {
  grid-template-columns: 32px minmax(160px, 200px) 1fr 128px;
  gap: 18px;
  padding: 10px 8px;
  border-top: 1px dashed rgba(30, 40, 30, 0.08);
  font-size: 15px;
}
.cine-results__stage .mv-heatmap__row:first-child {
  border-top: 0;
}
.cine-results__stage .mv-heatmap__rank {
  font-size: 15px;
  font-weight: 700;
}
.cine-results__stage .mv-heatmap__horse a {
  font-size: 15px;
  font-weight: 600;
}

/* Bars — taller, richer palette so a 65% row genuinely dominates
   next to a 2% row. Track has an inset shadow for depth. */
.cine-results__stage .mv-heatmap__bars {
  height: 26px;
  background: rgba(30, 40, 30, 0.05);
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(20, 40, 30, 0.10);
}
.cine-results__stage .mv-heatmap__bar { border-radius: 4px; }
.cine-results__stage .mv-heatmap__bar--top3 {
  background: linear-gradient(90deg,
              rgba(126, 146, 118, 0.32) 0%,
              rgba(126, 146, 118, 0.20) 100%);
}
.cine-results__stage .mv-heatmap__bar--win {
  background: linear-gradient(90deg, #5c7455 0%, #7e9276 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

/* Percentages — big, tabular, prominent */
.cine-results__stage .mv-heatmap__pcts { gap: 8px; }
.cine-results__stage .mv-heatmap__pct--win {
  font-size: 16px;
  font-weight: 800;
  color: #4a5f43;
}
.cine-results__stage .mv-heatmap__pct--top3 { font-size: 13px; }

/* Winner row — gold wash background + heavier weight so the payoff
   sits above the pack visually as well as numerically. */
.cine-results__stage .mv-heatmap__row--lead {
  background: linear-gradient(90deg,
              rgba(214, 168, 72, 0.16) 0%,
              rgba(214, 168, 72, 0.03) 78%,
              transparent 100%);
  border-radius: 10px;
  padding: 14px 12px;
  margin: 0 -12px 4px;
  border-top: 0;
  box-shadow: inset 0 0 0 1px rgba(214, 168, 72, 0.22);
}
.cine-results__stage .mv-heatmap__row--lead .mv-heatmap__rank { font-size: 17px; }
.cine-results__stage .mv-heatmap__row--lead .mv-heatmap__horse a { font-size: 17px; font-weight: 800; }
.cine-results__stage .mv-heatmap__row--lead .mv-heatmap__bar--win {
  background: linear-gradient(90deg, #b8892a 0%, #d6a848 60%, #e6b95c 100%);
  box-shadow:
    0 0 0 1px rgba(214, 168, 72, 0.35),
    0 0 12px rgba(214, 168, 72, 0.35);
}
.cine-results__stage .mv-heatmap__row--lead .mv-heatmap__pct--win {
  font-size: 18px;
  color: #8a6620;
}

/* Zero/near-zero rows — visually recede so the eye tracks the
   contenders first. Non-contenders still render, just softer. */
.cine-results__stage .mv-heatmap__row:not(.mv-heatmap__row--lead) {
  transition: opacity 0.3s ease;
}
.cine-results__stage .mv-heatmap__row:nth-child(n+7):not(.mv-heatmap__row--lead) {
  opacity: 0.62;
}
.cine-results__stage .mv-heatmap__row:nth-child(n+7):not(.mv-heatmap__row--lead):hover {
  opacity: 1;
}

/* Summary footer — larger, better spacing */
.cine-results__stage .mv-heatmap__summary {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 40, 30, 0.08);
}

/* Animatable bars — JS reads style.width at boot, resets to 0,
   then animates back up when scroll-trigger fires. */
.cine-results__stage .mv-heatmap__bar {
  transition: width 1.4s cubic-bezier(0.22, 0.94, 0.32, 1);
}

/* ════════════════════════════════════════════════════════════
   ACT 5 — DISCUSSION
   ══════════════════════════════════════════════════════════ */

.cine-act--discussion .cine-prose p {
  font-size: 21px;
}

/* ════════════════════════════════════════════════════════════
   ACT 6 — VERDICT (big horse name reveal)
   ══════════════════════════════════════════════════════════ */

.cine-verdict__eyebrow {
  margin: 8px 0 12px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.cine-verdict__horse {
  margin: 0 0 24px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background-image: linear-gradient(
    100deg,
    #8a6a14 0%, #d4af37 30%, #f5d76e 50%, #d4af37 70%, #8a6a14 100%
  );
  background-size: 200% 100%;
  background-position: 50% 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* JS adds .is-revealing → triggers the shine sweep across */
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 0.94, 0.32, 1);
}
.cine-verdict__horse.is-revealing {
  opacity: 1;
  transform: scale(1);
  animation: cine-shine 3s ease-out 0.4s forwards;
}
@keyframes cine-shine {
  0%   { background-position: 50% 0; }
  100% { background-position: -50% 0; }
}
.cine-verdict__horse a {
  color: inherit;
  text-decoration: none;
  background-image: inherit;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cine-verdict__confidence {
  display: inline-block;
  margin: 0 0 32px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cine-verdict__confidence--low {
  background: rgba(243, 246, 239, 0.08);
  color: var(--c-ink-40);
}
.cine-verdict__confidence--medium {
  background: var(--c-gold-soft);
  color: var(--c-gold-lt);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.cine-verdict__confidence--high {
  background: var(--c-gold);
  color: #1a1408;
  border: 1px solid var(--c-gold);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.4);
}

.cine-verdict__watch {
  margin: 40px auto 0;
  padding: 24px 28px;
  max-width: 640px;
  background: rgba(141, 178, 141, 0.06);
  border: 1px solid rgba(141, 178, 141, 0.18);
  border-radius: 6px;
}
.cine-verdict__watch-label {
  margin: 0 0 12px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sage);
}
.cine-verdict__watch-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
}
.cine-verdict__watch-items li {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
}
.cine-verdict__watch-items li + li::before {
  content: '·';
  position: absolute;
  left: -10px;
  color: var(--c-sage);
}
.cine-verdict__watch-caveat {
  margin: 0;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  color: var(--c-ink-40);
}

/* ════════════════════════════════════════════════════════════
   ACT 7 — CITATION
   ══════════════════════════════════════════════════════════ */

.cine-citation__eyebrow {
  margin: 0 0 20px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-sage);
}
.cine-citation__title {
  margin: 0 0 20px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cine-citation__model {
  margin: 0 auto 32px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--c-ink-70);
  max-width: 640px;
  line-height: 1.6;
}
.cine-citation__links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 48px;
}
.cine-citation__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--c-sage-soft);
  border: 1px solid rgba(141, 178, 141, 0.35);
  border-radius: 999px;
  color: var(--c-ink);
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.cine-citation__link:hover,
.cine-citation__link:focus-visible {
  background: rgba(141, 178, 141, 0.28);
  border-color: var(--c-sage);
  transform: translateY(-1px);
}
.cine-citation__link--quiet {
  background: transparent;
  border-color: rgba(243, 246, 239, 0.12);
  color: var(--c-ink-70);
}
.cine-citation__gamble {
  margin: 0;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--c-ink-40);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — mobile (≤768px)
   Scenes flow as a vertical stack. GSAP fade-ins still work
   (they're scroll-triggered, not viewport-locked), but the
   sticky heatmap unsticks + the split layout stacks.
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .cine-act {
    min-height: auto;
    padding: 64px 0;
  }
  .cine-act__inner {
    padding: 0 20px;
  }
  .cine-act__inner--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cine-results__viz {
    position: static;
  }
  .cine-title {
    font-size: clamp(40px, 12vw, 64px);
  }
  .cine-verdict__horse {
    font-size: clamp(48px, 18vw, 96px);
  }
  .cine-prose p {
    font-size: 18px;
  }
  .cine-scroll-hint {
    bottom: 28px;
  }
}

/* ════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Respect the user's setting — disable fade-ins + animations,
   reveal everything immediately.
   ══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  [data-cine-fade] {
    opacity: 1 !important;
    transform: none !important;
  }
  .cine-verdict__horse {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .cine-scroll-hint,
  .cine-scroll-hint__arrow,
  .cine-terminal__line--blink {
    animation: none !important;
  }
  .cine-results__viz .mv-heatmap__bar {
    transition: none !important;
  }
  .cine-pace__line,
  .cine-form__line,
  .cine-form__dot,
  .cine-playback__line,
  .cine-playback__dot,
  .cine-whatif__card,
  .cine-radar__shape {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   ACT 4½ — RADAR — top-3 fit across 5 axes
   ══════════════════════════════════════════════════════════ */

.cine-act--radar {
  background: linear-gradient(180deg, #14181f 0%, #1a221c 100%);
}
.cine-act--radar .cine-act__inner { max-width: 980px; }

.cine-radar__caption {
  margin: 0 0 32px;
  max-width: 640px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-70);
}

.cine-radar__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .cine-radar__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cine-radar__chart { display: flex; justify-content: center; }
.cine-radar__svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  overflow: visible;
}
.cine-radar__ring {
  fill: none;
  stroke: rgba(141, 178, 141, 0.10);
  stroke-width: 1;
}
.cine-radar__spoke {
  stroke: rgba(141, 178, 141, 0.18);
  stroke-width: 1;
}
.cine-radar__label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--c-ink-70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cine-radar__shape {
  fill-opacity: 0.20;
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0);
  opacity: 0;
}
.cine-radar__shape--gold   { fill: var(--c-gold-lt); stroke: var(--c-gold-lt); }
.cine-radar__shape--sage   { fill: var(--c-sage);    stroke: var(--c-sage); }
.cine-radar__shape--copper { fill: #c97a4a;          stroke: #c97a4a; }

.cine-radar__chart.is-revealed .cine-radar__shape {
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.7s ease-out;
  transform: scale(1);
  opacity: 1;
}
.cine-radar__chart.is-revealed .cine-radar__shape:nth-of-type(2) { transition-delay: 0.20s; }
.cine-radar__chart.is-revealed .cine-radar__shape:nth-of-type(3) { transition-delay: 0.40s; }

.cine-radar__legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cine-radar__legend-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(141, 178, 141, 0.08);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
}
.cine-radar__legend-row:last-child { border-bottom: none; }
.cine-radar__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  align-self: center;
}
.cine-radar__swatch--gold   { background: var(--c-gold-lt); }
.cine-radar__swatch--sage   { background: var(--c-sage); }
.cine-radar__swatch--copper { background: #c97a4a; }
.cine-radar__legend-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--c-ink);
}
.cine-radar__legend-score {
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--c-sage);
}
.cine-radar__legend-score-pct {
  font-size: 12px;
  margin-left: 2px;
  color: var(--c-ink-40);
}

/* ════════════════════════════════════════════════════════════
   ACT 5 — RACE PLAYBACK
   ══════════════════════════════════════════════════════════ */

.cine-act--playback {
  background: linear-gradient(180deg, #0a1014 0%, #14181f 100%);
}
.cine-act--playback .cine-act__inner { max-width: 1080px; }

.cine-playback__caption {
  margin: 0 0 32px;
  max-width: 640px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-70);
}

.cine-playback__wrap {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  background: rgba(141, 178, 141, 0.04);
  border: 1px solid rgba(141, 178, 141, 0.10);
  border-radius: 12px;
  padding: 24px 20px 16px;
}
.cine-playback__chart { min-width: 0; }
.cine-playback__svg {
  width: 100%;
  height: 380px;
  display: block;
  overflow: visible;
}
.cine-playback__checkpoint {
  stroke: rgba(141, 178, 141, 0.12);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.cine-playback__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.cine-playback__horse.is-winner .cine-playback__line {
  stroke-width: 4;
  opacity: 0.9;
}
.cine-playback__dot {
  stroke: #0a0c10;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
}
.cine-playback__horse.is-winner .cine-playback__dot { stroke-width: 2.5; }
.cine-playback__badge {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: #0a0c10;
  opacity: 0;
  pointer-events: none;
  paint-order: stroke;
}
.cine-playback__horse--amber  .cine-playback__line,
.cine-playback__horse--amber  .cine-playback__dot  { stroke: #e6b34a; fill: #e6b34a; }
.cine-playback__horse--copper .cine-playback__line,
.cine-playback__horse--copper .cine-playback__dot  { stroke: #c97a4a; fill: #c97a4a; }
.cine-playback__horse--sage   .cine-playback__line,
.cine-playback__horse--sage   .cine-playback__dot  { stroke: var(--c-sage); fill: var(--c-sage); }
.cine-playback__horse--gold   .cine-playback__line,
.cine-playback__horse--gold   .cine-playback__dot  { stroke: var(--c-gold-lt); fill: var(--c-gold-lt); }
.cine-playback__horse--plum   .cine-playback__line,
.cine-playback__horse--plum   .cine-playback__dot  { stroke: #b889b8; fill: #b889b8; }

.cine-playback__wrap.is-revealed .cine-playback__line {
  transition: stroke-dashoffset 2.4s ease-out;
  transition-delay: calc(var(--horse-idx, 0) * 0.08s);
  stroke-dashoffset: 0;
}
.cine-playback__wrap.is-revealed .cine-playback__dot {
  transition: opacity 0.4s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.6s + var(--horse-idx, 0) * 0.08s + var(--dot-idx, 0) * 0.10s);
  opacity: 1;
  transform: scale(1);
}
.cine-playback__wrap.is-revealed .cine-playback__badge {
  transition: opacity 0.35s ease-out;
  transition-delay: calc(0.8s + var(--horse-idx, 0) * 0.08s + var(--dot-idx, 0) * 0.10s);
  opacity: 1;
}
.cine-playback__wrap.is-revealed .cine-playback__horse.is-winner .cine-playback__dot {
  filter: drop-shadow(0 0 8px currentColor);
}

.cine-playback__axis {
  display: flex;
  justify-content: space-between;
  padding: 12px 28px 0;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-ink-40);
}
.cine-playback__axis-tick:first-child { text-align: left; }
.cine-playback__axis-tick:last-child  { text-align: right; color: var(--c-gold-lt); font-weight: 700; }

/* Projected-finish column — reads like a live tote board */
.cine-playback__finish {
  align-self: stretch;
  padding: 4px 4px 4px 20px;
  border-left: 1px solid rgba(141, 178, 141, 0.12);
  display: flex;
  flex-direction: column;
}
.cine-playback__finish-title {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-40);
}
.cine-playback__finish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cine-playback__finish-item {
  --tint: var(--c-sage);
  display: grid;
  grid-template-columns: 34px 22px minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--tint);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, background 0.3s;
  font-family: "DM Sans", sans-serif;
  color: var(--c-ink-70);
  min-width: 0;
}
.cine-playback__wrap.is-revealed .cine-playback__finish-item {
  opacity: 1;
  transform: translateX(0);
}
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(1) { transition-delay: 1.6s; }
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(2) { transition-delay: 1.7s; }
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(3) { transition-delay: 1.8s; }
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(4) { transition-delay: 1.9s; }
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(5) { transition-delay: 2.0s; }
.cine-playback__wrap.is-revealed .cine-playback__finish-item:nth-child(6) { transition-delay: 2.1s; }
.cine-playback__finish-item.cine-playback__horse--amber  { --tint: #e6b34a; }
.cine-playback__finish-item.cine-playback__horse--copper { --tint: #c97a4a; }
.cine-playback__finish-item.cine-playback__horse--sage   { --tint: var(--c-sage); }
.cine-playback__finish-item.cine-playback__horse--gold   { --tint: var(--c-gold-lt); }
.cine-playback__finish-item.cine-playback__horse--plum   { --tint: #b889b8; }
.cine-playback__finish-item.is-winner {
  background: linear-gradient(90deg,
              rgba(230, 179, 74, 0.18) 0%,
              rgba(230, 179, 74, 0.04) 100%);
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1px rgba(230, 179, 74, 0.25);
}
.cine-playback__finish-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--tint);
  letter-spacing: 0.02em;
}
.cine-playback__finish-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: #0a0c10;
  font-size: 11px;
  font-weight: 800;
}
.cine-playback__finish-name {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cine-playback__finish-style {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-ink-40);
  text-align: center;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .cine-playback__wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cine-playback__finish {
    border-left: 0;
    border-top: 1px solid rgba(141, 178, 141, 0.12);
    padding: 16px 4px 4px;
  }
  .cine-playback__svg { height: 300px; }
}
@media (max-width: 640px) {
  .cine-playback__svg { height: 240px; }
  .cine-playback__badge { font-size: 10px; }
}

/* ════════════════════════════════════════════════════════════
   ACT 8 — WHAT-IF
   ══════════════════════════════════════════════════════════ */

.cine-act--whatif {
  background: linear-gradient(180deg, #1a221c 0%, #14181f 100%);
}
.cine-act--whatif .cine-act__inner { max-width: 1080px; }

.cine-whatif__caption {
  margin: 0 0 36px;
  max-width: 640px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-70);
}

.cine-whatif__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .cine-whatif__grid { grid-template-columns: 1fr; }
}

.cine-whatif__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(141, 178, 141, 0.16);
  border-radius: 12px;
  padding: 22px 20px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.cine-whatif__card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 178, 141, 0.32);
}
.cine-whatif__head {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cine-whatif__icon {
  font-size: 22px;
  line-height: 1;
}
.cine-whatif__label {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--c-ink);
}
.cine-whatif__rule {
  margin: 0 0 18px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-ink-70);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(141, 178, 141, 0.10);
}
.cine-whatif__ranks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cine-whatif__rank {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(141, 178, 141, 0.06);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
.cine-whatif__rank:last-child { border-bottom: none; }
.cine-whatif__rank-pos {
  font-weight: 800;
  color: var(--c-sage);
  font-size: 15px;
}
.cine-whatif__rank-name {
  font-weight: 600;
  color: var(--c-ink);
}
.cine-whatif__rank-pct {
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-70);
}
.cine-whatif__rank-delta {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  min-width: 38px;
  text-align: right;
  color: var(--c-ink-40);
}
.cine-whatif__rank-delta.is-up   { color: #7fd8a8; }
.cine-whatif__rank-delta.is-down { color: #e08484; }

/* ════════════════════════════════════════════════════════════
   LLAMA AVATAR — custom SVG, sage register
   ══════════════════════════════════════════════════════════ */

.cine {
  --llama-color:       #8db28d;
  --llama-color-light: #b5c4ad;
  --llama-color-dark:  #5a7053;
  --llama-snout:       #d4c4a8;
  --llama-bridle:      #c9a456;
}

.cine-llama {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  pointer-events: none;
  --llama-glow: rgba(126, 146, 118, 0.35);   /* sage — matches paper palette */
}
.cine-llama__pic,
.cine-llama__pic img,
.cine-llama__img {
  display: block;
  width:  100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* Portrait is 2:3 (1024×1536). Sizes carry that aspect ratio so
   the image never squashes. Bigger sizes than the old SVG so the
   photograph reads at story moments. */
.cine-llama--xs    { width: 32px;  height: 48px;  }
.cine-llama--sm    { width: 60px;  height: 90px;  }
.cine-llama--md    { width: 140px; height: 210px; }
.cine-llama--lg    { width: 280px; height: 420px; }
.cine-llama--hero  { width: 380px; height: 570px; }
.cine-llama--stage { width: 460px; height: 690px; }
@media (max-width: 1100px) {
  .cine-llama--stage { width: 360px; height: 540px; }
  .cine-llama--hero  { width: 300px; height: 450px; }
  .cine-llama--lg    { width: 220px; height: 330px; }
}
@media (max-width: 780px) {
  .cine-llama--stage { width: 260px; height: 390px; }
  .cine-llama--hero  { width: 220px; height: 330px; }
  .cine-llama--lg    { width: 180px; height: 270px; }
}

/* Sage glow — LLaMa reads warmly even against the dark cinematic
   register. Applied to the picture wrapper so the drop shadow
   follows the image alpha channel (WebP + optimised PNG both
   ship with transparent backgrounds). */
.cine-llama__pic {
  filter: drop-shadow(0 8px 24px var(--llama-glow))
          drop-shadow(0 2px 6px rgba(10, 20, 15, 0.5));
}

/* Subtle sway — gentle bob loops, whole portrait rotates a touch */
@keyframes cine-llama-sway {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-1.1deg); }
}
.cine-llama__pic {
  animation: cine-llama-sway 5.5s ease-in-out infinite;
  transform-origin: 50% 90%;
}

/* Pose tweaks — pose tints the timing so each moment feels distinct.
   Both old + new pose names supported so legacy call sites keep working. */
.cine-llama--writing    .cine-llama__pic,
.cine-llama--simulation .cine-llama__pic { animation-duration: 4s;  }
.cine-llama--pointing   .cine-llama__pic,
.cine-llama--evidence   .cine-llama__pic { animation-duration: 6s;  transform-origin: 30% 90%; }
.cine-llama--considering .cine-llama__pic,
.cine-llama--verdict    .cine-llama__pic { animation-duration: 7s; }
.cine-llama--signing    .cine-llama__pic { animation-duration: 5s;  }
.cine-llama--presenting .cine-llama__pic { animation-duration: 6.5s; }
.cine-llama--hypothesis .cine-llama__pic { animation-duration: 5.5s; }
.cine-llama--review     .cine-llama__pic { animation-duration: 5s;  }

@media (prefers-reduced-motion: reduce) {
  .cine-llama__pic { animation: none; }
}

/* ── Per-act LLaMa scene compositions ───────────────────────────
   Each scene gives the character stage presence: a real column,
   parallax hooks, and a GSAP entrance. Initial opacity is 0 so the
   GSAP layer can reveal — the no-JS/reduced-motion fallback at the
   bottom of this section restores visibility. */

/* HYPOTHESIS — split grid, LLaMa fills the right column at monitors */
.cine-act--hypothesis .cine-act__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 56px;
  align-items: center;
}
.cine-hypothesis__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  will-change: transform, opacity;
}
.cine-hypothesis__stage::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at 60% 50%,
              rgba(126, 146, 118, 0.20) 0%,
              rgba(126, 146, 118, 0.06) 40%,
              transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.cine-hypothesis__stage .cine-llama { position: relative; z-index: 1; }

/* METHOD — LLaMa on left watches the sim (terminal) on right */
.cine-method__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}
.cine-method__llama {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-60px) translateY(20px);
  will-change: transform, opacity;
  order: 1;
}
.cine-method__llama::before {
  content: "";
  position: absolute;
  inset: -30px -40px;
  background: radial-gradient(ellipse at 50% 60%,
              rgba(255, 189, 46, 0.14) 0%,
              rgba(255, 189, 46, 0.04) 45%,
              transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.cine-method__llama .cine-llama { position: relative; z-index: 1; }
.cine-method__stage .cine-terminal { order: 2; }

/* RESULTS — LLaMa presents the findings in the intro row, then the
   full-width chart panel drops in beneath. */
.cine-results__llama {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-40px);
  will-change: transform, opacity;
}
.cine-results__llama::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at 55% 55%,
              rgba(126, 146, 118, 0.20) 0%,
              rgba(126, 146, 118, 0.06) 45%,
              transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.cine-results__llama .cine-llama { position: relative; z-index: 1; }
.cine-results__llama .cine-llama__pic {
  filter: drop-shadow(0 20px 44px rgba(126, 146, 118, 0.30))
          drop-shadow(0 6px 14px rgba(30, 40, 30, 0.28));
}
@media (max-width: 900px) {
  .cine-results__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }
  .cine-results__llama { justify-content: center; }
  .cine-results__stage { padding: 0 20px; }
  .cine-results__stage .mv-heatmap { padding: 24px 20px; }
  .cine-results__stage .mv-heatmap__row {
    grid-template-columns: 24px 120px 1fr 100px;
    gap: 10px;
  }
}

/* VERDICT — LLaMa above the pick, scale-in centred */
.cine-verdict__llama {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0;
  transform: scale(0.88);
  will-change: transform, opacity;
}
.cine-verdict__llama .cine-llama__pic {
  filter: drop-shadow(0 12px 40px rgba(220, 180, 90, 0.35))
          drop-shadow(0 4px 12px rgba(10, 8, 4, 0.6));
}

/* Mobile — stack every scene, drop parallax translate baselines */
@media (max-width: 900px) {
  .cine-act--hypothesis .cine-act__inner--split,
  .cine-method__stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cine-hypothesis__stage,
  .cine-method__llama {
    justify-content: center;
    transform: translateY(20px);
  }
  .cine-results__llama {
    justify-content: center;
    margin-left: 0;
    margin-bottom: -32px;
  }
}

/* Reduced-motion / no-JS fallback — reveal every LLaMa scene node.
   GSAP boot resets these too via [data-cine-llama-scene] but this
   catches the case where GSAP fails to load entirely. */
@media (prefers-reduced-motion: reduce) {
  [data-cine-llama-scene] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Title act — LLaMa's presenting portrait, right of the headline
   on desktop; stacks above on narrow viewports so the reveal
   still carries the moment. */
.cine-act--title .cine-act__inner {
  position: relative;
}
.cine-llama--presenting {
  position: absolute;
  right: 0;
  top: 12px;
  opacity: 0;
  animation: cine-llama-present-in 1.6s ease-out 0.4s forwards,
             cine-llama-sway       6.5s ease-in-out 2s infinite;
}
@keyframes cine-llama-present-in {
  0%   { opacity: 0; transform: translateX(28px) translateY(6px); }
  100% { opacity: 1; transform: translateX(0)    translateY(0); }
}

.cine-citation .cine-llama--signing {
  margin: 0 auto 12px;
  display: block;
  opacity: 0;
  animation: cine-llama-sign-in 1.4s ease-out 0.5s forwards,
             cine-llama-sway   5s ease-in-out 1.9s infinite;
}
@keyframes cine-llama-sign-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 768px) {
  .cine-terminal .cine-llama--writing,
  .cine-results__viz .cine-llama--pointing { display: none; }

  /* Title act — stack LLaMa above headline on mobile, smaller size */
  .cine-llama--presenting {
    position: static;
    display: block;
    margin: 0 auto 18px;
    width:  140px;
    height: 210px;
    animation: cine-llama-sway 6.5s ease-in-out infinite;
  }
}

/* ════════════════════════════════════════════════════════════
   ACT 3 — PACE ANALYSIS
   ══════════════════════════════════════════════════════════ */

.cine-act--pace {
  background: linear-gradient(180deg, #0e1318 0%, #141d18 100%);
}
.cine-act--pace .cine-act__inner { max-width: 980px; }

.cine-act__title {
  margin: 0 0 24px;
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-ink);
}

.cine-pace__head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.cine-pace__thesis {
  margin: 0;
  max-width: 720px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--c-ink-70);
  border-left: 2px solid var(--c-sage);
  padding-left: 18px;
}
.cine-pace__subhead {
  margin: 8px 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--c-ink-40);
}

/* Header legend — mini color-graded meter that primes readers on
   how the per-card engagement bar reads. */
.cine-pace__legend {
  min-width: 260px;
  background: rgba(30, 42, 30, 0.4);
  border: 1px solid rgba(126, 146, 118, 0.14);
  border-radius: 10px;
  padding: 12px 16px 10px;
}
.cine-pace__legend-title {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-ink-40);
}
.cine-pace__legend-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 12px;
}
.cine-pace__legend-bar span {
  border-radius: 2px;
}
.cine-pace__legend-bar span:nth-child(-n+4) { background: #48c076; }
.cine-pace__legend-bar span:nth-child(n+5):nth-child(-n+8) { background: #e0b04a; }
.cine-pace__legend-bar span:nth-child(n+9) { background: #d97050; }
.cine-pace__legend-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-ink-40);
}

/* Grid of horse cards */
.cine-pace__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .cine-pace__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cine-pace__grid { grid-template-columns: 1fr; }
  .cine-pace__head-row { grid-template-columns: 1fr; }
  .cine-pace__legend { justify-self: start; }
}

.cine-pace-card {
  --tint: var(--c-sage);
  --tint-glow: rgba(126, 146, 118, 0.5);
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.75) 0%, rgba(14, 22, 18, 0.75) 100%);
  border: 1px solid rgba(126, 146, 118, 0.14);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.cine-pace-card--amber  { --tint: #e6b34a; --tint-glow: rgba(230, 179, 74, 0.5); }
.cine-pace-card--copper { --tint: #d68a5a; --tint-glow: rgba(214, 138, 90, 0.5); }
.cine-pace-card--sage   { --tint: var(--c-sage); --tint-glow: rgba(126, 146, 118, 0.5); }
.cine-pace-card--gold   { --tint: var(--c-gold-lt); --tint-glow: rgba(220, 180, 90, 0.5); }
.cine-pace-card--plum   { --tint: #c496c4; --tint-glow: rgba(196, 150, 196, 0.5); }
.cine-pace-card.is-lead {
  border-color: color-mix(in srgb, var(--tint) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 20%, transparent),
              0 20px 40px -20px color-mix(in srgb, var(--tint) 40%, transparent);
}

/* Header — number badge + name/style + win % */
.cine-pace-card__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.cine-pace-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tint);
  color: #0a0f0a;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 20px -4px var(--tint-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cine-pace-card__head-text { min-width: 0; }
.cine-pace-card__name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cine-pace-card__label {
  margin: 2px 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tint);
}
.cine-pace-card__pct {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--tint);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px var(--tint-glow);
}

/* Engagement meter — 12 segmented blocks, gradient across positions */
.cine-pace-card__engagement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 12px;
}
.cine-pace-card__block {
  border-radius: 2px;
  background: rgba(126, 146, 118, 0.10);
  transform: scaleY(0.55);
  transform-origin: center;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  transition-delay: calc(var(--block-idx, 0) * 0.03s);
}
.cine-pace-card.is-revealed .cine-pace-card__block--green.is-filled  { background: #48c076; transform: scaleY(1); box-shadow: 0 0 6px rgba(72, 192, 118, 0.4); }
.cine-pace-card.is-revealed .cine-pace-card__block--amber.is-filled  { background: #e0b04a; transform: scaleY(1); box-shadow: 0 0 6px rgba(224, 176, 74, 0.4); }
.cine-pace-card.is-revealed .cine-pace-card__block--red.is-filled    { background: #d97050; transform: scaleY(1); box-shadow: 0 0 6px rgba(217, 112, 80, 0.4); }

/* START / MID-RACE / FINISH ticks */
.cine-pace-card__ticks {
  display: flex;
  justify-content: space-between;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-ink-40);
  margin-top: -2px;
}

/* Oval "track" with the horse's pace-position dot */
.cine-pace-card__track {
  padding: 4px 0 2px;
}
.cine-pace-card__oval {
  width: 100%;
  height: 44px;
  display: block;
  overflow: visible;
}
.cine-pace-card__track-line {
  stroke: rgba(126, 146, 118, 0.30);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.cine-pace-card__dot {
  fill: var(--tint);
  filter: drop-shadow(0 0 8px var(--tint-glow))
          drop-shadow(0 0 3px var(--tint));
  transform-origin: center;
  transform-box: fill-box;
  animation: cine-pace-dot-pulse 2.2s ease-in-out infinite;
}
@keyframes cine-pace-dot-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.18); }
}

/* Caption row — gauge icon + descriptor */
.cine-pace-card__caption {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 146, 118, 0.10);
  font-family: "DM Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--c-ink-70);
}
.cine-pace-card__gauge {
  width: 18px;
  height: 18px;
  color: var(--tint);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cine-pace-card__dot { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   ACT 4 — FORM TRAJECTORY
   ══════════════════════════════════════════════════════════ */

.cine-act--form {
  background: linear-gradient(180deg, #141d18 0%, #0e1318 100%);
}
.cine-act--form .cine-act__inner { max-width: 980px; }

.cine-form__legend {
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--c-ink-40);
  letter-spacing: 0.05em;
}
.cine-form__legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.cine-form__legend-dot--gold   { background: var(--c-gold-lt); }
.cine-form__legend-dot--silver { background: #c0c8cc; }
.cine-form__legend-dot--bronze { background: #c08c5a; }
.cine-form__legend-dot--mid    { background: rgba(141, 178, 141, 0.35); }
.cine-form__legend-dot--dnf    { background: #b56262; }

.cine-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
}
@media (max-width: 880px) {
  .cine-form__grid { grid-template-columns: 1fr; }
}

.cine-form__row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(141, 178, 141, 0.10);
  border-radius: 10px;
  padding: 14px 18px 12px;
}
.cine-form__name {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
}
.cine-form__svg {
  width: 100%;
  height: 70px;
  display: block;
}
.cine-form__line {
  fill: none;
  stroke: rgba(141, 178, 141, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.cine-form__row.is-revealed .cine-form__line {
  transition: stroke-dashoffset 1.3s ease-out;
  stroke-dashoffset: 0;
}
.cine-form__dot {
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
}
.cine-form__row.is-revealed .cine-form__dot {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1);
}
.cine-form__row.is-revealed .cine-form__dot:nth-child(2) { transition-delay: 0.1s; }
.cine-form__row.is-revealed .cine-form__dot:nth-child(3) { transition-delay: 0.2s; }
.cine-form__row.is-revealed .cine-form__dot:nth-child(4) { transition-delay: 0.3s; }
.cine-form__row.is-revealed .cine-form__dot:nth-child(5) { transition-delay: 0.4s; }
.cine-form__row.is-revealed .cine-form__dot:nth-child(6) { transition-delay: 0.5s; }
.cine-form__row.is-revealed .cine-form__dot:nth-child(7) { transition-delay: 0.6s; }

.cine-form__dot--gold   { fill: var(--c-gold-lt); stroke: #fff7d0; stroke-width: 1.5; }
.cine-form__dot--silver { fill: #c0c8cc; }
.cine-form__dot--bronze { fill: #c08c5a; }
.cine-form__dot--mid    { fill: rgba(141, 178, 141, 0.55); }
.cine-form__dot--pack   { fill: rgba(141, 178, 141, 0.30); }
.cine-form__dot--dnf    { fill: #b56262; }

.cine-form__timeline {
  display: flex;
  justify-content: space-between;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-ink-40);
  margin-top: 2px;
}
.cine-form__empty {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 14px;
  color: var(--c-ink-40);
}
