/* Hydro-Drain SA concept v2 (Boffin Coders for C.S. MENIK SL), 3 Dec 2026.
 * Redesign at Manoj's ask ("very basic, need modern UI, with animation"): dark energy world, Geist, three
 * workstream colours used as data (volt = battery power, water = hydrogen and treated water, ember = acid mine water).
 * Owner rules: full width (no max-width container), equal-inset dropdowns with a drawn arrow, columns stack under 600px,
 * choice groups stay on one line (they scroll sideways with a fade when the row is too narrow, never wrap).
 * Every loop pauses, stops off-screen and under reduced motion; content is visible with scripting off. */

:root {
  color-scheme: dark;
  --bg: oklch(15.5% 0.018 235); --bg-2: oklch(19.5% 0.02 235); --bg-3: oklch(24% 0.022 235); --bg-4: oklch(30% 0.024 235);
  --line: oklch(100% 0 0 / 0.1); --line-2: oklch(100% 0 0 / 0.18);
  --text: oklch(96.5% 0.006 235); --text-2: oklch(82% 0.012 235); --muted: oklch(70% 0.014 235);
  --paper: oklch(97.6% 0.005 235); --paper-2: oklch(94.5% 0.007 235); --plate: oklch(100% 0 0);
  --ink: oklch(19% 0.02 235); --ink-2: oklch(34% 0.02 235); --ink-muted: oklch(47% 0.018 235); --rule: oklch(88% 0.01 235);
  --volt: oklch(89% 0.19 128); --volt-ink: oklch(42% 0.12 130); --volt-soft: oklch(89% 0.19 128 / 0.14);
  --water: oklch(80% 0.12 215); --water-ink: oklch(45% 0.1 225); --water-soft: oklch(80% 0.12 215 / 0.14);
  --ember: oklch(78% 0.15 62); --ember-ink: oklch(50% 0.13 55); --ember-soft: oklch(78% 0.15 62 / 0.16);
  --error: oklch(70% 0.19 25); --error-ink: oklch(50% 0.19 25); --success: oklch(80% 0.15 150);
  --focus: oklch(85% 0.14 215);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --t-xs: 0.8125rem; --t-sm: 0.875rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem;
  --t-title: clamp(1.25rem, 0.8vw + 1rem, 1.625rem); --t-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.3125rem);
  --t-h2: clamp(2rem, 3vw + 1rem, 4rem); --t-h1: clamp(2.75rem, 5.2vw + 0.5rem, 6.25rem); --t-stat: clamp(2rem, 2.6vw + 1rem, 3.5rem);
  --s-2xs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 40px; --s-2xl: 64px; --s-3xl: 96px;
  --gutter: clamp(16px, 4vw, 64px); --gap: clamp(16px, 2.2vw, 32px);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-micro: 120ms; --d-short: 220ms; --d-long: 480ms; --d-reveal: 900ms;
  --nav-h: 72px; --z-nav: 300; --z-skip: 500;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--nav-h) + var(--s-lg)); scrollbar-color: var(--bg-4) var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-md)/1.55 var(--font); -webkit-font-smoothing: antialiased; caret-color: var(--volt); }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; min-width: 0; }
h1 { font-size: var(--t-h1); letter-spacing: -0.045em; line-height: 0.96; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-title); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono, .code { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text-2); }
.small { font-size: var(--t-sm); }
.mt-lg { margin-top: var(--s-lg); }
.c-volt { background: var(--volt); } .c-water { background: var(--water); } .c-ember { background: var(--ember); }

.light { background: var(--paper); color: var(--ink); color-scheme: light; --text: var(--ink); --text-2: var(--ink-2); --muted: var(--ink-muted); --line: var(--rule); --line-2: oklch(80% 0.012 235); --bg-3: var(--paper-2); --focus: var(--water-ink); --error: var(--error-ink); }
.light ::selection { background: var(--ink); color: var(--paper); }
.light .c-volt { background: var(--volt-ink); } .light .c-water { background: var(--water-ink); } .light .c-ember { background: var(--ember-ink); }

/* ---------- skip, concept strip, nav ---------- */
.skip { position: absolute; left: var(--s-md); top: -80px; z-index: var(--z-skip); padding: var(--s-xs) var(--s-md); border-radius: var(--r-pill); background: var(--volt); color: var(--ink); font-weight: 500; }
.skip:focus-visible { top: var(--s-md); }
.concept { background: var(--volt); color: var(--ink); font-size: var(--t-sm); }
.concept .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2xs) var(--s-lg); padding-block: var(--s-xs); }
.concept a { font-weight: 600; }
.concept a:focus-visible { outline-color: var(--ink); }

