/* Inocula site (rev 29/10/2026). Static, no build step. Fonts self-hosted from Google Fonts files (OFL). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0b0f0e;
  --ink-2: #111816;
  --ink-3: #18211f;
  --rule: #24302d;
  --rule-2: #34433f;
  --paper: #edefea;
  --text: #edefea;
  --mute: #93a19c;
  --dim: #5f6d69;
  --amber: #f2a33a;
  --amber-soft: rgba(242, 163, 58, 0.16);
  --cyan: #5fd3c6;
  --cyan-soft: rgba(95, 211, 198, 0.14);
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --header-h: 60px;
  /* motion tokens (rev 29/10/2026), mirrored in assets/js/motion.js */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-xs: .35s;
  --dur-s: .6s;
  --dur-m: .95s;
  color-scheme: dark;
}

/* Paper theme for /method: scientists print it. */
body.paper {
  --ink: #f3f2ec;
  --ink-2: #ebeae2;
  --ink-3: #e2e1d8;
  --rule: #d3d2c8;
  --rule-2: #bdbcb1;
  --text: #121614;
  --mute: #4d5753;
  --dim: #7a837f;
  --amber: #b86a0b;
  --amber-soft: rgba(184, 106, 11, 0.12);
  --cyan: #137a70;
  --cyan-soft: rgba(19, 122, 112, 0.1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.motion { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cyan); color: #06100e; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 640; font-stretch: 78%; letter-spacing: -0.015em; line-height: 1.02; }
em, i { font-style: italic; }
.mono, .num { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-s) var(--ease-out);
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-stretch: 100%; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); transition: color var(--dur-xs) var(--ease-out); }
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-s) var(--ease-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 560 16px/1 var(--sans); font-stretch: 92%;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--text);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-xs) var(--ease-out), border-color var(--dur-xs) var(--ease-out), color var(--dur-xs) var(--ease-out), transform var(--dur-xs) var(--ease-out);
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn::after { content: "\2192"; font-family: var(--mono); font-size: .9em; display: inline-block; overflow: hidden; width: 0; opacity: 0; margin-left: -10px; transform: translateX(-6px); transition: width var(--dur-s) var(--ease-out), opacity var(--dur-xs) var(--ease-out), transform var(--dur-s) var(--ease-out), margin var(--dur-s) var(--ease-out); }
.btn:hover::after, .btn:focus-visible::after { width: 1ch; opacity: 1; margin-left: 0; transform: none; }
.nav .btn::after { display: none; }
.btn.primary { background: var(--paper); color: #0b0f0e; border-color: var(--paper); }
.btn.primary:hover { background: #fff; }
body.paper .btn.primary { background: #121614; color: #f3f2ec; border-color: #121614; }
.nav .btn { padding: 9px 14px; font-size: 14px; color: #0b0f0e; white-space: nowrap; }
@media (max-width: 760px) {
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-s { display: none; }
}

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: left; }
html.motion .sec::before { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
html.motion .sec.in::before { transform: scaleX(1); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); max-width: 14ch; letter-spacing: -0.022em; }
.sec-head p { color: var(--mute); max-width: 46ch; margin: 0; font-size: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: 96px 0 64px; overflow: hidden; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--ink) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-size: clamp(2.6rem, 11.6vw, 8.4rem);
  font-weight: 660; font-stretch: 72%;
  line-height: .9; letter-spacing: -0.028em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .ln-i { display: block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 48px; margin-top: clamp(32px, 5vw, 56px); align-items: end; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 44ch; margin: 0; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meter { justify-self: end; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.hero-meter b { color: var(--cyan); font-weight: 500; }
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 200px 0 56px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-meter { justify-self: start; text-align: left; }
}

/* ---------- problem ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.problem-grid .lede { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.4; max-width: 30ch; font-stretch: 92%; }
.scaling { font-family: var(--mono); font-size: 13px; border-top: 1px solid var(--rule); }
.scaling div { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.scaling span:first-child { font-family: var(--sans); font-size: 15px; color: var(--mute); }
.scaling .up { color: var(--cyan); }
.scaling .down { color: var(--amber); }
.scaling-note { font-size: 13px; color: var(--dim); margin-top: 12px; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- simulator ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stage { position: sticky; top: calc(var(--header-h) + 16px); }
.stage-box { position: relative; aspect-ratio: 5 / 6; background: radial-gradient(120% 80% at 50% 100%, var(--ink-3), var(--ink) 70%); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.stage-box canvas { width: 100%; height: 100%; }
.stage-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 10px; }
.engine-label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.45; color: var(--text);
  border: 1px solid var(--amber); background: var(--amber-soft);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 20px;
}
.engine-label svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--amber); }

.ctrl { margin-bottom: 22px; }
.ctrl-name { display: block; font-size: 14px; color: var(--mute); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  font: 500 14px/1.2 var(--sans); font-stretch: 92%;
  color: var(--mute); background: transparent;
  border: 1px solid var(--rule-2); border-radius: 999px;
  padding: 8px 13px; cursor: pointer;
  transition: color var(--dur-xs) var(--ease-out), border-color var(--dur-xs) var(--ease-out), background var(--dur-xs) var(--ease-out);
}
.seg button:hover { color: var(--text); border-color: var(--mute); }
.seg button[aria-pressed="true"] { color: #0b0f0e; background: var(--cyan); border-color: var(--cyan); }
.seg-desc { font-size: 13px; color: var(--dim); margin-top: 8px; min-height: 1.4em; }

.vol { margin: 6px 0 26px; }
.vol-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vol-val { font-family: var(--mono); font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.vol-val small { font-size: .42em; color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.vol-verdict { font-size: 14px; text-align: right; max-width: 24ch; color: var(--mute); }
.vol-verdict b { font-weight: 600; }
.vol-verdict.fail b { color: var(--amber); }
.vol-verdict.ok b { color: var(--cyan); }
.slider { position: relative; height: 54px; margin-top: 10px; }
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 2; }
.slider input::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.slider input::-moz-range-track { height: 2px; background: transparent; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); box-shadow: 0 0 0 1px var(--paper); margin-top: -10px; }
.slider input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); box-shadow: 0 0 0 1px var(--paper); }
.slider input:focus-visible { outline: none; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--cyan); }
.slider input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--cyan); }
.track { position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; background: var(--rule-2); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--paper); }
.tick { position: absolute; top: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }
.tick::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 8px; background: var(--rule-2); }
.cross { position: absolute; bottom: 8px; width: 2px; height: 14px; transform: translateX(-1px); background: var(--amber); }
.cross span { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--amber); white-space: nowrap; }
.cross.alt span { bottom: 30px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.ours { display: flex; align-items: center; gap: 12px; }
.ours input[type="range"] { flex: 1; accent-color: var(--cyan); min-width: 0; }
.ours output { font-family: var(--mono); font-size: 13px; white-space: nowrap; min-width: 11ch; text-align: right; }

.bars { border-top: 1px solid var(--rule); margin-top: 6px; }
.bar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 4.2rem; gap: 6px 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.bar-name { font-size: 15px; line-height: 1.2; }
.bar-name small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 3px; }
.bar-track { position: relative; height: 10px; background: var(--ink-3); border-radius: 1px; }
.bar-track .warnband { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(242,163,58,.18) 3px 5px); }
.bar-track .one { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--text); opacity: .7; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--cyan); transition: width var(--dur-xs) var(--ease-out), background-color var(--dur-xs) var(--ease-out); }
html.motion #sim:not(.in) .bar-fill { width: 0 !important; }
html.motion #sim.in .bar-fill { transition: width 1.1s var(--ease-out), background-color var(--dur-xs) var(--ease-out); }
html.motion #sim.in .bar:nth-child(2) .bar-fill { transition-delay: .06s; }
html.motion #sim.in .bar:nth-child(3) .bar-fill { transition-delay: .12s; }
html.motion #sim.in .bar:nth-child(4) .bar-fill { transition-delay: .18s; }
html.motion #sim.in .bar:nth-child(5) .bar-fill { transition-delay: .24s; }
.bar[data-status="warn"] .bar-fill { background: color-mix(in srgb, var(--amber) 55%, var(--ink)); }
.bar[data-status="fail"] .bar-fill { background: var(--amber); }
.bar-val { font-family: var(--mono); font-size: 15px; text-align: right; }
.bar[data-status="fail"] .bar-val { color: var(--amber); }
.bar[data-status="na"] .bar-track { background: transparent; border: 1px dashed var(--rule-2); }
.bar[data-status="na"] .bar-val { color: var(--dim); }
.bar-note { grid-column: 2 / 4; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.bar-note:empty { display: none; }
.axis { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 4.2rem; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-top: 6px; }
.axis .scale { position: relative; height: 14px; }
.axis .scale span { position: absolute; transform: translateX(-50%); }
@media (max-width: 520px) {
  .bar, .axis { grid-template-columns: minmax(0, 6.6rem) minmax(0, 1fr) 3.4rem; gap: 6px 10px; }
  .bar-name { font-size: 14px; }
  .bar-val { font-size: 13.5px; }
}

.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 26px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.readout div { padding: 10px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.readout dt { font-size: 12.5px; color: var(--mute); }
.readout dd { margin: 2px 0 0; font-family: var(--mono); font-size: 15px; }
.readout dd small { color: var(--dim); font-size: 11.5px; margin-left: 4px; }
@media (max-width: 520px) { .readout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .readout div { padding: 9px 10px; } }
.sim-notes { font-size: 13px; color: var(--mute); margin-top: 14px; }
.sim-notes p { margin: 0 0 .4em; }
.sim-notes .cap { color: var(--amber); }
.sim-foot { font-size: 13px; color: var(--dim); margin-top: 18px; max-width: 70ch; }
@media (max-width: 960px) {
  .sim { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* the vessel stays in view while the controls scroll under it */
  .stage { position: sticky; top: var(--header-h); z-index: 3; background: var(--ink); padding: 8px 0 6px; margin: -8px 0 0; }
  .stage-box { aspect-ratio: auto; height: min(30vh, 260px); }
  .stage-cap { margin-top: 6px; font-size: 11px; }
}

/* ---------- five checks ---------- */
.checks { border-top: 1px solid var(--rule); }
.check { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 16px 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.check::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-m) var(--ease-out); }
.check:hover::after { transform: scaleX(1); }
.check h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.check p { color: var(--mute); margin: 10px 0 0; font-size: 16px; max-width: 38ch; }
.check .ratio { font-family: var(--mono); font-size: 14px; line-height: 1.7; }
.check .ratio b { display: block; font-weight: 500; color: var(--text); font-size: 15px; }
.check .ratio span { color: var(--dim); }
.check math { font-size: 1.12em; }
.check .eq { color: var(--text); }
@media (max-width: 860px) { .check { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step .n { font-family: var(--mono); font-size: clamp(64px, 8vw, 112px); font-weight: 400; line-height: 1; color: var(--rule-2); letter-spacing: -0.06em; }
.step h3 { font-size: 1.45rem; margin: 18px 0 10px; font-stretch: 86%; }
.step p { color: var(--mute); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .step .n { font-size: 56px; }
}

/* ---------- traceable ---------- */
.trace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; }
.trace-sample { font-family: var(--mono); font-size: 13px; line-height: 1.75; background: var(--ink-2); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; overflow-x: auto; color: var(--mute); }
.trace-sample b { color: var(--text); font-weight: 500; }
.trace-sample .k { color: var(--cyan); }
.trace-sample .a { color: var(--amber); }
.trace li { padding: 16px 0 0; border-top: 1px solid var(--rule); color: var(--mute); font-size: 15.5px; }
.trace li strong { color: var(--text); font-weight: 560; display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .trace { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---------- vessels to scale (hub) ---------- */
.vessels { display: flex; align-items: flex-end; gap: clamp(18px, 4vw, 56px); }
.vessels figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.vessels svg { overflow: visible; }
.vessels path, .vessels line, .vessels rect { fill: none; stroke: var(--mute); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.vessels.planned g path, .vessels.planned g line { stroke-dasharray: 5 4; }
.vessels figcaption { white-space: nowrap; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); text-align: center; }
.vessels figcaption b { display: block; font-size: 15px; color: var(--text); font-weight: 500; }
.vessels .mk { stroke: #fff; stroke-width: 4; stroke-dasharray: var(--len, 2000) var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.4s var(--ease-io); }
.vessels.on .mk { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .vessels .mk { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; } }

.hubgrid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: end; }
.hubgrid .lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; max-width: 34ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--amber); border: 1px dashed var(--amber); border-radius: 999px; padding: 5px 11px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--amber); }
@media (max-width: 860px) { .hubgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- status board ---------- */
.status { border-top: 1px solid var(--text); font-size: 16px; }
.status-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.status-row .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dim); transform: translateY(1px); }
.status-row .dot.done { background: var(--cyan); border-color: var(--cyan); }
.status-row .dot.part { background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); border-color: var(--amber); }
.status-row .dot.none { border-style: dashed; }
.status-row b { font-weight: 560; }
.status-row span { color: var(--mute); }
.status-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.status-strip i { font-style: normal; color: var(--amber); }
@media (max-width: 640px) { .status-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.person .plate { width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: 50%; background: #dfe3dc; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.person .plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; filter: saturate(.85) contrast(1.02); }
.person h3 { font-size: 1.55rem; margin: 22px 0 6px; font-stretch: 86%; }
.person .role { color: var(--cyan); font-size: 15px; margin-bottom: 8px; }
.person p { color: var(--mute); font-size: 15px; margin: 0; max-width: 34ch; }
.hiring { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; }
.hiring p { margin: 0; font-size: 18px; }
.hiring p span { color: var(--mute); }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } .person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 20px; align-items: center; } .person h3 { margin-top: 0; } .person .plate { grid-row: span 3; } }

