/* ── Tokens ───────────────────────────────────────────
   Direction: autonomous-vehicle test console at night.
   Asphalt neutrals, one signal amber, white lane paint. 8px base. */
:root {
  --bg: #0E0F10;
  --bg-2: #15171A;
  --bg-3: #1D2024;
  --line: #2B2F34;
  --line-2: #3A3F45;
  --text: #ECE9E2;
  --text-2: #A4A8AE;
  --text-3: #7A7F86;
  --amber: #FFB020;
  --amber-dim: rgba(255, 176, 32, 0.14);

  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 40px; --s6: 64px; --s7: 120px;

  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px;
  --t-xl: 32px; --t-2xl: 48px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, "Pretendard Variable", Pretendard, "Malgun Gothic", monospace;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
p { margin: 0 0 var(--s3); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
em { font-style: normal; color: var(--amber); }
.mono { font-family: var(--mono); }
.amber { color: var(--amber); }
.small { font-size: var(--t-sm); }
.fine { font-size: var(--t-xs); color: var(--text-3); line-height: 1.6; margin: var(--s3) 0 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--s4); }

/* REC dot — the only animated accent mark */
.rec {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); margin-right: 10px; vertical-align: 1px;
  animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: .25; } }

/* ── Top bar ─────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar__in { display: flex; align-items: center; gap: var(--s4); height: 56px; }
.bar__name { font-weight: 700; font-size: var(--t-sm); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.odo {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: 4px 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: var(--t-xs); color: var(--text-3);
}
.odo__val { font-size: var(--t-sm); font-weight: 700; color: var(--amber); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.bar__nav { display: flex; gap: var(--s3); margin-left: auto; font-size: var(--t-xs); }
.bar__nav a { text-decoration: none; color: var(--text-3); }
.bar__nav a:hover, .bar__nav a.is-on { color: var(--amber); }
.lang { display: flex; border: 1px solid var(--line-2); }
.lang button {
  font: 700 var(--t-xs)/1 var(--mono); padding: var(--s2) 10px;
  background: transparent; color: var(--text-2); border: 0; cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--line-2); }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--bg); }
.bar__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 56px); display: flex; align-items: center; padding: var(--s6) 0; }
.hero__in { position: relative; z-index: 1; }
.tag { font-size: var(--t-xs); font-weight: 600; color: var(--amber); letter-spacing: .04em; margin-bottom: var(--s4); }
.hero__title {
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.04;
  margin-bottom: var(--s4);
}
.hero__lede { max-width: 38em; font-size: var(--t-lg); color: var(--text-2); line-height: 1.65; margin-bottom: var(--s6); }

/* Road: perspective plane with moving lane paint */
.road { position: absolute; inset: 0; perspective: 420px; perspective-origin: 70% 30%; pointer-events: none; }
.road__plane {
  position: absolute; left: 50%; bottom: -40%; width: 60%; height: 160%;
  transform: translateX(-10%) rotateX(72deg);
  transform-origin: 50% 100%;
  border-left: 4px solid rgba(255,176,32,.75);
  border-right: 4px solid rgba(236,233,226,.4);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.025) 50%, transparent);
  -webkit-mask: linear-gradient(to top, #000 10%, transparent 75%);
          mask: linear-gradient(to top, #000 10%, transparent 75%);
  opacity: .6;
}
.road__plane::before {
  content: ""; position: absolute; top: -140px; bottom: 0; will-change: transform; left: calc(50% - 3px); width: 6px;
  background: repeating-linear-gradient(to bottom, rgba(236,233,226,.7) 0 60px, transparent 60px 140px);
  animation: lane .9s linear infinite;
}
@keyframes lane { to { transform: translateY(140px); } }

.tele {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 0 var(--s5);
  border: 1px solid var(--line-2); background: rgba(21, 23, 26, .85);
}
.tele__cell { padding: var(--s3) var(--s4) var(--s4); }
.tele__cell + .tele__cell { border-left: 1px solid var(--line); }
.tele dt { font-size: var(--t-xs); color: var(--text-3); margin-bottom: var(--s2); line-height: 1.5; }
.tele dd { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tele dd i { font-style: normal; color: var(--text-3); font-weight: 400; margin: 0 .3em; font-size: .7em; }
.tele dd b { color: var(--amber); }
.tele dd small { font-size: var(--t-sm); font-weight: 400; color: var(--text-3); margin-left: 3px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.btn {
  display: inline-flex; align-items: center;
  font-size: var(--t-sm); font-weight: 600;
  padding: 12px var(--s3);
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.btn--amber:hover { background: transparent; color: var(--amber); }
.hero__cond { font-size: var(--t-xs); color: var(--text-3); margin: 0; }

/* ── Run sections ────────────────────────────────────── */
.run { padding: var(--s7) 0 0; }
.run:last-of-type { padding-bottom: var(--s7); }
.run__head { border-top: 1px solid var(--line-2); padding-top: var(--s4); margin-bottom: var(--s6); }
.run__id { font-size: var(--t-xs); font-weight: 700; color: var(--amber); letter-spacing: .1em; margin-bottom: var(--s3); }
.run__title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.run__meta { font-size: var(--t-xs); color: var(--text-3); margin: var(--s3) 0 0; }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.65; max-width: 44em; margin-bottom: var(--s6); }

/* Dashboard gauges */
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: var(--s6); }
.dash__gauge { background: var(--bg-2); padding: var(--s4); }
.dash__label { font-size: var(--t-xs); color: var(--text-3); margin-bottom: var(--s2); }
.dash__num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; margin-bottom: var(--s3); font-variant-numeric: tabular-nums; }
.dash__num small { font-size: var(--t-md); color: var(--text-3); font-weight: 400; margin-left: 4px; }
.dash__award { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: var(--s3); }
.dash__gauge--award { background: var(--amber-dim); }
.dash__gauge--award .dash__label { color: var(--amber); }
.dash__sub { font-size: var(--t-xs); color: var(--text-2); margin: 0; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s6); align-items: start; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-left: var(--s4); margin-bottom: var(--s3); color: var(--text); }
.list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--amber); }
.list--num { counter-reset: n; }
.list--num li { counter-increment: n; padding-left: 40px; color: var(--text-2); }
.list--num li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); color: var(--amber); width: auto; height: auto; background: none; top: 3px; }