.site-nav { position: sticky; top: 0; z-index: var(--z-nav); background: oklch(15.5% 0.018 235 / 0.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--d-short) var(--ease-out), background-color var(--d-short) var(--ease-out); }
.site-nav.is-scrolled { border-bottom-color: var(--line); background: oklch(15.5% 0.018 235 / 0.9); }
.site-nav .container { display: flex; align-items: center; gap: var(--s-xl); min-height: var(--nav-h); }
.wordmark { display: flex; align-items: center; gap: var(--s-sm); text-decoration: none; min-width: 0; }
.wordmark svg { flex: none; width: 34px; height: 34px; }
.wordmark b { display: block; font-weight: 600; font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.2; }
.wordmark small { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }
.nav-links { display: flex; gap: var(--s-2xs); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: var(--s-xs) var(--s-md); border-radius: var(--r-pill); text-decoration: none; color: var(--text-2); font-weight: 500; transition: color var(--d-micro) var(--ease-out), background-color var(--d-micro) var(--ease-out); }
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.site-nav .nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs); min-height: 48px; padding: 0 var(--s-lg); border: 0; border-radius: var(--r-pill); background: var(--volt); color: var(--ink); font: 500 var(--t-md)/1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--d-short) var(--ease-out), transform var(--d-micro) var(--ease-out), box-shadow var(--d-short) var(--ease-out); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-short) var(--ease-out); }
.btn:hover { box-shadow: 0 10px 30px -10px oklch(89% 0.19 128 / 0.6); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--text-2); }
.light .btn { background: var(--ink); color: var(--paper); }
.light .btn:hover { background: var(--ink-2); box-shadow: 0 10px 30px -12px oklch(19% 0.02 235 / 0.5); }
.light .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.light .btn--ghost:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--small { min-height: 40px; padding: 0 var(--s-md); font-size: var(--t-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); transition: text-decoration-color var(--d-micro) var(--ease-out); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- sections ---------- */
section { position: relative; padding-block: clamp(72px, 9vw, 144px); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-md) var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: var(--s-xs); min-height: 32px; padding: 0 var(--s-sm); border-radius: var(--r-pill); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--t-sm); color: var(--text-2); }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 5vw, 88px) clamp(56px, 6vw, 104px); overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 55% at 76% 42%, oklch(80% 0.12 215 / 0.17), transparent 70%),
  radial-gradient(40% 40% at 12% 90%, oklch(89% 0.19 128 / 0.08), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 65% at var(--mx, 72%) var(--my, 42%), #000 0%, transparent 75%); mask-image: radial-gradient(60% 65% at var(--mx, 72%) var(--my, 42%), #000 0%, transparent 75%); opacity: 0.7; }
.hero .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-2xl); align-items: center; }
.hero h1 { margin: var(--s-lg) 0; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; }
.grad, .hero h1 .grad { background: linear-gradient(95deg, var(--volt), var(--water) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: var(--s-xl); }
.stats { display: flex; gap: var(--s-lg); margin-top: var(--s-2xl); }
.stat { flex: 1 1 0; min-width: 0; }
.stat { padding-top: var(--s-md); border-top: 1px solid var(--line-2); }
.stat .k { display: flex; align-items: center; gap: var(--s-xs); font-size: var(--t-sm); color: var(--text-2); }
.stat .k i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stat b { display: block; font-weight: 600; font-size: var(--t-stat); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; margin: var(--s-sm) 0 var(--s-xs); white-space: nowrap; }
.stat b small { font-size: 0.42em; letter-spacing: 0; color: var(--text-2); margin-left: 0.2em; font-weight: 500; }
.stat p { font-size: var(--t-sm); color: var(--muted); }

.system { position: relative; margin: 0; }
.system svg { width: 100%; height: auto; overflow: visible; }
.system .orbit { fill: none; stroke: var(--line-2); stroke-dasharray: 2 8; }
.system .link { fill: none; stroke-width: 1.5; opacity: 0.35; }
.system .flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 22; }
.system .node-bg { fill: var(--bg-2); stroke-width: 1.5; }
.system .hub-bg { fill: var(--bg-3); stroke: var(--line-2); }
.system .ico { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.system text { fill: var(--text); font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.system text.m { font-family: var(--mono); font-size: 13px; fill: var(--text-2); }
.system text.hub-t { font-size: 13px; fill: var(--text-2); }
.system figcaption { display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); margin-top: var(--s-sm); font-size: var(--t-sm); color: var(--muted); }
.loop-toggle { display: inline-flex; align-items: center; gap: var(--s-xs); min-height: 36px; padding: 0 var(--s-md); border: 0; border-radius: var(--r-pill); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: var(--t-sm); cursor: pointer; flex: none; }
.loop-toggle:hover { color: var(--text); }
.loop-toggle svg { width: 14px; height: 14px; fill: currentColor; }
html:not(.js) .loop-toggle { display: none; }

/* ---------- ticker ---------- */
.ticker { padding: var(--s-lg) 0; border-block: 1px solid var(--line); display: flex; align-items: center; gap: var(--s-lg); }
.ticker-wrap { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; }
.js .ticker.is-running .ticker-track { animation: tick 45s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: var(--s-md); padding-right: var(--s-2xl); font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: var(--text-2); }
.ticker-track i { width: 8px; height: 8px; border-radius: 50%; }
.ticker .loop-toggle { margin-right: var(--gutter); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- workstreams: pinned stage ---------- */
.streams .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-2xl); align-items: start; }
.stage { position: sticky; top: calc(var(--nav-h) + var(--s-lg)); aspect-ratio: 1 / 1; max-height: calc(100dvh - var(--nav-h) - var(--s-2xl)); width: 100%; border-radius: var(--r-lg); background: radial-gradient(80% 80% at 50% 35%, var(--bg-3), var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stage .scene { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-xl) var(--s-xl) var(--s-2xl); opacity: 0; transform: scale(0.96); transition: opacity var(--d-long) var(--ease-out), transform var(--d-long) var(--ease-out); }
.stage .scene.is-on { opacity: 1; transform: none; }
html:not(.js) .stage .scene:first-child { opacity: 1; transform: none; }
.stage .scene svg { width: 100%; height: 100%; }
.stage text { fill: var(--text-2); font: 500 14px var(--font); }
.stage text.m { font-family: var(--mono); font-size: 13px; }
.stage-label { position: absolute; left: var(--s-lg); top: var(--s-lg); z-index: 2; }
.stage .loop-toggle { position: absolute; right: var(--s-lg); bottom: var(--s-lg); z-index: 2; }
.stage .progress { position: absolute; left: var(--s-lg); bottom: calc(var(--s-lg) + 14px); z-index: 2; display: flex; gap: 6px; }
.stage .progress i { width: 24px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background-color var(--d-short) var(--ease-out), width var(--d-short) var(--ease-out); }
.stage .progress i.is-on { width: 40px; background: var(--text); }
.panels { list-style: none; margin: 0; padding: 0; }
.panel-s { min-height: 76dvh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-2xl); border-top: 1px solid var(--line); opacity: 0.35; transition: opacity var(--d-long) var(--ease-out); }
.panel-s:first-child { border-top: 0; }
.panel-s.is-on, html:not(.js) .panel-s { opacity: 1; }
.panel-s .code { display: inline-flex; align-items: center; gap: var(--s-xs); font-size: var(--t-sm); color: var(--text-2); }
.panel-s .code i { width: 10px; height: 10px; border-radius: 3px; }
.panel-s h3 { font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); letter-spacing: -0.035em; line-height: 1.05; margin: var(--s-md) 0; }
.panel-s p { color: var(--text-2); font-size: var(--t-lead); }
.panel-s .big { font-size: var(--t-stat); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: var(--s-xl); color: var(--text); }
.panel-s .big small { display: block; font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: var(--s-xs); }
.panel-s .note { margin-top: var(--s-lg); font-size: var(--t-sm); color: var(--muted); }
.panel-s .text-link { margin-top: var(--s-lg); align-self: flex-start; }