/* ---------- CTA form ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.cta-grid h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 12ch; }
.cta-grid .lede { color: var(--mute); font-size: 18px; max-width: 38ch; margin-top: 22px; }
form.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
form.ask label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mute); }
form.ask label.full { grid-column: 1 / -1; }
form.ask input, form.ask select, form.ask textarea {
  font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--ink-2);
  border: 1px solid var(--rule-2); border-radius: 4px; padding: 12px 12px; width: 100%;
}
form.ask textarea { min-height: 120px; resize: vertical; }
form.ask input:focus, form.ask select:focus, form.ask textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
form.ask .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
form.ask .hint { font-size: 13px; color: var(--dim); max-width: 46ch; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { form.ask { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 22px; }
.site-foot a { color: var(--mute); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

/* ---------- long-form pages (method, hub) ---------- */
.page-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.5rem, 6.6vw, 5.4rem); max-width: 14ch; font-weight: 640; font-stretch: 76%; line-height: .96; letter-spacing: -0.022em; }
.page-hero .lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--mute); max-width: 52ch; margin-top: 26px; }
.meta-line { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--mute); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a { transition: color var(--dur-xs) var(--ease-out), border-color var(--dur-xs) var(--ease-out); }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--text); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 64px 0 18px; font-stretch: 82%; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 34px 0 10px; font-stretch: 92%; font-weight: 600; }
.prose p, .prose li { font-size: 17px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--ink-2); padding: 1px 5px; border-radius: 3px; }
.eqn { margin: 18px 0 22px; padding: 16px 20px; background: var(--ink-2); border-left: 2px solid var(--cyan); overflow-x: auto; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.eqn math { font-size: 1.16em; }
.eqn .tag { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.where { font-size: 14.5px; color: var(--mute); margin-top: -8px; }
.callout { border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 4px; padding: 14px 16px; font-size: 15.5px; margin: 22px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0 24px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--mute); font-size: 13px; }
.tbl td.m { font-family: var(--mono); font-size: 13.5px; }
.tbl-wrap { overflow-x: auto; }
.refs { list-style: none; padding: 0; counter-reset: ref; }
.refs li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--mute); }
.refs li b { color: var(--text); font-weight: 560; }
.refs .k { font-family: var(--mono); font-size: 12px; color: var(--dim); display: block; margin-bottom: 2px; }
.tagv { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--rule-2); color: var(--mute); display: inline-block; max-width: 100%; }
.tagv.ok { border-color: var(--cyan); color: var(--cyan); }
.tagv.as { border-color: var(--amber); color: var(--amber); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 0 4px; border-left: 0; } .toc a { padding: 4px 10px 4px 0; border: 0; } }
@media print {
  .site-head, .site-foot, .toc, .skip { display: none !important; }
  body.paper { background: #fff; }
  .doc { display: block; }
  .eqn { break-inside: avoid; }
}

/* hub page */
.levels { border-top: 1px solid var(--rule); }
.level { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.level .v { font-family: var(--mono); font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1; }
.level h3 { font-size: 1.45rem; font-stretch: 86%; }
.level p { color: var(--mute); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 860px) { .level { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule-2); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1.5px dashed var(--dim); }
.timeline li.done::before { background: var(--cyan); border: 1.5px solid var(--cyan); }
.timeline b { display: block; font-weight: 560; }
.timeline span { color: var(--mute); font-size: 15px; }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.loop div { padding: 22px 20px 22px 0; }
.loop div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.loop .n { font-family: var(--mono); color: var(--dim); font-size: 13px; }
.loop b { display: block; font-size: 1.2rem; font-weight: 600; font-stretch: 88%; margin: 8px 0 6px; }
.loop p { color: var(--mute); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .loop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .loop div:nth-child(3) { padding-left: 0; border-left: 0; } .loop div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .loop { grid-template-columns: minmax(0, 1fr); } .loop div, .loop div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule); } }
.hub-hero { align-items: end; padding-bottom: clamp(56px, 8vw, 96px); }
.hub-hero .page-hero { padding-bottom: 0; }
.hub-hero .vessels { justify-content: flex-end; }
@media (max-width: 860px) { .hub-hero .vessels { justify-content: flex-start; gap: 14px; } }
.stage-zones { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--amber); min-height: 1.45em; }
.prose .refs { padding-left: 0; }