.check { border: 1px solid var(--line-2); background: var(--bg-2); }
.check__cap { font-size: var(--t-xs); color: var(--text-3); padding: 12px var(--s3); margin: 0; border-bottom: 1px solid var(--line); }
.check__list { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.check__list li { display: flex; justify-content: space-between; padding: 10px var(--s3); border-bottom: 1px solid var(--line); }
.check__list li:last-child { border-bottom: 0; }
.check__list b { color: var(--amber); }

/* Spec grid */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: var(--s6); }
.spec > div { background: var(--bg); padding: var(--s3) var(--s4); }
.spec p { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.spec .spec__k { font-size: var(--t-xs); color: var(--amber); margin-bottom: var(--s1); letter-spacing: .06em; }

/* ── Chart (draws itself on scroll) ──────────────────── */
.chart { margin: 0 0 var(--s6); padding: var(--s4); border: 1px solid var(--line-2); background: var(--bg-2); }
.chart__cap { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--text-2); margin-bottom: var(--s4); }
.chart__live { color: var(--amber); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { font: 11px var(--mono); fill: var(--text-3); text-anchor: end; }
.chart .axis--x text { text-anchor: middle; }
.chart .line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart .dots rect { fill: var(--bg-2); stroke: var(--text); stroke-width: 1.5; }
.chart .dots .hit { fill: var(--amber); stroke: var(--amber); }
.chart .mark { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .mark__text { font: 600 11px var(--mono); fill: var(--amber); }
.chart .val { font: 600 13px var(--mono); fill: var(--text-2); }
.chart .val--hit { fill: var(--amber); font-size: 16px; }
.js .chart .line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.js .chart .dots rect, .js .chart .val, .js .chart .mark, .js .chart .mark__text { opacity: 0; transition: opacity .4s 2.2s; }
.js .chart.is-in .line { stroke-dashoffset: 0; }
.js .chart.is-in .dots rect, .js .chart.is-in .val, .js .chart.is-in .mark, .js .chart.is-in .mark__text { opacity: 1; }

/* Tables */
.sheet { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-bottom: var(--s6); }
.sheet caption { text-align: left; font-size: var(--t-xs); color: var(--text-3); padding-bottom: var(--s2); }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 12px var(--s3) 12px 0; border-bottom: 1px solid var(--line); }
.sheet thead th { font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.sheet tbody th { font-weight: 500; }
.sheet td.mono { white-space: nowrap; }
.sheet .num { text-align: right; padding-right: 0; padding-left: var(--s3); }
.sheet--ledger td:first-child { width: 180px; color: var(--text-3); font-size: var(--t-xs); padding-top: 14px; }
.sheet--ledger tr:first-child td { border-top: 1px solid var(--line-2); }

/* ── Incident (signature story) ──────────────────────── */
.incident { border: 1px solid var(--amber); background: linear-gradient(var(--amber-dim), transparent 240px), var(--bg-2); padding: var(--s5); margin-bottom: var(--s6); }
.incident__id { font-size: var(--t-xs); font-weight: 700; color: var(--amber); letter-spacing: .1em; margin-bottom: var(--s3); }
.incident__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--s3); }
.incident__sum { color: var(--text-2); max-width: 46em; margin-bottom: var(--s5); }
.incident__grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--s6); align-items: start; }

