/* ═══════════════════════════════════════════════════════════
   DeepKeel — stylesheet
   ═══════════════════════════════════════════════════════════ */

:root{
  --bg:        #070C11;
  --bg-2:      #0A1017;
  --bg-3:      #0C1219;
  --text:      #E2E9EF;
  --text-dim:  #8D9DAB;
  --text-faint:#596977;
  --line:      rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  /* ONE source of truth for the accent. Everything else — CSS, SVG and the
     canvas renderers — derives from this triplet, so a single value swaps the
     whole palette — change this one line to re-tint the site. */
  --accent-rgb: 111,188,240;      /* Sky */
  --accent:    rgb(var(--accent-rgb));
  --accent-2:  rgba(var(--accent-rgb),.30);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16,.84,.32,1);
  --gut:  clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  /* The stationary rail's column. Reserved page-wide on desktop so no
     content ever scrolls underneath it. --railgap matches the .grid gap. */
  --rail:    clamp(96px, 11vw, 136px);
  --railgap: clamp(28px, 6vw, 92px);
  --railoff: calc(var(--rail) + var(--railgap));
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0; overflow-x:hidden; background:var(--bg); color:var(--text);
  font-family:var(--sans); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
::selection{ background:var(--accent-2); color:#fff; }
a{ color:inherit; }
img,svg,canvas{ display:block; max-width:100%; }

.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding-inline:var(--gut); }

.skip{ position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#04080B; padding:.7em 1.2em;
  font:600 14px/1 var(--sans); }
.skip:focus{ left:0; }

/* ── scroll progress ──────────────────────────────────────── */
.progress{
  position:fixed; top:0; left:0; z-index:80;
  height:2px; width:100%;
  transform:scaleX(0); transform-origin:0 50%;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),.25), var(--accent));
  pointer-events:none;
}

/* ── nav ──────────────────────────────────────────────────── */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:70; height:74px;
  display:flex; align-items:center;
  border-bottom:1px solid transparent;
  transition:background .45s var(--ease), border-color .45s var(--ease),
             backdrop-filter .45s var(--ease), height .45s var(--ease);
}
.nav.stuck{
  height:64px;
  background:rgba(7,12,17,.78);
  backdrop-filter:saturate(160%) blur(16px);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  border-bottom-color:var(--line-soft);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.brand{ display:flex; align-items:center; gap:14px; text-decoration:none;
  font-size:23.75px; font-weight:600; letter-spacing:-.02em; color:var(--text); }
.brand .mark{ color:var(--accent); flex:none; overflow:visible; }
.mark .hull{ will-change:transform; }                /* heel is driven in JS — see markFX */
.brand b{ font-weight:600; }
.brand span{ font-weight:600; color:var(--accent); }

.navlinks{ display:flex; align-items:center; gap:clamp(16px,2.4vw,34px); }
.navlinks a{
  position:relative; text-decoration:none; font-size:14px;
  color:var(--text-dim); padding:8px 0; transition:color .3s var(--ease);
}
.navlinks a::after{
  content:""; position:absolute; left:0; right:0; bottom:2px; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.navlinks a:hover,.navlinks a.active{ color:var(--text); }
.navlinks a:hover::after,.navlinks a.active::after{ transform:scaleX(1); }

.burger{ display:none; width:38px; height:38px; border:0; background:none;
  cursor:pointer; padding:0; position:relative; }
.burger i{ position:absolute; left:9px; right:9px; height:1.5px; background:var(--text);
  transition:transform .4s var(--ease), opacity .3s var(--ease); }
.burger i:nth-child(1){ top:16px; } .burger i:nth-child(2){ top:22px; }
.burger[aria-expanded="true"] i:nth-child(1){ transform:translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2){ transform:translateY(-3px) rotate(-45deg); }

.drawer{
  position:fixed; inset:74px 0 auto 0; z-index:69;
  background:rgba(7,12,17,.97); backdrop-filter:blur(18px);
  display:flex; flex-direction:column; padding:10px var(--gut) 26px;
  clip-path:inset(0 0 100% 0); transition:clip-path .5s var(--ease);
  border-bottom:1px solid var(--line-soft);
}
.drawer.open{ clip-path:inset(0 0 0 0); }
.drawer a{ padding:14px 0; text-decoration:none; color:var(--text-dim);
  border-bottom:1px solid var(--line-soft); font-size:17px; }
.drawer a:last-child{ border:0; }

@media (max-width:760px){ .navlinks{ display:none; } .burger{ display:block; } }
@media (min-width:761px){ .drawer{ display:none; } }

/* ── hero ─────────────────────────────────────────────────── */
.hero{
  position:relative; min-height:100vh; min-height:100svh; display:flex; align-items:center;
  padding-block:150px 110px; overflow:hidden;
}
#sea{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero-scrim{ /* keeps the headline legible over the weather */
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(100deg, rgba(6,10,15,.90) 0%, rgba(6,10,15,.62) 34%,
             rgba(6,10,15,.10) 62%, rgba(6,10,15,0) 100%);
}
@media (max-width:900px){
  .hero-scrim{ background:linear-gradient(to bottom, rgba(6,10,15,.92) 0%, rgba(6,10,15,.72) 46%,
               rgba(6,10,15,.18) 78%, rgba(6,10,15,0) 100%); }
}
.hero::after{ /* edge fade only — the beam does the rest, inside the canvas */
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(to bottom, rgba(7,12,17,.5) 0%, rgba(7,12,17,0) 20%,
             rgba(7,12,17,0) 82%, var(--bg) 100%);
}
.hero.lamp, .hero.lamp *{ cursor:none; }
.hero.lamp a, .hero.lamp button{ cursor:pointer; }   /* keep clickables obvious */
.hero-in{ position:relative; z-index:3; will-change:transform,opacity; }

.eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--accent);
  display:flex; align-items:center; gap:14px; margin:0 0 32px;
}
.eyebrow::before{ content:""; width:36px; height:1px; background:var(--accent); opacity:.5; flex:none; }