/* ================= motion layer (rev 29/10/2026) ================= */
/* Text that reveals by lines stays hidden only while JS is about to split it (html.motion is set in <head>). */
html.motion [data-split], html.motion #hero-title, html.motion .hero-sub { visibility: hidden; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln-i { display: inline-block; will-change: transform; }
[data-split] .ln-i { display: block; }
[data-split="p"] .ln { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- scroll story: one vessel, 10 to 1,000 L ---------- */
.story { padding-bottom: clamp(56px, 7vw, 96px); }
.story .sec-head { margin-bottom: clamp(24px, 4vw, 48px); }
.story-pin { padding: 8px 0 clamp(40px, 6vw, 72px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-beats { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--rule); position: relative; }
.beat { position: relative; padding: 18px 0 22px; transition: opacity var(--dur-s) var(--ease-out); }
.beat + .beat { border-top: 1px solid var(--rule); }
.beat-v { font-size: 12.5px; color: var(--dim); letter-spacing: .02em; transition: color var(--dur-s) var(--ease-out); }
.beat h3 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-stretch: 80%; margin: 8px 0 10px; }
.beat p { color: var(--mute); font-size: 16px; margin: 0; max-width: 40ch; }
.beat p b { color: var(--text); font-weight: 500; font-size: .94em; }
.beat p b.amber { color: var(--amber); }
.beat::before { content: ""; position: absolute; left: -23px; top: 0; width: 1px; height: 0; background: var(--text); transition: height var(--dur-m) var(--ease-out); }
html.motion .story-pin { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 0; }
html.motion .story-pin > .wrap { width: 100%; }
html.motion .beat { opacity: .26; }
html.motion .beat.on { opacity: 1; }
html.motion .beat.on .beat-v { color: var(--cyan); }
html.motion .beat.on::before { height: 100%; }
html.motion .beat[data-v="1000"].on .beat-v { color: var(--amber); }

.story-stage { min-width: 0; }
.story-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.story-vol { font-family: var(--mono); font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-vol small { font-size: .32em; color: var(--mute); margin-left: 8px; letter-spacing: 0; }
.story-ctx { margin: 0; text-align: right; font-size: 13px; color: var(--dim); line-height: 1.55; }
.story-flag { font-family: var(--mono); font-size: 12px; color: var(--cyan); transition: color var(--dur-xs) var(--ease-out); }
.story-flag[data-s="warn"] { color: color-mix(in srgb, var(--amber) 70%, var(--mute)); }
.story-flag[data-s="fail"] { color: var(--amber); }
.story-fig { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding-top: 18px; }
#story-svg { width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - 190px); overflow: visible; }
.st-ghost, .st-floor { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.st-lab { font-family: var(--mono); font-size: 13px; fill: var(--dim); }
.st-wall { fill: none; stroke: var(--cyan); stroke-width: 1.6; transition: stroke var(--dur-s) var(--ease-out); }
.st-wall.fail { stroke: var(--text); }
.st-surf { stroke: rgba(95, 211, 198, .5); stroke-width: 1; }
.st-lid, .st-shaft { stroke: var(--text); stroke-width: 1.2; }
.st-imp { stroke: var(--text); stroke-width: 3; }
.st-feed { stroke: var(--amber); stroke-width: 1.2; }
.st-dim { stroke: var(--dim); stroke-width: 1; }

.story-bars { border-top: 1px solid var(--rule); }
.sbar { display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem; grid-template-areas: "n v" "t t"; gap: 6px 10px; padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.sbar-n { grid-area: n; font-size: 14px; color: var(--mute); transition: color var(--dur-xs) var(--ease-out); }
.sbar-v { grid-area: v; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; transition: color var(--dur-xs) var(--ease-out); }
.sbar-t { grid-area: t; position: relative; height: 6px; background: var(--ink-3); }
.sbar-t i { position: absolute; top: 0; bottom: 0; display: block; }
.sbar-t .sbar-w { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(242, 163, 58, .2) 3px 5px); }
.sbar-t .sbar-f { left: 0; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); transition: background-color var(--dur-xs) var(--ease-out); }
.sbar-t .sbar-1 { width: 1px; top: -4px; bottom: -4px; background: var(--text); opacity: .7; }
.sbar[data-s="warn"] .sbar-f { background: color-mix(in srgb, var(--amber) 55%, var(--ink)); }
.sbar[data-s="fail"] .sbar-f { background: var(--amber); }
.sbar[data-s="fail"] .sbar-v, .sbar[data-s="fail"] .sbar-n { color: var(--amber); }
.sbar[data-s="na"] .sbar-t { background: transparent; border: 1px dashed var(--rule-2); }
.sbar[data-s="na"] .sbar-v, .sbar[data-s="na"] .sbar-n { color: var(--dim); }
.story-note { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.story .problem-grid { margin-top: clamp(48px, 7vw, 96px); }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .story-fig { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding-top: 12px; align-items: center; }
  .story-vol { font-size: 46px; }
  .story-ctx { font-size: 11.5px; }
  #story-svg { max-height: 36svh; }
  .sbar { padding: 7px 0 8px; gap: 4px 8px; }
  .sbar-n, .sbar-v { font-size: 12.5px; }
  .story-note { font-size: 11.5px; margin-top: 8px; }
  html.motion .story-pin { padding: 8px 0; }
  html.motion .story-beats { display: grid; padding-left: 14px; }
  html.motion .beat { grid-area: 1 / 1; padding: 4px 0 10px; border-top: 0; opacity: 0; }
  html.motion .beat::before { left: -15px; }
  html.motion .beat.on { opacity: 1; }
  html.motion .beat h3 { font-size: 1.35rem; margin: 4px 0 6px; }
  html.motion .beat p { font-size: 14.5px; }
}

/* ---------- product report (prototype interface) ---------- */
.app {
  --app-line: #222d2a;
  background: #0e1412; border: 1px solid var(--app-line); border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 80px -40px rgba(0, 0, 0, .7);
  font-size: 14px; overflow: hidden;
}
.app-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 12px 18px; border-bottom: 1px solid var(--app-line); background: #0c1110; }
.app-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--dim); }
.app-crumbs > span:not(.app-mark)::after { content: "/"; margin: 0 9px; color: var(--rule-2); }
.app-crumbs b { color: var(--text); font-weight: 560; }
.app-mark { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cyan); margin-right: 10px; }
.app-flag { margin: 0; font-size: 13px; color: var(--dim); }
.app-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.app-col { padding: 18px 20px 20px; min-width: 0; }
.app-body .app-col + .app-col, .app-foot .app-col + .app-col { border-left: 1px solid var(--app-line); }
.app-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; }
.app-h h3 { font-size: 12px; font-weight: 600; font-stretch: 100%; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); line-height: 1.3; }
.app-h2 { margin-top: 18px; }
.app-sub, .app-legend { font-size: 11.5px; color: var(--dim); }
.app-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.app-legend .cf { margin-left: 6px; }
.cf { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 3px; font: 500 10.5px/1 var(--mono); font-style: normal; border: 1px solid var(--rule-2); color: var(--mute); }
.cf-a { border-color: var(--cyan); color: #06100e; background: var(--cyan); }
.cf-b { border-color: var(--cyan); color: var(--cyan); }
.cf-c { border-color: color-mix(in srgb, var(--amber) 70%, transparent); color: var(--amber); }
.app-tbl { width: 100%; border-collapse: collapse; }
.app-tbl th, .app-tbl td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--app-line); text-align: left; vertical-align: baseline; }
.app-tbl thead th { font-size: 11px; font-weight: 500; color: var(--dim); padding-top: 0; letter-spacing: .02em; }
.app-tbl thead th small { color: var(--dim); font-size: 10px; margin-left: 2px; }
.app-tbl tbody th { font-weight: 400; color: var(--text); }
.app-tbl .r { text-align: right; }
.app-tbl td:last-child, .app-tbl th:last-child { padding-right: 0; }
.app-tbl small { font-size: 11px; color: var(--dim); margin-left: 4px; }
.app-tbl .sym, .app-measure .sym { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-left: 4px; }
.app-tbl .src, .app-reactor .src { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cnum { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.app-reactor { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.6; }
.app-reactor .cf { margin: 0 4px 0 2px; vertical-align: -3px; }

/* rows resolve: a skeleton bar sits over each block until --sk (set by the scroll timeline) reaches 0 */
#app-inputs tbody tr, #app-scale td[data-col], .v-row, .sens-r, .app-measure li, .app-reactor { --sk: 0; position: relative; }
#app-inputs tbody tr > *, #app-scale td[data-col] > *, .v-row > *, .sens-r > *, .app-measure li > * { opacity: calc(1 - var(--sk)); }
#app-inputs tbody tr::after, #app-scale td[data-col]::after, .v-row::after, .sens-r::after, .app-measure li::after, .app-reactor::after {
  content: ""; position: absolute; left: 0; right: 35%; top: 50%; height: 7px; margin-top: -3px; border-radius: 2px;
  background: #1c2725; opacity: var(--sk); pointer-events: none;
}
#app-scale td[data-col]::after { left: 30%; right: 0; }
.app-reactor > span { opacity: calc(1 - var(--sk)); }
.app-scale tr.sep td { border: 0; padding: 4px 0; }
.app-scale tr.op th, .app-scale tr.op td { color: var(--mute); }
.app-scale tr.ck th { font-size: 13.5px; }
.app-scale tr.ck th small { display: block; margin: 2px 0 0; font-family: var(--mono); font-size: 10.5px; }
.app-scale td[data-s] { white-space: nowrap; }
.app-scale td[data-s="warn"] .cnum { color: color-mix(in srgb, var(--amber) 70%, var(--text)); }
.app-scale td[data-s="fail"] .cnum { color: var(--amber); }
.mbar { display: inline-block; position: relative; width: 44px; height: 4px; background: var(--ink-3); margin-right: 10px; vertical-align: 2px; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(calc(var(--p) * var(--k, 1))); }
.mbar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--text); opacity: .6; }
td[data-s="warn"] .mbar i { background: color-mix(in srgb, var(--amber) 55%, var(--ink)); }
td[data-s="fail"] .mbar i { background: var(--amber); }