/* ---------- timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 12px; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--volt-ink), var(--water-ink)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.timeline > li { position: relative; padding-top: var(--s-2xl); }
.timeline .dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-2); z-index: 1; transition: background-color var(--d-long) var(--ease-out), box-shadow var(--d-long) var(--ease-out); }
.timeline li.is-reached .dot { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 6px var(--paper); }
.timeline li.is-now.is-reached .dot { background: var(--volt-ink); box-shadow: 0 0 0 6px oklch(42% 0.12 130 / 0.2); }
.timeline .when { display: block; font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s-md); }
.timeline li.is-now .when { color: var(--volt-ink); }
.timeline h3 { margin-bottom: var(--s-xs); }
.timeline p { color: var(--muted); }

/* ---------- cards ---------- */
.card { position: relative; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.light .card { background: var(--plate); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px oklch(19% 0.02 235 / 0.04), 0 16px 40px -20px oklch(19% 0.02 235 / 0.18); }
a.card { display: block; text-decoration: none; isolation: isolate; transition: transform var(--d-short) var(--ease-out), box-shadow var(--d-short) var(--ease-out); }
a.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), var(--water-ink), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--d-short) var(--ease-out); pointer-events: none; }
a.card:hover { transform: translateY(-4px); }
a.card:hover::before { opacity: 1; }
a.card:focus-visible { outline-offset: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid4 .card { padding: var(--s-xl) var(--s-lg) var(--s-lg); min-height: 300px; display: flex; flex-direction: column; }
.grid4 .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--s-xl); background: var(--paper-2); }
.grid4 .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid4 h3 { margin-bottom: var(--s-xs); }
.grid4 p { color: var(--muted); }
.grid4 .go { margin-top: auto; padding-top: var(--s-xl); display: inline-flex; align-items: center; gap: var(--s-xs); font-weight: 500; }
.grid4 .go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-short) var(--ease-out); }
.grid4 a.card:hover .go svg { transform: translateX(4px); }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-md); }
.feed > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr); gap: var(--gap); align-items: start; padding: var(--s-lg); border-radius: var(--r-md); background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); }
.feed time { font-family: var(--mono); font-weight: 500; font-size: var(--t-sm); color: var(--muted); padding-top: 4px; }
.feed h3 { margin-bottom: var(--s-xs); }
.feed p { color: var(--muted); }
.feed .tags { display: flex; justify-content: flex-end; }
.feed li.is-new { box-shadow: inset 0 0 0 2px var(--water-ink); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-2xl); align-items: start; }
.split .lead { margin-top: var(--s-md); }