h1{
  margin:0; font-weight:500; letter-spacing:-.04em;
  font-size:clamp(46px, 8.6vw, 112px); line-height:.95; max-width:15ch;
}
h1 .w{ display:inline-block; overflow:hidden; vertical-align:bottom; }
h1 .w > i{
  display:inline-block; font-style:normal;
  transform:translateY(112%) rotate(4deg); opacity:0;
  transition:transform 1s var(--ease), opacity .8s var(--ease);
  transition-delay:var(--d,0s);
}
.ready h1 .w > i{ transform:none; opacity:1; }

.reveal-line{ opacity:0; transform:translateY(22px);
  transition:opacity .9s var(--ease) var(--d,.3s), transform .9s var(--ease) var(--d,.3s); }
.ready .reveal-line{ opacity:1; transform:none; }

.hero .lede{
  margin:34px 0 0; max-width:56ch; color:var(--text-dim);
  font-size:clamp(17px,2.05vw,21px); line-height:1.62;
}
.hero .lede em{ color:var(--text); font-style:normal; }

.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:42px; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:100px; text-decoration:none;
  font-size:15px; font-weight:500; letter-spacing:.01em;
  background:var(--accent); color:#04080B; border:1px solid var(--accent);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 12px 34px rgba(var(--accent-rgb),.22); }
.btn svg{ transition:transform .35s var(--ease); }
.btn:hover svg{ transform:translateY(3px); }
.btn.ghost{ background:transparent; color:var(--text); border-color:var(--line); }
.btn.ghost:hover{ border-color:var(--accent); color:var(--accent); box-shadow:none; }

.cue{ position:absolute; left:50%; bottom:34px; z-index:3; transform:translateX(-50%); }
.cue i{ display:block; width:1px; height:52px;
  background:linear-gradient(to bottom,var(--accent),transparent);
  opacity:.45; animation:drop 2.6s ease-in-out infinite; transform-origin:top; }
@keyframes drop{ 0%,100%{transform:scaleY(.3);opacity:.2} 50%{transform:scaleY(1);opacity:.55} }
@media (max-width:760px){ .cue{ display:none; } }