.app-verdict { margin-bottom: 18px; border: 1px solid var(--app-line); border-radius: 6px; background: #0b100f; }
.v-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 11px 14px; align-items: baseline; }
.v-row + .v-row { border-top: 1px solid var(--app-line); }
.v-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.v-main { display: flex; flex-wrap: wrap; gap: 2px 18px; align-items: baseline; }
.v-l { margin: 0; font-size: clamp(18px, 1.9vw, 23px); font-weight: 600; font-stretch: 84%; line-height: 1.2; }
.v-l.fail { color: var(--amber); }
.v-l::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 3px; background: var(--cyan); }
.v-l.fail::before { background: var(--amber); }
.v-t { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.v-t b.amber { color: var(--amber); font-weight: 560; }
.v-t .cnum { color: var(--text); }

.app-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--app-line); }
.app-sens { font-size: 12px; }
.sens-h, .sens-r { display: grid; grid-template-columns: 4.6rem repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.sens-h { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-bottom: 6px; }
.sens-h span { text-align: center; }
.sens-r { padding: 3px 0; }
.sens-r .sym { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.chip { font-family: var(--mono); font-size: 11px; text-align: center; padding: 5px 4px; border-radius: 3px; background: #121a18; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 500; }
.chip.base { color: var(--mute); background: transparent; box-shadow: inset 0 0 0 1px var(--app-line); }
.chip.moved { color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent); }
.app-measure { list-style: none; counter-reset: m; margin: 0; padding: 0; }
.app-measure li { counter-increment: m; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0 6px; padding: 8px 0; border-bottom: 1px solid var(--app-line); }
.app-measure li::before { content: counter(m, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--dim); grid-row: span 2; padding-top: 2px; opacity: calc(1 - var(--sk)); }
.app-measure li b { font-weight: 500; font-size: 13.5px; }
.app-measure li > span { color: var(--dim); font-size: 12px; grid-column: 2; }
.app-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 9px 18px; border-top: 1px solid var(--app-line); background: #0c1110; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.app-status span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: 1px; }
#app-scale tbody tr { transition: background var(--dur-xs) var(--ease-out); }
#app-scale tbody tr:not(.sep):hover { background: rgba(255, 255, 255, .025); }

@media (max-width: 960px) {
  .app-body, .app-foot { grid-template-columns: minmax(0, 1fr); }
  .app-body .app-col + .app-col, .app-foot .app-col + .app-col { border-left: 0; border-top: 1px solid var(--app-line); }
}
@media (max-width: 520px) {
  .app { font-size: 13px; border-radius: 8px; }
  .app-col { padding: 14px 14px 16px; }
  .app-bar { padding: 10px 14px; }
  .app-crumbs > span:nth-child(2) { display: none; }
  #app-inputs th:last-child, #app-inputs td.src { display: none; }
  .mbar { display: none; }
  .v-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sens-h, .sens-r { grid-template-columns: 3.4rem repeat(3, minmax(0, 1fr)); gap: 4px; }
  .chip { font-size: 10px; padding: 4px 2px; line-height: 1.3; }
  .chip b, .chip span { display: block; }
  .app-status { padding: 8px 14px; }
}

/* 09/11/2026: il team sono Giacomo e Stefano; la terza card e' il posto aperto per il reclutamento Nucleate. */
.person.seat .plate { background: transparent; border: 1px solid rgba(255, 255, 255, .18); }
