:root {
  --abyss: #0a1c63;
  --deep: #13319c;
  --mid: #17489f;
  --shoal: #4f88d4;
  --foam: #eaf2fb;
  --land: #ecdfb4;
  --land-2: #e2d29d;
  --land-ink: #261f10;
  --land-ink-2: #5b4d2b;
  --land-line: #b9a670;
  --ink: #f3f6fb;
  --ink-2: #b8cbea;
  --line: rgba(234, 242, 251, 0.18);
  --mag: #ff2e9a;
  --mag-soft: #ff8cc8;
  --mag-btn: #d1006b;
  --mag-ink: #a8005a;
  --mag-deep: #2a0619;
  --frame: 12px;
  --gut: clamp(20px, 5vw, 88px);
  --display: "Geologica", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--shoal) var(--abyss); }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--display);
  font-variation-settings: "CRSV" 0, "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--mag);
}
::selection { background: var(--mag); color: #fff; }
img, svg, canvas { display: block; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
/* chart convention: water features are lettered slanted, land upright */
.water { font-variation-settings: "slnt" -12; font-style: oblique 12deg; }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- neatline: the graduated chart border is the page frame ---------- */
.neat { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.neat::before, .neat::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--frame);
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(10, 28, 99, 0.6) 11px 12px) 0 0 / 100% 40%,
    repeating-linear-gradient(90deg, var(--foam) 0 72px, var(--abyss) 72px 144px);
  background-repeat: no-repeat, repeat;
  border-block: 1px solid var(--abyss);
}
.neat::before { top: 0; }
.neat::after { bottom: 0; }
.neat i {
  position: absolute; top: 0; bottom: 0; width: var(--frame);
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(10, 28, 99, 0.6) 11px 12px) 0 0 / 40% 100%,
    repeating-linear-gradient(0deg, var(--foam) 0 72px, var(--abyss) 72px 144px);
  background-repeat: no-repeat, repeat;
  border-inline: 1px solid var(--abyss);
}
.neat i:first-child { left: 0; }
.neat i:last-child { right: 0; }
.neat b { position: absolute; font: 400 0.7rem var(--mono); font-variant-numeric: tabular-nums; color: var(--foam); background: var(--abyss); padding: 2px 6px; }
.neat b:nth-of-type(1) { left: var(--frame); bottom: var(--frame); }
.neat b:nth-of-type(2) { right: var(--frame); bottom: var(--frame); }

