/* SHIPdock: a monochrome operations display.
   Near-black ground, white ink at stepped opacities, hairlines and corner
   brackets as the only framing. Mona Sans carries prose and display;
   JetBrains Mono carries telemetry, codes and measured numbers. */

:root {
  --bg: #050606;
  --bg-1: #0a0b0c;
  --bg-2: #101213;
  --fg: #e9eaea;
  --fg-2: #a7aaac;
  --fg-3: #7a7e81;
  --line: rgba(233, 234, 234, 0.12);
  --line-2: rgba(233, 234, 234, 0.24);
  --line-3: rgba(233, 234, 234, 0.5);

  --paper: #e6e7e7;
  --ink: #070809;
  --ink-2: #3d4245;
  --ink-line: rgba(7, 8, 9, 0.16);

  --alert: #ffb547;
  /* gain: money earned or saved, and nothing else (user decision, 2026-10-07) */
  --gain: #4fe08f;
  --gain-dim: rgba(79, 224, 143, 0.14);

  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  --section-y: clamp(96px, 11vw, 176px);
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--line-3) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--fg); color: var(--bg); }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 560; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
abbr[title] { text-decoration: none; cursor: help; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px;
  background: var(--fg); color: var(--bg);
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* telemetry lettering: IDs, units, statuses, formulas, codes, citations */
.mono,
.g-num, .gantt-scale, .g-lock span,
.lock-state,
.hazard-abbr span,
.ro-label, .formula,
.level dt,
.spec-rows dt,
.plan-table thead th, .leg-time,
.measured figcaption, .trust-stat figcaption, .roles-stat figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
}

.section-head { max-width: 760px; }
.lead {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 38em;
}

/* corner brackets: the only frame this world uses */
.brackets {
  --bk: rgba(233, 234, 234, 0.6);
  --bl: 14px;
  background-image:
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk));
  background-repeat: no-repeat;
  background-size: var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.panel { background-color: var(--bg-1); border: 1px solid var(--line); }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.btn .i { width: 17px; height: 17px; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { cursor: progress; opacity: 0.7; }
.btn[disabled]:hover .i { transform: none; }

.text-link {
  font-weight: 540;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--fg); }

/* ---------- nav: the passage plan ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand-mark { width: 18px; height: 18px; }
.brand-word { font-size: 19px; font-weight: 400; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1; }
.brand-word b { font-weight: 700; letter-spacing: 0.01em; }

.plan { position: relative; justify-self: center; width: min(520px, 100%); height: 100%; }
.plan-list { display: flex; justify-content: space-between; height: 100%; margin: 0; padding: 0; list-style: none; }
.plan-list li { display: flex; }
.plan-list a {
  display: flex;
  align-items: flex-start;
  padding: 14px 4px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.plan-list a:hover { color: var(--fg); }
.plan-list a[aria-current] { color: var(--fg); }

.plan-track { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26px; overflow: visible; pointer-events: none; }
.track-planned { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.35; }
.track-made { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.track-wp { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1; transition: fill 0.3s ease; }
.track-wp.is-passed { fill: var(--fg); stroke: var(--fg); }
.track-ship-ring { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.track-ship-dot { fill: var(--fg); }
.track-ship-head { stroke: var(--fg); stroke-width: 1.5; }

.nav-cta { height: 38px; padding: 0 14px; font-size: 14px; }
.nav-cta-short { display: none; }

/* ---------- hero: the crossing ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(110% 90% at 66% 46%, #0d0e0f 0%, #040404 72%);
}
.hero-gl,
.hero-hud { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-hud { pointer-events: none; }
.hero.no-webgl {
  background-image: radial-gradient(rgba(233, 234, 234, 0.22) 1px, transparent 1.3px);
  background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: var(--nav-h); pointer-events: none; }
.hero-content { max-width: 620px; pointer-events: auto; }

.display {
  font-size: clamp(2.375rem, 4.4vw, 4.25rem);
  font-weight: 480;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero-sub { margin-top: 30px; max-width: 31em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 42px; }
.hero-facts,
.start-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 52px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--fg-3); }
.loop-note,
.conn-map figcaption,
.foot-margin { font-size: 14px; }
.hero-facts li,
.start-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before,
.start-facts li::before { content: ""; width: 5px; height: 5px; background: currentColor; }

/* limited intake: a 5-place gauge, a count and a status tag on one line */
.intake-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.intake-ring { width: 26px; height: 26px; flex: none; color: var(--fg); }
.intake-count b { margin-right: 6px; font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--fg); }
.intake-state {
  flex: none;
  padding: 4px 8px 3px;
  border: 1px solid var(--line-2);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.intake-note + .hero-facts { margin-top: 34px; }

/* ---------- problem: unsurveyed water ---------- */

.problem { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--bg); border-top: 1px solid var(--line); }
.chart-layer { position: absolute; inset: 0; pointer-events: none; }
.chart-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-gl { background: var(--bg); }
.problem-inner { position: relative; z-index: 2; }

.problem-head { max-width: 620px; padding: clamp(24px, 3vw, 40px); }
.problem-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.problem-head p { margin-top: 20px; color: var(--fg-2); }

.hazards { list-style: none; margin: 0; padding: 0; }
.hazard { display: flex; align-items: flex-start; gap: 10px; }
.hazard-mark { width: 40px; height: 40px; flex: none; margin-top: -8px; color: var(--fg-2); }
.hazard-note { max-width: 330px; padding: 13px 16px 15px; font-size: 15.5px; line-height: 1.45; }
.hazard-wide .hazard-note { max-width: 420px; }
.hazard-abbr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.hazard-abbr abbr,
.hazard-word { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg); }
.hazard-abbr span:not(.hazard-word) { color: var(--fg-3); }

