:root {
  --ink: #121413;
  --paper: #E8E6E1;
  --muted-dark: #9A9C97;
  --river: #7FB8C9;
  --alert: #F05A28;
  --light-bg: #FBFBFA;
  --light-ink: #111111;
  --light-muted: #555555;
  --heat: #C2410C;
  --flood: #1D4ED8;
  --console-bg: #EEF0F2;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; background: var(--ink); color: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: #6B7280; }
.small { font-size: 12px; }

.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--light-bg); color: var(--light-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 760px; padding-bottom: 120px; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-120px); } }
@media (prefers-reduced-motion: reduce) { .drift { animation: none; } html { scroll-behavior: auto; } }
.nav { position: relative; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.link-underline { text-decoration: none; border-bottom: 1px solid currentColor; font-size: 15px; }
.hero-copy { position: relative; padding-top: 110px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; max-width: 900px; }
.lead { margin-top: 24px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted-dark); max-width: 640px; }
.btn { display: inline-block; margin-top: 36px; padding: 14px 22px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn:hover { opacity: 0.85; }

/* Stories */
.story { padding: 120px 0 0; }
.story:last-of-type { padding-bottom: 120px; }
#flood { padding-bottom: 120px; }
.kicker { font-family: var(--mono); font-size: 13px; margin-bottom: 20px; }
.kicker-heat { color: var(--heat); }
.kicker-flood { color: var(--flood); }
.story h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; max-width: 860px; }
.story .body { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--light-muted); max-width: 720px; }
.chart { margin: 40px 0 0; border-top: 1px solid var(--light-ink); padding-top: 14px; }
.chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--light-muted); margin-bottom: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { font-family: var(--mono); font-size: 11px; fill: #888; }
.chart .mark { font-family: "Instrument Sans", sans-serif; font-size: 14px; font-weight: 600; fill: var(--light-ink); }
.rewind { margin-top: 18px; padding: 18px 20px; background: #fff; border: 1px solid #E6E6E3; }
.rewind-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.rewind-play { min-width: 76px; min-height: 44px; padding: 0 16px; border: 1px solid #111; background: #111; color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.rewind-play:hover { background: #333; }
.rewind-play:focus-visible, .rewind-range:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }
.rewind-label { font-size: 15px; font-weight: 600; }
.rewind-date { font-size: 13px; color: #555; }
.rewind-status { margin-left: auto; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.rewind-status.ok { background: #E6F4EA; color: #15603A; }
.rewind-status.watch { background: #FDF0DC; color: #8A4B06; }
.rewind-status.act { background: #FDE8E5; color: #A11F12; }
.rewind-range { width: 100%; margin: 16px 0 6px; accent-color: #111; height: 28px; cursor: pointer; }
.rewind-msg { font-size: 16px; line-height: 1.5; color: #111; min-height: 48px; }
.rewind-rule { margin-top: 8px; font-size: 12px; color: #888; }
.note { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--light-muted); max-width: 760px; }
.callout { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid #E6E6E3; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.callout-label { font-family: var(--mono); font-size: 13px; color: var(--alert); }
.callout p:last-child { font-size: 20px; line-height: 1.45; max-width: 640px; }
.sources { margin-top: 32px; font-family: var(--mono); font-size: 12px; color: #888; line-height: 1.7; }
.dark .sources { color: #6B6E69; }

/* Who */
.who, .scale { padding: 120px 0; }
.scale { padding-top: 0; }
.who h2, .scale h2, .how h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 48px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.who-grid h3 { margin-top: 18px; font-size: 20px; font-weight: 600; }
.who-grid p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted-dark); }

/* Scale */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 40px; }
.fact { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; }
.facts p:last-child { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted-dark); }

/* How */
.console-section { background: var(--console-bg); color: #0F1720; padding: 120px 0; }
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-n { font-family: var(--mono); font-size: 13px; color: #6B7280; }
.steps h3 { margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: #4B5563; }
.console { background: #fff; border: 1px solid #D6DAE0; border-radius: 10px; overflow: hidden; }
.console-bar { padding: 12px 16px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.console-bar .mono { font-weight: 400; }
.console-body { display: flex; flex-wrap: wrap; }
.console-list { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; border-right: 1px solid #E5E7EB; font-size: 14px; }
.console-list li { padding: 14px 16px; border-bottom: 1px solid #F0F1F3; display: flex; justify-content: space-between; }
.console-list li.hot { background: #FEF2F2; }
.watch { color: #B45309; } .act { color: #B91C1C; } .ok { color: #15803D; }
.console-map { flex: 999 1 480px; min-width: 0; background: #F7F8F9; }
.console-map svg { width: 100%; height: auto; display: block; }

/* Close */
.close { padding: 140px 0; text-align: center; }
.close .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.close h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 500; letter-spacing: -0.04em; max-width: 820px; }
.close .btn { margin-top: 0; }

@media (max-width: 640px) {
  .hero { min-height: 640px; }
  .hero-copy { padding-top: 60px; }
  .callout { grid-template-columns: 1fr; gap: 8px; }
}