/* ── marquee ──────────────────────────────────────────────── */
.marquee{
  overflow:hidden; border-block:1px solid var(--line-soft);
  background:rgba(10,16,23,.78); padding:20px 0;
}
.marquee-t{ display:flex; gap:34px; width:max-content; will-change:transform;
  font-family:var(--mono); font-size:12.5px; letter-spacing:.2em; text-transform:uppercase; }
.marquee-t span{ color:var(--text-dim); white-space:nowrap; }
.marquee-t em{ color:var(--accent); opacity:.5; font-style:normal; font-size:9px; }

/* ── sections ─────────────────────────────────────────────── */
.section{ position:relative; padding-block:clamp(88px,12vw,158px); }
/* Translucent, not a slab: the alternation still bands the page but the water
   column stays visible straight through it. */
.section.alt{ background:rgba(255,255,255,.02); border-block:1px solid var(--line-soft); }
/* Legibility is bought here rather than by darkening the whole canvas — a
   shadow the eye never notices, worth ~2 stops of contrast over moving water. */
.body p, .body h2, .riskbody p, .pull, .facts dd, .facts dt{
  text-shadow:0 1px 14px rgba(7,12,17,.92), 0 0 3px rgba(7,12,17,.75); }

.grid{
  display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(28px,6vw,92px); align-items:start;
}
@media (max-width:880px){ .grid{ grid-template-columns:1fr; gap:30px; } }

.marker{
  display:flex; flex-direction:column; gap:10px; margin:0;
  position:sticky; top:104px;
}
/* SVG rather than -webkit-text-stroke: CSS text-stroke only does MITRE joins,
   and the acute inner corner of a "2" throws a long spike that crosses itself
   into a visible star. SVG gives stroke-linejoin, which the outline needs. */
.marker .num{
  display:block; width:clamp(74px,10vw,136px); height:auto; overflow:visible;
}
.marker .num text{
  /* Deliberately NOT the body stack: SF Pro's "2" has a self-intersection where
     the diagonal meets the base, which stroking renders as a small starburst.
     Helvetica/Arial outlines are clean, and these are display numerals anyway. */
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:96px; font-weight:500; letter-spacing:-5px;
  fill:rgba(var(--accent-rgb),.13);
  stroke:rgba(var(--accent-rgb),.55);
  stroke-width:1.3; stroke-linejoin:round; stroke-linecap:round;
  paint-order:stroke;
}
.marker .lbl{
  font-family:var(--mono); font-size:13px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--text-dim);
}
@media (max-width:880px){
  .marker{ position:static; flex-direction:row; align-items:center; gap:20px; }
  .marker .num{ width:74px; }
}

h2{ margin:0 0 26px; font-weight:500; letter-spacing:-.03em;
  font-size:clamp(30px,4.4vw,48px); line-height:1.08; max-width:19ch; }

.body p{ margin:0 0 20px; max-width:60ch; color:var(--text-dim);
  font-size:clamp(16px,1.6vw,17.5px); line-height:1.72; }
.body p:last-of-type{ margin-bottom:0; }
.body strong{ color:var(--text); font-weight:500; }

/* facts */
.facts{
  list-style:none; margin:clamp(48px,7vw,84px) 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1px; background:var(--line-soft); border:1px solid var(--line-soft);
}
.facts li{ background:rgba(7,12,17,.55); padding:26px 24px 28px;
  transition:background .4s var(--ease); }
.facts li:hover{ background:rgba(12,18,25,.78); }
.section.alt .facts li{ background:rgba(10,16,23,.58); }
.facts dt{ font-family:var(--mono); font-size:11px; letter-spacing:.17em;
  text-transform:uppercase; color:var(--text-faint); margin:0 0 10px; }
.facts dd{ margin:0; font-size:16px; line-height:1.4; color:var(--text); }

/* pull quote */
.pull{ margin:0; padding:0 0 0 clamp(18px,2.4vw,28px);
  border-left:2px solid var(--accent); max-width:26ch;
  font-size:clamp(20px,2.5vw,27px); line-height:1.38;
  letter-spacing:-.02em; color:var(--text); font-weight:400; }