.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; background: var(--bg-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag--investor { background: var(--volt-soft); color: var(--volt); box-shadow: inset 0 0 0 1px oklch(89% 0.19 128 / 0.35); }
.tag--government { background: var(--ember-soft); color: var(--ember); box-shadow: inset 0 0 0 1px oklch(78% 0.15 62 / 0.35); }
.tag--supplier { background: var(--water-soft); color: var(--water); box-shadow: inset 0 0 0 1px oklch(80% 0.12 215 / 0.35); }
.tag--media { background: oklch(100% 0 0 / 0.08); color: var(--text); }
.tag--new { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text-2); }
.tag--ok { background: oklch(80% 0.15 150 / 0.16); color: var(--success); box-shadow: none; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }

.fill { padding: 0.05em 0.4em; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--muted); font-weight: 400; white-space: nowrap; }

/* ---------- forms ---------- */
.form-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-2xl); align-items: start; }
.form-split .lead { margin-top: var(--s-md); }
.form-card { padding: clamp(24px, 3vw, 40px); }
.facts { list-style: none; margin: var(--s-xl) 0 0; padding: 0; }
.facts li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-md); padding-block: var(--s-md); border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-weight: 500; }
.facts span { color: var(--text-2); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-lg) var(--s-md); }
.field { display: flex; flex-direction: column; gap: var(--s-xs); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, fieldset > legend { font-weight: 500; font-size: var(--t-sm); color: var(--text-2); }
.field .hint { font-size: var(--t-sm); color: var(--muted); }
.field .err { font-size: var(--t-sm); color: var(--error); }
.field .err:empty { display: none; }
.input, .select select { width: 100%; min-height: 52px; padding: 0 var(--s-md); border: 0; border-radius: var(--r-sm); background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); outline: 2px solid transparent; outline-offset: 2px; transition: box-shadow var(--d-micro) var(--ease-out), background-color var(--d-micro) var(--ease-out); }
.light .input, .light .select select { background: var(--plate); }
textarea.input { min-height: 132px; padding: var(--s-sm) var(--s-md); resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select select:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.input:focus-visible, .select select:focus-visible { outline-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.input:disabled { opacity: 0.6; cursor: not-allowed; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--s-md) + 10px + var(--s-md)); cursor: pointer; }
.select::after { content: ""; position: absolute; right: var(--s-md); top: 50%; width: 10px; height: 6px; transform: translateY(-50%); background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; opacity: 0.8; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: var(--s-xs); }

