/* Layout concept: a single descent through one ocean slice. Full-bleed instrument
   visuals sit behind a narrow reading column; sticky stages hold the science while
   the text scrolls past like a ship's log. Deliberately dark: the abyss is the page. */
:root {
  color-scheme: dark;
  /* colour */
  --abyss: #050c12;
  --deep: #0a1721;
  --swell: #102331;
  --ink: #e7eef0;
  --mute: #93a8b2;
  --faint: #546d7a;
  --rule: rgba(147, 168, 178, .16);
  --hot: #f0794f;
  --amber: #fbb43d;
  --cold: #74b0cf;
  --cold-deep: #2f6fc4;
  --wet: #4fc2c0;
  --dry: #e3a24a;
  --warm: #ef5f4a;
  --cool: #8ab8ff;
  --storm: #b58cff;
  --panel: rgba(8, 20, 29, .78);
  /* type */
  --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(5.2rem, 19vw, 17.5rem);
  --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-small: .875rem;
  --t-micro: .6875rem;
  /* space */
  --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);
  --thermal: linear-gradient(90deg, #042333, #2c3395 18%, #744992 36%, #b15f82 52%, #eb7958 68%, #fbb43d 84%, #e8fa5b);
  --balance: linear-gradient(90deg, #181c43, #0c5ebe 20%, #75aabe 40%, #f1eceb 50%, #d0826c 62%, #a51a32 82%, #3c0912);
}

*, *::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;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--abyss); }
::selection { background: var(--amber); color: var(--abyss); }
a { color: inherit; }
em { font-style: italic; }
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); }
.wrap-wide { width: 100%; max-width: 96rem; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* ---------- 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 { 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; }
.lead { font-size: clamp(1.12rem, 1.3vw + .6rem, 1.38rem); line-height: 1.5; color: #d6e1e4; margin: 0 0 2.4rem; }

/* ---------- 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), backdrop-filter .5s;
}
.topbar.is-solid { background: linear-gradient(180deg, rgba(5,12,18,.9), rgba(5,12,18,0)); }
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .01em; }
.brand svg { width: 34px; height: 14px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; }
.hud {
  margin-left: auto; display: flex; align-items: baseline; gap: .65rem;
  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-label { color: var(--mute); }
.hud-val { color: var(--hot); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 5.2ch; text-align: right; transition: color .4s; }
.hud-val.is-cold { color: var(--cold); }
.hud-src { color: var(--faint); }
.sound {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5,12,18,.55); border: 1px solid var(--rule); color: var(--mute);
  border-radius: 999px; padding: .5rem .85rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .3s, border-color .3s;
}
.sound:hover { color: var(--ink); border-color: rgba(147,168,178,.4); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--amber); }
.bars i { transition: 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 a:hover::after { width: 16px; background: var(--ink); }
.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; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero-map { position: absolute; inset: 0; z-index: -2; }
.ocean-gl, .ocean-wind { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ocean-wind { pointer-events: none; mix-blend-mode: screen; }
.hero-map .ocean-gl { cursor: crosshair; }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,12,18,.62) 0%, rgba(5,12,18,.25) 45%, rgba(5,12,18,0) 70%),
    linear-gradient(180deg, rgba(5,12,18,.78) 0%, rgba(5,12,18,0) 24%, rgba(5,12,18,0) 46%, rgba(5,12,18,.7) 78%, var(--abyss) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(5,12,18,.55)); }
.map-ticks { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top,0px) + 76px); pointer-events: none; }
.map-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; color: rgba(231,238,240,.42); letter-spacing: .08em; }
.hero-copy { position: relative; width: 100%; max-width: 96rem; margin-inline: auto; padding: 0 var(--gut-r) clamp(2rem, 5vh, 4rem) var(--gut); pointer-events: none; }
.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); box-shadow: 0 0 0 0 rgba(240,121,79,.6); 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: .8; letter-spacing: -.035em; margin: 0 0 .25em -.04em; }
.ht-line { display: flex; gap: .2em; flex-wrap: wrap; }
.ht-w { display: inline-block; }
.ntilde { position: relative; display: inline-block; }
.tilde { position: absolute; left: 4%; width: 92%; top: -.06em; height: .2em; overflow: visible; }
.tilde path { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: clamp(4px, .9vw, 10px); }
.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: #f3e6d6; }
.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; }
@media (hover: none) { .only-fine { display: none; } }
.legend { display: flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.legend-hero { position: absolute; right: var(--gut-r); top: calc(env(safe-area-inset-top,0px) + 104px); }
.ramp { display: inline-block; width: 120px; height: 6px; border-radius: 3px; }
.ramp-thermal { background: var(--thermal); }
.ramp-anom { background: var(--balance); }

.probe {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(14px, -50%);
  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-t { color: var(--ink); font-size: 12px; }
.probe-a { color: var(--hot); }
.probe-a.is-cold { color: var(--cold); }

/* ---------- generic chapter ---------- */
.chapter { position: relative; padding-block: clamp(6rem, 14vh, 11rem); }
.reveal { will-change: transform, opacity; }
.cols { display: grid; gap: 2rem; }
.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: #f3e6d6; text-wrap: balance; }

/* now readouts */
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; 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.4rem, 4.6vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ro-v.hot { color: var(--hot); }
.ro-v.cold { color: var(--cold); }
.ro-k { color: #d4dee2; font-size: 1rem; line-height: 1.4; max-width: 26ch; }
.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; } }

/* ---------- horizontal timeline ---------- */
.name { padding-block: 0; }
.htl { position: relative; height: 420vh; }
.htl-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 5vh, 3.5rem); }
.htl-head .h2 { margin-bottom: 0; }
.htl-track { position: relative; padding-left: var(--gut); will-change: transform; }
.htl-line { position: absolute; left: 0; right: 0; top: 2.15rem; height: 1px; background: var(--rule); }
.htl-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cold), var(--amber), var(--hot)); transform-origin: left; transform: scaleX(0); }
.htl-items { list-style: none; margin: 0; padding: 0 30vw 0 0; display: flex; gap: clamp(2rem, 4vw, 4rem); width: max-content; }
.tl { width: clamp(16rem, 24vw, 21rem); position: relative; padding-top: 3.6rem; }
.tl::before { content: ""; position: absolute; left: 0; top: calc(2.15rem - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--abyss); border: 1.5px solid var(--mute); }
.tl-when { position: absolute; top: 0; left: 0; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--amber); }
.tl h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.tl p { margin: 0; color: #c5d2d7; font-size: 1rem; line-height: 1.55; }
.tl-now::before { background: var(--hot); border-color: var(--hot); box-shadow: 0 0 0 6px rgba(240,121,79,.18); }
.tl-now .tl-when { color: var(--hot); }
@media (max-height: 640px) { .tl p { font-size: .92rem; } }

/* ---------- story / sticky stage ---------- */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden; z-index: 0; }
.stage canvas#xsec { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-legend { position: absolute; right: calc(var(--gut-r) + 34px); bottom: calc(env(safe-area-inset-bottom,0px) + 22px); display: flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; padding-bottom: 40vh; pointer-events: none; }
.step {
  pointer-events: auto; width: min(31rem, calc(100% - 32px)); margin: 0 0 82vh 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(0); transition: opacity .6s var(--ease), border-color .6s;
}
.step:first-child { margin-top: 70vh; }
.step { transform: translateY(14px) scale(.985); transition: opacity .7s var(--ease), border-color .7s, transform .9s var(--ease), box-shadow .9s; }
.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; color: #d0dbdf; font-size: 1.04rem; }
.step .h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.step-head { padding-top: 1.9rem; }
@media (min-width: 1100px) { .step { margin-left: calc(var(--gut) + 3vw); } }
@media (max-width: 760px) {
  .step { margin: 0 auto 90vh; width: calc(100% - 32px); padding: 1.2rem 1.25rem; font-size: 1rem; }
  .step:first-child { margin-top: 85vh; }
  .stage-legend { display: none; }
}

