/*
  analyst.loomiks.ai. Family of loomiks.ai, the Sizer and the Planner: dark ground, Quicksand only, pill buttons,
  a light running along the header line. Palette Glacier (owner, 2 December 2026): ice blue accent, brass second
  colour, ink navy ground. Layout idea: a committee paper on an instrument panel; a column of names, a rule, and
  the work to the right. No inline style anywhere: positions on charts and bars are SVG geometry.
*/
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/quicksand-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/quicksand-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/quicksand-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/quicksand-latin-700.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --ground: #070b12;
  --sheet: #0c1320;
  --ink: #f2f6fb;
  --accent: #7cc4ff;
  --accent-hi: #bfe3ff;
  --accent-lo: #3b9df5;
  --on-accent: #04121f;
  --second: #f0cc86;
  --second-hi: #fbe6bd;
  --glow: 124, 196, 255;
  --ink2: color-mix(in srgb, var(--ink) 74%, transparent);
  --ink3: color-mix(in srgb, var(--ink) 55%, transparent);
  --rule: rgba(255, 255, 255, 0.085);
  --rule2: rgba(255, 255, 255, 0.17);
  /* Edges that identify a control: at least 3:1 against the ground (WCAG 2.1, 1.4.11). */
  --edge: rgba(255, 255, 255, 0.42);
  --card: rgba(255, 255, 255, 0.03);
  --ok: #86e3a4;
  --wait: #f6c768;
  --stop: #ff8d84;
  --f: 'Quicksand', 'Avenir Next', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