/* choice groups: one line, always. Options share the row; a row too narrow scrolls sideways with a fade */
.cells { position: relative; display: flex; flex-wrap: nowrap; gap: var(--s-2xs); padding: var(--s-2xs); border-radius: var(--r-pill); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.cells::-webkit-scrollbar { display: none; }
.cells.is-tight label { padding: 0 var(--s-sm); }
.cells.is-tighter { gap: 2px; padding: 3px; }
.cells.is-tighter label { padding: 0 9px; font-size: var(--t-xs); }
.cells.is-tighter input[type="checkbox"] + label::before { display: none; }
.cells.is-tightest { gap: 0; padding: 2px; }
.cells.is-tightest label { padding: 0 7px; font-size: 0.75rem; letter-spacing: -0.01em; }
.cells.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.cells.is-overflow.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.cells.is-overflow.is-mid { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.light .cells { background: var(--paper-2); }
.cells input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cells label { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 var(--s-md); border-radius: var(--r-pill); white-space: nowrap; scroll-snap-align: start; cursor: pointer; font-size: var(--t-sm); font-weight: 500; color: var(--text-2); transition: background-color var(--d-short) var(--ease-out), color var(--d-short) var(--ease-out); }
.cells label:hover { color: var(--text); background: oklch(100% 0 0 / 0.06); }
.light .cells label:hover { background: oklch(19% 0.02 235 / 0.05); }
.cells input:checked + label { background: var(--text); color: var(--bg); }
.light .cells input:checked + label { background: var(--ink); color: var(--paper); }
.cells input[type="checkbox"] + label::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.cells input[type="checkbox"]:checked + label::before { box-shadow: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.8 6.2-6.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.8 6.2-6.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cells input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -2px; }
.cells input:disabled + label { opacity: 0.7; cursor: default; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); margin-top: var(--s-xl); }
.form-help { font-size: var(--t-sm); color: var(--text-2); }
.form-help:empty { display: none; }
.form-result { margin-top: var(--s-lg); padding: var(--s-lg); border-radius: var(--r-md); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--water); animation: rise var(--d-long) var(--ease-out) both; }
.light .form-result { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--water-ink); }
.form-result h3 { margin-bottom: var(--s-xs); font-size: var(--t-xl); }
.form-result p + p { margin-top: var(--s-sm); }
.form-result .tags-row { margin: var(--s-sm) 0; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- inner page heads ---------- */
.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 88px); overflow: clip; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 30%, oklch(80% 0.12 215 / 0.15), transparent 70%), radial-gradient(40% 60% at 10% 100%, oklch(89% 0.19 128 / 0.07), transparent 70%); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); opacity: 0.5; }
.page-head .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-xl) var(--s-2xl); align-items: end; }
.page-head h1 { font-size: clamp(2.5rem, 4.4vw + 0.5rem, 5.25rem); }
.page-head .lead { margin-top: var(--s-lg); }
.page-head .pill { margin-bottom: var(--s-lg); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.kv > div { padding: var(--s-lg); }
.kv > div + div { border-left: 1px solid var(--line); }
.kv dt { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-xs); }
.kv dd { margin: 0; font-size: var(--t-lg); font-weight: 500; line-height: 1.4; }

.register { overflow: hidden; }
.spec { width: 100%; border-collapse: collapse; }
.spec th { font-size: var(--t-sm); font-weight: 500; color: var(--muted); text-align: left; padding: var(--s-md) var(--s-lg); border-bottom: 1px solid var(--line); }
.spec td { padding: var(--s-lg); border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec tbody tr:last-child td { border-bottom: 0; }
.spec tbody tr { transition: background-color var(--d-micro) var(--ease-out); }
.spec tbody tr:hover { background: var(--paper-2); }
.spec .name { font-weight: 500; font-size: var(--t-lg); }
.spec .name i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: var(--s-sm); }
.spec .num { white-space: nowrap; font-family: var(--mono); font-weight: 500; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 500; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }

.dd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dd li { padding: var(--s-lg); border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: var(--s-sm); }
.dd .state { display: inline-flex; align-items: center; gap: var(--s-xs); font-size: var(--t-sm); color: var(--text-2); }
.dd .state i { width: 8px; height: 8px; border-radius: 50%; }
.dd .state.ok i { background: var(--volt); }
.dd .state.add i { box-shadow: inset 0 0 0 1.5px var(--muted); }
.dd h3 { font-size: var(--t-lg); letter-spacing: -0.01em; }
.dd p { color: var(--muted); font-size: var(--t-sm); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rows > li { padding: var(--s-xl) var(--s-lg) var(--s-lg); border-radius: var(--r-lg); background: var(--plate); box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -24px oklch(19% 0.02 235 / 0.2); display: flex; flex-direction: column; gap: var(--s-sm); }
.rows .code { display: inline-flex; align-items: center; gap: var(--s-xs); font-size: var(--t-sm); color: var(--muted); }
.rows .code i { width: 10px; height: 10px; border-radius: 3px; }
.rows .scale { font-size: var(--t-stat); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: auto; padding-top: var(--s-lg); }
.rows .scale small { display: block; font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: var(--s-xs); }
.rows p { color: var(--muted); }

/* ---------- team view ---------- */
.team-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0; }
.team-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-md); padding-block: var(--s-lg); }
.team-bar h1 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); letter-spacing: -0.035em; line-height: 1.1; }
.team-bar p { color: var(--muted); margin-top: var(--s-2xs); }
.tabs { display: inline-flex; gap: var(--s-2xs); padding: var(--s-2xs); border-radius: var(--r-pill); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-md); border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: var(--t-sm); color: var(--text-2); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.explain { padding: var(--s-lg) 0; border-bottom: 1px solid var(--line); }
.explain .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.explain .step { display: flex; gap: var(--s-sm); align-items: flex-start; font-size: var(--t-sm); color: var(--text-2); }
.explain .step b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: var(--t-xs); color: var(--text); }
.desk { padding: var(--s-xl) 0 var(--s-3xl); }
.desk .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-lg); align-items: start; }
.panel { border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-sm); padding: var(--s-md) var(--s-lg); border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: var(--t-lg); letter-spacing: -0.01em; line-height: 1.3; }
.filters { padding: var(--s-sm) var(--s-lg); border-bottom: 1px solid var(--line); }
.inbox { list-style: none; margin: 0; padding: var(--s-xs); display: grid; gap: var(--s-2xs); }
.inbox button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-sm); width: 100%; padding: var(--s-md); border: 0; border-radius: var(--r-md); background: transparent; text-align: left; cursor: pointer; transition: background-color var(--d-micro) var(--ease-out); }
.inbox button:hover { background: var(--bg-3); }
.inbox button:focus-visible { outline-offset: -2px; }
.inbox button[aria-current="true"] { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.inbox .who { font-weight: 500; }
.inbox .when { font-size: var(--t-xs); color: var(--muted); font-family: var(--mono); }
.inbox .snip { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox li.is-arriving button { animation: arrive 1.2s var(--ease-out) both; }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-12px); background: var(--water-soft); } 30% { opacity: 1; transform: none; } 70% { background: var(--water-soft); } }
.detail { padding: var(--s-lg); display: grid; gap: var(--s-lg); }
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.meta > div { padding: var(--s-sm) var(--s-md); }
.meta > div + div { border-left: 1px solid var(--line); }
.meta dt { font-size: var(--t-xs); color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.message { padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); background: var(--bg-3); white-space: pre-wrap; }
.why { font-size: var(--t-sm); color: var(--muted); }
.why b { color: var(--text); font-weight: 500; }
.draft-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-sm); flex-wrap: wrap; }
.draft-head h3 { font-size: var(--t-lg); letter-spacing: -0.01em; }
.thinking { display: flex; align-items: center; gap: var(--s-sm); padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); background: var(--bg-3); font-size: var(--t-sm); color: var(--text-2); }
.thinking .dots { display: inline-flex; gap: 4px; }
.thinking .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--water); animation: blink 1s var(--ease-in-out) infinite; }
.thinking .dots i:nth-child(2) { animation-delay: 0.15s; } .thinking .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; transform: translateY(-2px); } }
.pop { animation: pop var(--d-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } }
.empty { padding: var(--s-xl) var(--s-lg); color: var(--muted); }
.try { padding: var(--s-lg); border-top: 1px solid var(--line); display: grid; gap: var(--s-md); }
.try h2 { font-size: var(--t-lg); letter-spacing: -0.01em; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-lg); align-items: start; }
.editor { padding: var(--s-xl); display: grid; gap: var(--s-lg); }
.outputs { display: grid; gap: var(--s-md); }
.out { padding: var(--s-lg); transition: opacity var(--d-short) var(--ease-out); }
.out h3 { font-size: var(--t-sm); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-sm); display: flex; justify-content: space-between; gap: var(--s-sm); }
.out .preview-title { font-weight: 600; font-size: var(--t-title); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: var(--s-xs); }
.out .preview-body { white-space: pre-wrap; color: var(--text-2); }
.out.is-off { opacity: 0.4; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: var(--s-3xl) 0 var(--s-xl); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--gap); }
.foot-mark .big { font-size: clamp(2rem, 3vw + 1rem, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: var(--s-md); }
.foot-mark p { color: var(--muted); }
.foot-grid h2 { font-size: var(--t-sm); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-md); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-sm); }
.foot-grid a { text-decoration: none; color: var(--text-2); }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-legal { margin-top: var(--s-3xl); padding-top: var(--s-lg); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-sm); font-size: var(--t-sm); color: var(--muted); }


/* ---------- svg paint (diagram, scenes, mark) ---------- */
.f-volt { fill: var(--volt); } .f-water { fill: var(--water); } .f-ember { fill: var(--ember); }
.f-water-soft { fill: var(--water-soft); } .f-bg3 { fill: var(--bg-3); } .f-ink { fill: var(--bg); }
.s-volt { stroke: var(--volt); } .s-water { stroke: var(--water); } .s-ember { stroke: var(--ember); }
.system .pulse { stroke-width: 1.5; }
.stage .cell-box, .stage .tank { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.5; }
.stage .cell-cap { fill: var(--line-2); }
.stage .bolt { stroke: var(--volt); stroke-width: 2; stroke-linejoin: round; }
.stage .electrode { stroke: var(--text-2); stroke-width: 6; stroke-linecap: round; }
.stage .pipe { fill: none; stroke: var(--line-2); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.stage .flow, .stage .hub-bg, .stage .node-bg { stroke-width: 1.5; }
.stage .flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 22; }
.stage .node-bg { fill: var(--bg-2); } .stage .hub-bg { fill: var(--bg-3); stroke: var(--line-2); }

