/* ════════════════════════════════════════════════════
   PACIFIC PARADOX — Visual Essay
   Design: Clean · Minimalist · Editorial
════════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────── */
:root {
  /* Light mode (default) */
  --bg:          #fafaf8;
  --bg-alt:      #f3f1ed;
  --surface:     #ffffff;
  --surface-2:   #f7f5f2;
  --border:      #e8e5e0;
  --border-light:#f0ede8;

  --text-1:      #1a1814;
  --text-2:      #4a4640;
  --text-3:      #8a8480;
  --text-inv:    #ffffff;

  --accent:      #1a5c8a;   /* Pacific blue */
  --accent-2:    #c94030;   /* Danger / heat red */
  --accent-3:    #2a7a5a;   /* Ocean teal */
  --accent-light:#e8f2f8;
  --accent-red-l:#fdecea;

  --chart-1:     #1a5c8a;
  --chart-2:     #c94030;
  --chart-3:     #2a7a5a;
  --chart-4:     #e07820;
  --chart-5:     #7050a0;
  --chart-6:     #c06080;
  --chart-7:     #4090a0;
  --chart-8:     #a08030;

  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --mono:        'DM Mono', 'Courier New', monospace;

  --nav-h:       60px;
  --r:           8px;
  --r-lg:        16px;
  --shadow:      0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.10);
}

[data-theme="dark"] {
  --bg:          #0e0d0c;
  --bg-alt:      #161513;
  --surface:     #1e1c1a;
  --surface-2:   #252320;
  --border:      #2e2c28;
  --border-light:#252320;
  --text-1:      #f0ece6;
  --text-2:      #b0aa9f;
  --text-3:      #706860;
  --text-inv:    #0e0d0c;
  --accent:      #4a9ed4;
  --accent-2:    #e05848;
  --accent-3:    #3aaa7a;
  --accent-light:#0d2535;
  --accent-red-l:#2a1010;
  --shadow:      0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.4);
}

/* ── RESET ─────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--sans);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
img { max-width:100%; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .nav {
  background: rgba(14,13,12,0.92);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.nav-chapters {
  display: flex;
  gap: 4px;
}
.nav-ch {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-ch:hover {
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
}
.nav-ch.active {
  color: var(--text-inv);
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── COVER ─────────────────────────────────────── */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--nav-h);
}
.cover-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,92,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .cover-bg {
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(74,158,212,0.08) 0%, transparent 70%);
}
.cover-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}
.cover-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 32px;
}
.cover-title em {
  font-style: italic;
  color: var(--accent);
}
.cover-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 56px;
  max-width: 480px;
}
.cover-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  max-width: 540px;
  margin-bottom: 56px;
}
.cs-item { text-align: center; }
.cs-val {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.cs-item.danger .cs-val { color: var(--accent-2); }
.cs-label {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}
.cs-divider {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-3);
  flex-shrink: 0;
}
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
  font-size: 18px;
  color: var(--accent);
}
@keyframes bounce {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(6px); }
}

/* ── CHAPTERS ──────────────────────────────────── */
.chapter {
  padding: 100px 0;
  background: var(--bg);
}
.chapter-alt {
  background: var(--bg-alt);
}
.chapter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.chapter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.chapter-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 24px;
  max-width: 700px;
}
.chapter-title em {
  font-style: italic;
  color: var(--accent-2);
}
.chapter-intro {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
  font-weight: 300;
}