/* ---------- nav set into the top neatline ---------- */
.nav {
  position: fixed; z-index: 40; top: var(--frame); left: var(--frame); right: var(--frame);
  display: flex; align-items: center; gap: 2rem;
  padding: 14px calc(var(--gut) - var(--frame));
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled { background: rgba(6, 26, 71, 0.94); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, 0.6); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; font-size: 0.95rem; }
.brand svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0 auto; padding: 0; font-size: 0.9rem; }
.nav ul a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); border-color: var(--mag); }
.status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.light { width: 7px; height: 7px; border-radius: 50%; background: var(--mag); animation: flash 2s infinite; }
@keyframes flash { 0%, 70%, 100% { opacity: 0.35; } 76%, 84% { opacity: 1; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 0.92rem/1 var(--display); letter-spacing: -0.005em; text-decoration: none;
  padding: 15px 20px; border: 1px solid var(--mag-btn); background: var(--mag-btn); color: #fff;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: #e0057a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(234, 242, 251, 0.06); }
.btn.small { padding: 10px 14px; font-size: 0.85rem; }
.hail { display: flex; flex-wrap: wrap; gap: 8px; }
.hail label { flex-basis: 100%; }
.hail input {
  flex: 1 1 15rem; min-width: 0; padding: 14px 16px; font: 400 1rem var(--display);
  color: var(--ink); background: rgba(6, 26, 71, 0.7); border: 1px solid var(--line); border-radius: 0;
}
.hail input::placeholder { color: #8ea6cf; }
.hail input:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px rgba(255, 46, 154, 0.25); }
.hail input:user-invalid { border-color: #ffb547; }
.hail .note { flex-basis: 100%; color: var(--ink-2); font-size: 0.85rem; min-height: 1.4em; }
.hail.sent .note { color: var(--mag-soft); }

/* ---------- hero: a living chart ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; cursor: crosshair; }
.hero canvas.sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.route path { fill: none; }
.route .plan { stroke: var(--mag); stroke-dasharray: 7 6; }
.route .made { stroke: var(--mag); stroke-width: 4; }
.route .plan { stroke-width: 2; opacity: 0.8; }
.wp, .vessel { position: absolute; z-index: -1; pointer-events: none; }
.wp { width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--mag); border-radius: 50%; background: var(--abyss); }
.wp span { position: absolute; left: 20px; top: -6px; white-space: nowrap; color: var(--mag-soft); background: rgba(6, 26, 71, 0.8); padding: 2px 6px; }
.vessel { width: 22px; height: 22px; margin: -11px 0 0 -11px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.probe { position: absolute; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.probe::before { content: ""; position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid var(--foam); border-radius: 50%; }
.probe::after { content: ""; position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: var(--foam); border-radius: 50%; }
.probe span { position: absolute; left: 20px; top: 12px; white-space: nowrap; color: var(--foam); background: rgba(6, 26, 71, 0.85); padding: 3px 7px; }
.hero:hover .probe.on { opacity: 1; }
.probe.flip span { left: auto; right: 20px; }

.hero-grid {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center; gap: clamp(32px, 6vw, 120px);
  padding: calc(var(--frame) + 110px) var(--gut) calc(var(--frame) + 120px);
}
.cartouche {
  position: relative; background: rgba(6, 26, 71, 0.9); padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid rgba(234, 242, 251, 0.55); outline: 1px solid rgba(234, 242, 251, 0.3); outline-offset: 6px;
  max-width: 44rem; cursor: auto;
}
.cartouche h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 450; }
.cartouche h1 em { font-style: normal; color: var(--mag-soft); }
.cartouche .lede { margin: 26px 0 30px; color: var(--ink-2); font-size: 1.12rem; max-width: 34rem; }
.cartouche .row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 4px; }
.edition { font-size: 0.9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }

.inset { background: rgba(6, 26, 71, 0.92); border: 1px solid rgba(234, 242, 251, 0.55); cursor: auto; }
.inset header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.inset header .live { display: flex; gap: 8px; align-items: center; color: var(--mag-soft); }
.inset canvas { width: 100%; height: 110px; border-bottom: 1px solid var(--line); }
.inset .cap { display: flex; justify-content: space-between; padding: 6px 16px 0; color: #8ea6cf; font-size: 0.75rem; }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.readouts div { padding: 14px 16px; }
.readouts div + div { border-left: 1px solid var(--line); }
.readouts dt { color: #8ea6cf; font-size: 0.75rem; }
.readouts dd { margin: 6px 0 0; font: 500 1.15rem var(--display); font-variant-numeric: tabular-nums; }
.log { margin: 0; padding: 14px 16px 16px; list-style: none; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); line-height: 1.8; }
.log li { opacity: 0; transform: translateY(4px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.log li.in { opacity: 1; transform: none; }
.log li:last-child::after { content: ""; display: inline-block; width: 7px; height: 12px; margin-left: 6px; vertical-align: -2px; background: var(--mag); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sectors ---------- */
.sectors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; padding: 30px var(--gut) 66px; border-block: 1px solid var(--line); background: var(--abyss); }
.sectors p { color: var(--ink-2); margin-right: auto; }
.sectors ul { display: flex; flex-wrap: wrap; gap: 10px 38px; list-style: none; margin: 0; padding: 0; font-size: 1.25rem; color: var(--ink); }

/* ---------- sections ---------- */
section.band { padding: clamp(96px, 13vw, 180px) var(--gut); position: relative; }
.land { background: var(--land); color: var(--land-ink); z-index: 1; }
.land::before, .land::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24c40-2 70-12 120-9s60 10 104 4 52-16 96-14 30 9 70 11 74-6 110-3c22 2 30-10 64-13s44 8 90 6 60-4 82 3 40 13 92 9 56-14 110-15 64 4 98 1 28-8 64-10 70 10 118 9 60-8 102-5 44 7 82 2H1440V40z' fill='%23ecdfb4'/%3E%3C/svg%3E") 0 0 / 100% 100%; pointer-events: none; }
.land::before { top: -39px; }
.land::after { bottom: -39px; transform: scale(-1, -1); }
.land ::selection { background: var(--mag-ink); }
.land p, .land .muted { color: var(--land-ink-2); }
.deep { background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300'%3E%3Cg fill='%23eaf2fb' fill-opacity='.16' font-family='Geologica,sans-serif' font-style='italic' font-size='12'%3E%3Ctext x='30' y='40'%3E42%3C/text%3E%3Ctext x='190' y='70'%3E57%3C/text%3E%3Ctext x='330' y='34'%3E61%3C/text%3E%3Ctext x='90' y='160'%3E48%3C/text%3E%3Ctext x='270' y='190'%3E66%3C/text%3E%3Ctext x='380' y='150'%3E70%3C/text%3E%3Ctext x='40' y='270'%3E39%3C/text%3E%3Ctext x='210' y='280'%3E53%3C/text%3E%3C/g%3E%3Cpath d='M-10 120c60-30 120 20 190-6s110-50 180-10 60 30 80 20M-10 230c80-20 140 30 220 0s120-40 220 6' fill='none' stroke='%23eaf2fb' stroke-opacity='.1'/%3E%3C/svg%3E"); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px 80px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.split-head p { max-width: 30rem; font-size: 1.1rem; }

/* chart legend: symbol | name | explanation */
.legend { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--land-ink); }
.legend li {
  display: grid; grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 14rem); gap: 24px 40px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--land-line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.legend li:hover { background: var(--land-2); padding-inline: 18px; }
.legend svg { width: 56px; height: 56px; color: var(--land-ink); }
.legend h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.legend p { max-width: 34rem; }
.legend .tag { color: var(--land-ink-2); text-align: right; font-size: 0.95rem; }
.flare { fill: var(--mag); stroke: none; }

/* ---------- platform: traffic separation scheme ---------- */
.platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.platform .lede { margin: 26px 0 32px; color: var(--ink-2); font-size: 1.1rem; max-width: 34rem; }
.ticks { list-style: none; margin: 0 0 38px; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 16px; height: 16px; margin-top: 5px; color: var(--mag); }
.tss { width: 100%; height: auto; color: var(--ink); }
.tss .box { fill: var(--abyss); stroke: rgba(234, 242, 251, 0.55); }
.tss .core { fill: var(--abyss); stroke: var(--mag); stroke-width: 1.5; }
.tss .zone-sep { fill: rgba(255, 46, 154, 0.16); }
.tss .bound { stroke: rgba(234, 242, 251, 0.45); stroke-dasharray: 2 6; fill: none; }
.tss .chev { fill: none; stroke: var(--mag-soft); stroke-width: 1.5; }
.tss .buoy path, .tss .buoy circle { fill: var(--mag); }
.tss .lane { fill: none; stroke: var(--mag); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.tss text { fill: var(--ink); font-family: var(--display); font-size: 13px; }
.tss .t-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; fill: var(--ink-2); }
.tss .t-mag { fill: var(--mag-soft); }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- approach: the passage plan ---------- */
.passage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); }
.passage .head { position: sticky; top: 120px; align-self: start; }
.passage .head p { margin-top: 24px; max-width: 24rem; font-size: 1.1rem; }
.legs { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; }
.legs svg.track { position: absolute; left: 14px; top: 0; width: 20px; height: 100%; overflow: visible; }
.legs .track line { stroke: var(--mag-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.legs .track .todo { stroke-dasharray: 4 6; opacity: 0.45; }
.legs .boat { position: absolute; left: 13px; top: 0; width: 22px; height: 22px; color: var(--mag-ink); transition: top 0.15s linear; }
.legs li { position: relative; padding: 0 0 clamp(56px, 7vw, 88px); }
.legs li::before { content: ""; position: absolute; left: -47px; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mag-ink); background: var(--land); transition: background 0.3s; }
.legs li.passed::before { background: var(--mag-ink); }
.legs .mono { color: var(--mag-ink); }
.legs h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; font-weight: 500; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.legs h3 .mono { font-weight: 400; }
.legs p { max-width: 36rem; font-size: 1.08rem; }

/* ---------- research: notices ---------- */
.notices-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.notices-head a { color: var(--mag-soft); }
.notices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notices a {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) 160px 32px; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.notices a:hover { padding-inline: 18px; background: rgba(6, 26, 71, 0.5); }
.notices .mono { color: var(--ink-2); }
.notices h3 { font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 450; }
.notices svg { width: 22px; height: 22px; color: var(--mag-soft); transition: transform 0.3s var(--ease); }
.notices a:hover svg { transform: translateX(4px); }

/* ---------- notes page ---------- */
.notes-top { padding-top: calc(var(--frame) + 150px); }
.notes-title { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 450; }
.notes-body { display: grid; gap: clamp(72px, 9vw, 120px); }
.note { max-width: 44rem; scroll-margin-top: 110px; }
.note-meta { display: flex; gap: 18px; align-items: baseline; margin-bottom: 14px; color: var(--mag-ink); }
.note h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 26px; }
.note p + p { margin-top: 1.1em; }
.note p:not(.note-meta) { font-size: 1.12rem; line-height: 1.7; color: var(--land-ink); }
.note .back { display: inline-block; margin-top: 26px; color: var(--mag-ink); font-size: 0.95rem; }

