/* Fonts are served from this site, so no visitor's browser asks a third party for them. */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/gloock-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/hanken-grotesk-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/martian-mono-latin-wght-normal.woff2) format("woff2"); }

/* Layout concept: one storm followed from birth to death. Two renderers (the Earth and
   the Storm) sit fixed behind the reading column and change state as the text scrolls
   past, like El Niño's ocean slice. Same family as El Niño: the abyss is the page; the
   storm's danger is carried by one intensity ramp used everywhere. */
:root {
  color-scheme: dark;
  --abyss: #050c12;
  --deep: #0a1721;
  --swell: #102331;
  --ink: #e7eef0;
  --mute: #93a8b2;
  --faint: #6a8492;
  --rule: rgba(147, 168, 178, .16);
  --cloud: #dfeaf2;
  --teal: #4fc2c0;
  --gold: #e6d36a;
  --amber: #fbb43d;
  --hot: #f0794f;
  --red: #ef4a5a;
  --mag: #d65bd0;
  --cold: #74b0cf;
  --panel: rgba(8, 20, 29, .8);
  --f-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-hero: clamp(4.8rem, 17vw, 16rem);
  --t-h2: clamp(2.3rem, 5.6vw, 4.9rem);
  --t-h3: clamp(1.35rem, 2.1vw, 1.7rem);
  --t-body: clamp(1.04rem, 1.1vw + .6rem, 1.2rem);
  --t-micro: .6875rem;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 38rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wind: linear-gradient(90deg, #56707c, #4fc2c0 25%, #e6d36a 47%, #fbb43d 60%, #f0794f 70%, #ef4a5a 82%, #d65bd0);
  --thermal: linear-gradient(90deg, #042333, #2c3395 18%, #744992 36%, #b15f82 52%, #eb7958 68%, #fbb43d 84%, #e8fa5b);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--abyss); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--abyss); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.62; font-weight: 380;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--abyss); }
a { color: inherit; }
strong { font-weight: 600; color: #fff; }
img, canvas, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--abyss); padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.nojs { margin: 0; padding: 1.25rem var(--gut, 1.25rem) 2rem; background: #040a0f; font-size: .9rem; color: var(--mute); }
.nojs a { color: var(--ink); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .9rem; }
.eb-n { color: var(--amber); display: inline-flex; align-items: center; gap: .9rem; }
.eb-n::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .6; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h2); line-height: .98; letter-spacing: -.012em; margin: 0 0 2rem; text-wrap: balance; max-width: 16ch; }
h3, .h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.15; margin: 0 0 .7rem; letter-spacing: -.005em; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; color: #cfdade; }
.bridge { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; max-width: 30ch; margin: clamp(4rem, 9vh, 7rem) 0 0; color: #e8eef5; text-wrap: balance; }
figcaption { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.7; color: var(--faint); letter-spacing: .02em; max-width: 46rem; }

/* ---------- top bar ---------- */
.topbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gut-r) 14px var(--gut); display: flex; align-items: center; gap: 1.2rem; pointer-events: none; transition: background .5s var(--ease); }
.topbar.is-solid { background: linear-gradient(180deg, rgba(5,12,18,.9), rgba(5,12,18,0)); }
.topbar > * { pointer-events: auto; }
.home-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -6px 0 -6px -10px; opacity: .85; transition: opacity .2s; }
.home-link:hover, .home-link:focus-visible { opacity: 1; }
.home-link svg { height: 26px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.hud { margin-left: auto; display: flex; align-items: baseline; gap: .65rem; text-decoration: none; white-space: nowrap; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; padding: .5rem .85rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(5,12,18,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud:hover { border-color: rgba(147,168,178,.4); }
.hud-label { color: var(--mute); }
.hud-val { color: var(--hot); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-src { color: var(--faint); }
@media (max-width: 800px) { .hud-src { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- chapter rail ---------- */
.rail { position: fixed; z-index: 40; right: calc(var(--gut-r) - 4px); top: 50%; transform: translateY(-50%); display: flex; gap: 10px; opacity: 0; transition: opacity .6s; pointer-events: none; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; height: 22px; text-decoration: none; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; background: rgba(5,12,18,.8); padding: 2px 6px; border-radius: 4px; }
.rail a::after { content: ""; width: 8px; height: 1px; background: var(--faint); transition: width .35s var(--ease), background .35s; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a.is-active { color: var(--ink); }
.rail a.is-active::after { width: 22px; background: var(--amber); }
.rail-progress { width: 1px; background: var(--rule); position: relative; }
.rail-progress i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--amber); transform-origin: top; transform: scaleY(0); }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- the two stages ---------- */
.stage { position: fixed; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s cubic-bezier(.45,0,.55,1), visibility 0s linear 1.4s; }
.stage.is-on { opacity: 1; visibility: visible; transition: opacity 1.4s cubic-bezier(.45,0,.55,1), visibility 0s; }
/* while a chapter opener is on screen the stage dims behind its title, so stage changes happen under it */
.dim { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s cubic-bezier(.45,0,.55,1);
  background: linear-gradient(90deg, rgba(5,12,18,.88) 0%, rgba(5,12,18,.55) 38%, rgba(5,12,18,.12) 70%, rgba(5,12,18,0) 100%); }
body.is-open .dim { opacity: 1; }
@media (max-width: 760px) { .dim { background: linear-gradient(0deg, rgba(5,12,18,.92) 0%, rgba(5,12,18,.6) 45%, rgba(5,12,18,.1) 75%); } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-earth canvas { cursor: crosshair; touch-action: pan-y; }
.stage-earth.is-grab canvas { cursor: grab; }
.stage-storm canvas { touch-action: pan-y; }
.stage-storm.is-grab canvas { cursor: grab; }
.glabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gl { position: absolute; left: 0; top: 0; transition: opacity .5s; will-change: transform; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink); white-space: nowrap; opacity: 0; }
.gl span { display: inline-block; transform: translate(10px, -50%); background: rgba(5,12,18,.86); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--rule); }
.gl::before { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.gl.city span { color: #b9c8cf; border-color: transparent; background: rgba(5,12,18,.8); }
.gl.city::before { width: 4px; height: 4px; left: -2px; top: -2px; background: var(--mute); }
.gl.basin::before { display: none; }
.gl.basin span { transform: translate(-50%, -50%); font-family: var(--f-display); font-size: clamp(14px, 1.4vw, 19px); letter-spacing: 0; text-transform: none; background: none; border: 0; color: #f3efe6; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.gl.basin small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.gl.head::before { width: 14px; height: 14px; left: -7px; top: -7px; background: none; border: 1.5px solid #fff; }
.gl.head span { color: #fff; }
.gl.live::before { background: var(--hot); box-shadow: 0 0 0 0 rgba(240,121,79,.6); animation: live 2.2s infinite; }
.gl.part::before { display: none; }
.gl.part span { transform: translate(-50%, -50%); }
.gl.part.left span { transform: translate(calc(-100% - 8px), -50%); }

.probe { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: grid; gap: 1px; padding: .5rem .65rem; border-radius: 8px; background: rgba(5,12,18,.86); border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.probe::before { content: ""; position: absolute; left: -14px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: 1.5px solid #fff; border-radius: 50%; }
.probe-pos { color: var(--mute); }
.probe-a { color: var(--ink); font-size: 11.5px; }
.probe-b { color: var(--amber); }
.probe-b:empty { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; pointer-events: none; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,12,18,.82) 0%, rgba(5,12,18,.5) 34%, rgba(5,12,18,0) 58%),
              linear-gradient(180deg, rgba(5,12,18,.6) 0%, rgba(5,12,18,0) 20%, rgba(5,12,18,0) 52%, rgba(5,12,18,.8) 86%, var(--abyss) 100%); }
@media (max-width: 760px) { .hero-veil { background: linear-gradient(180deg, rgba(5,12,18,.55) 0%, rgba(5,12,18,0) 18%, rgba(5,12,18,0) 34%, rgba(5,12,18,.82) 56%, var(--abyss) 82%); } }
.hero-copy { position: relative; width: 100%; max-width: 96rem; margin-inline: auto; padding: 0 var(--gut-r) clamp(2rem, 5vh, 4rem) var(--gut); }
.hero-copy a, .hero-copy p { pointer-events: auto; }
.kicker { font-family: var(--f-mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; color: var(--mute); margin: 0 0 1rem; line-height: 1.7; }
.kicker .dot-live { display: inline-block; vertical-align: middle; margin: -2px .7rem 0 0; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(240,121,79,.55); } 70% { box-shadow: 0 0 0 10px rgba(240,121,79,0); } 100% { box-shadow: 0 0 0 0 rgba(240,121,79,0); } }
.hero-title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-hero); line-height: .82; letter-spacing: -.035em; margin: 0 0 .22em -.04em; text-shadow: 0 2px 40px rgba(5,12,18,.75), 0 0 2px rgba(5,12,18,.5); }
.hero-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.2rem); margin: 0 0 1.2rem; color: #e8eef5; }
.hero-lede { max-width: 40rem; color: #c9d6da; margin: 0 0 2rem; font-size: clamp(1rem, 1vw + .55rem, 1.18rem); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cue { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cue-line { width: 1px; height: 44px; background: linear-gradient(var(--amber), transparent); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.map-note { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--faint); max-width: 30rem; margin: 0; line-height: 1.6; letter-spacing: .02em; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(223,234,242,.35); color: var(--cloud); text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; margin-right: .3rem; }
.tag.model { border-color: rgba(251,180,61,.45); color: var(--amber); }
@media (hover: none) { .only-fine { display: none; } }

/* ---------- chapters ---------- */
main { position: relative; z-index: 2; }
.chapter { position: relative; padding-block: clamp(6rem, 14vh, 11rem); background: var(--abyss); }
.now { background: linear-gradient(to bottom, var(--abyss) calc(100% - 34vh), rgba(5,12,18,0)); padding-bottom: clamp(4rem, 12vh, 8rem); }
/* the replay's globe rises under the end of chapter 00, so the two read as one move */
.now .bridge { margin-bottom: 0; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .06em; color: var(--mute); margin: 0 0 2rem; max-width: 46rem; line-height: 1.6; }
.status-pill { padding: .3rem .7rem; border-radius: 999px; background: rgba(240,121,79,.14); color: var(--hot); border: 1px solid rgba(240,121,79,.4); text-transform: uppercase; letter-spacing: .1em; }
.status-pill.is-past { background: rgba(147,168,178,.1); color: var(--mute); border-color: var(--rule); }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 6vh, 4.5rem); border-top: 1px solid var(--rule); }
.ro { display: grid; gap: .45rem; align-content: start; padding: 1.6rem 1.4rem 1.8rem 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.ro:not(:nth-child(3n+1)) { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.ro-v { font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ro-v.hot { color: var(--hot); }
.ro-k { color: #d4dee2; font-size: 1rem; line-height: 1.4; max-width: 28ch; }
.ro-s { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 860px) { .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ro:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .ro:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--rule); } }
@media (max-width: 480px) { .readouts { grid-template-columns: 1fr; } .ro:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- scroll stories over the fixed stages ---------- */
.story { position: relative; }
.steps { position: relative; z-index: 2; padding: 0 0 50vh; pointer-events: none; }
.step { pointer-events: auto; width: min(30rem, calc(100% - 32px)); margin: 0 0 85vh var(--gut); padding: 1.6rem 1.7rem 1.4rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); opacity: .35; transform: translateY(14px) scale(.985); transition: opacity .7s var(--ease), border-color .7s, transform .9s var(--ease), box-shadow .9s; }
.step:first-child { margin-top: 60vh; }
.step:last-child { margin-bottom: 40vh; }
.step.is-active { opacity: 1; border-color: rgba(251,180,61,.28); transform: none; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.step p { margin: 0 0 .8em; color: #d0dbdf; font-size: 1.04rem; }
.step p:last-child { margin-bottom: 0; }
.step .h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.step .aside { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; color: var(--faint); line-height: 1.7; margin-top: 1rem; }
.step .aside a { color: var(--mute); }
@media (min-width: 1100px) { .step { margin-left: calc(var(--gut) + 3vw); } }
@media (max-width: 760px) {
  .step { margin: 0 auto 95vh; width: calc(100% - 32px); padding: 1.15rem 1.2rem; }
  .step:first-child { margin-top: 85vh; }
  .step p { font-size: .98rem; }
}

/* replay instrument: clock, stage, both winds and the chart */
.replay-hud { position: fixed; z-index: 3; right: calc(var(--gut-r) + 46px); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); width: 340px; padding: 1rem 1.1rem .8rem; border-radius: 14px; background: rgba(5,12,18,.78); border: 1px solid var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.replay-hud.is-on { opacity: 1; transform: none; }
.rh-clock { display: flex; align-items: baseline; gap: .7rem; }
.rh-date { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.rh-time { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: .06em; }
.rh-stage { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin: .35rem 0 .5rem; min-height: 1.2em; }
.rh-wind { display: flex; gap: 1.4rem; font-family: var(--f-mono); }
.rh-wind span { display: grid; }
.rh-wind .k { font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rh-wind b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.rh-chart { width: 100%; height: auto; display: block; margin-top: .5rem; overflow: visible; }
.rh-leg { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: .45rem 0 0; font-family: var(--f-mono); font-size: 9px; letter-spacing: .04em; color: var(--faint); }
.rh-leg span::before { content: ""; display: inline-block; width: 12px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: .35rem; }
.rh-leg .lj::before { border-image: var(--wind) 1; }
.rh-leg .li::before { border-color: var(--mute); }
.rh-leg .lf::before { border-color: var(--amber); border-top-style: dashed; }
.rh-leg .lr { margin-left: auto; }
.rh-leg .lr::before { display: none; }
.rh-chart .ax text, .chart-ax text { fill: var(--faint); font-family: var(--f-mono); font-size: 9px; }
.rh-chart .ax line, .rh-chart .ax path, .chart-ax line, .chart-ax path { stroke: var(--rule); }
@media (max-width: 760px) { .rh-leg { display: none; } .replay-hud { left: 16px; right: 16px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 68px); bottom: auto; padding: .7rem .85rem .5rem; } .rh-date { font-size: 1.4rem; } .rh-chart { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.chip { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--rule); background: rgba(5,12,18,.6); color: var(--mute); transition: color .25s, border-color .25s, background .25s; white-space: nowrap; min-height: 34px; }
.chip:hover { color: var(--ink); border-color: rgba(147,168,178,.45); }
.chip.is-on, .chip[aria-pressed="true"] { color: var(--abyss); background: var(--ink); border-color: var(--ink); }
.chip b { font-weight: 500; opacity: .7; margin-left: .35rem; }

.month-ctl { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: baseline; margin-top: 1.2rem; }
.month-ctl input { grid-column: 1 / -1; }
.dial-lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
#monthOut, #scrubOut { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--wind); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--wind); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--ink); border: 3px solid var(--abyss); box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--abyss); }
#month::-webkit-slider-runnable-track { background: var(--rule); }
.mini-chart { margin: 1.2rem 0 0; }
.mini-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.mini-chart .bar { fill: var(--teal); }
.mini-chart .bar.is-on { fill: var(--amber); }
.mini-chart text { fill: var(--faint); font-family: var(--f-mono); font-size: 9.5px; }

/* the engine's feedback loop */
.loop { width: 100%; max-width: 320px; display: block; margin: 1.1rem auto 0; overflow: visible; }
.loop-ring { fill: none; stroke: var(--rule); }
.loop-arc { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 7; animation: dash 1.4s linear infinite; }
.loop-arr { fill: var(--amber); }
@keyframes dash { to { stroke-dashoffset: -26; } }
.loop text { fill: var(--ink); font-family: var(--f-mono); font-size: 11.5px; text-anchor: middle; }
.loop .mid { font-family: var(--f-display); font-size: 21px; fill: #e8eef5; }
.loop .mid2 { font-family: var(--f-display); font-style: italic; font-size: 16px; fill: var(--mute); }

/* storm readout pinned in the storm stage */
.readout { position: fixed; z-index: 3; right: calc(var(--gut-r) + 46px); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(5,12,18,.72); border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; color: var(--mute); opacity: 0; transition: opacity .6s; pointer-events: none; min-width: 210px; }
.readout.is-on { opacity: 1; }
.readout b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); letter-spacing: 0; line-height: 1.1; }
.readout .row { display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .readout { left: 16px; right: auto; top: calc(env(safe-area-inset-top, 0px) + 68px); bottom: auto; min-width: 0; padding: .5rem .7rem; } .readout b { font-size: 1.15rem; } }

/* ---------- measuring ---------- */
.scales { padding-top: clamp(7rem, 16vh, 12rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-bottom: clamp(4rem, 10vh, 7rem); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.size-map { margin: 0; }
.size-map svg { width: 100%; height: auto; display: block; border-radius: 14px; background: var(--deep); border: 1px solid var(--rule); }
.size-map .land { fill: #13232e; stroke: rgba(147,168,178,.35); stroke-width: .6; }
.size-map .grat { fill: none; stroke: rgba(147,168,178,.08); }
.size-map .ring { fill-opacity: .12; stroke-width: 1.5; }
.size-map .ring.tip { fill: var(--mag); stroke: var(--mag); }
.size-map .ring.tracy { fill: var(--red); stroke: var(--red); fill-opacity: .4; }
.size-map .ring.arnab { fill: none; stroke: var(--amber); stroke-dasharray: 4 4; }
.size-map text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink); }
.size-map .city { fill: var(--ink); }
.dial-fig { margin: 2rem 0 0; }
.dial-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial-fig .band text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink); }
.dial-fig .row-l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--mute); }
.dial-fig .tick text { fill: var(--faint); font-family: var(--f-mono); font-size: 9.5px; }
.dial-fig .mark-v { font-family: var(--f-display); font-size: 22px; fill: #fff; }
.scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin: 1.2rem 0 1rem; max-width: 900px; }
@media (max-width: 600px) { .scrub { grid-template-columns: 1fr auto; } .scrub input { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- live ---------- */
.live-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .1rem; }
.live-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: baseline; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.live-list .dot { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.live-list .nm { font-family: var(--f-display); font-size: 1.25rem; }
.live-list .meta { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; color: var(--faint); }
.live-list .kt { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.live-list .empty { display: block; color: var(--mute); grid-template-columns: 1fr; }
.asof { font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; color: var(--faint); margin: .6rem 0 0; }

/* ---------- next + colophon ---------- */
.next { padding-top: clamp(7rem, 14vh, 10rem); }
.coming { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: c; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.4rem; max-width: 64rem; }
.coming li { counter-increment: c; padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--rule); color: #c5d2d7; font-size: 1rem; line-height: 1.5; }
.coming li::before { content: counter(c, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: 10px; color: var(--amber); letter-spacing: .1em; margin-bottom: .4rem; }
.coming b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--ink); display: block; margin-bottom: .2rem; }
.colophon { position: relative; z-index: 2; background: #040a0f; border-top: 1px solid var(--rule); padding: clamp(4rem, 9vh, 6rem) 0 3rem; color: var(--mute); font-size: .96rem; }
.colophon h3 { color: var(--ink); font-size: 1.25rem; }
.colophon a { color: var(--ink); }
.colophon-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem 4rem; }
@media (max-width: 800px) { .colophon-grid { grid-template-columns: 1fr; } }
.colophon-note { font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); }
.src-h { margin-top: 2.5rem; }
.sources { margin: 0; padding-left: 1.3rem; font-size: .88rem; line-height: 1.55; columns: 2 26rem; column-gap: 3rem; }
.sources li { margin: 0 0 .5rem; break-inside: avoid; }

@media (prefers-reduced-motion: reduce) { .dot-live, .cue-line::after, .loop-arc, .gl.live::before { animation: none; } }
.rm .dot-live, .rm .cue-line::after, .rm .loop-arc { animation: none; }

/* share images, rendered by scripts/shots.mjs */
.shot .rail, .shot .hero-lede, .shot .hero-foot, .shot .kicker, .shot .hud, .shot-card .topbar { display: none; }
.shot-og .topbar { padding: 28px 36px; } .shot-og .brand { font-size: 1.35rem; } .shot-og .home-link svg { height: 34px; }
.shot-card .hero-copy { display: none; }
.shot .hero-title { font-size: 15.5rem; }
.shot-og .hero-copy { padding-bottom: 4.2rem; }

/* ---------- chapter openers: the title over the stage, no card ---------- */
.step.opener { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(36rem, calc(100% - 32px)); padding: 0; opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.step.opener.is-active { opacity: 1; transform: none; box-shadow: none; }
.step.opener .h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); margin-bottom: 1.2rem; text-shadow: 0 2px 30px rgba(5,12,18,.8); }
.step.opener p { font-size: clamp(1.05rem, 1.2vw + .5rem, 1.25rem); color: #dce6ea; text-shadow: 0 1px 18px rgba(5,12,18,.9); max-width: 32rem; }
.step.opener .eyebrow { margin-bottom: 1.6rem; }
@media (max-width: 760px) { .step.opener { margin-bottom: 95vh; } }

/* ---------- storm builder ---------- */
.step-lab { width: min(34rem, calc(100% - 32px)); }
.lab-ctl { display: grid; gap: .1rem; margin: 1rem 0 .4rem; }
.lab-ctl label { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: .5rem; }
.lab-ctl output { color: var(--ink); font-variant-numeric: tabular-nums; text-transform: none; }
.lab-out { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: 1rem 0 .2rem; border-top: 1px solid var(--rule); margin-top: .6rem; }
.lab-out p { margin: 0; }
.lo-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: .5rem !important; }
.lo-v { font-family: var(--f-display); font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lo-v.hot { color: var(--hot); }
.lo-cat { color: var(--ink); font-size: 1rem; }
.lo-why { color: var(--mute); font-size: .95rem; margin-top: .5rem !important; min-height: 2.6em; }

/* ---------- page chapters between the stories ---------- */
.overnight, .toll, .warmer, .measure { border-top: 1px solid var(--rule); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.6rem; margin-top: 2.4rem; max-width: 70rem; }
.cols3 p { margin: 0; color: #c5d2d7; font-size: 1rem; line-height: 1.55; }
.cols3 b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin-bottom: .3rem; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } }
.ri-fig, .toll-fig { margin: 2.4rem 0 0; }
.ri-fig svg, .toll-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-ax text, .ax-note { fill: var(--faint); font-family: var(--f-mono); font-size: 10px; }
.ri-guide { stroke: var(--mute); stroke-dasharray: 5 5; stroke-width: 1.2; }
.ri-note { fill: var(--mute); font-family: var(--f-mono); font-size: 10.5px; }
.ri-lab { font-family: var(--f-mono); font-size: 11.5px; }
.tl-n { fill: var(--ink); font-family: var(--f-display); font-size: 15px; }
.tl-v { fill: var(--faint); font-family: var(--f-mono); font-size: 10px; }
.mini-chart text { fill: var(--mute); font-family: var(--f-mono); font-size: 9.5px; }
.mini-chart.big svg { max-width: 460px; }
.mini-chart .sv { font-family: var(--f-display); font-size: 18px; fill: var(--ink); }
.mini-chart .sn { font-family: var(--f-mono); font-size: 11px; fill: var(--ink); }
.claims { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.claims li { padding: .8rem 0; border-top: 1px solid var(--rule); color: #cfdade; }
.claims b { font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-right: .4rem; }

/* ---------- your coast ---------- */
.find { display: flex; gap: .5rem; margin: 1.2rem 0 .6rem; }
.find input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: rgba(5,12,18,.7); border: 1px solid var(--rule); border-radius: 999px; padding: .55rem 1rem; }
.find input:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
.find .chip { min-height: 42px; padding: 0 1.1rem; }
.find-sugg { list-style: none; margin: 0 0 .6rem; padding: 0; border: 1px solid var(--rule); border-radius: 12px; background: rgba(5,12,18,.86); overflow: hidden; }
.find-sugg button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem 1rem; cursor: pointer; color: var(--ink); font-size: .95rem; border-bottom: 1px solid var(--rule); }
.find-sugg button:hover, .find-sugg button:focus-visible { background: rgba(147,168,178,.1); }
.find-sugg .muted { padding: .6rem 1rem; color: var(--mute); font-size: .9rem; }
.step-yours { pointer-events: auto; }
.yours-out { margin-top: 1rem; }
.yours-out p { margin: 0 0 .5rem; }
.y-big { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--amber); margin: .4rem 0 .2rem !important; }
.y-dl { margin: .8rem 0 0; display: grid; gap: .5rem; }
.y-dl div { border-top: 1px solid var(--rule); padding-top: .5rem; }
.y-dl dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.y-dl dd { margin: 0; font-size: 1rem; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