.bars { position: sticky; top: 88px; display: grid; gap: var(--s2); }
.bars__cap { font-size: var(--t-xs); color: var(--text-3); margin: var(--s2) 0 0; }
.bars__cap:first-child { margin-top: 0; }
.bars__row { display: grid; grid-template-columns: 28px 1fr 48px; gap: var(--s2); align-items: center; font-size: var(--t-xs); }
.bars__row > span:last-child { text-align: right; color: var(--text-2); }
.bars__track { height: 14px; background: var(--bg-3); position: relative; overflow: hidden; }
.bars__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--text); }
.js .bars__fill { width: 0; transition: width 1.2s var(--ease); }
.js .incident.is-in .bars__fill { width: calc(var(--v) * 1%); }
.js .incident.is-in .bars__row:nth-child(3) .bars__fill { transition-delay: .25s; }
.js .incident.is-in .bars__row:nth-child(4) .bars__fill { transition-delay: .5s; }
.is-drop .bars__fill { background: var(--amber); }
.is-drop > span:first-child, .is-drop > span:last-child, .fp .is-drop { color: var(--amber); font-weight: 700; }
.fp { display: flex; gap: var(--s3); font-size: var(--t-xs); color: var(--text-2); }
.fp b { font-size: var(--t-lg); margin-left: 4px; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); padding-bottom: var(--s4); }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; font-size: 11px; font-weight: 700; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); }
.steps h4 { font-size: var(--t-lg); margin: 4px 0 var(--s1); }
.steps p { color: var(--text-2); font-size: var(--t-sm); margin-bottom: var(--s2); }
.steps .is-key .steps__n { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.steps .is-key h4 { color: var(--amber); }
.steps .is-warn .steps__n { border-color: var(--amber); color: var(--amber); }
.ref { display: inline-block; font-size: var(--t-xs); color: var(--amber); text-decoration: none; border: 1px solid var(--amber); padding: 4px 8px; }
.ref:hover { background: var(--amber); color: var(--bg); }

/* Cards (issue log) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: var(--s6); }
.card { background: var(--bg); padding: var(--s4); font-size: var(--t-sm); }
.card h4 { font-size: var(--t-md); margin-bottom: var(--s2); }
.card p { color: var(--text-2); }
.card__id { font-size: 11px; color: var(--text-3); letter-spacing: .08em; margin-bottom: var(--s3); }

.open { margin-bottom: var(--s5); }
.open__cap { font-size: var(--t-xs); color: var(--text-3); margin-bottom: var(--s3); }
.links { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: var(--t-xs); margin: 0; }
.links a { color: var(--text-2); }
.links a:hover { color: var(--amber); }

/* ── Hardware timeline ───────────────────────────────── */
.bleed { max-width: var(--max); margin: 0 auto var(--s6); padding-inline: var(--s4); position: relative; }
.bleed figcaption.wrap { padding-inline: 0; }
.bleed img { width: 100%; height: clamp(280px, 52vw, 640px); object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.bleed figcaption { display: flex; gap: var(--s3); justify-content: space-between; font-size: var(--t-xs); color: var(--text-2); padding-top: var(--s2); }
.bleed figcaption span:first-child { color: var(--amber); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl { display: grid; grid-template-columns: 88px 1fr; column-gap: var(--s5); padding-bottom: var(--s6); position: relative; }
.tl::before { content: ""; position: absolute; left: 84px; top: 10px; width: 9px; height: 9px; background: var(--bg); border: 2px solid var(--amber); }
.tl__year { font-size: var(--t-sm); font-weight: 700; color: var(--amber); padding-top: 2px; margin: 0; }
.tl__body { grid-column: 2; max-width: 40em; }
.tl__body h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s2); }
.tl__body p { color: var(--text-2); }
.tl__body .tl__award { display: inline-block; font-size: var(--t-xs); font-weight: 700; color: var(--bg); background: var(--amber); padding: 4px 10px; letter-spacing: .1em; }
.tl > figure, .tl__pair, .tl__trio { grid-column: 2; margin: var(--s3) 0 0; }
.tl__img { margin: 0; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.tl__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tl__img:hover img { transform: scale(1.03); }
.tl > .tl__img { max-width: 720px; aspect-ratio: 16 / 9; }
.tl__img--diagram { background: #F4F2EC; }
.tl__img--diagram img { object-fit: contain; padding: var(--s3); }
.tl > .tl__img--diagram { max-width: 314px; aspect-ratio: auto; }
.tl__pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); max-width: 820px; }
.tl__pair .tl__img { aspect-ratio: 4 / 3; }
.tl__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); max-width: 820px; }
.tl__trio .tl__img { aspect-ratio: 3 / 4; }