/* ---------- contact: the whole field is the action ---------- */
.contact { background: var(--mag); color: var(--mag-deep); overflow: hidden; }
.contact ::selection { background: var(--abyss); color: #fff; }
.contact .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px 80px; align-items: end; position: relative; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.contact p { margin-top: 22px; font-size: 1.15rem; max-width: 30rem; color: #3a0822; }
.contact .hail input { background: rgba(255, 255, 255, 0.92); color: var(--mag-deep); border-color: transparent; }
.contact .hail input::placeholder { color: #8a4a6b; }
.contact .hail input:focus { border-color: var(--abyss); box-shadow: 0 0 0 3px rgba(6, 26, 71, 0.35); }
.contact .btn { background: var(--abyss); border-color: var(--abyss); }
.contact .btn:hover { background: var(--deep); }
.contact .hail .note, .contact .hail.sent .note { color: #3a0822; }
.contact :focus-visible { outline-color: var(--abyss); }
.rings { position: absolute; right: -10vw; top: 50%; width: min(70vw, 900px); translate: 0 -50%; color: rgba(42, 6, 25, 0.22); pointer-events: none; }
.rings .sweep { transform-origin: 300px 300px; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- footer: the chart's imprint ---------- */
footer { padding: 72px var(--gut) calc(var(--frame) + 36px); background: var(--abyss); color: var(--ink-2); font-size: 0.92rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, auto)); gap: 40px 72px; }
.foot strong { color: var(--ink); letter-spacing: 0.08em; }
.foot p { margin-top: 10px; }
.foot h4 { margin: 0 0 14px; font: 400 0.75rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8ea6cf; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.imprint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: #8ea6cf; }

/* ---------- platform page ---------- */
.water-wrap { background: var(--deep); }
.hero.short { min-height: 0; }
.hero.short .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--frame) + 92px); padding-bottom: 40px; }
.band.console-band { padding-top: 0; background: transparent; margin-top: -1px; }
.console-band .synthetic { margin-bottom: 10px; color: var(--ink-2); }
.hero.short .cartouche { max-width: 58rem; }
.hero.short .cartouche h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.hero.short .cartouche .lede { margin: 18px 0 22px; }
.hero.short .edition { margin-top: 18px; }
.console { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid rgba(234, 242, 251, 0.45); background: var(--abyss); }
.console nav { border-right: 1px solid var(--line); padding: 20px 0; }
.console nav p { padding: 0 20px 14px; color: #8ea6cf; }
.console nav ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.console nav li { padding: 9px 20px; color: var(--ink-2); border-left: 2px solid transparent; }
.console nav li[aria-current] { color: var(--ink); background: var(--deep); border-color: var(--mag); }
.console .main { padding: 24px; min-width: 0; }
.console .bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.console .bar strong { font-weight: 500; font-size: 1.1rem; }
.console .bar .live { display: flex; gap: 8px; align-items: center; color: var(--mag-soft); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats div { border: 1px solid var(--line); padding: 14px 16px; }
.stats dt { color: #8ea6cf; font-size: 0.75rem; }
.stats dd { margin: 8px 0 0; font-size: 1.35rem; font-weight: 500; }
.table-wrap { border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; }
.table-wrap p { color: #8ea6cf; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 400; color: #8ea6cf; font-size: 0.75rem; letter-spacing: 0.06em; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(234, 242, 251, 0.08); color: var(--ink-2); white-space: nowrap; }
td:first-child { color: var(--ink); }
td .pol { color: var(--mag-soft); }

.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; position: relative; color: var(--ink); }
.zone:nth-child(1) { background: #8db3e8; color: var(--abyss); }
.zone:nth-child(2) { background: var(--mid); }
.zone:nth-child(3) { background: var(--abyss); }
.zone .depth { display: flex; justify-content: space-between; opacity: 0.9; font-size: 0.95rem; margin-top: -6px; }
.zone h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 500; }
.zone ul { list-style: none; margin: 8px 0 auto; padding: 16px 0 0; display: grid; gap: 8px; border-top: 1px solid currentColor; }
.zone li { display: flex; gap: 10px; align-items: center; }
.zone li::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex: none; }
.zone .btn { align-self: start; margin-top: 18px; }
.zone:nth-child(1) .btn.ghost { color: var(--abyss); border-color: rgba(6, 26, 71, 0.5); }
.zone:nth-child(1) .btn.ghost:hover { background: rgba(6, 26, 71, 0.08); border-color: var(--abyss); }
.zone:nth-child(2) { outline: 2px solid var(--mag); outline-offset: -2px; }
.zone:nth-child(2) .depth { color: #ffc2e2; opacity: 1; }
.deep .split-head p { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { display: none; }
  .nav .status { margin-left: auto; }
  .hero-grid, .platform, .passage, .contact .inner, .split-head { grid-template-columns: minmax(0, 1fr); }
  .passage .head { position: static; }
  .route, .wp, .vessel { display: none; }
  .legend li { grid-template-columns: 56px minmax(0, 1fr); }
  .legend li p, .legend li .tag { grid-column: 2; text-align: left; }
  .notices a { grid-template-columns: minmax(0, 1fr) 24px; }
  .notices .mono { grid-column: 1; grid-row: 2; }
  .notices .mono + h3 + .mono { grid-row: 3; }
  .notices h3 { grid-column: 1; grid-row: 1; }
  .notices svg { grid-row: 1 / span 3; grid-column: 2; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .zones { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --frame: 6px; }
  .nav { gap: 12px; padding-block: 10px; }
  .nav .status { display: none; }
  .neat b { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-grid { padding-top: calc(var(--frame) + 84px); padding-bottom: 56px; gap: 28px; }
  .cartouche { outline-offset: 4px; }
  .readouts { grid-template-columns: 1fr; }
  .readouts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .console { grid-template-columns: minmax(0, 1fr); }
  .console nav { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .console nav ul { display: flex; flex-wrap: wrap; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; white-space: normal; }
  td::before { content: attr(data-label); color: #8ea6cf; font-size: 0.72rem; }
  .console nav li { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .console nav li[aria-current] { border-color: var(--mag); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legs { padding-left: 48px; }
  .legs svg.track { left: 6px; }
  .legs .boat { left: 5px; }
  .legs li::before { left: -39px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .log li { opacity: 1; transform: none; }
}