/* ── the water column ─────────────────────────────────────────
   One fixed canvas behind sections 01-06. The copy sections ARE
   the descent: 0 m at Approach, the abyss at Contact, with the
   gauge repeated in every section's margin so the depth is
   always on screen next to whatever you are reading.          */
.dive{ position:fixed; inset:0; z-index:0; pointer-events:none; }
#dcanvas{ position:absolute; inset:0; width:100%; height:100%; }
/* Light on purpose. The old full-strength veil made the water invisible;
   legibility is bought locally instead — see .section.alt and the text
   shadow on .body, which cost the water nothing. */
.dive-veil{
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(7,12,17,.30), rgba(7,12,17,.18) 40%,
             rgba(7,12,17,.18) 60%, rgba(7,12,17,.34));
}
/* Everything readable rides above the water. */
main, footer{ position:relative; z-index:1; }

/* ── the rail ─────────────────────────────────────────────────
   A single stationary instrument for the whole descent. Sticky
   inside .dive-sections with height:0, so it pins from Approach
   to the end of Contact without taking part in the flow, and the
   inner .wrap gives it the same gutter as every section — it
   lands exactly where the per-section markers used to.

   The left column is RESERVED for it below (see the min-width
   block): a stationary rail over unreserved space would sit on
   top of the facts strip, the pipeline and the charts as they
   scroll past it. */
.dive-sections{ position:relative; }
.railstick{ position:sticky; top:clamp(180px,33vh,320px); height:0; z-index:4; pointer-events:none; }
.rail{ width:var(--rail); }
.rail-stack{ position:relative; height:clamp(96px,12vw,150px); }
.rn{
  position:absolute; inset:0; display:flex; flex-direction:column; gap:10px;
  opacity:0; transform:translateY(16px);
  transition:opacity .55s var(--ease), transform .55s var(--ease);
}
.rn.on{ opacity:1; transform:none; }
.rn .num{ display:block; width:var(--rail); height:auto; overflow:visible; }
.rn .lbl{ font-family:var(--mono); font-size:13px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--text-dim); }
/* the numerals share the marker's outline treatment */
.rn .num text{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-size:96px; font-weight:500;
  letter-spacing:-5px; fill:rgba(var(--accent-rgb),.13);
  stroke:rgba(var(--accent-rgb),.55); stroke-width:1.3;
  stroke-linejoin:round; stroke-linecap:round; paint-order:stroke;
}

/* ── depth gauge ──────────────────────────────────────────── */
.dgauge{ margin-top:22px; width:132px; }
.dg-row{ display:flex; align-items:baseline; gap:6px;
  font-family:var(--mono); color:var(--text-faint); font-size:10px;
  letter-spacing:.18em; text-transform:uppercase; }
.dg-row b{ color:var(--accent); font-size:23px; font-weight:400; letter-spacing:-.02em; }
.dg-row i{ font-style:normal; color:var(--text-faint); font-size:11px; }
.dg-bar{ margin-top:9px; height:2px; background:var(--line); overflow:hidden; }
.dg-fill{ display:block; height:100%; width:0%; background:var(--accent); text-decoration:none; }
.dg-zone{ margin-top:9px; font-family:var(--mono); font-size:9.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--text-faint); }
@media (max-width:880px){ .dgauge{ margin-top:0; width:auto; } }

/* ── viz figures ──────────────────────────────────────────── */
.viz{
  margin:clamp(52px,8vw,96px) 0 0; padding:0;
  position:relative; background:
    radial-gradient(120% 130% at 50% 0%, rgba(var(--accent-rgb),.05), transparent 62%), rgba(12,18,25,.72);
  border-block:1px solid var(--line-soft);
}
.viz svg{ width:100%; height:clamp(260px,34vw,420px); display:block; }
.viz figcaption{
  display:flex; gap:12px 30px; flex-wrap:wrap; align-items:center;
  padding:20px var(--gut) 26px;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-faint);
}
.viz figcaption .right{ margin-left:auto; color:rgba(141,157,171,.55); }
@media (max-width:760px){ .viz figcaption .right{ margin-left:0; } }
.k{ display:inline-block; width:16px; height:2px; margin-right:8px;
  vertical-align:middle; background:var(--accent); }