.measured { max-width: 440px; margin: 40px 0 0; padding: 18px 20px; }
.measured-figure { color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
.measured-num { display: block; margin-bottom: 4px; font-size: 2.5rem; font-weight: 480; letter-spacing: -0.04em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.measured figcaption,
.trust-stat figcaption,
.roles-stat figcaption { margin-top: 12px; }
/* citations and captions are sentences: keep them in sentence case */
.measured figcaption,
.trust-stat figcaption,
.roles-stat figcaption,
.conn-map figcaption,
.foot-margin { text-transform: none; letter-spacing: 0.01em; }
.measured figcaption a,
.roles-stat figcaption a { color: var(--fg-3); text-decoration-color: var(--line-2); }
.measured figcaption a:hover,
.roles-stat figcaption a:hover { color: var(--fg); }

.legend-note { width: fit-content; margin-top: 28px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--fg-3); max-width: 560px; text-transform: none; letter-spacing: 0.02em; }

@media (min-width: 1100px) {
  .problem-inner { min-height: 1020px; }
  .hazards { position: absolute; inset: 0; }
  .hazard { position: absolute; }
  .hazard[data-side="left"] { left: var(--x); top: var(--y); }
  .hazard[data-side="right"] { right: var(--x); top: var(--y); }
  .measured { position: absolute; left: 0; top: 77%; margin: 0; }
  .legend-note { position: absolute; left: 0; bottom: 0; margin: 0; }
}
@media (max-width: 1099px) {
  .hazards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 40px; }
  .hazard-note,
  .hazard-wide .hazard-note { flex: 1; max-width: none; }
}

.js .hazard { transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hazard.is-submerged { opacity: 0.3; filter: blur(2px); transform: translateY(6px); }

/* ---------- method ---------- */

.method { padding: var(--section-y) 0; background: var(--bg); border-top: 1px solid var(--line); }
.method-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.pilot-note { margin-top: 26px; max-width: 34em; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--fg-3); }

.pilot-figure { margin: 0; }
.pilot-figure svg { width: 100%; height: auto; overflow: visible; }
.fig-grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.fig-ship path { fill: var(--bg); stroke: var(--fg); stroke-width: 1.2; }
.fig-ship .fig-deck { fill: none; stroke: var(--line-3); stroke-width: 1; }
.fig-ship .fig-center { stroke: var(--fg-3); stroke-dasharray: 6 6; }
.fig-course path { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 5 5; }
.fig-course text,
.fig-labels text { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; fill: var(--fg-3); }
.fig-launch path { fill: var(--bg); stroke: var(--fg); stroke-width: 1.4; }
.fig-launch .fig-ladder { stroke-dasharray: 2 3; }
.fig-bracket path { fill: none; stroke: var(--fg-2); stroke-width: 1; }
.fig-labels .fig-label-pilot { fill: var(--fg); }

.plan-table { width: 100%; margin-top: clamp(56px, 6vw, 88px); border-collapse: collapse; }
.plan-table thead th { padding: 0 18px 14px; text-align: left; color: var(--fg-3); border-bottom: 1px solid var(--line-2); }
.plan-table .col-wp { width: 64px; padding-left: 0; }
.plan-table .col-leg { width: 22%; }
.plan-table .col-time { width: 12%; }
.plan-table tbody td,
.plan-table tbody th { padding: 32px 18px 40px; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--line); }
.plan-table tbody td p { max-width: 36ch; color: var(--fg-2); }
.plan-table .leg-wp { position: relative; padding-left: 0; }
.leg-time { color: var(--fg); padding-top: 38px !important; }

.wp {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--fg-2);
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.leg.is-passed .wp { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.leg:not(:last-child) .leg-wp::before,
.leg:not(:last-child) .leg-wp::after { content: ""; position: absolute; left: 15px; top: 64px; bottom: -32px; width: 1px; }
.leg:not(:last-child) .leg-wp::before { background-image: linear-gradient(var(--fg-3) 50%, transparent 0); background-size: 1px 6px; }
.leg:not(:last-child) .leg-wp::after { background: var(--fg); transform: scaleY(var(--p, 0)); transform-origin: top; }
.leg-name h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; }
.leg-motto { margin-top: 8px; color: var(--fg-3); font-size: 15.5px; }
.loop-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--fg-3); }
.loop-note svg { width: 16px; height: 16px; }

