:root {
  --paper: #f2eee2;
  --paper-deep: #e6dfcc;
  --blueprint: #173f4f;
  --blueprint-light: #21576a;
  --carbon: #276b78;
  --brass: #c39537;
  --brass-light: #e0bd6a;
  --vacancy: #b74735;
  --ink: #172126;
  --muted: #5e696b;
  --white: #fffdf6;
  --line: rgba(23, 33, 38, .2);
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 18px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 4px; }
#top { position: absolute; inset: 0 auto auto 0; }

.topbar { width: var(--shell); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--blueprint); font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.topbar nav a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; border: 1px solid transparent; }
.topbar nav a[aria-current="page"] { border-color: var(--blueprint); }
.brand { text-decoration: none; }

.blueprint { color: var(--white); background-color: var(--blueprint); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 24px 24px; }
.paper { background-color: var(--paper); background-image: linear-gradient(90deg, transparent 31px, rgba(183,71,53,.12) 32px, transparent 33px), repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(23,63,79,.055) 32px); }
.hero { min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr); align-items: stretch; }
.hero-copy { padding: clamp(60px, 8vw, 132px) clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.kicker { margin: 0 0 20px; font: 800 12px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
h1 { max-width: 8ch; margin: 0; font-size: clamp(68px, 8.2vw, 136px); line-height: .87; }
h2 { margin: 0 0 24px; font-size: clamp(44px, 5.5vw, 82px); line-height: 1.01; }
.standfirst { max-width: 38rem; margin: 40px 0 0; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.48; color: rgba(255,253,246,.82); }
.date-stamp { width: fit-content; margin: 42px 0 0; padding: 9px 13px; border: 1px solid var(--brass-light); color: var(--brass-light); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-1deg); }

.key-evidence { min-width: 0; padding: clamp(30px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; background: rgba(5,22,29,.48); border-left: 1px solid rgba(255,255,255,.14); }
.key-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.state-label { display: block; margin-bottom: 7px; color: var(--brass-light); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.key-toolbar strong { display: block; max-width: 26rem; font: 400 clamp(18px, 2vw, 26px)/1.25 Georgia, serif; }
.evidence-toggle { min-height: 46px; padding: 10px 16px; flex: 0 0 auto; border: 1px solid var(--brass-light); border-radius: 0; color: var(--white); background: transparent; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.evidence-toggle:hover { color: var(--blueprint); background: var(--brass-light); }
.key-wall { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(5px, .7vw, 10px); padding: clamp(16px, 2.2vw, 28px); border: 1px solid rgba(255,255,255,.22); background: linear-gradient(145deg, #244853, #102f3b); box-shadow: inset 0 0 50px rgba(0,0,0,.25); }
.key-tag { position: relative; aspect-ratio: 1.28; display: grid; place-items: center; border: 1px solid #8d6724; border-radius: 46% 46% 42% 42%; color: #37290d; background: radial-gradient(circle at 35% 25%, #efd58d, var(--brass) 58%, #8f6621 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 3px 4px rgba(0,0,0,.28); font: 800 clamp(7px, .8vw, 11px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: opacity .36s ease, transform .36s ease, filter .36s ease;
}
.key-tag::before { content: ""; position: absolute; top: 11%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: #173844; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); }
.key-tag span { transform: translateY(16%); }
.key-tag.removed { color: transparent; background: rgba(183,71,53,.12); border: 1px dashed rgba(255,253,246,.42); box-shadow: none; }
.key-tag.removed::before { background: rgba(255,255,255,.1); }
[data-state="before"] .key-tag.removed { color: #37290d; background: radial-gradient(circle at 35% 25%, #efd58d, var(--brass) 58%, #8f6621 100%); border-style: solid; border-color: #8d6724; box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 3px 4px rgba(0,0,0,.28); }
.key-legend { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 0 0; color: rgba(255,253,246,.76); font-size: 12px; }
.key-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-key { width: 16px; height: 12px; border-radius: 50%; background: var(--brass); }
.legend-key.removed { background: rgba(183,71,53,.12); border: 1px dashed rgba(255,253,246,.6); }
.hero-note { max-width: 54rem; margin: 17px 0 0; color: rgba(255,253,246,.68); font-size: 13px; line-height: 1.5; }
.source-chip { width: fit-content; margin-top: 14px; color: var(--brass-light); font-size: 12px; }
.noscript-note { font-size: 12px; }

.scene, .sources { padding: clamp(88px, 12vw, 180px) max(24px, calc((100vw - 1120px) / 2)); }
.section-copy, .section-heading { max-width: 800px; }
.section-copy > p:not(.kicker), .section-heading > p:not(.kicker) { max-width: 44rem; margin: 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.55; color: var(--muted); }
.benefit { min-height: 78vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(50px, 9vw, 140px); align-items: center; }
.benefit-stamp { justify-self: center; width: min(320px, 72vw); aspect-ratio: 1; padding: 45px; display: flex; flex-direction: column; justify-content: center; border: 3px double var(--vacancy); border-radius: 50%; color: var(--vacancy); text-align: center; transform: rotate(3deg); }
.benefit-stamp strong { font: 400 clamp(72px, 9vw, 122px)/.8 Georgia, serif; letter-spacing: -.06em; }
.benefit-stamp span { margin-top: 22px; font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.policy-tests { background: var(--white); }
.lease-pair { margin-top: clamp(50px, 8vw, 100px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--blueprint); border: 1px solid var(--blueprint); }
.lease { min-height: 330px; padding: clamp(28px, 4vw, 58px); background: var(--paper); position: relative; }
.lease::after { content: ""; position: absolute; inset: 16px; pointer-events: none; border: 1px solid rgba(23,63,79,.2); }
.lease-label { color: var(--vacancy); font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.lease h3 { max-width: 16ch; margin: 64px 0 20px; font: 400 clamp(31px, 3vw, 46px)/1.08 Georgia, serif; }
.lease p { max-width: 34rem; margin: 0; color: var(--muted); }

.mechanism { padding-top: clamp(100px, 14vw, 210px); padding-bottom: clamp(100px, 14vw, 210px); }
.mechanism .section-heading > p { color: rgba(255,253,246,.72); }
.mechanism-line { max-width: 980px; margin: 90px 0 0 auto; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.mechanism-line li { display: grid; grid-template-columns: 70px minmax(180px, .75fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 60px); padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.mechanism-line .step-number { color: var(--brass-light); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mechanism-line h3 { margin: 0; font: 400 clamp(23px, 2.4vw, 34px)/1.15 Georgia, serif; }
.mechanism-line p { margin: 0; color: rgba(255,253,246,.7); }

.boundary { min-height: 84vh; display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 9vw, 150px); align-items: center; }
.boundary-mark { color: transparent; -webkit-text-stroke: 2px var(--carbon); font: 400 clamp(100px, 18vw, 260px)/.8 Georgia, serif; letter-spacing: -.08em; transform: rotate(-4deg); }
blockquote { margin: 48px 0 0; padding: 8px 0 8px 30px; border-left: 5px solid var(--brass); font: 400 clamp(24px, 2.5vw, 36px)/1.32 Georgia, serif; }

.policy { background: var(--paper-deep); }
.question-ledger { max-width: 960px; margin: 76px 0 0 auto; padding: 0; list-style: none; counter-reset: question; border-top: 2px solid var(--blueprint); }
.question-ledger li { counter-increment: question; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid rgba(23,63,79,.42); font: 400 clamp(23px, 2.5vw, 35px)/1.24 Georgia, serif; }
.question-ledger li::before { content: counter(question, decimal-leading-zero); color: var(--vacancy); font: 800 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.policy-note { max-width: 760px; margin: 68px 0 0 auto; color: var(--muted); }

.final-scene { min-height: 78vh; padding: clamp(90px, 13vw, 190px) max(24px, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 9vw, 140px); align-items: center; }
.final-scene h2 { max-width: 12ch; }
.final-scene p:not(.kicker) { max-width: 36rem; color: rgba(255,253,246,.72); font-size: 21px; }
.final-key { width: min(310px, 60vw); aspect-ratio: 1; position: relative; border: 18px solid var(--brass); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--blueprint), inset 0 0 0 8px var(--brass-light); transform: rotate(-28deg); }
.final-key::after { content: ""; position: absolute; left: 82%; top: 42%; width: 95%; height: 18%; background: var(--brass); }
.final-key span { position: absolute; left: 155%; top: 40%; width: 42%; height: 42%; border-left: 18px solid var(--brass); border-bottom: 18px solid var(--brass); }

.sources { padding-top: clamp(90px, 11vw, 150px); padding-bottom: 80px; }
.source-list { margin: 70px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.source-list li { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr) auto; gap: clamp(18px, 4vw, 50px); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.source-list h3 { margin: 0 0 8px; font: 400 23px/1.25 Georgia, serif; }
.source-list .source-meta { margin: 0; color: var(--vacancy); font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.source-list .source-body { margin: 0; color: var(--muted); }
.source-list a { font-weight: 750; }
.method { max-width: 820px; margin: 55px 0 0; padding-left: 24px; border-left: 3px solid var(--carbon); color: var(--muted); font-size: 14px; }

footer { min-height: 150px; padding: 38px max(24px, calc((100vw - 1120px) / 2)); display: flex; flex-wrap: wrap; align-items: center; gap: 22px 42px; color: var(--white); background: var(--ink); font-size: 13px; }
.back-top-static { margin-left: auto; }
.back-top-fixed { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: var(--vacancy); border: 1px solid var(--white); text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.back-top-fixed.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 72svh; }
  .key-evidence { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .benefit, .boundary, .final-scene { grid-template-columns: 1fr; }
  .benefit-stamp { justify-self: start; }
  .boundary-mark { order: 2; }
  .final-key { width: min(240px, 55vw); }
  .source-list li { grid-template-columns: 1fr auto; }
  .source-list .source-body { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { min-height: 64px; }
  .hero { min-height: auto; }
  .hero-copy { min-width: 0; min-height: 680px; padding: 70px 24px; }
  h1 { max-width: 100%; font-size: clamp(54px, 17vw, 70px); line-height: .92; letter-spacing: -.055em; }
  h2 { font-size: clamp(39px, 12vw, 58px); line-height: 1.03; }
  .standfirst { margin-top: 30px; font-size: 19px; }
  .key-evidence { padding: 42px 16px; }
  .key-toolbar { align-items: stretch; flex-direction: column; }
  .evidence-toggle { width: 100%; }
  .key-wall { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; padding: 10px; }
  .key-tag { font-size: 6px; border-width: 1px; }
  .scene, .sources { padding-left: 24px; padding-right: 24px; }
  .benefit { min-height: 0; }
  .benefit-stamp { width: min(250px, 75vw); padding: 30px; }
  .lease-pair { grid-template-columns: 1fr; }
  .lease { min-height: 300px; }
  .mechanism-line { margin-top: 62px; }
  .mechanism-line li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px 18px; }
  .mechanism-line p { grid-column: 2; }
  .boundary-mark { font-size: 34vw; }
  .final-key { width: 150px; margin-left: 12px; border-width: 14px; }
  .final-key::after { height: 16%; }
  .final-key span { border-left-width: 14px; border-bottom-width: 14px; }
  .question-ledger li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .source-list li { grid-template-columns: 1fr; }
  .source-list .source-body { grid-column: auto; }
  .back-top-static { width: 100%; margin-left: 0; }
  .back-top-static.back-top-fixed { width: 48px; margin-left: 0; }
}

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

@media print {
  .topbar nav, .evidence-toggle, .back-top-fixed { display: none !important; }
  body { color: #000; background: #fff; }
  .blueprint { color: #000; background: #fff; }
  .hero { min-height: 0; }
}