/* ---------- utilities and page fixes ---------- */
.show-s { display: none; }
.pt-0 { padding-top: 0; } .mt-0 { margin-top: 0; } .mt-sm { margin-top: var(--s-sm); }
.streams .head-row { display: block; }
.panel-s .code i + i { margin-left: -4px; }
.kv .fill, .dd .fill { white-space: normal; }
.kv dd .fill { display: inline-block; margin-top: var(--s-xs); font-size: var(--t-sm); }
.team-back { margin-left: auto; }
.team .site-nav .container { flex-wrap: nowrap; }
.hero h1 .line > span, .page-head h1, .panel-s h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.detail-wrap .select { max-width: 280px; }


/* ---------- fitted headlines: each line sized so the longest fills its column (JS), cqi fallback ---------- */
.hero .copy { container-type: inline-size; min-width: 0; }
.hero h1[data-fit] { font-size: clamp(2.5rem, 11cqi, 9rem); }
.js .hero h1[data-fit] .line > span { display: inline-block; white-space: nowrap; }
.hero .system svg { max-height: 640px; margin-inline: auto; }

/* ---------- inner-page heroes: the home hero, a little shorter ---------- */
.hero--page { padding-block: clamp(32px, 4vw, 72px) clamp(48px, 5vw, 88px); border-bottom: 1px solid var(--line); }
.hero--page .stats { margin-top: var(--s-xl); }
.hero--page .stat p .fill { white-space: normal; }
.system .gl { stroke: var(--line); stroke-dasharray: 2 6; }
.system .track { fill: oklch(100% 0 0 / 0.035); stroke: var(--line); }
.system .tbc { fill: none; stroke-width: 1.5; stroke-dasharray: 6 8; }
.system text.v { font-family: var(--mono); font-size: 15px; fill: var(--text); }
.system text.n { font-size: 15px; }
.system .chan { font: 700 19px var(--font); fill: var(--water); }

/* ---------- team view header ---------- */
.team-bar { position: relative; overflow: clip; isolation: isolate; }
.team-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 120% at 85% 0%, oklch(80% 0.12 215 / 0.16), transparent 70%), radial-gradient(35% 120% at 0% 100%, oklch(89% 0.19 128 / 0.07), transparent 70%); }
.team-bar::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 140% at 80% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 140% at 80% 0%, #000, transparent 75%); opacity: 0.55; }
.team-bar .container { padding-block: var(--s-xl) var(--s-lg); align-items: end; }
.team-bar h1 { font-size: clamp(2.25rem, 3.2vw + 1rem, 4rem); letter-spacing: -0.04em; line-height: 1; }
.team-bar p { margin-top: var(--s-sm); font-size: var(--t-lg); }
.team-stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.team-stats .stats { margin: 0; padding-block: 0 var(--s-lg); }
.team-stats .stat b { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.75rem); }

