/* SourceLink public site — "Port & manifest". Authority: website/DESIGN.md.
   Layout: alternating full-width bands (night / paper) on one 1240px column. */

@font-face {
  font-family: "League Gothic";
  /* League Gothic instanced at its default width and subset to Latin (fontTools); OFL */
  src: url("assets/fonts/LeagueGothic-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/SchibstedGrotesk-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* white, greys, black and navy. No hue accent: emphasis is navy on light grounds and
     white on dark ones. */
  --night: #0C2340;
  --night-2: #143159;
  --night-3: #081A31;
  --black: #0B0E13;
  --fog: #A9B8C9;
  --paper: #FFFFFF;
  --paper-2: #F2F4F7;
  --paper-3: #F7F8FA;
  --ink: #0B0E13;
  --ink-2: #47525F;
  --rule: #D5DAE1;
  --accent: #0C2340;
  --accent-press: #1B3A66;
  --slate: #6F84A0;
  --mist: #C3CCD7;
  --flap: #12294A;
  --flap-text: #FFFFFF;

  --display: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --band-y: clamp(72px, 10vw, 136px);
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* a white ring vanishes on the light grounds, so focus turns ink there */
.band--paper :focus-visible, .band--paper-2 :focus-visible, .bol :focus-visible, .report :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: #fff; color: var(--night); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- bands ---------- */
.band { padding-block: var(--band-y); position: relative; }
.band--night {
  background:
    repeating-linear-gradient(90deg, rgba(169, 184, 201, 0.035) 0 2px, transparent 2px 18px),
    var(--night);
  color: #E9EEF2;
}
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper-2 { background: var(--paper-2); color: var(--ink); }

.band-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
}
.band-head--split > * { min-width: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
h2.display { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h3.display { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 0.95; }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 62ch; margin: 0; }
.band--night .lede { color: #C9D5DF; }
.band--paper .lede, .band--paper-2 .lede { color: var(--ink-2); }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; font-variant-numeric: tabular-nums; }

/* container plate — ISO 6346 style section mark */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 7px 10px 6px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  width: max-content;
}
.plate b { font-weight: 800; padding-left: 0.6em; border-left: 1.5px solid currentColor; }
.band--night .plate { color: var(--fog); }
.band--paper .plate, .band--paper-2 .plate { color: var(--ink-2); }

.stamp {
  display: inline-block;
  font: 700 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid currentColor;
  padding: 6px 9px 5px;
  transform: rotate(-2deg);
  border-radius: var(--radius);
}
.band--night .stamp { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  padding: 18px 22px 17px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 160ms ease;
}
/* the main action: navy on light grounds, white on navy and black ones */
.btn--signal { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 14, 19, 0.55); }
.btn--signal:hover { background: var(--accent-press); transform: translateY(-1px); }
.site-head .btn--signal, .hero .btn--signal, .band--night .btn--signal { background: #fff; color: var(--night); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.site-head .btn--signal:hover, .hero .btn--signal:hover, .band--night .btn--signal:hover { background: #E3E9F0; }
/* the intake form is a white sheet inside a navy band, so its buttons go navy again */
.band--night .bol .btn--signal { background: var(--accent); color: #fff; }
.band--night .bol .btn--signal:hover { background: var(--accent-press); }
.btn--signal:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn--ghost:hover { background: rgba(169, 184, 201, 0.12); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .arrow { font-family: var(--mono); font-weight: 600; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--fog); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--black);
  color: #E9EEF2;
  border-bottom: 1px solid rgba(169, 184, 201, 0.16);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn) { text-decoration: none; font-size: 0.9375rem; color: #C9D5DF; }
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav .btn { padding: 12px 16px 11px; font-size: 0.9375rem; }
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 360px) {
  .site-head .wrap { gap: 12px; }
  .site-nav .btn { white-space: nowrap; padding: 10px 12px; font-size: 0.875rem; }
}
/* scroll progress drawn as a shipping lane: factory (left) to you (right) */
.route { position: relative; height: 3px; background: rgba(169, 184, 201, 0.14); }
.route-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: #fff; }
.route-pip {
  position: absolute;
  top: -3px;
  left: clamp(7px, calc(var(--p, 0) * 100%), calc(100% - 7px));
  width: 14px;
  height: 9px;
  margin-left: -7px;
  background: #fff;
  border: 1.5px solid var(--black);
  border-radius: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: #F3F6F8;
}
/* the port photograph drifts slowly; scroll adds a little parallax via --shift */
.hero-bg { position: absolute; inset: -6% 0; z-index: -2; transform: translate3d(0, var(--shift, 0px), 0); will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 68% 42%; animation: drift 42s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2.2%, -1.4%, 0); }
}
.hero-inner { transform: translate3d(0, var(--lift, 0px), 0); opacity: var(--fade, 1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 26, 49, 0.92) 0%, rgba(8, 26, 49, 0.74) 38%, rgba(8, 26, 49, 0.18) 72%, rgba(8, 26, 49, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 26, 49, 0.95) 0%, rgba(8, 26, 49, 0) 34%);
}
/* below 980px the copy reaches across the photo, so the scrim must cover the whole frame */
@media (max-width: 980px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 26, 49, 0.86) 0%, rgba(8, 26, 49, 0.78) 55%, rgba(8, 26, 49, 0.95) 100%);
  }
}
/* the larger headline still leaves the ticker on the first screen at 1440x900 */
.hero-inner { padding-block: clamp(48px, 5vw, 72px) clamp(40px, 4.5vw, 60px); display: grid; gap: 24px; justify-items: start; }
/* short laptop screens (1366x768 and the like): tighter rhythm keeps the ticker in view */
@media (min-width: 861px) and (max-height: 820px) {
  .hero-inner { padding-block: 36px 32px; gap: 18px; }
}
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.9375rem; color: #C9D5DF; }
.hero-kicker .plate { color: #C9D5DF; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 9.6vw, 7.5rem);
  /* also capped by height, so the ticker stays on the first screen of a short laptop */
  font-size: min(clamp(3.5rem, 9.6vw, 7.5rem), max(3.5rem, 10.5svh));
  line-height: 0.9;
  letter-spacing: 0.005em;
  max-width: 14ch;
}
/* the one emphasised word sits on a white plate, sized to its own line so it never covers the line above */
.hero h1 em { font-style: normal; display: inline-block; line-height: 0.84; padding: 0.06em 0.08em 0.02em; color: var(--night); background: #fff; }
.hero .lede { color: #DCE4EA; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 6px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.875rem; color: #B9C7D3; list-style: none; padding: 0; margin: 4px 0 0; }
.hero-proof li::before { content: "✓"; color: #fff; font-weight: 800; margin-right: 8px; }

/* manifest ticker */
.ticker {
  position: relative;
  border-top: 1px solid rgba(169, 184, 201, 0.22);
  background: rgba(8, 26, 49, 0.78);
  overflow: hidden;
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid rgba(169, 184, 201, 0.22);
  background: var(--night-3);
  color: #C9D5DF;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.ticker-toggle:hover { color: #fff; }
.ticker-toggle:focus-visible { outline-offset: -5px; }
.ticker-toggle[aria-pressed="true"] { color: var(--night); background: #fff; }
.ticker-toggle[aria-pressed="true"]:focus-visible { outline-color: var(--night); }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 28px 15px;
  border-right: 1px solid rgba(169, 184, 201, 0.18);
  white-space: nowrap;
  font-size: 0.875rem;
  color: #B9C7D3;
}
.ticker strong { font: 600 1rem/1 var(--mono); color: #fff; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- markup chain ---------- */
.chain-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.chain-copy { display: grid; gap: 22px; }
.chain-copy .lede { max-width: 48ch; }
.chain-figure { display: grid; gap: 18px; }
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  /* row 1 holds the bars, rows 2-3 the labels: every bar sits on the same baseline */
  grid-template-rows: minmax(260px, 1fr) auto auto;
  column-gap: clamp(8px, 1.4vw, 18px);
  position: relative;
}
.chain li {
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  min-width: 0;
}
.chain .stack { align-self: end; display: flex; flex-direction: column-reverse; gap: 3px; border-bottom: 2px solid var(--ink); padding-bottom: 0; }
.chain .stop, .chain .adds { overflow-wrap: break-word; }
.chain .seg {
  height: calc(var(--h) * 1px);
  background: var(--slate);
  border-radius: 1px;
  transition: transform 700ms cubic-bezier(.16, 1, .3, 1), opacity 500ms ease;
  transform-origin: bottom;
}
.chain .seg--base { background: var(--accent); }
.chain .seg--add { background: repeating-linear-gradient(135deg, var(--slate) 0 6px, #8A9BB2 6px 12px); }
.chain .stop { font: 700 0.8125rem/1.25 var(--body); }
.chain .adds { font: 500 0.75rem/1.35 var(--mono); color: var(--ink-2); min-height: 2.7em; }
.chain li:first-child .stop { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* only the bars dim while the chain builds; the labels always stay readable */
.chain-js .chain li .stack { opacity: 0.32; transition: opacity 400ms ease; }
.chain-js .chain li.is-on .stack { opacity: 1; }
.chain-note { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; font-size: 0.875rem; color: var(--ink-2); }
.chain-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
}
.chain-callout .mono { font-size: 1.25rem; }

/* ---------- split-flap boards ---------- */
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.board {
  background: var(--night-3);
  border: 1px solid rgba(169, 184, 201, 0.2);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.board-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(169, 184, 201, 0.18);
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.board-title span:last-child { color: var(--fog); font-weight: 500; letter-spacing: 0.08em; }
/* one shared value column per board, so every label starts on the same line */
.board ol { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; }
/* wide screens: two columns of rows, each with its own shared value column */
@media (min-width: 861px) {
  .board ol { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
  .board li { grid-column: span 2; }
  .board li:nth-child(-n+3) { grid-column: 1 / span 2; }
  .board li:nth-child(n+4) { grid-column: 3 / span 2; border-left: 1px solid rgba(169, 184, 201, 0.14); }
  .board li:nth-child(3), .board li:last-child { border-bottom: 0; }
}
.board li {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px dashed rgba(169, 184, 201, 0.14);
}
.board li:last-child { border-bottom: 0; }
.board .what { font-size: 0.9375rem; color: #D4DEE6; line-height: 1.35; }
.board .what small { display: block; font: 500 0.6875rem/1.4 var(--mono); color: var(--fog); letter-spacing: 0.04em; margin-top: 3px; }

.flap {
  display: inline-flex;
  gap: 3px;
  font: 700 clamp(1.5rem, 2.6vw, 2.125rem)/1 var(--mono);
  color: var(--flap-text);
  font-variant-numeric: tabular-nums;
}
.flap > i {
  font-style: normal;
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 1.05em;
  padding: 0.18em 0.08em 0.14em;
  background: linear-gradient(180deg, #1A3450 0%, var(--flap) 49.5%, #0C1D2E 50.5%, #11263A 100%);
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 2px 0 rgba(0, 0, 0, 0.35);
}
.flap > i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.7); }
.flap > i.punct { min-width: 0.55em; background: none; box-shadow: none; }
.flap > i.punct::after { display: none; }
.flap > i.is-flipping { animation: flip 90ms linear; }
@keyframes flip { 50% { transform: scaleY(0.35); filter: brightness(1.4); } }

.board-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.875rem; color: var(--fog); }
.board-foot strong { color: #E9EEF2; font-weight: 600; }
.outreach-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; font: 500 0.8125rem/1.5 var(--mono); color: var(--fog); }
.outreach-line .label { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.outreach-line b { color: #E9EEF2; font-weight: 700; }

/* ---------- team stages ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 56px); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.stage:nth-child(even) .stage-media { order: -1; }
.stage-copy { display: grid; gap: 16px; min-width: 0; }
.stage-step { display: flex; align-items: baseline; gap: 14px; }
.stage-step .mono { font-size: 0.8125rem; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.stage h3.display { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
.stage p { color: var(--ink-2); max-width: 52ch; }
.stage-media { margin: 0; position: relative; min-width: 0; }
.stage-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; box-shadow: 0 24px 48px -28px rgba(11, 14, 19, 0.55); }
/* reveal: only elements below the fold at load get the pre-state, and it stays readable */
.stage-media.pre img { clip-path: inset(0 0 22% 0 round 3px); transform: scale(1.07); }
.stage-media img { transition: clip-path 1100ms cubic-bezier(.16, 1, .3, 1), transform 1400ms cubic-bezier(.16, 1, .3, 1); }
.cat.pre { transform: translate3d(0, 28px, 0); }
.cat { transition: transform 900ms cubic-bezier(.16, 1, .3, 1); transition-delay: var(--stagger, 0ms); }
.stage-media figcaption { margin-top: 10px; font: 500 0.6875rem/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0.04em; }

/* ---------- coverage console ---------- */
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  border: 1px solid rgba(169, 184, 201, 0.22);
  border-radius: 4px;
  background: var(--night-3);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.console-map { position: relative; padding: 18px; min-width: 0; border-right: 1px solid rgba(169, 184, 201, 0.18); display: flex; flex-direction: column; justify-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font: 600 0.8125rem/1 var(--body);
  padding: 10px 14px 9px;
  border-radius: var(--radius);
  border: 1px solid rgba(169, 184, 201, 0.35);
  background: transparent;
  color: #C9D5DF;
  cursor: pointer;
}
.chip:hover { border-color: #E9EEF2; color: #fff; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--night); }
.chip .mono { font-size: 0.75rem; opacity: 0.8; margin-left: 4px; }

.map-svg { width: 100%; height: auto; touch-action: manipulation; }
.map-svg .graticule { fill: none; stroke: rgba(169, 184, 201, 0.08); stroke-width: 0.5; }
.map-svg .outline { fill: #0E2747; stroke: rgba(169, 184, 201, 0.25); stroke-width: 0.6; }
.map-svg .land { stroke: var(--night-3); stroke-width: 0.35; fill-rule: evenodd; cursor: pointer; transition: fill 380ms ease, opacity 380ms ease; }
.map-svg .land:hover, .map-svg .land.is-active { stroke: #fff; stroke-width: 0.9; }
.map-svg .land.is-dim { opacity: 0.28; }
.map-svg .dot { cursor: pointer; transition: opacity 380ms ease; }
.map-svg .dot.is-dim { opacity: 0.25; }
.map-svg .origin { fill: #fff; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.map-svg .lane { fill: none; stroke: #fff; stroke-width: 0.9; stroke-linecap: round; opacity: 0.7; stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.map-svg.lanes-pending .lane { stroke-dashoffset: var(--len); }
.map-svg.is-drawing .lane { animation: lane 2.4s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--delay); }
@keyframes lane { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.map-svg .port { fill: var(--night); stroke: #fff; stroke-width: 1.4; }
.map-svg .port-ping { fill: none; stroke: #fff; stroke-width: 0.8; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
.map-svg .vessel { transition: opacity 600ms ease; }
.map-svg .vessel.is-waiting { opacity: 0; }
.map-svg .ship { fill: #fff; stroke: var(--night-3); stroke-width: 0.8; }
.map-svg .ship-wake { fill: var(--fog); opacity: 0.55; }
.map-svg .port-label { font: 700 11px var(--mono); fill: #fff; letter-spacing: 0.06em; paint-order: stroke; stroke: var(--night-3); stroke-width: 3px; stroke-linejoin: round; }
.map-offline { display: none; margin: 0; padding: 40px 8px; font-size: 1rem; color: #D4DEE6; }
.console.is-offline .map-offline { display: block; }
.console.is-offline .chips, .console.is-offline .map-svg, .console.is-offline .map-legend,
.console.is-offline .side-list { display: none; }
html:not(.js) .console .chips, html:not(.js) .console .map-svg, html:not(.js) .console .map-legend,
html:not(.js) .console .side-list { display: none; }
html:not(.js) .map-offline { display: block; }

.map-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 180px;
  max-width: 260px;
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: 10px 12px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.map-tip strong { display: block; font-size: 0.9375rem; }
.map-tip .mono { font-weight: 700; color: var(--accent); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font: 500 0.75rem/1.4 var(--mono); color: var(--fog); }
.ramp { display: inline-block; width: 140px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #1E3A60, #46688F, #96AEC9, #FFFFFF); }
.legend-lane { display: inline-block; width: 22px; height: 2px; background: #fff; margin-right: 8px; vertical-align: 3px; }

.console-side { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.readout { padding: 20px 20px 18px; border-bottom: 1px solid rgba(169, 184, 201, 0.18); display: grid; gap: 8px; min-height: 190px; align-content: start; }
.readout .label { font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }
.readout h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.25rem; line-height: 0.95; }
.readout .big { font: 700 1.75rem/1 var(--mono); color: #fff; }
.readout p { font-size: 0.875rem; color: #C9D5DF; }
.readout ul { margin: 2px 0 0; padding-left: 18px; font-size: 0.8125rem; color: #C9D5DF; }
.head-stack { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.pick { display: grid; gap: 6px; padding: 16px 20px 8px; }
.pick label { font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }
.pick select {
  width: 100%;
  background: var(--night-2);
  color: #E9EEF2;
  border: 1px solid rgba(169, 184, 201, 0.35);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color-scheme: dark;
}
.leaders { list-style: none; margin: 0; padding: 4px 0 10px; counter-reset: lead; }
.leaders button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 20px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: #D4DEE6;
  font-size: 0.875rem;
}
.leaders button:hover, .leaders button[aria-current="true"] { background: rgba(255, 255, 255, 0.09); color: #fff; }
.leaders button[aria-current="true"] { box-shadow: inset 3px 0 0 #fff; }
.leaders .rank { font: 600 0.75rem/1 var(--mono); color: var(--fog); }
.leaders .n { font: 600 0.8125rem/1 var(--mono); color: #fff; }
.coverage-foot { margin-top: 18px; font-size: 0.8125rem; color: var(--fog); max-width: 90ch; }

/* ---------- delivered cost stack ---------- */
.delivered-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.delivered-copy { display: grid; gap: 20px; }
.hidden-costs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.hidden-costs li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.hidden-costs li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; background: var(--slate); border-radius: 1px; }
.hidden-costs li:nth-child(1)::before { background: var(--accent); }
.hidden-costs li:nth-child(2)::before { background: var(--slate); }
.hidden-costs li:nth-child(3)::before { background: repeating-linear-gradient(135deg, var(--ink) 0 4px, var(--ink-2) 4px 7px); }
.hidden-costs li:nth-child(4)::before { background: var(--mist); box-shadow: inset 0 0 0 1px var(--slate); }
.hidden-costs b { color: var(--ink); }

.costbox {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 24px 48px -32px rgba(11, 14, 19, 0.45);
  display: grid;
  gap: 22px;
  min-width: 0;
}
.costbox-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.toggle { display: inline-flex; border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 3px; }
.toggle button { border: 0; background: none; padding: 10px 16px 9px; border-radius: var(--radius); font: 600 0.875rem/1 var(--body); cursor: pointer; color: var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.cost-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: end; min-height: 300px; border-bottom: 2px solid var(--ink); padding-inline: clamp(8px, 3vw, 40px); }
.cost-col { display: grid; gap: 10px; align-content: end; }
.cost-total { font: 700 1.5rem/1 var(--mono); }
.cost-total small { display: block; font: 500 0.75rem/1.3 var(--mono); color: var(--ink-2); margin-top: 4px; }
.cost-col.is-best .cost-total { color: var(--accent); }
.cost-total::before { content: ""; display: block; height: 17px; margin-bottom: 8px; }
.cost-col.is-best .cost-total::before { content: "Lowest"; display: block; width: max-content; margin-bottom: 8px; padding: 4px 6px 3px; font: 700 0.625rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: var(--radius); }
.cost-stack { display: flex; flex-direction: column-reverse; gap: 2px; }
.cost-stack span {
  display: block;
  height: calc(var(--v) * 10px);
  border-radius: 1px;
  transform-origin: bottom;
  transition: transform 650ms cubic-bezier(.16, 1, .3, 1), opacity 400ms ease;
}
.cost-stack .c-factory { background: var(--accent); }
.cost-stack .c-freight { background: var(--slate); }
.cost-stack .c-duty { background: repeating-linear-gradient(135deg, var(--ink) 0 4px, var(--ink-2) 4px 7px); }
.cost-stack .c-fees { background: var(--mist); box-shadow: inset 0 0 0 1px var(--slate); }
/* animated on transform only: the add-ons fold onto the factory bar and the total drops with them
   (--adds is each column's freight + duty + fees, in the same 10px-per-dollar scale) */
.cost-total { transition: transform 650ms cubic-bezier(.16, 1, .3, 1); }
.costbox[data-view="factory"] .cost-stack span:not(.c-factory) { transform: scaleY(0); opacity: 0; }
.costbox[data-view="factory"] .cost-total { transform: translateY(calc(var(--adds) * 10px + 6px)); }
.cost-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); padding-inline: clamp(8px, 3vw, 40px); font: 600 0.875rem/1.3 var(--body); }
.cost-names small { display: block; font: 500 0.75rem/1.3 var(--mono); color: var(--ink-2); }
/* room for the longer of the two verdicts, so the box never changes height when they swap */
.cost-verdict { font-size: 1rem; min-height: 3.2em; }
@media (max-width: 620px) { .cost-verdict { min-height: 4.8em; } }
@media (max-width: 360px) { .cost-verdict { min-height: 6.4em; } }
.cost-verdict b { color: var(--accent); }

/* ---------- sample report ---------- */
.report-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.report {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  min-width: 0;
}
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.report-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; }
.report-head dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 14px; font: 500 0.75rem/1.35 var(--mono); color: var(--ink-2); }
.report-head dt { color: var(--ink); font-weight: 700; }
.report-head dd { margin: 0; }
.report .stamp { color: var(--accent); margin-bottom: 14px; transform: rotate(-1.5deg); }
.report-scroll { overflow-x: auto; margin-top: 8px; }
.scroll-hint { display: none; margin: 10px 0 0; font: 600 0.75rem/1.3 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.report table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.875rem; }
.report th, .report td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.report thead th { font: 700 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.report thead th.is-best { color: var(--accent); }
.report tbody th { font-weight: 600; white-space: nowrap; }
.report td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.report thead th.num { text-align: right; }
.report tr.total th, .report tr.total td { font-weight: 800; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.report td.is-best { background: rgba(12, 35, 64, 0.07); }
.report tr.total td.is-best { background: var(--accent); color: #fff; }
.report tr[data-note] { transition: background-color 200ms ease; }
.report tr.is-lit { background: rgba(12, 35, 64, 0.06); }
.report-verdict { margin-top: 18px; display: grid; gap: 6px; padding: 14px 16px; background: var(--paper-2); border-radius: 2px; font-size: 0.9375rem; }
.report-verdict strong { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: note; }
.notes li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 184, 201, 0.25);
  border-radius: 3px;
  font-size: 0.875rem;
  color: #D4DEE6;
  cursor: default;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.notes li::before { content: counter(note); font: 700 0.75rem/1.6 var(--mono); color: var(--night); background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.notes li:hover, .notes li:focus-within, .notes li.is-lit { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.notes li b { color: #fff; }
.note-ref { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 0.625rem/1 var(--mono); vertical-align: 1px; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.cat { position: relative; margin: 0; border-radius: 3px; overflow: hidden; background: var(--night); color: #fff; min-height: 260px; display: flex; align-items: flex-end; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.16, 1, .3, 1); }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 26, 49, 0.92) 0%, rgba(8, 26, 49, 0.25) 46%, rgba(8, 26, 49, 0) 70%); }
.cat figcaption { position: relative; z-index: 1; padding: 18px; display: grid; gap: 4px; }
.cat figcaption strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.875rem; line-height: 0.95; }
.cat figcaption span { font-size: 0.8125rem; color: #D4DEE6; }
.cat:nth-child(1) { grid-column: span 3; grid-row: span 2; min-height: 540px; }
.cat:nth-child(2), .cat:nth-child(3) { grid-column: span 3; }
.cat:nth-child(4), .cat:nth-child(5) { grid-column: span 3; }
.fit { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 2px solid var(--ink); }
.fit h3.display { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.fit li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.fit li > span { min-width: 0; }
.fit li::before { content: "✓"; font-weight: 800; color: var(--accent); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.price {
  border: 1.5px solid rgba(169, 184, 201, 0.35);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 16px;
  align-content: start;
  background: var(--night-3);
}
.price--signal { border-color: #fff; background: var(--night-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.price .plate { color: var(--fog); }
.price h3 { font-size: 1.125rem; font-weight: 700; }
.price .amount { font-family: var(--display); font-size: clamp(3.75rem, 7vw, 5.5rem); line-height: 0.9; text-transform: uppercase; }
.price--signal .amount { color: #fff; }
.price p { color: #C9D5DF; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; color: #D4DEE6; }
.price li::before { content: "—"; color: var(--fog); margin-right: 10px; }
.guarantee { margin-top: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 22px 26px; border: 1px dashed rgba(169, 184, 201, 0.4); border-radius: 4px; }
.guarantee p { font-size: 1.0625rem; color: #E9EEF2; max-width: 60ch; }

/* ---------- comparison ---------- */
.compare-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 16px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font: 700 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.compare thead th.us { color: #fff; background: var(--accent); }
.compare tbody th { font-weight: 700; width: 20%; }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); font-weight: 600; background: rgba(12, 35, 64, 0.06); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.375rem/1 var(--mono); color: var(--accent); text-align: center; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 68ch; }

/* ---------- manifest form ---------- */
.manifest-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.manifest-intro { display: grid; gap: 20px; position: sticky; top: 96px; }
.manifest-intro .address { font: 600 1rem/1.4 var(--mono); color: #fff; user-select: all; }
.steps-promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-promise li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; color: #C9D5DF; font-size: 0.9375rem; }
.steps-promise .mono { color: #fff; font-weight: 700; }

.bol {
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85);
  min-width: 0;
}
.bol-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 18px 22px; border-bottom: 2px solid var(--ink); }
.bol-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.875rem; line-height: 1; }
.bol-tabs { display: flex; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.bol-tabs li { flex: 1; padding: 12px 14px; font: 600 0.75rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--ink); }
.bol-tabs li:last-child { border-right: 0; }
.bol-tabs li[aria-current="step"] { background: var(--accent); color: #fff; }
.bol-tabs li.is-done { color: var(--accent); }
.bol fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bol legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.box { display: grid; gap: 6px; padding: 14px 16px 16px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); min-width: 0; }
.box:nth-child(even of .box) { border-right: 0; }
.box--full { grid-column: 1 / -1; border-right: 0; }
.box label { display: flex; gap: 8px; align-items: baseline; font: 700 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.box label .n { color: var(--accent); }
.box label .opt { font-weight: 500; text-transform: none; letter-spacing: 0; }
.box input, .box select, .box textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid #7A8690;
  background: transparent;
  padding: 8px 0 7px;
  font-size: 1rem;
  border-radius: 0;
  min-width: 0;
}
.box textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.box input:focus, .box select:focus, .box textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 0 var(--accent); }
.box input:focus-visible, .box select:focus-visible, .box textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.box ::placeholder { color: #5C6873; opacity: 1; }
.bol-nojs { margin: 0; padding: 16px 22px; font-size: 0.9375rem; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
html:not(.js) .bol-actions { display: none; }
html.js .bol-nojs { display: none; }
html:not(.js) .js-only { display: none; }
.box .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.box .hint { font-size: 0.75rem; color: var(--ink-2); }
.box .err { font-size: 0.8125rem; color: #A3231A; font-weight: 600; }
.box.has-error input, .box.has-error textarea, .box.has-error select { border-bottom-color: #A3231A; }
.bol-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
.bol-actions .btn--ghost { color: var(--ink); }
.bol-actions #bol-next { margin-left: auto; }
.bol-actions .btn--ghost:hover { background: var(--paper-2); }
.bol-out { padding: 18px 22px 24px; display: grid; gap: 14px; border-top: 2px solid var(--ink); }
.bol-out h4 { margin: 0; font: 700 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.bol-out pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 0.8125rem/1.55 var(--mono); background: var(--paper-2); padding: 14px 16px; border-radius: 2px; max-height: 320px; overflow: auto; }
.bol-out .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bol-out .status { font-size: 0.875rem; font-weight: 600; color: var(--accent); min-height: 1.4em; }
.bol-out .btn--ghost { color: var(--ink); }
.bol-out p { font-size: 0.875rem; color: var(--ink-2); }
.bol-out .address { font-family: var(--mono); font-weight: 700; color: var(--ink); user-select: all; }

/* ---------- privacy page ---------- */
.prose { display: grid; gap: 18px; max-width: 760px; margin-inline: auto; }
.prose h1.display { font-size: clamp(3rem, 7vw, 5rem); }
.prose h2 { margin-top: 18px; font-size: 1.25rem; }
.prose p { color: var(--ink-2); max-width: 68ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--black); color: #C9D5DF; padding-block: 64px 40px; font-size: 0.875rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 32px; }
.foot-grid h2 { margin: 0 0 12px; font: 700 0.6875rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand { display: grid; gap: 14px; }
.foot-brand .address { font-family: var(--mono); color: #fff; user-select: all; }
.sources { margin-top: 40px; border-top: 1px solid rgba(169, 184, 201, 0.18); padding-top: 20px; }
.sources summary { cursor: pointer; font-weight: 600; color: #E9EEF2; }
.sources ul { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.8125rem; color: var(--fog); max-width: 110ch; }
.legal { margin-top: 28px; font-size: 0.8125rem; color: var(--fog); max-width: 110ch; display: grid; gap: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  /* the five-column chart needs the full width to keep its labels whole */
  .chain-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .console-map { border-right: 0; border-bottom: 1px solid rgba(169, 184, 201, 0.18); }
  .console-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .readout { border-bottom: 0; border-right: 1px solid rgba(169, 184, 201, 0.18); }
  .report-wrap { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .band-head--split, .chain-grid, .delivered-grid, .faq-grid, .manifest-grid, .fit, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .boards, .pricing { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage:nth-child(even) .stage-media { order: 0; }
  .manifest-intro { position: static; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat:nth-child(n) { grid-column: span 1; grid-row: auto; min-height: 240px; }
  .cat:nth-child(1) { grid-column: 1 / -1; min-height: 320px; }
  .fit ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .console-side { grid-template-columns: minmax(0, 1fr); }
  .readout { border-right: 0; border-bottom: 1px solid rgba(169, 184, 201, 0.18); min-height: 0; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .board ol { grid-template-columns: minmax(0, 1fr); }
  .board li { row-gap: 8px; }
  .bol fieldset { grid-template-columns: minmax(0, 1fr); }
  .box { border-right: 0; }
  .bol-tabs li { padding: 10px 8px; font-size: 0.625rem; }
  /* the markup chain turns into horizontal bars so every label gets its own line */
  .chain { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 12px; }
  .chain li {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 6.4rem minmax(0, 1fr);
    grid-template-areas: "stop stack" "adds stack";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }
  .chain .stop { grid-area: stop; align-self: end; }
  .chain .adds { grid-area: adds; align-self: start; min-height: 0; font-size: 0.6875rem; }
  .chain .stack { grid-area: stack; flex-direction: row; border-bottom: 0; border-left: 2px solid var(--ink); align-self: center; }
  .chain .seg { flex: none; height: 22px; width: calc(var(--h) / 255 * 100% - 3px); }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cost-total { font-size: 1.125rem; }
  .report th, .report td { padding: 9px 7px; }
  .report table { min-width: 540px; }
  /* the map shows the Atlantic-to-Asia band at phone width; the port label would be unreadable */
  .map-svg .port-label { display: none; }
  .console-map { padding: 14px 12px; }
  .map-legend { gap: 6px 14px; font-size: 0.6875rem; }
  .ramp { width: 96px; }
}
/* the tables scroll sideways below 820px: keep the row names and the corner cell pinned */
.scroll-hint.is-needed { display: block; }
@media (max-width: 820px) {
  html:not(.js) .scroll-hint { display: block; }
  .report tbody th, .compare tbody th,
  .report thead th:first-child, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; }
  .report thead th:first-child, .compare thead th:first-child { z-index: 2; }
  .report tbody th, .report thead th:first-child { background: #fff; }
  .report tbody th { white-space: normal; min-width: 6.25rem; max-width: 7rem; }
  .compare tbody th, .compare thead th:first-child { background: var(--paper); }
  .compare tbody th { min-width: 8.5rem; }
}
@media (max-width: 360px) {
  /* narrower pinned column and wrapping cells, so Option B starts on screen */
  .report table { min-width: 470px; }
  .report td.num { white-space: normal; }
  .report tbody th { min-width: 5.25rem; max-width: 5.75rem; font-size: 0.8125rem; }
  .compare tbody th { min-width: 6.75rem; }
  .compare th, .compare td { padding: 14px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { transform: none; }
  .hero-bg img { animation: none; transform: scale(1.03); }
  .hero-inner { transform: none; opacity: 1; }
  .map-svg .port-ping { animation: none; opacity: 0; }
  .ticker-track { animation: none; width: auto; display: block; }
  .ticker ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
  .ticker li { border-right: 0; padding-block: 12px 11px; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker-toggle { display: none; }
  .map-svg.is-drawing .lane { animation: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