:is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 86rem); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--ground); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* Header: words on a line, and a light runs along the line. The same idea as the other three sites, in this product's colour. */
.top { position: sticky; top: 0; z-index: 30; height: 68px; }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 96%, transparent), color-mix(in srgb, var(--ground) 86%, transparent)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bus { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, var(--rule2) 4%, var(--rule2) 96%, transparent); }
.bus::after { content: ''; position: absolute; top: 0; left: -240px; width: 240px; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hi)); animation: run 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
@keyframes run { 0% { transform: translateX(0); opacity: 0; } 8%, 55% { opacity: 1; } 62%, 100% { transform: translateX(calc(100vw + 240px)); opacity: 0; } }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { display: flex; align-items: center; height: 44px; }
.logo svg { display: block; width: 106px; height: 28px; }
.prod { position: relative; padding-left: 15px; color: var(--accent); font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.prod::before { content: ''; position: absolute; top: 50%; left: 0; width: 1px; height: 16px; margin-top: -8px; background: var(--rule2); }
.acts { display: flex; align-items: center; gap: 22px; }
.link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); font-size: 0.90625rem; text-decoration: none; white-space: nowrap; transition: color 0.18s; }
.link:hover { color: #fff; }
.link .ic { opacity: 0.8; transition: transform 0.18s; }
.link:hover .ic { transform: translate(1px, -1px); }
.link.open { color: var(--accent-hi); font-weight: 600; }
@media (max-width: 900px) { .acts .link:not(.open) { display: none; } }
@media (max-width: 560px) { .prod { display: none; } }

/* Buttons are pills. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 0.96rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s; }
.btn.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); box-shadow: 0 14px 40px -16px rgba(var(--glow), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 46px -14px rgba(var(--glow), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.ghost { border-color: var(--edge); background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Opening: the months of the model behind the words. */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60rem 34rem at 78% 18%, rgba(var(--glow), 0.16), transparent 62%), radial-gradient(40rem 26rem at 8% 96%, rgba(var(--glow), 0.07), transparent 60%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero-bg .month { stroke: rgba(255, 255, 255, 0.04); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-bg .month.year { stroke: rgba(var(--glow), 0.22); }
.hero-scale { position: absolute; right: 0; bottom: 14px; left: 0; z-index: -1; display: flex; justify-content: space-between; color: var(--ink3); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 15px 7px 12px; border: 1px solid rgba(var(--glow), 0.38); border-radius: 999px; background: rgba(var(--glow), 0.09); color: var(--accent-hi); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--glow), 0.9); }
.hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 5.2vw, 4.9rem); font-weight: 600; line-height: 0.99; letter-spacing: -0.052em; }
.hero h1 em, .catalog h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 34rem; margin-top: 26px; color: var(--ink2); font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.6; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; } .hero-copy > :nth-child(3) { animation-delay: 0.16s; } .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The approval ladder: what to approve today, what waits for evidence, what stays on hold. */
.ladder { position: relative; padding: 22px; border: 1px solid var(--rule2); border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--sheet) 92%, transparent), color-mix(in srgb, var(--ground) 92%, transparent)); box-shadow: 0 50px 120px -60px rgba(var(--glow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ladder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--ink3); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.rung { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 16px 16px 14px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.rung + .rung { margin-top: 10px; }
.rung .step { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rule2); border-radius: 50%; color: var(--ink2); font-size: 0.8rem; font-weight: 700; }
.rung .what { min-width: 0; }
.rung .when { color: var(--ink3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rung .name { font-weight: 600; line-height: 1.3; }
.rung .sum { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.rung .needs { grid-column: 2 / -1; color: var(--ink3); font-size: 0.86rem; line-height: 1.45; }
.rung.now { border-color: rgba(var(--glow), 0.6); background: linear-gradient(180deg, rgba(var(--glow), 0.16), rgba(var(--glow), 0.05)); box-shadow: 0 0 0 1px rgba(var(--glow), 0.25), 0 24px 60px -34px rgba(var(--glow), 0.9); }
.rung.now .step { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.rung.now .when { color: var(--accent-hi); }
.rung.hold { border-style: dashed; }
.rung.hold .sum { color: var(--ink3); }
.share { margin-top: 16px; }
.share p { margin-top: 9px; color: var(--ink2); font-size: 0.86rem; }
.share b { color: var(--ink); font-weight: 700; }

/* Bars drawn as SVG: a track, a filled share, a gradient. */
.bar { display: block; overflow: visible; }
.bar .bar-track { fill: rgba(255, 255, 255, 0.07); }
.share-bar .stop-lo { stop-color: var(--accent-lo); } .share-bar .stop-hi { stop-color: var(--accent-hi); }
.share-bar .bar-fill { filter: drop-shadow(0 0 7px rgba(var(--glow), 0.85)); }
.meter { margin-top: 14px; }
.meter .bar-track { fill: rgba(255, 255, 255, 0.08); }
.meter .stop-lo { stop-color: var(--second); } .meter .stop-hi { stop-color: var(--second-hi); }

/* The band every screen carries. */
.band { position: sticky; top: 68px; z-index: 20; border-block: 1px solid var(--rule); background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.band-in { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.case-tag { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--second-hi); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.case-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--second); }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--ink2); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color 0.18s, background 0.18s; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current='true'] { background: rgba(var(--glow), 0.14); color: var(--accent-hi); }
@media (max-width: 1100px) { .band-in { flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px; } .tabs { margin-left: -6px; } .case-tag { white-space: normal; } html { scroll-padding-top: 168px; } }

/* Sections: a column of names, a rule, and the work to the right of it. */
.sec { padding: clamp(44px, 6vw, 84px) 0; border-bottom: 1px solid var(--rule); }
.sec-in { display: grid; grid-template-columns: minmax(180px, 15rem) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); }
.sec-in > * { min-width: 0; }
.sec-name { position: relative; padding-right: clamp(14px, 2vw, 28px); border-right: 1px solid var(--rule); }
.sec-name > div { position: sticky; top: 148px; }
.eyebrow { display: inline-block; margin-bottom: 12px; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sec h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; }
.sec-name p { margin-top: 12px; color: var(--ink3); font-size: 0.94rem; line-height: 1.5; }
@media (max-width: 860px) { .sec-in { grid-template-columns: minmax(0, 1fr); } .sec-name { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--rule); } .sec-name > div { position: static; } }

.panel { padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--rule); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.panel + .panel, .panel + .grid, .grid + .panel, .grid + .grid { margin-top: 16px; }
.grid > .panel, .next > .panel { margin-top: 0; }
.panel-title { margin-bottom: 16px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.grid { display: grid; gap: 16px; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.gap-top { margin-top: 18px; }
.label { color: var(--ink3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.big { margin-top: 8px; font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.big.accent { color: var(--accent-hi); }
.note { margin-top: 6px; color: var(--ink3); font-size: 0.88rem; line-height: 1.45; }
.prose { max-width: 44rem; color: var(--ink2); font-size: 1.04rem; line-height: 1.65; text-wrap: pretty; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.verdict h3 { flex: 1 1 22rem; font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.035em; }

/* Status: the word carries it; shape and colour only support it. */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--rule2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font-size: 0.82rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.status::before { content: ''; flex: none; width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.status.go { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.status.go::before { background: currentColor; }
.status.step { border-color: rgba(var(--glow), 0.55); background: rgba(var(--glow), 0.12); color: var(--accent-hi); }
.status.step::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status.wait { border-color: color-mix(in srgb, var(--wait) 50%, transparent); color: var(--wait); }
.status.out { border-color: color-mix(in srgb, var(--stop) 50%, transparent); color: var(--stop); }
.status.out::before { border-radius: 2px; transform: rotate(45deg); }
.status.plain { color: var(--ink2); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--rule2); border-radius: 999px; color: var(--ink2); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.chip.Signed, .chip.Measured, .chip.Confirmed { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.chip.Estimate { border-color: color-mix(in srgb, var(--wait) 40%, transparent); color: var(--wait); }
.chip.Missing { border-color: color-mix(in srgb, var(--stop) 40%, transparent); color: var(--stop); }

/* Controls */
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: background 0.18s, color 0.18s; }
.seg button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.seg button[disabled] { opacity: 0.45; cursor: not-allowed; }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field > label { color: var(--ink3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.field output { color: var(--ink); font-weight: 700; letter-spacing: 0; text-transform: none; }
.input, .select { height: 42px; max-width: 100%; padding: 0 14px; border: 1px solid var(--edge); border-radius: 12px; background: rgba(0, 0, 0, 0.28); color: var(--ink); font-weight: 600; }
.select option { background: var(--sheet); color: var(--ink); }
.input { width: 9.5rem; }
.input.narrow { width: 11rem; }
.input:hover, .select:hover { border-color: var(--ink2); }
:is(.input, .select)[aria-invalid='true'] { border-color: var(--stop); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stop) 25%, transparent); }
input[type='range'] { width: min(100%, 15rem); height: 42px; accent-color: var(--accent); }
.alert { margin-top: 14px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--wait) 50%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--wait) 9%, transparent); color: var(--wait); font-weight: 600; font-size: 0.92rem; }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.msgs { display: grid; gap: 8px; margin-top: 14px; }
.msg { padding: 10px 14px; border-left: 3px solid var(--wait); border-radius: 4px 12px 12px 4px; background: rgba(255, 255, 255, 0.035); color: var(--ink2); font-size: 0.9rem; }

/* Evidence editor */
fieldset.evidence { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
fieldset.evidence legend { padding: 0; font-weight: 600; }
.evidence-table .select { height: 38px; padding: 0 10px; }
.evidence-table th, .evidence-table td { text-align: left; white-space: normal; }
.fixed-value { font-weight: 600; }

/* Route cards */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 16px; align-items: start; }
.route { position: relative; padding: 22px; border: 1px solid var(--rule); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.route.pick { border-color: rgba(var(--glow), 0.6); box-shadow: 0 0 0 1px rgba(var(--glow), 0.22), 0 40px 90px -50px rgba(var(--glow), 0.9); background: linear-gradient(180deg, rgba(var(--glow), 0.11), rgba(var(--glow), 0.02)); }
.route.dim { opacity: 0.72; }
.route-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.route-id { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--rule2); border-radius: 10px; color: var(--ink2); font-weight: 700; }
.route.pick .route-id { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.route h3 { margin: 14px 0 4px; font-size: 1.22rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.route .today { color: var(--ink3); font-size: 0.9rem; line-height: 1.45; }
.kv { display: grid; margin: 18px 0 0; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.kv dt { color: var(--ink3); font-size: 0.86rem; line-height: 1.35; }
.kv dd { margin: 0; font-weight: 600; text-align: right; line-height: 1.35; }
.kv dd small { display: block; color: var(--ink3); font-size: 0.8rem; font-weight: 500; }
.conds { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.conds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.conds .cname { font-weight: 600; }
.conds .cmeta { grid-column: 1 / -1; color: var(--ink3); font-size: 0.82rem; }
.cstate { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.cstate.met { color: var(--ok); } .cstate.open { color: var(--wait); } .cstate.notmet { color: var(--stop); } .cstate.na { color: var(--ink2); }
details.why { margin-top: 14px; }
details.why summary, details.table summary { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-hi); font-size: 0.875rem; font-weight: 700; cursor: pointer; list-style: none; }
details.why summary::-webkit-details-marker, details.table summary::-webkit-details-marker { display: none; }
details.why summary::before, details.table summary::before { content: '+'; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.9rem; line-height: 1; }
details[open].why summary::before, details[open].table summary::before { content: '\2212'; }
details.why ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink2); font-size: 0.9rem; }

/* Charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink3); font: 600 11px var(--f); }
.chart .grid-line { stroke: var(--rule); }
.chart .axis { stroke: var(--rule2); }
.chart .own { stroke: var(--second); } .chart .partner { stroke: var(--accent); } .chart .pilot { stroke: var(--ink); }
.chart .line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .line.pilot { stroke-dasharray: 2 6; }
.chart .dot.own { fill: var(--second); } .chart .dot.partner { fill: var(--accent); } .chart .dot.pilot, .chart .dot.parity { fill: var(--ink); }
.chart .dot { stroke: var(--ground); stroke-width: 2; }
.chart .mark { stroke: var(--ink3); stroke-dasharray: 3 5; }
.chart .limit { stroke: var(--stop); stroke-dasharray: 6 5; }
.chart .tag { fill: var(--ink2); font-weight: 700; }
.chart .tag.own { fill: var(--second-hi); stroke: none; } .chart .tag.partner { fill: var(--accent-hi); stroke: none; } .chart .tag.pilot { fill: var(--ink); stroke: none; }
.chart .tag.stop { fill: var(--stop); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 12px; color: var(--ink2); font-size: 0.86rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 0; border-top: 3px solid var(--accent); border-radius: 2px; }
.legend i.own { border-color: var(--second); } .legend i.pilot { border-color: var(--ink); border-top-style: dotted; } .legend i.limit { border-color: var(--stop); border-top-style: dashed; border-top-width: 2px; }
details.table { margin-top: 16px; }
.scroll { margin-top: 12px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.scroll.flush { margin-top: 0; }
.table-note { padding: 10px 12px 0; color: var(--ink3); font-size: 0.84rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--ink3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
table.assume td:nth-child(2), table.assume td:nth-child(3), table.assume td:last-child { text-align: left; white-space: normal; }
.lock { color: var(--ink3); font-size: 0.78rem; font-weight: 600; }

/* Timeline lanes: the months of the model for each route, drawn in SVG. */
.lanes { display: grid; gap: 14px; margin-top: 6px; }
.lane-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; font-weight: 600; }
.track { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent calc(100% / 36)), rgba(255, 255, 255, 0.025); }
.track svg { position: absolute; inset: 0; display: block; overflow: visible; }
.track .span { fill: rgba(var(--glow), 0.3); }
.track .span.fixed { fill: rgba(255, 255, 255, 0.14); }
.track .pin { stroke: var(--ink); stroke-width: 2; }
.track .pin.spend { stroke: var(--second); }
.track .pin.peak { stroke: var(--stop); }
.track .pin.decide { stroke: var(--accent-hi); stroke-width: 3; }
.ticks { display: block; margin-top: 4px; overflow: visible; }
.ticks text { fill: var(--ink3); font: 600 11.5px var(--f); }
.steps { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink2); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.steps b { color: var(--ink); font-weight: 700; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink3); font-size: 0.82rem; }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 3px; height: 14px; background: var(--ink); } .key i.spend { background: var(--second); } .key i.peak { background: var(--stop); } .key i.decide { background: var(--accent-hi); }
.key i.span { width: 18px; height: 8px; border-radius: 999px; background: rgba(var(--glow), 0.3); }

/* Decision summary: the paper for the committee. */
.paper { position: relative; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--rule2); border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--sheet) 94%, #fff 0%), var(--sheet)); box-shadow: 0 40px 100px -60px rgba(var(--glow), 0.6); }
.paper p { max-width: 46rem; color: var(--ink2); font-size: 1.02rem; line-height: 1.7; text-wrap: pretty; }
.paper p + p { margin-top: 16px; }
.paper p:first-child { color: var(--second-hi); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.paper p:nth-child(2) { color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }
.paper p:last-child { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink3); font-size: 0.84rem; }
.paper b { color: var(--ink); font-weight: 700; }
.draft { display: inline-flex; margin-bottom: 14px; padding: 4px 10px; border: 1px dashed var(--wait); border-radius: 999px; color: var(--wait); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.copied { color: var(--ok); font-weight: 700; font-size: 0.9rem; }
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 16px; margin-top: 16px; }
.next .panel h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.next .panel p { margin: 8px 0 18px; color: var(--ink3); font-size: 0.94rem; }

/* The catalogue */
.catalog { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.catalog::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(56rem 30rem at 82% 0%, rgba(var(--glow), 0.13), transparent 62%); }
.catalog-head { max-width: 46rem; }
.catalog h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.048em; }
.demos { display: grid; gap: 22px; margin-top: clamp(36px, 5vw, 60px); }
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(22px, 3.2vw, 44px); border: 1px solid var(--rule2); border-radius: 28px; background: linear-gradient(180deg, rgba(var(--glow), 0.07), rgba(255, 255, 255, 0.012)); box-shadow: 0 50px 120px -70px rgba(var(--glow), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.demo h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.demo .kicker { margin-bottom: 20px; }
.demo .lede { margin-top: 18px; }
.demo-for { margin-top: 14px; color: var(--second-hi); font-size: 0.95rem; font-weight: 600; }
.demo-facts { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink2); font-size: 0.95rem; }
.demo-facts li { display: flex; align-items: baseline; gap: 10px; }
.demo-facts li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.demo .ctas { margin-top: 28px; }
.demo-figure .ladder { animation: none; }
@media (max-width: 980px) { .demo { grid-template-columns: minmax(0, 1fr); } }

/* Method note and legal text: long reading. */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.doc-in { max-width: 50rem; }
.doc h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.doc .lede { max-width: 44rem; }
.doc h2 { margin-top: 44px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.doc h3 { margin-top: 26px; font-size: 1.08rem; font-weight: 600; }
.doc p, .doc li { color: var(--ink2); font-size: 1rem; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc b, .doc strong { color: var(--ink); }
.doc .meta { margin-top: 18px; color: var(--ink3); font-size: 0.9rem; }
.formula { display: block; margin: 14px 0 0; padding: 14px 18px; border: 1px solid var(--rule2); border-radius: 14px; background: rgba(0, 0, 0, 0.28); color: var(--ink); font-size: 0.95rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.doc .scroll { margin-top: 14px; }
.legal-toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.legal-toc p { color: var(--ink3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-toc ol { margin-top: 8px; columns: 2 16rem; }
.legal-toc a { color: var(--accent-hi); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-scroll { margin-top: 14px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.legal-table td, .legal-table th { text-align: left; white-space: normal; vertical-align: top; }
.doc section { scroll-margin-top: 140px; }
.doc a { color: var(--accent-hi); }

/* Footer */
.foot { padding: 44px 0 72px; color: var(--ink3); font-size: 0.86rem; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; align-items: center; }
.foot .logo svg { width: 91px; height: 24px; opacity: 0.9; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.foot-links a { color: var(--ink2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-band { grid-column: 1 / -1; color: var(--second-hi); font-weight: 600; }
.foot-company { grid-column: 1 / -1; }
@media (max-width: 640px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-links { justify-content: flex-start; } }

@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* Narrow screens: each table row becomes a short card of label and value, so no row needs sideways scrolling. */
@media (max-width: 600px) {
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack th[scope='row'] { padding: 0 0 6px; border: 0; color: var(--ink); text-align: left; white-space: normal; }
  table.stack td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  table.stack td::before { content: attr(data-label); flex: none; max-width: 48%; color: var(--ink3); font-size: 0.78rem; font-weight: 600; text-align: left; }
  table.assume td:nth-child(2), table.assume td:nth-child(3), table.assume td:last-child { text-align: right; }
  .evidence-table td .select, .evidence-table td .input { width: 58%; }
  .scroll { overflow-x: visible; }
}

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

/* Printing: a light page that keeps the band, the figures and the summary; controls and the moving parts stay off. */
@media print {
  :root { color-scheme: light; --ground: #fff; --sheet: #fff; --ink: #10161f; --accent: #1c5fa8; --accent-hi: #1c5fa8; --accent-lo: #1c5fa8; --on-accent: #fff; --second: #8a5a00; --second-hi: #8a5a00; --ok: #1d6b3a; --wait: #8a5a00; --stop: #a3221a; --rule: #d6dbe3; --rule2: #b9c1cd; --ink2: #2b3440; --ink3: #4a5563; --glow: 28, 95, 168; }
  body { background: #fff; color: var(--ink); }
  .skip, .top, .tabs, .controls, .row, .next, .hero-bg, .hero-scale, .ctas, fieldset.evidence, details.why summary, .key { display: none !important; }
  .band { position: static; border: 1px solid var(--ink); }
  .case-tag { color: var(--ink); white-space: normal; }
  .sec-name > div { position: static; }
  .panel, .route, .paper, .ladder { box-shadow: none; background: none; break-inside: avoid; }
  details.table > *:not(summary) { display: block; }
}