/* ── LAYOUT HELPERS ─────────────────────────────── */
.section-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.section-row.mt-lg { margin-top: 64px; }
.section-row.mt-md { margin-top: 40px; }
.chart-area.full { grid-column: 1 / -1; }

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.chart-unit {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}
.chart-caption {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 10px;
}
.chart-narrative {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.chart-narrative strong { color: var(--text-1); font-weight: 600; }

/* ── INSIGHT PANEL ──────────────────────────────── */
.insight-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.insight-number {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 8px;
}
.insight-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.insight-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.insight-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.is-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.is-val.danger { color: var(--accent-2); }
.is-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.insight-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}
.insight-note-box {
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.mt-sm { margin-top: 10px; }

/* ── CHARTS ─────────────────────────────────────── */
.bar-chart-wrap {
  width: 100%;
  height: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.line-chart-wrap {
  width: 100%;
  height: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ── COUNTRY SELECTOR ───────────────────────────── */
.country-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.ctry-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.ctry-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.ctry-chip:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── EVIDENCE GRID ──────────────────────────────── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;
}
.ev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ev-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.ev-icon { font-size: 22px; margin-bottom: 12px; }
.ev-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ev-val {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 4px;
}
.ev-unit {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 12px;
  font-family: var(--mono);
}
.ev-spark {
  width: 100%;
  height: 60px;
  margin-bottom: 12px;
}
.ev-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── THREE-COL ──────────────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.mc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.mc-val {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-3);
  line-height: 1;
  margin-bottom: 4px;
}
.mc-unit {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 14px;
}
.mc-spark {
  width: 100%;
  height: 60px;
  margin-bottom: 14px;
}
.mc-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── PARADOX CHAPTER ────────────────────────────── */
.paradox-chapter {
  background: var(--bg);
  position: relative;
}
.paradox-title { max-width: 800px; }
.paradox-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.paradox-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
}
.paradox-quote {
  margin-top: 32px;
  border-left: 3px solid var(--accent-2);
  padding-left: 20px;
}
blockquote {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: 8px;
}
cite {
  font-size: 12px;
  color: var(--text-3);
  font-style: normal;
}
.scatter-header { margin-bottom: 14px; }
.scatter-wrap {
  width: 100%;
  height: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.scatter-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── KPI ROW ────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.kpi-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.kpi-box .kpi-val {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.kpi-box .kpi-label {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--text-1);
  color: var(--bg);
  padding: 56px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bg);
}
.footer-left p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 4px;
}
.footer-sources-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-sources a { color: var(--bg); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-chapters { display: none; }
  .cover-content { padding: 60px 24px; }
  .chapter-inner { padding: 0 24px; }
  .section-row { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
  .paradox-layout { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .cover-title { font-size: 48px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .cover-stats { flex-direction: column; gap: 20px; }
}

/* ════════════════════════════════════════════════════
   INTERACTIVITY & MOTION
   — scroll reveals, click-to-focus, scrollytelling —
   No color or font tokens are touched below this line.
════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ──────────────────────────── */
.scroll-progress-track {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 3px;
  background: var(--border);
  z-index: 999;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.08s linear;
}

/* ── COVER ENTRANCE ───────────────────────────────── */
.cover-bg { animation: bgPulse 14s ease-in-out infinite alternate; }
@keyframes bgPulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.18); opacity: .75; }
}
.cover-content {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.cover-content.in { opacity: 1; transform: translateY(0); }
.cs-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  width: 0%;
  margin-top: 10px;
  transition: width 1.2s cubic-bezier(.22,.61,.36,1);
}
.cs-item.danger .cs-bar { background: var(--accent-2); }
.scroll-arrow { cursor: pointer; }