.k.dim{ background:rgba(141,157,171,.35); }

/* ── risk: storm beside the argument ──────────────────────── */
.riskgrid{
  display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(28px,5vw,72px); align-items:start;
}
.stormfig{ margin:0; position:sticky; top:96px; }
.stormfig svg{
  width:100%; aspect-ratio:11/10; display:block;
  background:radial-gradient(120% 130% at 50% 0%, rgba(var(--accent-rgb),.05), transparent 62%), rgba(12,18,25,.72);
  border:1px solid var(--line-soft);
}
.stormfig figcaption{
  display:flex; flex-direction:column; gap:7px; padding-top:16px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-faint);
}
.stormfig .hint{ color:rgba(141,157,171,.45); }
.riskbody .marker{ position:static; flex-direction:row; align-items:center; gap:22px; margin-bottom:28px; }
.riskbody .marker .num{ width:clamp(64px,7vw,96px); }
.riskbody .pull{ max-width:24ch; }
.riskbody p{ margin:22px 0 0; max-width:52ch; color:var(--text-dim);
  font-size:clamp(15.5px,1.5vw,17px); line-height:1.7; }
.riskbody strong{ color:var(--text); font-weight:500; }
@media (max-width:900px){
  .riskgrid{ grid-template-columns:1fr; gap:38px; }
  .stormfig{ position:static; order:2; }
  .riskbody{ order:1; }
}

/* ── pipeline ─────────────────────────────────────────────── */
.pipe{
  list-style:none; margin:clamp(48px,7vw,84px) 0 0; padding:0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:0;
  counter-reset:p;
}
.pipe li{ position:relative; padding:30px 20px 0 0; }
.pipe li::before{ /* connector */
  content:""; position:absolute; left:6px; right:0; top:5px; height:1px;
  background:var(--line); }
.pipe li:last-child::before{ right:20px; }
.pipe li::after{ /* travelling pulse */
  content:""; position:absolute; top:3.5px; left:6px; width:26px; height:4px;
  border-radius:4px; background:var(--accent); opacity:0;
  filter:blur(2px);
}
.pipe.run li::after{ animation:pulse 3.4s var(--ease) infinite; animation-delay:var(--pd,0s); }
@keyframes pulse{
  0%{ opacity:0; transform:translateX(0); }
  12%{ opacity:.85; }
  55%,100%{ opacity:0; transform:translateX(120px); }
}
.pipe .dot{
  position:absolute; left:0; top:0; width:11px; height:11px; border-radius:50%;
  background:var(--bg); border:1.5px solid var(--text-faint);
  transition:border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s;
}
.pipe li.lit .dot{ border-color:var(--accent); background:var(--accent);
  box-shadow:0 0 0 5px rgba(var(--accent-rgb),.13); }
.pipe b{ display:block; font-size:16px; font-weight:500; margin-bottom:7px; letter-spacing:-.01em; }
.pipe i{ display:block; font-style:normal; font-size:13.5px; line-height:1.5;
  color:var(--text-faint); max-width:19ch; }
@media (max-width:880px){
  .pipe{ grid-template-columns:1fr; }
  .pipe li{ padding:0 0 26px 30px; }
  .pipe li::before{ left:5px; top:6px; bottom:-6px; right:auto; width:1px; height:auto; }
  .pipe li:last-child::before{ display:none; }
  .pipe li::after{ display:none; }
  .pipe .dot{ left:0; top:4px; }
}

/* ── contact ──────────────────────────────────────────────── */
.mail{
  display:inline-flex; align-items:center; gap:13px; margin-top:12px;
  font-size:clamp(21px,3.3vw,34px); letter-spacing:-.03em; font-weight:500;
  text-decoration:none; color:var(--text);
  border-bottom:1px solid var(--line); padding-bottom:8px;
  transition:border-color .35s var(--ease), color .35s var(--ease);
}
.mail:hover{ color:var(--accent); border-bottom-color:var(--accent); }
.mail svg{ flex:none; opacity:.6; transition:transform .35s var(--ease); }
.mail:hover svg{ transform:translate(3px,-3px); }