/* ownership: what we build stays on your side */
.own { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 80px); margin-top: clamp(48px, 5vw, 72px); padding: clamp(22px, 3vw, 40px); }
.own-title { max-width: 11em; font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.own-body > p { max-width: 36em; color: var(--fg-2); }
.own-rows { margin: 24px 0 0; }
.own-rows > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.own-rows dt { padding-top: 3px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; line-height: 1.45; text-transform: uppercase; color: var(--fg-3); }
.own-rows dd { margin: 0; color: var(--fg); }
@media (max-width: 860px) {
  .own { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .own-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- the audit ---------- */

.audit { padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.gantt { --label-w: 280px; position: relative; margin-top: clamp(56px, 6vw, 80px); }
.gantt-scale { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); padding-bottom: 12px; color: var(--fg-3); border-bottom: 1px solid var(--line-2); }
.gantt-scale ol { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.gantt-rows { margin: 0; padding: 0; list-style: none; }
.g-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.g-label { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-content: start; }
.g-num { grid-row: span 2; padding-top: 4px; color: var(--fg-3); }
.g-label h3 { font-size: 1.125rem; font-weight: 560; }
.g-label p { font-size: 14px; color: var(--fg-3); margin-top: 2px; }
.g-track {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  row-gap: 12px;
  align-content: start;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 13) 100%;
}
.g-bar { grid-row: 1; grid-column: var(--from) / var(--to); height: 8px; margin: 7px 3px 0 0; background: var(--fg-3); transform-origin: left; }
.g-trust .g-bar { background: var(--fg); }
.g-text { position: relative; z-index: 1; grid-row: 2; grid-column: var(--from) / span 6; width: fit-content; max-width: 100%; padding: 0 14px 0 0; background: var(--bg-1); font-size: 14.5px; line-height: 1.45; color: var(--fg-2); }
.g-long .g-text { grid-column: var(--from) / var(--to); }
.g-lock { position: absolute; z-index: 0; top: -34px; bottom: 0; left: calc(var(--label-w) + (100% - var(--label-w)) * 2 / 13); border-left: 1px dashed var(--fg); pointer-events: none; }
.g-lock span { position: absolute; z-index: 2; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; transform: translateX(-50%); background: var(--fg); color: var(--bg); white-space: nowrap; }
.g-lock svg { width: 11px; height: 11px; }
.js .g-bar { transition: transform 1s var(--ease-out); }
.js .gantt:not(.is-in) .g-bar { transform: scaleX(0.02); }

.lock-panel { margin-top: 48px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: start; }
.lock-head { display: grid; gap: 14px; }
.lock-head h3 { font-size: 1.5rem; font-weight: 500; }
.lock-state { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 10px; border: 1px solid var(--line-2); color: var(--fg-2); }
.lock-state svg { width: 12px; height: 12px; }
.lock-panel.is-open .lock-state { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.lock-intro { grid-column: 1; color: var(--fg-3); font-size: 15px; }
.lock-list { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.lock-list li { position: relative; break-inside: avoid; padding: 9px 0 9px 28px; font-size: 15px; color: var(--fg-3); border-top: 1px solid var(--line); transition: color 0.4s ease; }
.lock-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border: 1px solid var(--line-3); transition: background-color 0.3s ease, border-color 0.3s ease; }
.lock-list li::after { content: ""; position: absolute; left: 4px; top: 15px; width: 5px; height: 8px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: 0; transition: opacity 0.3s ease; }
.lock-list li.is-done { color: var(--fg); }
.lock-list li.is-done::before { background: var(--fg); border-color: var(--fg); }
.lock-list li.is-done::after { opacity: 1; }

/* ---------- trust: the document ---------- */

.trust { padding: var(--section-y) 0; background: var(--paper); color: var(--ink); }
.trust ::selection { background: var(--ink); color: var(--paper); }
.trust :focus-visible { outline-color: var(--ink); }
.trust .lead { color: var(--ink-2); }
.trust-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.trust-stat { margin: 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.trust-stat p { font-size: 15.5px; color: var(--ink-2); }
.stat-range { display: block; margin-bottom: 8px; font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 480; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.trust-stat figcaption a { color: var(--ink-2); text-decoration-color: var(--ink-line); }

.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(64px, 7vw, 104px); }
.first-seen > h3,
.rules > h3,
.never > h3 { padding-top: 16px; border-top: 2px solid var(--ink); font-size: 1.375rem; font-weight: 560; }
.seen-list { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: seen; }
.seen-list li { position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--ink-line); color: var(--ink-2); font-size: 16px; counter-increment: seen; }
.seen-list li::before { content: counter(seen, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.seen-list b { color: var(--ink); font-weight: 600; }

.rule-list { margin: 8px 0 0; }
.rule-list > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.rule-list dt { font-weight: 620; }
.rule-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.never { margin-top: clamp(48px, 5vw, 72px); }
.never-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.never-list li { position: relative; padding: 10px 14px 10px 36px; border: 1px solid var(--ink); font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0; }
.never-list li::before,
.never-list li::after { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 1.5px; background: var(--ink); }
.never-list li::before { transform: rotate(45deg); }
.never-list li::after { transform: rotate(-45deg); }

/* ---------- roles ---------- */

.roles { padding: var(--section-y) 0; background: var(--bg); }
.role-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(56px, 6vw, 80px); }
.spec { padding: clamp(24px, 3vw, 36px); }
.spec-head { padding-bottom: 20px; }
.spec-head h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; }
.spec-head p { margin-top: 8px; color: var(--fg-2); }
.spec-rows { margin: 0; }
.spec-rows > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec-rows dt { padding-top: 3px; color: var(--fg-3); }
.spec-rows dd { margin: 0; font-size: 15.5px; color: var(--fg); }
.roles-stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.roles-stat p { color: var(--fg-2); }
.stat-inline { margin-right: 8px; font-size: 1.75rem; font-weight: 480; letter-spacing: -0.03em; color: var(--fg); }
.roles-stat figcaption { margin: 0; }

/* ---------- apps ---------- */

.apps { padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.apps-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.conn-map { margin: 0; max-width: 760px; }
.conn-map svg { width: 100%; height: auto; overflow: visible; }
.conn-map figcaption { margin-top: 10px; color: var(--fg-3); }
/* orbits: inner = agent-ready, middle = API-friendly, outer = export only; closed sits outside */
.conn-rings circle { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
.conn-rings .hub { stroke: var(--line-2); stroke-dasharray: none; }
.lk { fill: none; stroke-width: 1.3; }
.lk-ready { stroke: var(--fg); }
.lk-api { stroke: rgba(233, 234, 234, 0.72); stroke-dasharray: 7 5; }
.lk-export { stroke: rgba(233, 234, 234, 0.55); stroke-dasharray: 1 5; stroke-linecap: round; stroke-width: 1.6; }
.lk-closed { stroke: rgba(233, 234, 234, 0.3); stroke-dasharray: 3 4; }
.lk-block { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.conn-pulses circle { fill: var(--fg); }
/* the core is the SHIPdock tile; the plate keeps links from showing through its cut-out */
.conn-core .core-plate { fill: var(--bg-1); }
.conn-core .core-mark { fill: var(--fg); }
.conn-core text,
.app text { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; fill: var(--fg); paint-order: stroke; stroke: var(--bg-1); stroke-width: 6px; stroke-linejoin: round; }
.app .app-h { font-size: 9.5px; fill: var(--fg-3); }
.app .nm-ph { display: none; }
/* app tiles: a real product shows its own full-colour logo on a white tile (the
   same rounded tile as the SHIPdock mark); in-house systems get an empty tile */
.app .tile-g { transform-box: fill-box; transform-origin: center; }
.app .tile { fill: var(--fg); }
.app-gen .tile { fill: var(--bg-1); stroke: var(--line-3); stroke-width: 1; }
.app-gen .glyph { fill: none; stroke: var(--fg-2); stroke-width: 1.2; }
.app-closed .tile { stroke: var(--line-2); }
.app-closed .glyph { stroke: var(--fg-3); }
.app-closed text { fill: var(--fg-2); }
.js .conn-links,
.js .conn-apps,
.js .conn-pulses { transition: opacity 1.2s var(--ease-out); }
.js .conn-map:not(.is-in) .conn-links,
.js .conn-map:not(.is-in) .conn-pulses { opacity: 0; }
.js .conn-map:not(.is-in) .conn-apps { opacity: 0.25; }
.still .conn-pulses { display: none; }

/* phone: bigger tiles and heavier line styles; the logo names the product, so only
   in-house systems keep a (stacked) name; hours stay in the SVG description */
@media (max-width: 560px) {
  /* right-hand names drop out, so recentre what is left */
  .conn-world { transform: translateX(28px); }
  .app .tile-g { transform: scale(1.5); }
  .conn-core .core-tile { transform-box: fill-box; transform-origin: center; transform: scale(1.15); }
  .app .nm,
  .app .app-h { display: none; }
  .app .nm-ph { display: inline; }
  .conn-rings circle { stroke-width: 1.4; stroke-dasharray: 3 8; }
  .conn-rings .hub { stroke-dasharray: none; }
  .lk { stroke-width: 2.2; }
  .lk-api { stroke-dasharray: 10 7; }
  .lk-export { stroke-width: 2.8; stroke-dasharray: 1 8; }
  .lk-closed { stroke-dasharray: 5 6; }
  .lk-block { stroke-width: 2.4; }
  .conn-pulses circle { r: 3.6px; }
}

.levels { margin: 0; }
.level { padding: 18px 0; border-top: 1px solid var(--line); }
.level dt { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.level dd { margin: 8px 0 0; color: var(--fg-2); font-size: 15.5px; }
.lv-key { width: 28px; height: 0; border-top: 1.5px solid var(--fg); }
.level-api .lv-key { border-top-style: dashed; opacity: 0.8; }
.level-export .lv-key { border-top-style: dotted; border-top-width: 2px; opacity: 0.7; }
.level-closed .lv-key { border-top-style: dashed; opacity: 0.35; }
.mcp-note { margin-top: 40px; max-width: 62ch; color: var(--fg-3); font-size: 15px; }

/* ---------- proof ---------- */

.proof { padding: var(--section-y) 0; background: var(--bg); }
.calc { margin-top: clamp(48px, 5vw, 72px); padding: clamp(22px, 3vw, 40px); }
.calc-head h3 { font-size: 1.5rem; font-weight: 500; }
.calc-head p { margin-top: 6px; color: var(--fg-3); font-size: 15px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: 28px; align-items: start; }

.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 14px 0 10px; border-top: 1px solid var(--line); }
.range label { font-size: 15px; color: var(--fg-2); }
.range output { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 30%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(to right, var(--fg) var(--fill), var(--line-2) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  background: var(--fg);
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 0 1px var(--fg);
}
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--fg); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 0; background: var(--fg); border: 2px solid var(--bg-1); box-shadow: 0 0 0 1px var(--fg); }
input[type="range"]:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.calc-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.readout { padding: 18px 20px 20px; background: var(--bg-1); }
.ro-label { color: var(--fg-3); }
.ro-value { margin-top: 10px; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 480; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.ro-value small { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.readout-main { grid-column: 1 / -1; }
.readout-main .ro-value { font-size: clamp(2.75rem, 4.6vw, 4.25rem); }
.formula { grid-column: 1 / -1; padding: 14px 20px; background: var(--bg-1); color: var(--fg-3); text-transform: none; letter-spacing: 0.02em; }
.calc-note { margin-top: 22px; color: var(--fg-3); text-transform: none; letter-spacing: 0.02em; }

/* ---------- team ---------- */

/* Crew plates: each person is a grayscale cut-out (scripts/portrait.swift:
   a JPEG plus an alpha mask PNG, drawn with mask-image) standing on the same
   chart backdrop: plotting dots, isobaths and a horizon at the shared eye
   line (42%). Every portrait is framed by the same rule, so heads and eyes
   line up from card to card. */

.team { position: relative; padding: var(--section-y) 0; background: var(--bg-1); border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.crew-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }

.crew-plate { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.crew-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew-card:nth-child(even) .crew-chart { transform: scaleX(-1); } /* mirrored, so the pair reads as one chart */
.crew-dot { fill: rgba(233, 234, 234, 0.16); }
.crew-iso { fill: none; stroke: rgba(233, 234, 234, 0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.crew-horizon { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.crew-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* the title block: a chart's label strip, over the cut at the chest */
.crew-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 14px 10px;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.crew-status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.crew-status::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.crew-frame { position: absolute; inset: 0; pointer-events: none; }

.crew-card h3 { margin-top: 22px; }
.crew-role { margin-top: 4px; font-size: 15.5px; color: var(--fg); }
.crew-does { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }

@media (max-width: 1099px) {
  .team-grid { row-gap: clamp(40px, 6vw, 56px); }
  .crew { max-width: 760px; }
}
@media (max-width: 560px) {
  .crew { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .crew-card { display: grid; grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr); grid-template-rows: auto auto 1fr; column-gap: 18px; }
  .crew-plate { grid-row: 1 / span 3; }
  .crew-card h3 { margin-top: -3px; }
  .crew-role { font-size: 15px; }
  .crew-does { margin-top: 12px; padding-top: 11px; font-size: 15px; line-height: 1.5; }
  .crew-strip { padding: 6px 9px 7px; font-size: 10px; }
  .crew-strip > span:first-child { display: none; }
  .crew-strip .crew-status { margin-left: auto; }
}

/* ---------- start: the audit request ---------- */

.start {
  position: relative;
  padding: var(--section-y) 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(233, 234, 234, 0.1) 1px, transparent 1.3px);
  background-size: 24px 24px;
  border-top: 1px solid var(--line);
}
.start-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.start h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.045em; }
.start-facts { flex-direction: column; gap: 12px; margin-top: 36px; }
.start-panel { padding: clamp(22px, 3vw, 36px); }
.intake-note-form { margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.start-panel:has(.intake-done:not([hidden])) .intake-note-form { display: none; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { margin-bottom: 18px; }
.field label,
.goals legend { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 560; color: var(--fg); }
.optional { margin-left: 6px; font-weight: 400; color: var(--fg-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23e9eaea' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--bg-1); color: var(--fg); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-3); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 1px solid var(--fg); outline-offset: 0; border-color: var(--fg); }
.field ::placeholder { color: var(--fg-3); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--alert); }
.field-hint { margin-top: -2px; font-size: 14px; color: var(--fg-3); }
.field-error { margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--alert); }
.field-error:empty { display: none; }

.goals { margin: 4px 0 20px; padding: 0; border: 0; min-width: 0; }
.goals legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { padding: 8px 12px; border: 1px solid var(--line-2); color: var(--fg-2); font-size: 14px; line-height: 1.35; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.chip input:hover + span { border-color: var(--line-3); color: var(--fg); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: 0.38; }
.goals[aria-invalid="true"] .chip span { border-color: var(--alert); }

.form-status { margin: 0 0 14px; font-size: 14.5px; font-weight: 500; color: var(--alert); }
.form-status:empty { display: none; }
.btn-submit { width: 100%; justify-content: center; margin-top: 4px; }

.intake-done { padding: 8px 0; }
.intake-done:focus { outline: none; }
.done-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.done-state svg { width: 13px; height: 13px; }
.intake-done h3 { margin-top: 22px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 500; }
.intake-done p:last-child { margin-top: 12px; color: var(--fg-2); max-width: 34em; }

/* ---------- footer ---------- */

.foot { padding: 0 0 36px; background: var(--bg); border-top: 1px solid var(--line); }
.ruler { display: block; width: 100%; height: 14px; }
.ruler path { stroke: var(--line-3); stroke-width: 1; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 48px; padding-top: 56px; }
.foot-brand p { margin-top: 16px; max-width: 34em; color: var(--fg-3); font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 10px 26px; }
.foot-nav a { font-size: 15px; color: var(--fg-2); text-decoration: none; transition: color 0.2s ease; }
.foot-nav a:hover { color: var(--fg); }
.foot-margin { color: var(--fg-3); }
.foot-copy { justify-self: end; font-size: 14px; color: var(--fg-3); }

/* ---------- example: one engagement, plotted ---------- */
/* The log is real HTML and complete on its own: below 1100px, or without
   JS, a track runs down its left edge through one waypoint per entry. From
   1100px a sticky chart (js/example.js) runs the same route down the plate,
   with one readout (pictogram, figure, note) per waypoint beside it.
   Default state is complete (all made good); .ex-live adds the pending
   states that scrolling then clears. */

.example { padding: var(--section-y) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ex-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.45; color: var(--fg-3); }
.ex-note::before { content: ""; flex: none; width: 5px; height: 5px; background: currentColor; }
.ex-body { margin-top: clamp(56px, 6vw, 88px); }

.ex-log { max-width: 760px; margin: 0; padding: 0; list-style: none; }
.ex-entry { position: relative; padding: 0 0 clamp(48px, 6vw, 72px) 52px; }
.ex-entry:last-child { padding-bottom: 0; }
.ex-entry:not(:last-child)::before,
.ex-entry:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 6px; width: 1px; }
.ex-entry:not(:last-child)::before { background-image: linear-gradient(var(--fg-3) 50%, transparent 0); background-size: 1px 6px; }
.ex-entry:not(:last-child)::after { background: var(--fg); transform: scaleY(var(--p, 1)); transform-origin: top; }

.ex-stamp { display: flex; align-items: center; gap: 24px; margin-left: -52px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; line-height: 1.45; text-transform: uppercase; color: var(--fg-3); transition: color 0.4s ease; }
.ex-wp { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0; transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out); }
.ex-live .ex-entry:not(.is-passed) .ex-wp { background: var(--bg-2); border-color: var(--fg-3); color: var(--fg-2); }
.ex-live .ex-entry.is-current .ex-stamp { color: var(--fg); }
.ex-entry h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.ex-text { margin-top: 14px; max-width: 36em; color: var(--fg-2); }

.ex-readout { max-width: 36em; margin: 22px 0 6px; padding: 0; list-style: none; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.ex-readout li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 9px 0 10px; font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: 0.01em; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.ex-readout li + li { border-top: 1px solid var(--line); }
.ex-t { padding-top: 1px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.ex-readout .ex-says { color: var(--fg); }
.ex-readout .ex-says .ex-t { color: var(--fg-2); }

/* the chart: one course down the plate (js/example.js), one readout beside it */
.ex-chart { display: none; }
.ex-chart-head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 18px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; color: var(--fg-3); }
.ex-tag { padding: 3px 8px; background: var(--fg); color: var(--bg); }
.ex-plate { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: clamp(440px, calc(100svh - 300px), 600px); }

/* the course: a faint dot field, the course, waypoints, two label columns */
.ex-plot { position: relative; border-right: 1px solid var(--line); background-image: radial-gradient(circle, rgba(233, 234, 234, 0.075) 1px, transparent 1.4px); background-size: 16px 16px; background-position: 6px 6px; }
.ex-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ex-svg text { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; }
.ex-planned { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 4; stroke-opacity: 0.42; }
.ex-made { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.ex-grow-head { fill: none; stroke: var(--fg); stroke-width: 1; stroke-opacity: 0.42; }
.ex-svg .ex-grow { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; fill: var(--fg-3); }
.ex-cwp rect { fill: var(--bg); stroke: var(--fg-3); stroke-width: 1; transition: fill 0.5s var(--ease-out), stroke 0.5s var(--ease-out); }
.ex-svg .ex-cwp text { fill: var(--fg-3); font-size: 10.5px; font-weight: 600; letter-spacing: 0; transition: fill 0.5s var(--ease-out); }
.ex-cwp.is-passed rect { fill: var(--fg); stroke: var(--fg); }
.ex-svg .ex-cwp.is-passed text { fill: var(--bg); }
.ex-lbl { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.ex-lbl-wk { fill: var(--fg-3); transition: fill 0.4s ease; }
.ex-svg .ex-lbl-st { font-family: var(--sans); font-size: 14px; font-weight: 450; letter-spacing: -0.005em; fill: var(--fg-3); transition: fill 0.4s ease; }
.ex-lbl.is-passed .ex-lbl-st { fill: var(--fg-2); }
.ex-lbl.is-current .ex-lbl-wk { fill: var(--fg-2); }
.ex-svg .ex-lbl.is-current .ex-lbl-st { fill: var(--fg); font-weight: 560; }
.ex-lock-tick { fill: none; stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 3; }
.ex-lock.is-open .ex-lock-tick { stroke: var(--fg); stroke-dasharray: none; }
.ex-lock rect { fill: var(--bg); stroke: var(--line-3); stroke-width: 1; transition: fill 0.4s ease, stroke 0.4s ease; }
.ex-svg .ex-lock text { font-size: 10px; fill: var(--fg-2); transition: fill 0.4s ease; }
.ex-lock use { color: var(--fg-2); transition: color 0.4s ease; }
.ex-lock.is-open rect { fill: var(--fg); stroke: var(--fg); }
.ex-svg .ex-lock.is-open text { fill: var(--bg); }
.ex-lock.is-open use { color: var(--bg); }
.ex-reticle { transition: transform 0.6s var(--ease-out); }
.ex-reticle path { fill: none; stroke: var(--fg); stroke-width: 1; }
.ex-ship-ring { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.ex-ship-dot { fill: var(--fg); }
.ex-ship-head { stroke: var(--fg); stroke-width: 1.5; }

/* the readout: one pictogram, one figure, one note per waypoint, stacked in
   one cell so the panel never jumps; only the current one shows */
.ex-ros { display: grid; align-content: center; min-width: 0; padding: 28px clamp(24px, 2.6vw, 36px); }
.ex-ro { grid-area: 1 / 1; min-width: 0; }
.ex-ro:not(.is-on) { visibility: hidden; opacity: 0; }
.ex-live .ex-ro { transition: opacity 0.25s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.25s; }
.ex-live .ex-ro:not(.is-on) { transform: translateY(-6px); }
.ex-live .ex-ro.is-on { transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.7s var(--ease-out) 0.1s, visibility 0s; }
.ex-live .ex-ro.is-on .px-draw { animation: ex-draw 1.1s var(--ease-out) 0.15s both; }
.ex-live .ex-ro.is-on .px-grow { animation: ex-grow 1s var(--ease-out) 0.25s both; }
@keyframes ex-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes ex-grow { from { transform: scaleX(0); } to { transform: none; } }

.ex-picto { width: 240px; max-width: 100%; height: auto; overflow: visible; }
.ex-picto .px-ln { fill: none; stroke: var(--fg-2); stroke-width: 1.25; }
.ex-picto .px-hi { stroke: var(--fg); }
.ex-picto .px-dim { stroke: var(--fg-3); }
.ex-picto .px-thick { stroke-width: 2; }
.ex-picto .px-box { fill: rgba(233, 234, 234, 0.1); }
.ex-picto .px-plan { stroke: var(--fg-3); stroke-dasharray: 2 3; }
.ex-picto .px-api { stroke: rgba(233, 234, 234, 0.72); stroke-dasharray: 6 4; }
.ex-picto .px-exp { stroke: rgba(233, 234, 234, 0.55); stroke-dasharray: 1 4; stroke-linecap: round; stroke-width: 1.5; }
.ex-picto .px-off { stroke: rgba(233, 234, 234, 0.3); stroke-dasharray: 3 4; }
.ex-picto .px-fill { fill: rgba(233, 234, 234, 0.1); }
.ex-picto .px-solid { fill: var(--fg); }
.ex-picto .px-grow { transform-box: fill-box; transform-origin: 0 50%; }
.ex-picto text { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; fill: var(--fg-3); }
.ex-picto .px-t-hi { fill: var(--fg-2); }

.ex-ro-data { margin-top: 34px; }
.ex-ro-label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.45; text-transform: uppercase; color: var(--fg-3); }
.ex-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
.ex-num { font-size: clamp(2.75rem, 4.6vw, 4.25rem); font-weight: 480; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.ex-to { margin: 0 0.18em; font-size: 0.5em; font-weight: 450; letter-spacing: 0; vertical-align: 0.28em; color: var(--fg-2); }
.ex-unit { font-size: 15px; font-weight: 500; color: var(--fg-2); }
.ex-fig-2 { margin-top: 10px; }
.ex-fig-2 .ex-num { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.ex-fig-word .ex-num { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.ex-gain .ex-num,
.ex-gain .ex-unit,
.ex-gain .ex-to { color: var(--gain); }
.ex-ro-note { margin-top: 16px; max-width: 30em; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.ex-paid { display: inline-block; margin-top: 16px; padding: 3px 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.45; text-transform: uppercase; color: var(--gain); background: var(--gain-dim); }

@media (min-width: 1100px) {
  .ex-on .ex-body { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(48px, 5vw, 88px); align-items: start; }
  .ex-on .ex-log { max-width: none; }
  .ex-on .ex-entry { min-height: 38svh; padding: 26px 0 48px; border-top: 1px solid var(--line); }
  .ex-on .ex-entry:first-child { min-height: 26svh; }
  .ex-on .ex-entry:last-child { min-height: 40svh; padding-bottom: 0; }
  .ex-on .ex-entry::before,
  .ex-on .ex-entry::after { display: none; }
  .ex-on .ex-stamp { margin-left: 0; gap: 14px; }
  .ex-on .ex-chart:not([hidden]) { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; margin: 0; background-color: var(--bg); border: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ex-entry { padding-left: 44px; }
  .ex-stamp { margin-left: -44px; gap: 16px; }
  .ex-readout li { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 12.5px; }
  .ex-t { font-size: 11px; }
}

/* ---------- win: everyone on board wins ---------- */
/* The deal, drawn as a plan view of your company's vessel (the same TRK-017
   as the method figure): management on the bridge, your people on deck,
   SHIPdock's pilot launch alongside. White lines are trust: the owner's line
   to the people is the main trust line (2px, full ink), SHIPdock's two lines
   are 1.2px Instrument Grey. Green lines are money and nothing else: pay and
   rewards to your people, a fee for proven savings to SHIPdock, savings from
   automated work back to management. Solid hatches are jobs already fixed,
   the dashed one is next. Wide: the vessel lies bow to the right with the
   three parties in columns below. Below 1100px a bow-up drawing takes over.
   The flows draw in once, trust first, then money. */

.win { padding: var(--section-y) 0; background: var(--bg); border-top: 1px solid var(--line); }

.win-deal { --win-gap: clamp(32px, 3.4vw, 56px); margin-top: clamp(56px, 6vw, 88px); }

/* the drawing sheet */
.win-fig { margin: 0; }
.win-draw { padding: clamp(10px, 1.4vw, 18px) 0 clamp(4px, 0.8vw, 10px); }
.win-svg { width: 100%; height: auto; overflow: visible; }
.win-svg-tall { display: none; }

.win-svg text { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.05em; fill: var(--fg-3); }
.win-svg .wd-name { font-family: var(--sans); font-size: 19px; font-weight: 520; letter-spacing: -0.01em; fill: var(--fg); }
.win-svg .wd-hatch-label { font-size: 11.5px; fill: var(--fg-2); }
.win-svg .wd-hatch-label-next { fill: var(--fg-3); }
.win-svg-tall text { font-size: 11.5px; }
.win-svg-tall .wd-name { font-size: 16px; }

.wd-cross { fill: none; stroke: var(--line); }
.wd-cl { fill: none; stroke: var(--fg-3); stroke-dasharray: 14 4 2 4; }
.wd-course { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 5 5; }
.wd-hull { fill: var(--bg); stroke: var(--fg); stroke-width: 1.3; }
.wd-bulwark { fill: none; stroke: var(--line-2); }
.wd-part { fill: none; stroke: var(--fg-2); }
.wd-faint { fill: none; stroke: var(--line-3); }
.wd-deck { fill: var(--bg); stroke: var(--fg); stroke-width: 1.2; }
.wd-node { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.wd-dot,
.wd-crew { fill: var(--fg); }
.wd-hatch { fill: none; stroke: var(--fg); stroke-width: 1.2; }
.wd-hatch-next { stroke: var(--fg-3); stroke-dasharray: 5 4; }
.wd-panel { fill: none; stroke: var(--line-3); }
.wd-panel-next { stroke: var(--line-2); stroke-dasharray: 3 4; }
.wd-reticle { fill: none; stroke: var(--fg); stroke-width: 1.2; }
.wd-launch { fill: var(--bg); stroke: var(--fg); stroke-width: 1.3; }
.wd-mark { color: var(--fg); }

/* flows: trust in white ink, money in green */
.flow-line { fill: none; }
.flow-main .flow-line { stroke: var(--fg); stroke-width: 2; }
.flow-main .flow-end,
.win-svg .flow-main text { fill: var(--fg); }
.flow-trust .flow-line { stroke: var(--fg-2); stroke-width: 1.2; }
.flow-trust .flow-end,
.win-svg .flow-trust text { fill: var(--fg-2); }
.flow-gain .flow-line { stroke: var(--gain); stroke-width: 1.6; }
.flow-gain .flow-end,
.win-svg .wd-tag text { fill: var(--gain); }
.wd-tag rect { fill: var(--gain-dim); }
.wd-tag .wd-tag-base { fill: var(--bg-1); }
.wd-tag .wd-tag-base-hull { fill: var(--bg); }

/* the key under the drawing */
.win-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px var(--win-gap);
  padding: 20px clamp(20px, 2.6vw, 36px) 24px;
  border-top: 1px solid var(--line);
}
.win-key p { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.win-key b { font-weight: 560; color: var(--fg); }
.win-sample { flex: none; width: 28px; margin-top: calc(0.75em - 0.5px); border-top: 1.2px solid var(--fg-2); }
.win-sample-main { margin-top: calc(0.75em - 1px); border-top: 2px solid var(--fg); }
.win-sample-gain { margin-top: calc(0.75em - 1px); border-top: 2px solid var(--gain); }

/* the three parties: fears, then what they earn or save (green), then the rest */
.win-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--win-gap); margin-top: clamp(48px, 5vw, 72px); }
.win-party-name { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.win-glyph { flex: none; width: 18px; height: 18px; color: var(--fg); }
.win-who { margin-top: 10px; font-size: 15.5px; color: var(--fg-3); }
.win-k { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.45; color: var(--fg-3); }
.win-fears { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.win-gain { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.win-gain-line { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); font-weight: 540; letter-spacing: -0.015em; line-height: 1.3; color: var(--gain); }
.win-gain-line svg { flex: none; width: 24px; height: 10px; margin-top: calc(0.65em - 5px); }
.win-gain-note { margin-top: 10px; padding-left: 36px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.win-gain-note .text-link { font-weight: 500; color: inherit; }
.win-ex { display: inline-block; margin-right: 4px; padding: 0 6px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; line-height: 18px; text-transform: uppercase; color: var(--fg-3); vertical-align: 1px; }
.win-gets { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.win-gets ul { margin: 0; padding: 0; list-style: none; }
.win-gets li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.win-gets li + li { margin-top: 6px; }
.win-gets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: currentColor; }

/* the flows draw in once (pathLength="1" on every line): trust first, then money */
.js .win-svg .flow-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out) var(--d, 0s); }
.js .win-svg .flow-gain .flow-line { transition-duration: 1.4s; }
.js .win-svg .flow-end,
.js .win-svg .flow-label { transition: opacity 0.5s var(--ease-out) calc(var(--d, 0s) + 0.6s); }
.js .win-deal:not(.is-in) .flow-line { stroke-dashoffset: 1; }
.js .win-deal:not(.is-in) .flow-end,
.js .win-deal:not(.is-in) .flow-label { opacity: 0; }

/* pointing at a party lights its lines and stations on the drawing */
.win-svg [data-p] { transition: opacity 0.3s var(--ease-out); }
.win-deal[data-focus="mgmt"] .win-svg [data-p]:not([data-p~="mgmt"]),
.win-deal[data-focus="people"] .win-svg [data-p]:not([data-p~="people"]),
.win-deal[data-focus="us"] .win-svg [data-p]:not([data-p~="us"]) { opacity: 0.18; }

@media (min-width: 1100px) {
  /* the fears, money and gets rules line up across all three parties */
  @supports (grid-template-rows: subgrid) {
    .win-party { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
  }
}

@media (max-width: 1099px) {
  .win-deal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
  .win-svg-wide { display: none; }
  .win-svg-tall { display: block; max-width: 400px; margin: 0 auto; }
  .win-key { grid-template-columns: minmax(0, 1fr); padding: 18px 22px 22px; }
  .win-parties { grid-template-columns: minmax(0, 1fr); row-gap: 48px; margin-top: 0; }
  .win-party-name { font-size: 1.625rem; }
}

@media (max-width: 760px) {
  .win-deal { display: block; }
  .win-parties { margin-top: 56px; }
}

@media (max-width: 560px) {
  .win-key { padding: 16px 18px 20px; }
  .win-gain-note { padding-left: 0; }
}

/* ---------- brand: vessel mark, lockup and logo files ---------- */
/* The mark is an app-icon tile in signal white with a square-rigged brig
   cut out of it (the one sanctioned rounded shape in this world: the logo
   tile only). Lockup ratio (tile 26 : gap 10 : wordmark 19, tile centred on
   the line box) is the same one the downloadable logo files are drawn with. */

.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }

/* the same tile as the core of the app connection map */
.conn-core .core-mark { color: var(--fg); }

.brand-dock { position: relative; align-self: stretch; gap: 4px; }

.kit-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.kit-toggle::before { content: ""; position: absolute; inset: -10px -10px -10px -4px; }
.kit-toggle:focus-visible { outline-offset: 0; }
.kit-toggle svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease-out); }
.kit-toggle:hover,
.brand-dock.is-open .kit-toggle { color: var(--fg); }
.brand-dock.is-open .kit-toggle svg { transform: rotate(180deg); }

.brand-kit {
  position: absolute;
  top: calc(100% + 6px);
  left: -15px;
  z-index: 2;
  width: 372px;
  padding: 14px 14px 6px;
  background-color: var(--bg-1);
  border: 1px solid var(--line-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
/* lets the pointer travel from the mark into the panel without leaving it */
.brand-kit::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 8px; }
.brand-dock.is-open .brand-kit,
html:not(.js) .brand-dock:hover .brand-kit,
html:not(.js) .brand-dock:focus-within .brand-kit {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.4s var(--ease-out), visibility 0s;
}

.kit-title { padding-bottom: 12px; font-size: 14px; font-weight: 560; letter-spacing: -0.005em; line-height: 1.2; color: var(--fg); }
.kit-list { margin: 0; padding: 0; list-style: none; }
.kit-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.kit-thumb { display: grid; place-items: center; height: 32px; padding: 0; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.kit-thumb img { width: 58px; height: 26px; object-fit: contain; }
.kit-thumb-paper { background: var(--paper); border-color: var(--paper); }
.kit-name { display: grid; gap: 1px; font-size: 14px; font-weight: 540; line-height: 1.25; color: var(--fg); }
.kit-name small { font-size: 12.5px; font-weight: 400; color: var(--fg-3); }
.kit-files { display: flex; gap: 6px; }
.kit-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 9px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.kit-file svg { width: 11px; height: 11px; flex: none; }
.kit-file:hover { color: var(--fg); border-color: var(--fg); }
.kit-file:active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

@media (pointer: coarse) {
  .kit-file { height: 40px; padding: 0 11px 0 12px; }
}

@media (max-width: 560px) {
  .brand-kit { left: 0; width: calc(100vw - 2 * var(--pad)); }
  .kit-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .kit-thumb img { width: 46px; }
  .kit-file svg { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1099px) {
  .plan { width: min(420px, 100%); }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
  .method-top,
  .trust-top,
  .apps-grid,
  .team-grid,
  .start-inner { grid-template-columns: minmax(0, 1fr); }
  .pilot-figure { max-width: 620px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .lock-panel { grid-template-columns: minmax(0, 1fr); }
  .lock-list { grid-column: 1; grid-row: auto; }
  .gantt { --label-w: 220px; }

  .hero { display: block; min-height: 0; padding-bottom: min(60vh, 540px); }
  .hero-gl,
  .hero-hud { top: auto; height: min(60vh, 540px); }
  .hero-inner { padding-top: calc(var(--nav-h) + clamp(32px, 7vw, 72px)); }
}

@media (max-width: 860px) {
  .plan { display: none; }
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .plan-track { height: 10px; }

  .hero-facts { margin-top: 36px; }

  .plan-table,
  .plan-table tbody,
  .plan-table tr,
  .plan-table td,
  .plan-table tbody th { display: block; }
  .plan-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plan-table tr.leg { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 26px 0 32px; border-bottom: 1px solid var(--line); }
  .plan-table tbody td,
  .plan-table tbody th { padding: 0; border: 0; }
  .plan-table .leg-wp { grid-row: 1 / span 4; position: static; }
  .plan-table .leg-name,
  .plan-table .leg td:not(.leg-wp) { grid-column: 2; }
  .plan-table .leg td:not(.leg-wp) { margin-top: 16px; }
  .leg-time { padding-top: 0 !important; }
  .plan-table .leg td:not(.leg-wp)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--fg-3);
  }
  .leg:not(:last-child) .leg-wp::before,
  .leg:not(:last-child) .leg-wp::after { top: 62px; bottom: -26px; }

  .gantt { --label-w: 0px; }
  .gantt-scale { grid-template-columns: minmax(0, 1fr); }
  .gantt-scale > span { display: none; }
  .g-row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .g-text { grid-column: 1 / -1 !important; }
  .g-label { position: relative; z-index: 1; width: fit-content; padding-right: 12px; background: var(--bg-1); }
  .g-lock { left: calc(100% * 2 / 13); }

  .role-specs,
  .calc-body { grid-template-columns: minmax(0, 1fr); }
  .rule-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-content: flex-start; }
  .foot-copy { justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions .text-link { margin: 0 auto; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lock-list { columns: 1; }
  .spec-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gantt-scale ol li:nth-child(even) { visibility: hidden; }
  .app text { font-size: 19px; }
  .app .app-h { display: none; }
  .conn-core text { font-size: 18px; }
}

@media (max-width: 760px) {
  .hero { padding-bottom: 0; }
  .hero-gl,
  .hero-hud { top: var(--nav-h); bottom: auto; height: clamp(280px, 44vh, 380px); }
  .hero-inner { padding-top: calc(var(--nav-h) + clamp(280px, 44vh, 380px) + 4px); padding-bottom: 64px; }
  .hero-sub { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-facts { margin-top: 32px; }
  .intake-note { margin-top: 26px; }
  .intake-note + .hero-facts { margin-top: 26px; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .conn-pulses { display: none; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