/* ---------- motion layer (only with scripting) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(110%); animation: line-up 1.05s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes line-up { to { transform: none; } }
.js .hero .lead, .js .hero .actions, .js .hero .pill, .js .hero .stats { opacity: 0; animation: rise-in 0.9s var(--ease-out) forwards; }
.js .hero .pill { animation-delay: 0.05s; } .js .hero .lead { animation-delay: 0.55s; } .js .hero .actions { animation-delay: 0.7s; } .js .hero .stats { animation-delay: 0.85s; }
.js .hero .system { opacity: 0; animation: fade-scale 1.4s var(--ease-out) 0.3s forwards; }
@keyframes fade-scale { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.js .pill .live { animation: ping 2.4s var(--ease-out) 3; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(89% 0.19 128 / 0.55); } 70%, 100% { box-shadow: 0 0 0 10px oklch(89% 0.19 128 / 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ticker.is-running .ticker-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 80rem) {
  .explain .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: clamp(1.75rem, 2.2vw + 0.8rem, 3rem); }
}
@media (max-width: 64rem) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--s-xl); }
  .hero .system { width: 100%; }
  .grid4, .dd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-lg); }
  .timeline::before, .timeline::after { left: 11px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .timeline::after { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--volt-ink), var(--water-ink)); }
  .timeline > li { padding: 0 0 0 48px; }
  .timeline .dot { top: 2px; }
  .timeline .when { font-size: 1.5rem; margin-bottom: var(--s-2xs); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-mark { grid-column: 1 / -1; }
}
@media (max-width: 60rem) {
  .head, .split, .form-split, .page-head .container, .desk .container, .editor-grid, .streams .container { grid-template-columns: minmax(0, 1fr); gap: var(--s-xl); }
  .stage { aspect-ratio: 4 / 3; max-height: none; }
  .js .stage { position: sticky; top: calc(var(--nav-h) + var(--s-xs)); z-index: 2; aspect-ratio: 16 / 10; }
  .panel-s { min-height: 0; padding-block: var(--s-xl); opacity: 1; }
  .site-nav .nav-toggle { display: inline-flex; margin-left: auto; }
  html:not(.js) .site-nav .nav-toggle { display: none; }
  .site-nav .container { flex-wrap: wrap; gap: var(--s-sm); }
  .nav-links { order: 3; width: 100%; flex-direction: column; margin: 0; padding-bottom: var(--s-md); }
  .js .nav-links { display: none; }
  .js .site-nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: var(--s-sm) var(--s-md); }
  .site-nav .nav-cta { display: none; }
  .js .site-nav.is-open .nav-cta, html:not(.js) .site-nav .nav-cta { display: inline-flex; order: 4; margin-bottom: var(--s-md); }
  .feed > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-xs); }
  .feed .tags { justify-content: flex-start; }
}
@media (max-width: 37.5rem) {
  .form-card { padding: var(--s-md); }
  .grid4, .timeline, .fields, .kv, .dd, .explain .container, .facts li { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: var(--s-sm); margin-top: var(--s-xl); }
  .stat b, .team-stats .stat b { font-size: clamp(1.375rem, 6.4vw, 1.75rem); margin: var(--s-xs) 0 var(--s-2xs); }
  .stat .k, .stat p { font-size: var(--t-xs); }
  .stat .k { gap: 6px; } .stat .k i { width: 8px; height: 8px; }
  .kv > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .grid4 .card { min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-md); padding: var(--s-lg) var(--s-md); }
  .grid4 .ico { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .grid4 .go { padding-top: var(--s-sm); }
  .hide-s { display: none; } .show-s { display: inline; }
  .concept { font-size: var(--t-xs); } .concept .container { flex-wrap: nowrap; gap: var(--s-sm); }
  section { padding-block: 56px; }
  .head { gap: var(--s-sm); margin-bottom: var(--s-xl); }
  .site-foot { padding: var(--s-2xl) 0 var(--s-lg); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-xl); }
  .foot-mark { grid-column: 1 / -1; } .foot-mark .big { font-size: 2rem; }
  .foot-legal { margin-top: var(--s-xl); }
  .stat p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .system text { font-size: 22px; } .system text.m { font-size: 17px; } .system text.v { font-size: 19px; } .system text.n { font-size: 20px; } .system text.hl { font-size: 15px; }
  .system figcaption { font-size: var(--t-xs); }
  .ticker .loop-toggle { width: 40px; padding: 0; justify-content: center; }
  .ticker .loop-toggle span, .stage .loop-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stage .loop-toggle { width: 36px; padding: 0; justify-content: center; }
  .dd { gap: var(--s-sm); } .dd li { padding: var(--s-md); }
  .rows > li { padding: var(--s-lg) var(--s-md); } .rows .scale { font-size: 2rem; }
  .team-stats .stat p { display: none; } .team-stats .stat .k { white-space: nowrap; }
  .meta > div { padding: var(--s-xs) var(--s-sm); } .meta dd { font-size: var(--t-sm); }
  .panel-head { flex-wrap: wrap; row-gap: 2px; }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .spec, .spec tbody, .spec tr, .spec td { display: block; }
  .spec tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-xs) var(--s-md); padding: var(--s-md); border-bottom: 1px solid var(--line); }
  .spec td { padding: 0; border: 0; }
  .spec td.name { grid-column: 1 / -1; }
  .wordmark small { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stage .scene { padding: var(--s-md) var(--s-md) var(--s-2xl); }
  .ticker-track span { font-size: var(--t-lg); }
  .tabs { width: 100%; } .tabs a { flex: 1; justify-content: center; }
}

/* hero kicker (3 Dec 2026, Manoj: no pills): a short gradient rule, then plain text */
.hero .pill { min-height: 0; padding: 0; gap: var(--s-sm); background: none; box-shadow: none; font-size: var(--t-md); font-weight: 500; color: var(--text-2); }
.hero .pill .live { display: none; }
.hero .pill::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--volt), var(--water)); flex: none; }
.js .hero .pill::before { transform-origin: 0 50%; animation: grow 0.9s var(--ease-out) 0.1s both; }
@keyframes grow { from { transform: scaleX(0); } }