/* ── SCROLL REVEAL SYSTEM ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.chart-intro.reveal.in { transition-delay: .08s; }
.chart-area.reveal.in,
.insight-panel.reveal.in { transition-delay: .06s; }

.evidence-grid .ev-card,
.three-col .metric-card,
.kpi-row .kpi-box,
.recap-grid .recap-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1),
              box-shadow .35s ease, transform .35s ease;
}
.evidence-grid .ev-card.in,
.three-col .metric-card.in,
.kpi-row .kpi-box.in,
.recap-grid .recap-card.in { opacity: 1; transform: translateY(0); }
.evidence-grid .ev-card:nth-child(1) { transition-delay: .02s; }
.evidence-grid .ev-card:nth-child(2) { transition-delay: .10s; }
.evidence-grid .ev-card:nth-child(3) { transition-delay: .18s; }
.evidence-grid .ev-card:nth-child(4) { transition-delay: .26s; }
.three-col .metric-card:nth-child(1) { transition-delay: .02s; }
.three-col .metric-card:nth-child(2) { transition-delay: .12s; }
.three-col .metric-card:nth-child(3) { transition-delay: .22s; }
.kpi-row .kpi-box:nth-child(1) { transition-delay: .02s; }
.kpi-row .kpi-box:nth-child(2) { transition-delay: .09s; }
.kpi-row .kpi-box:nth-child(3) { transition-delay: .16s; }
.kpi-row .kpi-box:nth-child(4) { transition-delay: .23s; }
.recap-grid .recap-card:nth-child(1) { transition-delay: .02s; }
.recap-grid .recap-card:nth-child(2) { transition-delay: .10s; }
.recap-grid .recap-card:nth-child(3) { transition-delay: .18s; }
.recap-grid .recap-card:nth-child(4) { transition-delay: .26s; }

/* ── CLICK-TO-FOCUS SPOTLIGHT (page-level groups) ── */
/* Clicking any chart/card dims its siblings in the same row/grid */
.section-row > *,
.evidence-grid > *,
.three-col > *,
.kpi-row > * {
  transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease, filter .35s ease;
}
.is-faded { opacity: .32; transform: scale(0.98); filter: saturate(0.65); }
.is-focused { transform: scale(1.015); box-shadow: var(--shadow-lg); position: relative; z-index: 3; }

/* ── CHART CLICK HINTS & DYNAMIC CALLOUTS ─────────── */
.chart-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 10px;
  letter-spacing: .02em;
}
.chart-hint .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: hintPulse 1.8s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100%{ opacity:.4; } 50%{ opacity:1; } }
.chart-callout {
  margin-top: 12px;
  padding: 0 16px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease, margin .35s ease;
}
.chart-callout.show { max-height: 140px; opacity: 1; padding: 12px 16px; }
.chart-callout strong { color: var(--accent); }
.chart-callout.danger { border-left-color: var(--accent-2); }
.chart-callout.danger strong { color: var(--accent-2); }

/* ── LEGEND CHIPS (solo-focus variant for line charts) ── */
.legend-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.legend-chips .ctry-chip { border-left: 3px solid var(--swatch, var(--border)); }

/* ── SCROLLYTELLING ───────────────────────────────── */
.scrolly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}
.scrolly-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}
.scatter-wrap-lg { height: 540px; }
.scrolly-steps {
  display: flex;
  flex-direction: column;
  gap: 30vh;
  padding-top: 6vh;
  padding-bottom: 28vh;
}
.scrolly-step {
  max-width: 440px;
  opacity: .28;
  transform: translateX(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.scrolly-step.active { opacity: 1; transform: translateX(0); }
.scrolly-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.scrolly-step-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 12px;
}
.scrolly-step-body {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  font-weight: 300;
}
.scrolly-progress {
  display: flex; gap: 5px; margin-top: 14px;
}
.scrolly-progress span {
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--border);
  transition: background .3s ease;
}
.scrolly-progress span.active { background: var(--accent); }

/* ── RESPONSIVE: SCROLLYTELLING ───────────────────── */
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; gap: 24px; }
  .scrolly-sticky { position: relative; top: 0; }
  .scrolly-steps { gap: 24px; padding-top: 0; padding-bottom: 0; }
  .scrolly-step { opacity: 1; transform: none; max-width: 100%; }
  .scatter-wrap-lg { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in,
  .evidence-grid .ev-card, .three-col .metric-card, .kpi-row .kpi-box, .recap-grid .recap-card,
  .scrolly-step, .cover-content, .cs-bar { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════
   CONCLUSION CHAPTER
════════════════════════════════════════════════════ */
.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.recap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.recap-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  opacity: .45;
  line-height: 1;
  margin-bottom: 12px;
}
.recap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.recap-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}
.conclusion-statement {
  max-width: 740px;
  border-left: 3px solid var(--accent-2);
  padding-left: 24px;
}
.conclusion-statement p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 25px);
  font-style: italic;
  color: var(--text-1);
  line-height: 1.65;
}

/* ── FOOTER AUTHOR CREDIT ─────────────────────────── */
.footer-authors {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .recap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .recap-grid { grid-template-columns: 1fr; }
}
