:root {
  --paper: #f6f8f5;
  --surface: #ffffff;
  --ink: #142019;
  --ink-soft: #354139;
  --muted: #69756d;
  --faint: #8e9991;
  --line: #dbe2dc;
  --green-deep: #083e2a;
  --green: #126746;
  --green-mid: #3e8d6b;
  --green-soft: #e7f1eb;
  --blue: #24598c;
  --red: #c73345;
  --gold: #bf922c;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1380px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.58; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern" 1, "liga" 1, "calt" 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 7.5vw, 104px); }
.reading-progress { position: fixed; inset: 0 auto auto 0; z-index: 200; width: 0; height: 3px; background: var(--red); }

.page-nav { font-size: 13px; font-weight: 600; }
.nav-links { font-family: var(--sans); letter-spacing: 0; }
.nav-cta, .mobile-menu-button { border-radius: 999px; font-size: 13px; }

.publication-hero { min-height: calc(88vh - 68px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr); gap: clamp(42px, 6vw, 92px); align-items: center; padding-block: clamp(60px, 7vw, 96px); }
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { color: var(--green); }
.eyebrow-detail { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); }
.hero-copy h1 { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(50px, 5.7vw, 84px); font-weight: 500; line-height: 0.98; letter-spacing: 0; }
.hero-copy h1 em { color: var(--green); font-weight: 400; }
.hero-deck { max-width: 720px; margin: 24px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(21px, 2vw, 30px); line-height: 1.25; }
.hero-summary { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; line-height: 1.12; transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--ink); background: var(--ink); color: white; }
.button-primary:hover { background: var(--green-deep); }
.button-secondary { border-color: #b7c0ba; background: transparent; }
.button-secondary:hover { background: white; }
.hero-meta { display: grid; grid-template-columns: 0.65fr 0.8fr 1.45fr; max-width: 720px; margin: 42px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-meta div { padding-right: 20px; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.hero-meta dt { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-meta dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; }

.publication-object { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.cover-backdrop { position: absolute; inset: 5% 0 8% 20%; max-width: 100%; overflow: hidden; contain: paint; background: var(--green-deep); color: white; }
.cover-backdrop::before { content: ""; position: absolute; inset: 24% 0 auto; height: 1px; background: rgba(255,255,255,0.18); }
.cover-backdrop span { position: absolute; right: 0; bottom: -65px; left: 0; overflow: hidden; font-family: var(--serif); font-size: 270px; line-height: 1; text-align: right; white-space: nowrap; opacity: 0.08; }
.cover-backdrop small { position: absolute; right: 24px; top: 22px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cover-frame { position: relative; z-index: 2; width: min(72%, 350px); box-shadow: 0 32px 64px rgba(8, 36, 24, 0.2); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.cover-frame:hover { transform: translateY(-7px) rotate(-0.6deg); box-shadow: 0 46px 82px rgba(8, 36, 24, 0.27); }
.cover-frame img { width: 100%; height: auto; background: white; }
.cover-caption { position: absolute; right: 1px; bottom: 2%; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.068em; text-transform: uppercase; writing-mode: vertical-rl; }

.paper-subnav { position: sticky; top: 68px; z-index: 75; border-bottom: 1px solid var(--line); background: rgba(246, 248, 245, 0.94); backdrop-filter: blur(16px); }
.paper-subnav-inner { min-height: 54px; display: flex; align-items: center; gap: 26px; overflow-x: auto; font-size: 12px; scrollbar-width: none; }
.paper-subnav-inner::-webkit-scrollbar { display: none; }
.subnav-back { border-right: 1px solid var(--line); padding-right: 24px; color: var(--green); font-weight: 700; white-space: nowrap; }
.subnav-back:hover { color: var(--ink); }
.paper-subnav-inner > span { color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.paper-subnav-links { display: flex; gap: 24px; flex: 1; }
.paper-subnav-links a { color: var(--muted); }
.paper-subnav-links a:hover { color: var(--green); }
.subnav-download { font-weight: 700; white-space: nowrap; }

.policy-shift { border-bottom: 1px solid var(--line); background: var(--surface); }
.policy-shift-grid { display: grid; grid-template-columns: 0.28fr 1.72fr; gap: 48px; padding-block: clamp(54px, 6vw, 84px); }
.section-label { margin: 0; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.078em; text-transform: uppercase; }
.policy-shift blockquote { max-width: 1050px; margin: 0; font-family: var(--serif); font-size: clamp(29px, 3.25vw, 49px); line-height: 1.2; }
.policy-shift strong { color: var(--red); font-weight: 500; }

.section-heading { max-width: 890px; }
.section-heading h2, .numbers-intro h2, .method-heading h2, .download-grid h2, .preview-copy h2 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(36px, 3.8vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: 0; }
.section-heading > p:last-child, .numbers-intro > p:last-child, .preview-copy > p { max-width: 730px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }

.findings-section { background: var(--paper); }
.decision-workbench { margin-top: 42px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.decision-tabs { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.decision-tabs::-webkit-scrollbar { display: none; }
.decision-tab { min-height: 64px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; border: 0; border-right: 1px solid var(--line); padding: 12px 16px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 13px; font-weight: 700; }
.decision-tab:last-child { border-right: 0; }
.decision-tab span { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.decision-tab.is-active { background: var(--green-deep); color: white; }
.decision-tab.is-active span { color: #a8d7be; }
.decision-panel { min-height: 290px; display: grid; grid-template-columns: 0.22fr 1.08fr 0.7fr; gap: 36px; align-items: center; padding: clamp(30px, 4vw, 56px); background: white; }
.decision-number { color: var(--red); font-family: var(--serif); font-size: clamp(78px, 9vw, 132px); line-height: 0.8; }
.decision-kicker { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.decision-panel h3 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 50px); font-weight: 500; }
.decision-panel > div:nth-child(2) > p:last-child { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.decision-proof { border-left: 3px solid var(--gold); padding-left: 20px; }
.decision-proof span { color: var(--faint); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.decision-proof strong { display: block; margin-top: 8px; font-size: 14px; line-height: 1.55; }

.numbers-section { background: var(--green-deep); color: white; }
.numbers-intro { display: grid; grid-template-columns: 0.45fr 1fr 0.85fr; gap: 38px; align-items: end; }
.numbers-intro .section-label { color: #a9d6bf; align-self: start; padding-top: 12px; }
.numbers-intro h2 { margin-top: 0; }
.numbers-intro > p:last-child { color: #bdd1c6; }
.number-record { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); }
.number-record article { min-height: 220px; padding: 26px 22px; border-right: 1px solid rgba(255,255,255,0.18); }
.number-record article:first-child { padding-left: 0; }
.number-record article:last-child { border-right: 0; padding-right: 0; }
.number-record span { display: block; color: #d9c273; font-family: var(--serif); font-size: clamp(39px, 4.1vw, 61px); line-height: 1; }
.number-record h3 { margin: 18px 0 0; font-size: 15px; }
.number-record p { margin: 12px 0 0; color: #b9cbc1; font-size: 13px; line-height: 1.55; }
.source-line { margin: 18px 0 0; color: #8fb2a0; font-size: 10px; line-height: 1.5; }

.windows-section { border-top: 1px solid var(--line); background: var(--paper); }
.window-register { margin-top: 54px; border-top: 1px solid var(--ink); }
.window-row { min-height: 190px; display: grid; grid-template-columns: 0.13fr 0.65fr 0.82fr 0.5fr; gap: 26px; align-items: center; border-bottom: 1px solid var(--line); padding: 28px 0; }
.window-index { color: var(--red); font-family: var(--mono); font-size: 12px; }
.window-name span, .window-gate span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.window-name h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.window-row > p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.window-gate { border-left: 2px solid var(--green-mid); padding-left: 18px; }
.window-gate strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; }

.roadmap-section { background: white; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.roadmap article { min-height: 300px; display: flex; flex-direction: column; padding: 28px 22px; border-right: 1px solid var(--line); }
.roadmap article:first-child { padding-left: 0; }
.roadmap article:last-child { border-right: 0; padding-right: 0; }
.roadmap span { color: var(--red); font-family: var(--mono); font-size: 11px; }
.roadmap h3 { margin: 46px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.roadmap p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.roadmap strong { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

.preview-section { background: var(--green-deep); color: white; }
.preview-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(56px, 8vw, 124px); align-items: center; }
.preview-copy .section-label { color: #a9d6bf; }
.preview-copy > p { color: #b9cbc1; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.preview-button { border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 10px 14px; background: transparent; color: #c9d8d0; cursor: pointer; font-size: 12px; }
.preview-button.is-active { border-color: white; background: white; color: var(--ink); }
.text-link { display: inline-flex; gap: 10px; margin-top: 28px; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 4px; font-size: 13px; font-weight: 700; }
.paper-preview { margin: 0; padding: 26px; background: #dce8e0; }
.paper-preview img { width: 100%; height: auto; box-shadow: 0 18px 38px rgba(0,0,0,0.18); }
.paper-preview figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(82, 102, 91, 0.22); color: #52665b; font-family: var(--mono); font-size: 11px; letter-spacing: 0.048em; line-height: 1.45; text-transform: uppercase; }

.method-section { background: var(--paper); }
.method-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(58px, 9vw, 150px); }
.method-heading h2 { font-size: clamp(38px, 4vw, 58px); }
.method-copy > p:first-child { margin-top: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.evidence-key { margin: 34px 0; border-top: 1px solid var(--ink); }
.evidence-key span { display: grid; grid-template-columns: 14px 0.55fr 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 17px 0; color: var(--muted); font-size: 13px; }
.evidence-key i { width: 9px; height: 9px; border-radius: 50%; }
.evidence-key .verified { background: var(--green); }
.evidence-key .reported { background: var(--gold); }
.evidence-key .modelled { background: var(--red); }
.evidence-key strong { color: var(--ink); }
.method-note { border-left: 3px solid var(--gold); padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.download-section { border-top: 1px solid #33453b; background: var(--ink); color: white; }
.download-grid { min-height: 330px; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 54px; align-items: center; padding-block: 56px; }
.download-grid .section-label { color: #9ecbb3; }
.download-grid h2 { max-width: 900px; font-size: clamp(39px, 4.4vw, 66px); }
.download-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.download-section .button-primary { border-color: white; background: white; color: var(--ink); }
.download-section .button-secondary { border-color: #6d7971; color: white; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .publication-hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr 0.75fr; gap: 44px; }
  .publication-object { min-height: 560px; }
  .decision-panel { grid-template-columns: 0.2fr 1fr; }
  .decision-proof { grid-column: 2; }
  .number-record { grid-template-columns: repeat(3, 1fr); }
  .number-record article { border-bottom: 1px solid rgba(255,255,255,0.18); }
  .number-record article:nth-child(3) { border-right: 0; }
  .number-record article:first-child { padding-left: 24px; }
  .number-record article:last-child { padding-right: 24px; }
  .numbers-intro { grid-template-columns: 1fr 1.4fr; }
  .numbers-intro > p:last-child { grid-column: 2; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .publication-object { order: 2; min-height: 580px; }
  .cover-backdrop { inset-inline: 8%; }
  .cover-caption { right: 6%; }
  .paper-subnav-inner { overflow-x: auto; }
  .paper-subnav-links { min-width: max-content; }
  .policy-shift-grid, .numbers-intro, .preview-grid, .method-grid, .download-grid { grid-template-columns: 1fr; }
  .numbers-intro > p:last-child { grid-column: auto; }
  .decision-tabs { grid-template-columns: 1fr; }
  .decision-tab { min-height: 50px; border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-panel { grid-template-columns: 0.25fr 1fr; gap: 24px; }
  .window-row { grid-template-columns: 0.12fr 0.88fr; }
  .window-row > p, .window-gate { grid-column: 2; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap article:nth-child(2) { border-right: 0; }
  .roadmap article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap article:first-child, .roadmap article:last-child { padding-inline: 24px; }
  .paper-preview { max-width: 680px; }
  .download-actions { max-width: 420px; }
}

@media (max-width: 620px) {
  .section { padding-block: 70px; }
  .hero-grid { padding-top: 54px; }
  .eyebrow-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .eyebrow-detail { border-left: 0; padding-left: 0; }
  .hero-copy h1 { font-size: 49px; }
  .hero-deck { font-size: 23px; }
  .hero-summary { font-size: 15px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta div + div { border-left: 0; padding-left: 0; }
  .publication-object { min-height: 510px; }
  .cover-frame { width: min(76%, 320px); }
  .paper-subnav { top: 60px; }
  .paper-subnav-inner > span, .subnav-download { display: none; }
  .subnav-back { padding-right: 16px; }
  .paper-subnav-links { gap: 18px; }
  .policy-shift-grid { gap: 22px; }
  .policy-shift blockquote { font-size: 30px; }
  .decision-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .decision-tabs::-webkit-scrollbar { display: none; }
  .decision-tab { flex: 0 0 auto; min-height: 44px; border-right: 1px solid var(--line); border-bottom: 0; padding-inline: 14px; scroll-snap-align: start; }
  .decision-tab:last-child { border-right: 0; }
  .decision-panel { grid-template-columns: 1fr; padding: 28px 20px; }
  .decision-number { font-size: 68px; }
  .decision-proof { grid-column: auto; }
  .number-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-record article { min-height: 0; border-right: 1px solid rgba(255,255,255,0.18); padding: 24px 14px; }
  .number-record article:nth-child(even) { border-right: 0; }
  .number-record article:first-child { padding-left: 0; }
  .number-record span { font-size: 38px; }
  .number-record span {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 10vw, 38px);
  }
  .window-row { grid-template-columns: 42px 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap article, .roadmap article:first-child, .roadmap article:last-child { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .roadmap article:last-child { border-bottom: 0; }
  .paper-preview { padding: 12px; }
  .evidence-key span { grid-template-columns: 14px 1fr; }
  .evidence-key span strong { grid-column: 2; }
  .evidence-key span { align-items: start; }
  .download-grid { min-height: 0; }
  .download-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Final DTP pass for policy/article templates. */
html,
body {
  overflow-x: clip;
}

.hero-copy h1,
.hero-deck,
.section-heading h2,
.numbers-intro h2,
.method-heading h2,
.download-grid h2,
.preview-copy h2,
.decision-panel h3 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.cover-frame {
  box-shadow: 0 18px 44px rgba(8, 36, 24, 0.16);
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: clamp(2.75rem, 11vw, 3.55rem);
    line-height: 1.04;
  }

  .hero-deck {
    font-size: 1.18rem;
    line-height: 1.36;
  }

  .publication-object {
    min-height: 430px;
  }

  .decision-number,
  .number-record span {
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }

  .section-heading h2,
  .numbers-intro h2,
  .method-heading h2,
  .download-grid h2,
  .preview-copy h2 {
    font-size: clamp(2rem, 8.4vw, 2.75rem);
    line-height: 1.08;
  }
}