/* ── footer ───────────────────────────────────────────────── */
footer{ border-top:1px solid var(--line-soft); background:rgba(12,18,25,.88);
  padding-block:64px 54px; font-size:14px; }
.frow{ display:flex; justify-content:space-between; align-items:flex-start;
  gap:36px; flex-wrap:wrap; padding-bottom:38px; margin-bottom:34px;
  border-bottom:1px solid var(--line-soft); }
.fnav{ display:flex; gap:28px; flex-wrap:wrap; }
.fnav a{ color:var(--text-dim); text-decoration:none; transition:color .3s var(--ease); }
.fnav a:hover{ color:var(--text); }
.legal{ color:var(--text-faint); font-size:12.5px; line-height:1.72;
  max-width:96ch; margin:0 0 20px; }
.copy{ color:var(--text-faint); font-size:12.5px; margin:0; }

/* ── reveal system ────────────────────────────────────────── */
[data-rv]{ opacity:0; will-change:opacity,transform;
  transition:opacity .95s var(--ease), transform .95s var(--ease); }
[data-rv="up"]{    transform:translateY(40px); }
[data-rv="left"]{  transform:translateX(-46px); }
[data-rv="right"]{ transform:translateX(46px); }
[data-rv="scale"]{ transform:scale(.955); }
[data-rv].in{ opacity:1; transform:none; }

/* ── reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; }
  [data-rv],.reveal-line{ opacity:1 !important; transform:none !important; }
  h1 .w > i{ opacity:1 !important; transform:none !important; }
  /* No animated water: the flat --bg shows through instead. */
  .dive{ display:none; }
}

/* ── phones ───────────────────────────────────────────────── */
@media (max-width:760px){
  .drawer a{ padding:16px 0; }              /* 48px tap targets */
  .btn{ padding:15px 24px; }
  .hero{ padding-block:120px 90px; }
}
@media (hover:none){
  .facts li:hover{ background:inherit; }    /* no sticky hover state after a tap */
  .nav .brand:hover .mark{ transform:none; }
}

/* ── accent-driven SVG (kept here, not inline, so it follows --accent-rgb) ── */
#survivor{ stroke:var(--accent); }
#track{    stroke:var(--accent); }
#band{     fill:rgba(var(--accent-rgb),.055); }
#bandTop,#bandBot{ stroke:rgba(var(--accent-rgb),.32); }

/* ── rail column reservation (desktop) ────────────────────────
   With one stationary rail instead of six scrolling markers,
   every full-width element has to start to its RIGHT — otherwise
   the facts strip, the pipeline and the charts slide underneath
   the numerals. The per-section markers become redundant here
   and are hidden; under 880px the reverse applies. */
@media (min-width:881px){
  .marker{ display:none; }
  .grid{ grid-template-columns:var(--rail) minmax(0,1fr); }
  /* display:none removes the marker from the grid entirely, so the body would
     otherwise auto-place into column 1 — the rail's column. Place it. */
  .grid > .body{ grid-column:2; }
  .facts, .pipe{ margin-left:var(--railoff); }
  /* risk keeps its figure, shifted one column right of the rail */
  /* three columns now: rail, figure, copy. Weighted so the argument keeps a
     readable measure — .95/1.12 left it at 418px, too narrow for prose. */
  .riskgrid{ grid-template-columns:var(--rail) minmax(0,.8fr) minmax(0,1.32fr); }
  .stormfig{ grid-column:2; }
  .riskbody{ grid-column:3; }
  /* .viz is full-bleed, so its inset is computed rather than inherited */
  .viz{ padding-left:calc(max((100vw - var(--maxw))/2, 0px) + var(--gut) + var(--railoff)); }
  .viz figcaption{ padding-left:0; }
}
@media (max-width:880px){
  .railstick{ display:none; }
}