.chain { display: flex; flex-wrap: wrap; gap: var(--s2) 0; list-style: none; padding: 0; margin: var(--s3) 0 0; font-size: var(--t-xs); }
.chain li { border: 1px solid var(--line-2); padding: 6px 10px; background: var(--bg-2); color: var(--text-2); }
.chain li + li { margin-left: 22px; position: relative; }
.chain li + li::before { content: "→"; position: absolute; left: -18px; top: 6px; color: var(--text-3); }
.chain__end { background: var(--amber) !important; border-color: var(--amber) !important; color: var(--bg) !important; font-weight: 700; }
.grades { font-size: var(--t-xs); color: var(--text-2); border-top: 1px solid var(--line); padding-top: var(--s3); margin: 0; }

/* ── Shipped ─────────────────────────────────────────── */
.ship { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ship > div { background: var(--bg-2); padding: var(--s5); }
.ship h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--s3); }
.ship p { color: var(--text-2); }
.ship__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s4); margin: var(--s5) 0; }
.ship__n { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; color: var(--text) !important; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.ship__l { font-size: var(--t-xs); color: var(--text-3) !important; margin: var(--s2) 0 0; }
.ship__prize { display: inline-block; font-size: var(--t-xs); font-weight: 700; color: var(--amber) !important; border: 1px solid var(--amber); padding: 4px 10px; }
.ship__img { margin: var(--s3) 0 var(--s4); border: 1px solid var(--line-2); }

/* ── Footer ──────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-2); padding: var(--s6) 0; background: var(--bg-2); }
.foot__cap { font-size: var(--t-xs); color: var(--amber); letter-spacing: .1em; }
.foot__mail { font-size: clamp(26px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--s4); }
.foot__mail a { text-decoration: none; }

/* ── Reveal on scroll ────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .tele { grid-template-columns: repeat(2, 1fr); }
  .tele__cell:nth-child(3) { border-left: 0; }
  .tele__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash { grid-template-columns: 1fr; }
  .cols, .ship { grid-template-columns: 1fr; }
  .cols { gap: var(--s5); }
  .incident { padding: var(--s4); }
  .incident__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .bars { position: static; }
  .cards { grid-template-columns: 1fr; }
  .bar__nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  .bleed { padding-inline: 0; }
  .wrap { padding-inline: var(--s3); }
  .bar__in { gap: var(--s2); }
  .odo__label, .odo__unit { display: none; }
  .hero { min-height: auto; padding: var(--s6) 0; }
  .hero__lede, .lead { font-size: var(--t-md); }
  .tele { grid-template-columns: 1fr; }
  .tele__cell + .tele__cell { border-left: 0; border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .run { padding-top: var(--s6); }
  .timeline::before, .tl::before { display: none; }
  .tl { grid-template-columns: 1fr; padding-bottom: var(--s5); }
  .tl__body, .tl > figure, .tl__pair, .tl__trio { grid-column: 1; }
  .tl__year { margin-bottom: var(--s2); }
  .ship > div { padding: var(--s4); }
  .sheet--ledger td:first-child { width: 112px; }
}

.ship__rule { border: 0; border-top: 1px solid var(--line-2); margin: var(--s5) 0; }

/* ── Job fit mapping ─────────────────────────────────── */
.fit { padding: var(--s6) 0 0; }
.fit__cap { font-size: var(--t-xs); color: var(--amber); letter-spacing: .08em; margin-bottom: var(--s3); }
.fit__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.fit__rows li { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.fit__job { margin: 0; font-weight: 700; }
.fit__me { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.fit__go { font-size: var(--t-xs); color: var(--amber); text-decoration: none; white-space: nowrap; }

/* ── Reference-data audit ────────────────────────────── */
.audit { border: 1px solid var(--line-2); background: var(--bg-2); padding: var(--s5); margin-bottom: var(--s6); }
.audit__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--s4); }
.audit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.audit .list li { color: var(--text-2); font-size: var(--t-sm); }
.audit .list b { color: var(--text); }
.sheet--audit { margin: 0; }
.sheet--audit td:first-child { width: 56px; color: var(--amber); }
.sheet__note { margin: calc(var(--s6) * -1 + var(--s3)) 0 var(--s6); }
.refs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }

/* ── Evidence gallery ────────────────────────────────── */
.evidence { margin-bottom: var(--s6); }
.evidence__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.ev { display: block; text-decoration: none; border: 1px solid var(--line-2); background: #fff; overflow: hidden; }
.ev img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.ev span { display: block; font-size: 11px; color: var(--text-2); background: var(--bg-2); padding: 8px 10px; border-top: 1px solid var(--line-2); }
.ev:hover { border-color: var(--amber); }
.ev:hover span { color: var(--amber); }

@media (max-width: 960px) {
  .fit__rows li { grid-template-columns: 1fr; gap: var(--s1); }
  .audit { padding: var(--s4); }
  .audit__grid { grid-template-columns: 1fr; }
  .evidence__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .evidence__grid { grid-template-columns: 1fr; }
}

/* ── Print / Save as PDF: light paper theme, everything visible ── */
@media print {
  @page { size: A4; margin: 12mm; }
  :root {
    --bg: #FFFFFF; --bg-2: #F6F4EF; --bg-3: #E6E2D9;
    --line: #DCD7CC; --line-2: #BFB8AA;
    --text: #16181A; --text-2: #3F4246; --text-3: #6A6E73;
    --amber: #A85A00; --amber-dim: rgba(168, 90, 0, .07);
  }
  html, body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10pt; line-height: 1.55; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .chart .line { stroke-dashoffset: 0 !important; }
  .js .chart .dots rect, .js .chart .val, .js .chart .mark, .js .chart .mark__text { opacity: 1 !important; }
  .js .bars__fill { width: calc(var(--v) * 1%) !important; }
  .bar, .road, .rec, .chart__live, .hero__actions .btn:not(.btn--amber) { display: none !important; }
  .btn--amber { background: none !important; color: var(--text) !important; border: 0 !important; padding: 0 !important; }
  .hero { min-height: 0 !important; padding: 0 0 var(--s4) !important; display: block; }
  .hero__title { font-size: 30pt; }
  .hero__lede, .lead { font-size: 11pt; margin-bottom: var(--s4); }
  .tele dd { font-size: 18pt; }
  .run { padding-top: var(--s5) !important; }
  .run__head { margin-bottom: var(--s4); }
  .run__title { font-size: 20pt; }
  .dash__num { font-size: 26pt; }
  .bleed img { height: 60mm; }
  .tl { padding-bottom: var(--s4); }
  .tl > .tl__img { max-width: 110mm; }
  .tl__pair, .tl__trio { max-width: 130mm; }
  .bars { position: static; }
  .tele, .spec, .dash, .cards, .ship { background: none !important; gap: 0 !important; border: 0 !important; }
  .tele__cell, .spec > div, .dash__gauge, .card, .ship > div { background: none !important; border: 1px solid var(--line) !important; margin: -1px 0 0 -1px; }
  .dash__gauge--award { background: var(--amber-dim) !important; }
  .incident, .audit, .chart, .check { background: none !important; }
  .bleed { display: none !important; }
  .tl > .tl__img { max-width: 80mm; }
  .tl__pair, .tl__trio { max-width: 110mm; }
  .tl > .tl__img--diagram { max-width: 60mm; }
  .evidence__grid { grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
  .ev span { font-size: 7pt; padding: 4px 6px; }
  .ship__img { max-width: 90mm; }
  .chart, .tl, .card, .ev, .dash__gauge, .sheet tr, .fit__rows li, .steps li, .audit__grid, .incident__head { break-inside: avoid; }
  .run__head, .incident__head { break-after: avoid; }
  a { text-decoration: none; }
  .foot { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