/* Bjerknes loop overlay */
.loop { position: absolute; width: min(400px, 30vw); right: calc(var(--gut-r) + 12vw); bottom: 4%; opacity: 0; transform: scale(.9); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.loop.is-on { opacity: 1; transform: none; }
.loop-ring { fill: rgba(5,12,18,.8); stroke: var(--rule); stroke-width: 1; }
.loop-arc { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 7; animation: dash 1.4s linear infinite; }
#arr path { fill: var(--amber); }
@keyframes dash { to { stroke-dashoffset: -26; } }
.loop-lbl text { fill: var(--ink); font-family: var(--f-mono); font-size: 11px; text-anchor: middle; letter-spacing: .02em; }
.loop-mid, .loop-mid2 { fill: #f3e6d6; font-family: var(--f-display); font-size: 22px; text-anchor: middle; }
.loop-mid2 { font-style: italic; font-size: 18px; fill: var(--mute); }
@media (max-width: 760px) { .loop { width: 84vw; right: 50%; transform: translateX(50%) scale(.9); bottom: auto; top: 9%; } .loop.is-on { transform: translateX(50%); } }

/* ---------- reset / oscillator ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.osc { margin: 0; position: relative; }
.osc svg { width: 100%; height: auto; display: block; overflow: visible; }
.osc-read { display: grid; gap: .2rem; margin: .4rem 0 1rem; min-height: 3.6rem; }
.osc-phase { font-family: var(--f-display); font-size: 1.6rem; }
.osc-desc { color: var(--mute); }
.osc figcaption, figcaption { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.7; color: var(--faint); letter-spacing: .02em; max-width: 46rem; }
.osc .ax { stroke: var(--rule); }
.osc .ax-l { fill: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; }
.osc .orbit { fill: none; stroke: url(#oscGrad); stroke-width: 2; }
.osc .ph-l { font-family: var(--f-display); font-size: 17px; fill: var(--ink); }
.osc .ph-s { font-family: var(--f-mono); font-size: 10px; fill: var(--mute); letter-spacing: .04em; }
.osc .ph-dot { fill: var(--abyss); stroke: var(--mute); stroke-width: 1.4; }
.osc .ph.is-on .ph-dot { stroke: var(--amber); fill: var(--amber); }
.osc .ph.is-on .ph-l { fill: var(--amber); }

/* ---------- lab ---------- */
.play { padding-bottom: clamp(5rem, 10vh, 8rem); }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .lab { grid-template-columns: 1fr; } }
.lab-views { display: grid; gap: 1.25rem; min-width: 0; }
.lab-map, .lab-xsec, .mmap-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--deep); }
.lab-map { aspect-ratio: 2.375 / 1; max-width: 100%; }
.lab-map .ocean-gl { cursor: crosshair; }
.lab-xsec { aspect-ratio: 2.6 / 1; max-width: 100%; }
.lab-xsec canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 600px) { .lab-xsec { aspect-ratio: 1.5 / 1; } }
.mode-switch { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 3; }
.legend-lab { position: absolute; right: 12px; bottom: 10px; z-index: 3; background: rgba(5,12,18,.6); padding: 4px 8px; border-radius: 6px; }
.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;
}
.chip:hover { color: var(--ink); border-color: rgba(147,168,178,.45); }
.chip.is-on { color: var(--abyss); background: var(--ink); border-color: var(--ink); }
.chip-now { border-color: rgba(240,121,79,.5); color: var(--hot); }
.chip-now.is-on { background: var(--hot); border-color: var(--hot); color: var(--abyss); }
.lab-ctrl { display: grid; gap: 1.1rem; padding: 1.4rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--deep); position: sticky; top: 84px; }
@media (max-width: 1100px) { .lab-ctrl { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.dial { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; align-items: baseline; }
.dial-lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dial-out { grid-row: span 2; font-family: var(--f-display); font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); transition: color .3s; }
.dial-cat { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: #f3e6d6; }
.dial input { grid-column: 1 / -1; margin: .9rem 0 .2rem; }
.dial-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--balance); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--balance); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 4px solid var(--abyss); box-shadow: 0 0 0 1px var(--ink), 0 4px 14px rgba(0,0,0,.5); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--abyss); box-shadow: 0 0 0 1px var(--ink); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.burst {
  display: flex; align-items: center; justify-content: center; gap: .7rem; cursor: pointer; width: 100%;
  padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(251,180,61,.45); background: rgba(251,180,61,.08);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber);
  transition: background .25s, transform .15s;
}
.burst:hover { background: rgba(251,180,61,.16); }
.burst:active { transform: scale(.98); }
.burst[disabled] { opacity: .5; cursor: progress; }
.burst-ico { width: 26px; height: 16px; display: inline-flex; }
.burst-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.burst-ico path { stroke-dasharray: 40; stroke-dashoffset: 0; }
.burst:hover .burst-ico path { animation: gust 1.1s var(--ease) infinite; }
.burst:hover .burst-ico path:nth-child(2) { animation-delay: .12s; }
.burst:hover .burst-ico path:nth-child(3) { animation-delay: .24s; }
@keyframes gust { 0% { stroke-dashoffset: 40; } 60%, 100% { stroke-dashoffset: 0; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.stats div { display: grid; gap: .1rem; }
.stats dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.stats dd { margin: 0; font-family: var(--f-mono); font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.expect { border-top: 1px solid var(--rule); padding-top: 1rem; }
.expect-h { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 .6rem; }
.expect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; min-height: 7.5rem; }
.expect li { display: flex; gap: .6rem; align-items: baseline; font-size: .92rem; line-height: 1.4; color: #cfdade; animation: fadeUp .5s var(--ease) both; }
.expect li i { flex: none; width: 8px; height: 8px; border-radius: 2px; transform: translateY(-1px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- measure ---------- */
.measure-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 1000px) { .measure-grid { grid-template-columns: 1fr; } }
.mmap { margin: 0; display: grid; gap: .8rem; position: sticky; top: 90px; }
@media (max-width: 1000px) { .mmap { position: static; } }
.mmap-box { aspect-ratio: 2.375 / 1; max-width: 100%; }
.mmap-ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.mmap-labels { position: absolute; inset: 0; pointer-events: none; }
.mmap-labels span { position: absolute; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); transform: translate(4px, 3px); white-space: nowrap; transition: opacity .4s; }
.mmap-ov .box { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; transition: opacity .4s; }
.mmap-ov .box.b34 { stroke: #fff; stroke-dasharray: none; stroke-width: 2; fill: rgba(255,255,255,.07); }
.mmap-ov .tao { fill: #fff; stroke: var(--abyss); stroke-width: .8; vector-effect: non-scaling-stroke; transition: opacity .4s; }
.mmap-ov .argo { fill: var(--amber); transition: opacity .4s; }
.layer-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.legend-inline { display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; margin-left: .4rem; }
.legend-inline .ramp { width: 90px; height: 5px; }
.measure-text p { margin: 0 0 1.2em; }
.note { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: 12px; border: 1px solid rgba(116,176,207,.3); background: linear-gradient(160deg, rgba(47,111,196,.12), rgba(5,12,18,0)); }
.note p { margin: 0; color: #cfdade; font-size: 1rem; }
.note .note-h { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); margin-bottom: .5rem; }

/* ---------- charts ---------- */
.chart-fig { margin: 0 auto; display: grid; gap: 1rem; }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-read { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.chart-read b { color: var(--ink); font-weight: 500; }
.chart { position: relative; width: 100%; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 10px; fill: var(--faint); letter-spacing: .03em; }
.chart .grid line { stroke: var(--rule); }
.chart .zero { stroke: rgba(147,168,178,.45); }
.chart .thr { stroke-dasharray: 2 4; }
.chart .thr-l { font-size: 9.5px; }
.chart .ann-l { fill: var(--ink); font-size: 10.5px; }
.chart .ann-s { fill: var(--mute); font-size: 9.5px; }
.chart .ann-line { stroke: rgba(231,238,240,.35); }
.chart .cross { stroke: rgba(231,238,240,.6); stroke-width: 1; }
.chart .cross-dot { fill: var(--ink); stroke: var(--abyss); stroke-width: 2; }
.chart .now-dot { fill: var(--hot); }
.chart .now-ring { fill: none; stroke: var(--hot); animation: ring 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- globe ---------- */
.globe-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 980px) { .globe-grid { grid-template-columns: 1fr; } }
.globe-box { position: relative; aspect-ratio: 1 / 1; max-width: min(100%, 760px); width: 100%; margin-inline: auto; position: sticky; top: 80px; }
@media (max-width: 980px) { .globe-box { position: relative; top: 0; max-width: 540px; } }
.globe-box canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.globe-box canvas:active { cursor: grabbing; }
.globe-tip { position: absolute; z-index: 3; pointer-events: none; max-width: 15rem; padding: .55rem .7rem; border-radius: 8px; background: rgba(5,12,18,.92); border: 1px solid var(--rule); font-size: .85rem; line-height: 1.35; transform: translate(-50%, calc(-100% - 14px)); }
.globe-tip b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.02rem; }
.globe-key { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.globe-key i, .imp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.k-wet { background: var(--wet); } .k-dry { background: var(--dry); } .k-warm { background: var(--warm); } .k-cool { background: var(--cool); } .k-storm { background: var(--storm); }
.globe-hint { position: absolute; right: 0; bottom: 0; margin: 0; font-family: var(--f-mono); font-size: 10px; color: var(--faint); }
@media (max-width: 560px) { .globe-hint { display: none; } }
.seg-big .chip { font-size: 12px; padding: .6rem 1.1rem; }
.imp-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; }
.imp { border-top: 1px solid var(--rule); }
.imp:last-child { border-bottom: 1px solid var(--rule); }
.imp button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; width: 100%; padding: .95rem .2rem; align-items: baseline; }
.imp button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.imp-name { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; }
.imp-tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.imp-body { padding: 0 .2rem 0 calc(9px + 1.15rem); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.imp-body > div { overflow: hidden; }
.imp-body p { margin: .35rem 0 .2rem; color: #c8d5da; font-size: .97rem; line-height: 1.5; }
.imp-body .imp-ex { font-size: .9rem; color: var(--mute); }
.imp-body .imp-ex b { color: var(--amber); font-weight: 500; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; }
.imp.is-open .imp-body { grid-template-rows: 1fr; }
.imp.is-open .imp-name { color: var(--amber); }

/* ---------- ledger ---------- */
.ledger { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.lg { transition: background .5s var(--ease); border-radius: 2px; }
.lg:hover { background: linear-gradient(90deg, rgba(251,180,61,.05), transparent 70%); }
.lg { display: grid; grid-template-columns: 7rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.lg:last-child { border-bottom: 1px solid var(--rule); }
.lg-yr { font-family: var(--f-mono); font-size: .8rem; color: var(--amber); letter-spacing: .06em; }
.lg-num b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.025em; font-variant-numeric: tabular-nums; display: block; }
.lg-txt { margin: 0; color: #c8d5da; max-width: 30rem; }
@media (max-width: 760px) { .lg { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- floor chart ---------- */
.stage-chart { display: flex; align-items: center; justify-content: flex-end; }
.tchart-wrap { width: min(62vw, 1000px); margin-right: calc(var(--gut-r) + 2vw); display: grid; gap: .8rem; }
.tchart-head { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.tchart-t { font-family: var(--f-display); font-size: 1.4rem; }
.tchart-u { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tchart-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.tchart-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.k-nino { background: var(--hot); } .k-nina { background: var(--cold); } .k-neu { background: #6d8590; } .k-pre { background: #34495a; }
.floor .step { width: min(26rem, calc(100% - 32px)); }
@media (max-width: 1000px) {
  .stage-chart { align-items: flex-start; justify-content: center; padding-top: calc(env(safe-area-inset-top,0px) + 76px); }
  .tchart-wrap { width: calc(100% - 32px); margin: 0 auto; }
}

/* ---------- next ---------- */
.next-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .next-grid { grid-template-columns: 1fr; } }
.odds { margin: 0; padding: 1.6rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--deep); display: grid; gap: 1.2rem; }
.odds-h { margin: 0; font-family: var(--f-display); font-size: 1.4rem; }
.odds-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; height: 14rem; }
.ob { display: grid; grid-template-rows: 1fr auto; gap: .5rem; height: 100%; }
.ob-bar { display: block; align-self: end; height: calc(var(--v) * 1%); background: linear-gradient(180deg, var(--hot), rgba(240,121,79,.15)); border-radius: 6px 6px 0 0; position: relative; transform-origin: bottom; transition: transform 1.2s var(--ease); }
.ob-bar b { position: absolute; top: .5rem; left: 0; right: 0; text-align: center; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--abyss); }
.ob-s { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-align: center; }

/* ---------- epilogue ---------- */
.epilogue { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding-block: 8rem; }
.epilogue canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.epilogue .wrap { position: relative; z-index: 1; }
.end-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .95; letter-spacing: -.025em; margin: 0 0 2rem; }
.end-title em { color: var(--hot); }
.end-sub { max-width: 36rem; color: #cfdade; font-size: clamp(1.05rem, 1.2vw + .5rem, 1.3rem); margin: 0 0 2.4rem; }
.end-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--abyss); text-decoration: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }

/* ---------- sources ---------- */
.sources { border-top: 1px solid var(--rule); padding-block: 5rem calc(env(safe-area-inset-bottom,0px) + 4rem); background: #040a0f; }
.src-h { font-family: var(--f-display); font-weight: 400; font-size: 2rem; margin: 0 0 2rem; }
.src-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 900px) { .src-grid { grid-template-columns: 1fr; } }
.src-grid h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 1rem; }
.src-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.src-grid li, .src-grid p { font-size: .86rem; line-height: 1.55; color: var(--mute); margin: 0 0 .8rem; }
.src-grid a { color: var(--ink); text-decoration-color: rgba(231,238,240,.3); text-underline-offset: 3px; }
.src-grid a:hover { text-decoration-color: var(--amber); }
.colophon { color: var(--faint) !important; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom,0px) + 24px); transform: translateX(-50%); z-index: 70; padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--abyss); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }

@media (max-width: 640px) {
  .hud-src { display: none; }
  .brand span { display: none; }
  .map-ticks span:nth-child(even) { display: none; }
  .legend-hero { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* word-mask headline reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; transform-origin: 0 100%; will-change: transform; }

/* ---------- live data ---------- */
.map-meta { display: grid; justify-items: end; gap: .7rem; text-align: right; }
.map-meta .map-note { text-align: right; }
@media (max-width: 640px) { .map-meta { justify-items: start; text-align: left; } .map-meta .map-note { text-align: left; } }
.live-switch { display: flex; gap: 6px; pointer-events: auto; }
.live-switch .chip { display: inline-flex; align-items: center; gap: .45rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); animation: live 2.2s infinite; }
.live-switch .chip.is-on .live-dot { background: #c2410c; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: -.4rem 0 1.8rem; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(240,121,79,.14); border: 1px solid rgba(240,121,79,.45); color: var(--hot); font-weight: 500; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live 2.2s infinite; }
.ro-s .live-tag { color: var(--hot); margin-right: .5em; }
.ro-s .live-tag::before { content: "● "; }

/* ---------- globe: live "Now" view ---------- */
:root { --v-match: #6fdcab; --v-near: #8fa3ad; --v-opp: #ff7a7a; --v-wait: #4c6370; }
.chip-live { display: inline-flex; align-items: center; gap: .45rem; border-color: rgba(240,121,79,.5); color: var(--hot); }
.chip-live.is-on { background: var(--hot); border-color: var(--hot); color: var(--abyss); }
.chip-live.is-on .live-dot { background: var(--abyss); }
.verdict { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: .28rem .55rem; border-radius: 999px; border: 1px solid currentColor; }
.verdict.v-match { color: var(--v-match); } .verdict.v-near { color: var(--v-near); } .verdict.v-opp { color: var(--v-opp); } .verdict.v-wait { color: var(--faint); border-style: dashed; }
.now-head { list-style: none; padding: 1.2rem 0 1.4rem; display: grid; gap: .6rem; }
.now-score { margin: 0; display: flex; align-items: baseline; gap: .6rem; font-family: var(--f-display); }
.now-score b { font-weight: 400; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; color: var(--v-match); }
.now-score span { font-size: 1.6rem; color: var(--mute); }
.now-say { margin: 0; font-size: 1.05rem; color: #d6e1e4; max-width: 30rem; }
.now-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: .3rem; }
.now-bar i.v-match { background: var(--v-match); } .now-bar i.v-near { background: var(--v-near); } .now-bar i.v-opp { background: var(--v-opp); }
.now-key { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.now-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.now-key i.v-match { background: var(--v-match); } .now-key i.v-near { background: var(--v-near); } .now-key i.v-opp { background: var(--v-opp); } .now-key i.v-wait { border: 1px dashed var(--faint); }
.now-src { margin: .2rem 0 0; font-family: var(--f-mono); font-size: 10px; line-height: 1.6; color: var(--faint); }
.imp-usual, .imp-nowline { display: grid; grid-template-columns: 4.2rem 1fr; gap: .6rem; align-items: baseline; }
.imp-usual > span:first-child, .imp-nowline > span:first-child { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.imp-nowline b { color: #fff; font-weight: 600; }
.imp-storms { display: block; color: var(--mute); font-size: .85rem; margin-top: .2rem; }
.cum { display: block; width: min(100%, 320px); height: auto; margin: .6rem 0 .4rem 4.8rem; overflow: visible; }
.cum polyline { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.cum .cum-n { stroke: var(--mute); stroke-dasharray: 3 3; }
.cum .cum-o { stroke: var(--amber); }
.cum text { font-family: var(--f-mono); font-size: 9px; fill: var(--faint); }
.cum .cum-lbl { fill: var(--mute); }
@media (max-width: 560px) { .cum { margin-left: 0; } .imp-usual, .imp-nowline { grid-template-columns: 1fr; gap: .1rem; } }
.imp-alerts, .now-alerts ul { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .35rem; }
.imp-alerts li, .now-alerts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; font-size: .9rem; }
.imp-alerts i, .now-alerts i { flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.imp-alerts a, .now-alerts a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(231,238,240,.3); }
.imp-alerts span, .now-alerts .na-when { font-family: var(--f-mono); font-size: 10px; color: var(--faint); }
.now-alerts { list-style: none; padding: 1.4rem 0 .4rem; }
.now-alerts-h { margin: 0 0 .6rem; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.now-alerts .na-type { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); min-width: 7.5rem; }
.tip-cta { color: var(--amber); font-family: var(--f-mono); font-size: 10px; }
.spark { margin: .2rem 0 .1rem; max-width: 240px; }
.spark svg { display: block; width: 100%; height: auto; overflow: visible; }
.spark .sp-line { fill: none; stroke: var(--hot); stroke-width: 1.6; }
.spark .sp-zero { stroke: rgba(147,168,178,.35); }
.spark .sp-thr { stroke: rgba(240,121,79,.35); stroke-dasharray: 2 3; }
.spark .sp-dot { fill: var(--hot); }
.spark text { font-family: var(--f-mono); font-size: 9px; fill: var(--faint); }

/* ---------- time-lapse player ---------- */
.tlp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .55rem .7rem .55rem .55rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--deep); }
.tlp-play { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; border: 0; border-radius: 999px; padding: .5rem .9rem .5rem .7rem; background: var(--hot); color: var(--abyss); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s var(--ease); }
.tlp-play:hover { transform: scale(1.03); }
.tlp-play svg { width: 12px; height: 12px; fill: currentColor; }
.tlp-play .i-pause { display: none; }
.tlp.is-playing .tlp-play .i-play { display: none; }
.tlp.is-playing .tlp-play .i-pause { display: inline; }
.tlp input[type="range"] { height: 22px; }
.tlp input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #2f6fc4, #f1eceb 45%, #f0794f); }
.tlp input[type="range"]::-moz-range-track { height: 4px; background: linear-gradient(90deg, #2f6fc4, #f1eceb 45%, #f0794f); }
.tlp input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border-width: 3px; }
.tlp-date { font-family: var(--f-mono); font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 6.5rem; text-align: right; }
.tlp-stamp { position: absolute; left: 14px; bottom: 12px; display: grid; gap: 2px; pointer-events: none; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.tlp-stamp b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1; color: #fff; }
.tlp-stamp span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: #fff; }
@media (max-width: 560px) { .tlp { grid-template-columns: auto 1fr; border-radius: 16px; } .tlp-date { grid-column: 1 / -1; text-align: left; } .tlp-play span { display: none; } }

.impacts { min-width: 0; }
.now-alerts li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: .7rem; align-items: start; }
.now-alerts li i { margin-top: .45rem; }
.now-alerts li div { display: grid; gap: .1rem; min-width: 0; }
.now-alerts .na-type { min-width: 0; }
.now-alerts a, .imp-alerts a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .imp-now button { grid-template-columns: auto minmax(0, 1fr); }
  .imp-now .verdict { grid-column: 2; justify-self: start; margin-top: .3rem; }
}
.now-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; margin-top: 2rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(111,220,171,.35); border-radius: 14px; text-decoration: none; background: linear-gradient(100deg, rgba(111,220,171,.08), rgba(5,12,18,0) 60%); transition: border-color .3s, transform .3s var(--ease); }
.now-link:hover { border-color: var(--v-match); transform: translateY(-2px); }
.now-link-n { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--v-match); white-space: nowrap; }
.now-link-t { color: #d6e1e4; font-size: 1rem; line-height: 1.45; }
.now-link-go { font-size: 1.4rem; color: var(--v-match); transition: transform .3s var(--ease); }
.now-link:hover .now-link-go { transform: translateX(4px); }
@media (max-width: 560px) { .now-link { grid-template-columns: 1fr auto; } .now-link-n { grid-column: 1 / -1; } }
