/* ============================================================================
   NORTH STAR AUTONOMOUS — the design system, issue #51 (2026-09-17).

   "Autonomous industrial intelligence": pearl and titanium in the light,
   carbon and gunmetal in the dark, graphite type, one cyan signal, amber
   only where attention is owed. Composition by type, scale, hairlines and
   layered planes — not by rounded cards.

   The full constitution is docs/NORTH-STAR-AUTONOMOUS-WEBSITE-DESIGN-SYSTEM-
   2026-09-17.md in the Command Center repository. This file is its
   implementation: tokens first, then materials, then components, then the
   scenes, then print.
   ============================================================================ */

/* ---------------------------------------------------------------- faces */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/Geist-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/fonts/GeistMono-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('/fonts/Newsreader-italic.woff2') format('woff2'); }

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  /* canvas: pearl, titanium, brushed silver */
  --ground: #F4F2EE;
  --ground-2: #ECE9E3;
  --ground-3: #E1DDD5;
  --plate: #FBFAF8;
  --glass: rgba(255, 255, 255, .58);
  --glass-edge: rgba(255, 255, 255, .8);
  /* ink: near-black, graphite, steel */
  --ink: #14161A;
  --ink-2: #3B3F46;
  --ink-3: #626871;
  --ink-inverse: #F4F2EE;
  /* hairlines */
  --line: rgba(20, 22, 26, .12);
  --line-2: rgba(20, 22, 26, .24);
  --etch: rgba(20, 22, 26, .06);
  /* the one signal, and the attention colour */
  --signal: #0B7A97;
  --signal-2: #17A6CB;
  --signal-soft: rgba(23, 166, 203, .12);
  /* the signal as running text: 5.1:1 on the ground, 4.7:1 on ground-2.
     --signal itself is 4.4:1 there, which is an accent, not a sentence. */
  --signal-text: #0A6F88;
  --amber: #A86200;
  --amber-2: #E5A100;
  /* amber as small running text: 5.6:1 on the ground (--amber is 4.3:1 there) */
  --amber-text: #8F5200;
  --amber-soft: rgba(229, 161, 0, .14);
  --ok: #1E7A46;
  /* the two status words are 11 px text, and a tile they sit on changes
     ground when it lights: --ok is 4.4:1 on ground-2 and 3.4:1 on a core
     tile's ink; --amber 3.9:1 and fine. As text: 6.0:1 on ground-2, and on
     an INVERTED tile the other theme's colour (8.7:1 / 9.7:1). Found by axe
     with the tiles lit, 2026-09-18 — the walk had only ever looked unlit. */
  --ok-text: #17633A;
  --ok-on-inverse: #63C78A;
  --amber-on-inverse: #F0B429;
  --bad: #B3261E;
  /* the brand's own colour, kept by the mark alone */
  --star: #E8B44A;
  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --fs-5: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  --fs-6: clamp(2.6rem, 1.5rem + 4.4vw, 5.2rem);
  --measure: 62ch;
  /* space and layout */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --gutter: 16px;
  --container: 1200px;
  --tap: 44px;
  /* radii: restrained */
  --r-1: 4px; --r-2: 6px; --r-3: 8px; --r-4: 12px;
  /* depth */
  --shadow-1: 0 1px 0 rgba(20, 22, 26, .04), 0 1px 2px rgba(20, 22, 26, .06);
  --shadow-2: 0 1px 0 rgba(20, 22, 26, .04), 0 10px 30px -14px rgba(20, 22, 26, .32);
  --shadow-3: 0 2px 0 rgba(20, 22, 26, .03), 0 30px 60px -30px rgba(20, 22, 26, .4);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --d-fast: 140ms; --d-base: 240ms; --d-slow: 520ms; --d-scene: 900ms;
  /* focus */
  --focus: var(--signal);
  --focus-w: 3px;
  /* layers */
  --z-progress: 60; --z-header: 50; --z-float: 40; --z-drawer: 70; --z-dialog: 80; --z-banner: 45;
  /* header */
  --header-h: 68px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* dark: carbon, gunmetal, cool off-white, ice signal. Chosen with the
   toggle, or by the system when nothing is chosen. */
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* the values themselves, applied for both routes into dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1013; --ground-2: #15181D; --ground-3: #1D2128; --plate: #12151A;
    --glass: rgba(21, 24, 29, .62); --glass-edge: rgba(255, 255, 255, .08);
    --ink: #ECEDEA; --ink-2: #BCC0C6; --ink-3: #8C929A; --ink-inverse: #0E1013;
    --line: rgba(236, 237, 234, .12); --line-2: rgba(236, 237, 234, .24); --etch: rgba(236, 237, 234, .06);
    --signal: #5ED3F0; --signal-2: #2FB7DA; --signal-soft: rgba(94, 211, 240, .12); --signal-text: #5ED3F0;
    --amber: #F0B429; --amber-2: #E5A100; --amber-soft: rgba(240, 180, 41, .14); --amber-text: #F0B429;
    --ok: #63C78A; --ok-text: #63C78A; --ok-on-inverse: #17633A; --amber-on-inverse: #7A4600; --bad: #F28B82;
    --shadow-1: 0 1px 0 rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .8);
    --shadow-3: 0 2px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .9);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, .06);
    --focus: #5ED3F0;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1013; --ground-2: #15181D; --ground-3: #1D2128; --plate: #12151A;
  --glass: rgba(21, 24, 29, .62); --glass-edge: rgba(255, 255, 255, .08);
  --ink: #ECEDEA; --ink-2: #BCC0C6; --ink-3: #8C929A; --ink-inverse: #0E1013;
  --line: rgba(236, 237, 234, .12); --line-2: rgba(236, 237, 234, .24); --etch: rgba(236, 237, 234, .06);
  --signal: #5ED3F0; --signal-2: #2FB7DA; --signal-soft: rgba(94, 211, 240, .12); --signal-text: #5ED3F0;
  --amber: #F0B429; --amber-2: #E5A100; --amber-soft: rgba(240, 180, 41, .14); --amber-text: #F0B429;
  --ok: #63C78A; --ok-text: #63C78A; --ok-on-inverse: #17633A; --amber-on-inverse: #7A4600; --bad: #F28B82;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .8);
  --shadow-3: 0 2px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .9);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .06);
  --focus: #5ED3F0;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100dvh;
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-2); line-height: 1.6;
  font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--signal-soft); color: var(--ink); }

/* the whole page carries a fine grain, so a flat surface never reads as a
   screen. One SVG turbulence tile at 3–4%, fixed, never repeating visibly. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .05; } }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--fs-6); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: var(--fs-5); letter-spacing: -.024em; }
h3 { font-size: var(--fs-4); letter-spacing: -.012em; line-height: 1.18; }
h4 { font-size: var(--fs-3); letter-spacing: -.008em; line-height: 1.25; }
.lede { font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.prose { max-width: var(--measure); text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-1); }
.k { font-family: var(--mono); font-size: var(--fs-0); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.k .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal-2); margin-right: 8px; vertical-align: 2px; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- focus */
:focus { outline: none; }
:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
.skip { position: absolute; left: var(--gutter); top: -200px; z-index: calc(var(--z-dialog) + 1); padding: 12px 16px; background: var(--ink); color: var(--ink-inverse); border-radius: var(--r-2); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); }
.grid > *, .two > * { min-width: 0; }
.col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
@media (min-width: 880px) {
  /* span on the END line only, so a .start-N can set the start without the
     shorthand resetting the span to one track (that bug squeezed two scenes
     into a one-column strip on 2026-09-17) */
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column-start: auto; }
  .col-3 { grid-column-end: span 3; } .col-4 { grid-column-end: span 4; } .col-5 { grid-column-end: span 5; } .col-6 { grid-column-end: span 6; } .col-7 { grid-column-end: span 7; } .col-8 { grid-column-end: span 8; }
  .start-2 { grid-column-start: 2; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
}
main { position: relative; z-index: 1; }
.scene { position: relative; padding-block: var(--s9); }
.scene + .scene { border-top: 1px solid var(--line); }
@media (min-width: 880px) { .scene { padding-block: var(--s10); } }
.scene-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 40rem; }
.scene-head .k { margin-bottom: var(--s1); }
.scene-head.wide { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 880px) { .scene-head.wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--s7); } .scene-head.wide .lede { margin-top: 0; } }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-top { border-top: 1px solid var(--line); padding-top: var(--s5); }

/* ---------------------------------------------------------------- materials */
/* an etched blueprint grid, behind a scene, never on top of words */
.etched { position: relative; isolation: isolate; }
.etched::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--etch) 1px, transparent 1px), linear-gradient(90deg, var(--etch) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
/* a titanium plate: a machined surface with a brushed direction and a lit edge */
.plate {
  position: relative; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--shadow-2), var(--highlight); overflow: hidden;
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
:root[data-theme="dark"] .plate::after { opacity: .25; }
/* smoked glass: used by the header, the search and the floating sheet only */
.glass { background: var(--glass); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-2); }
/* a carbon band: one dark scene in the light theme, one lit scene in the dark */
.band { background: var(--ink); color: var(--ink-inverse); }
.band h2, .band h3, .band h4, .band .lede { color: inherit; }
.band .k { color: rgba(244, 242, 238, .62); }
.band .muted { color: rgba(244, 242, 238, .66); }
.band .hairline, .band .rule-top { border-color: rgba(244, 242, 238, .18); }
:root[data-theme="dark"] .band { background: var(--ground-2); color: var(--ink); }
:root[data-theme="dark"] .band .k { color: var(--ink-3); }
:root[data-theme="dark"] .band .muted { color: var(--ink-3); }
:root[data-theme="dark"] .band .hairline, :root[data-theme="dark"] .band .rule-top { border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band { background: var(--ground-2); color: var(--ink); }
  :root:not([data-theme="light"]) .band .k { color: var(--ink-3); }
  :root:not([data-theme="light"]) .band .muted { color: var(--ink-3); }
  :root:not([data-theme="light"]) .band .hairline, :root:not([data-theme="light"]) .band .rule-top { border-color: var(--line); }
  :root:not([data-theme="light"]) .plate::after { opacity: .25; }
}

/* ---------------------------------------------------------------- controls */
.btn {
  --btn-bg: var(--ink); --btn-ink: var(--ink-inverse); --btn-line: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r-2);
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-line);
  font-weight: 600; font-size: var(--fs-1); letter-spacing: .002em; text-decoration: none; white-space: nowrap;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), transform var(--d-base) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:hover { --btn-bg: var(--ink-2); --btn-line: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-ink); border-right-color: transparent; animation: spin .8s linear infinite; }
.btn-primary { --btn-bg: var(--signal); --btn-ink: #fff; --btn-line: var(--signal); box-shadow: 0 0 0 0 var(--signal-soft); }
.btn-primary:hover { --btn-bg: #08627A; --btn-line: #08627A; box-shadow: 0 0 0 4px var(--signal-soft); }
:root[data-theme="dark"] .btn-primary { --btn-ink: #0E1013; }
:root[data-theme="dark"] .btn-primary:hover { --btn-bg: #8CE2F7; --btn-line: #8CE2F7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --btn-ink: #0E1013; } :root:not([data-theme="light"]) .btn-primary:hover { --btn-bg: #8CE2F7; --btn-line: #8CE2F7; } }
.btn-secondary { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-2); }
.btn-secondary:hover { --btn-bg: var(--ground-2); --btn-line: var(--ink); }
.band .btn-secondary { --btn-ink: inherit; --btn-line: rgba(244, 242, 238, .4); }
.band .btn-secondary:hover { --btn-bg: rgba(244, 242, 238, .1); --btn-line: rgba(244, 242, 238, .9); }
.btn-ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: transparent; padding-inline: 12px; }
.btn-ghost:hover { --btn-bg: var(--ground-2); }
.btn-block { width: 100%; }
.link { color: var(--signal-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--signal-text) 40%, transparent); transition: text-decoration-color var(--d-fast); }
.link:hover { text-decoration-color: currentColor; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); min-height: var(--tap); }
.arrow-link .ico { width: 18px; height: 18px; transition: transform var(--d-base) var(--ease-out); }
.arrow-link:hover .ico { transform: translateX(4px); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap);
  border: 1px solid transparent; border-radius: var(--r-2); background: transparent; color: var(--ink);
  transition: background var(--d-fast), border-color var(--d-fast), color var(--d-fast);
}
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--ground-2); border-color: var(--line); }
.icon-btn:active { background: var(--ground-3); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-live { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok-text); }
.tag-talk { border-color: color-mix(in srgb, var(--amber) 55%, transparent); color: var(--amber-text); }
/* On the carbon band the ground is dark in BOTH themes, so the two words wear
   their light colours there whatever the theme; a tile inside the band has
   its own ground and goes back to the theme's. */
.band .tag-live { color: #63C78A; border-color: color-mix(in srgb, #63C78A 55%, transparent); }
.band .tag-talk { color: #F0B429; border-color: color-mix(in srgb, #F0B429 55%, transparent); }
.band .module .tag-live { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.band .module .tag-talk { color: var(--amber-text); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--fs-1); }
.field .hint { font-size: var(--fs-0); color: var(--ink-3); }
.field .err { font-size: var(--fs-0); color: var(--bad); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: var(--r-2);
  background: var(--plate); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: var(--highlight); font-size: 1rem; transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-1); color: var(--ink-2); cursor: pointer; min-height: var(--tap); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--signal); }
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.status { min-height: 1.5em; font-size: var(--fs-1); color: var(--ink-2); }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- header */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-progress); background: var(--signal-2); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.header { position: sticky; top: 0; z-index: var(--z-header); }
.header .bar { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); transition: min-height var(--d-base) var(--ease-out); }
.header.glass { border-left: 0; border-right: 0; border-top: 0; border-radius: 0; box-shadow: none; border-bottom-color: transparent; transition: border-color var(--d-base), box-shadow var(--d-base); }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.header.is-scrolled .bar { min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; margin-right: auto; min-height: var(--tap); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark .star { fill: var(--star); }
.brand .mark .arc { stroke: currentColor; }
.brand .name { white-space: nowrap; font-size: clamp(.8rem, 3.9vw, 1rem); }
@media (max-width: 479px) { .header .actions .theme-btn, .header .actions .lang-btn { display: none; } }
/* SPANISH WORDS ARE LONGER (2026-09-18): the desktop nav plus the header's buttons need 1100px in Spanish (1070px measured at 960–1024), so the Spanish edition keeps the menu button until then. */
@media (min-width: 960px) and (max-width: 1099px) {
  html[lang="es"] .nav { display: none; }
  html[lang="es"] .header .menu-btn { display: inline-flex; }
}
/* THE LANGUAGE SWITCH (2026-09-18): two letters in the header, the full word in the drawer and the footer. */
.lang-btn { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
/* THE OFFER: shown once, above the header, when the browser prefers the other language and no choice has been made. */
.lang-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px var(--gutter); background: var(--ground-2); border-bottom: 1px solid var(--line); font-size: var(--fs-0); color: var(--ink); }
.lang-offer[hidden] { display: none; }
.lang-offer .btn { min-height: 36px; padding-inline: 12px; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-2); text-decoration: none; font-weight: 500; font-size: var(--fs-1); color: var(--ink-2); position: relative; transition: color var(--d-fast), background var(--d-fast); }
.nav a:hover { color: var(--ink); background: var(--ground-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--signal-2); border-radius: 1px; }
.header .actions { display: flex; align-items: center; gap: 4px; }
.header .actions .btn { display: none; }
.header .actions .kbd { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header .actions .btn { display: inline-flex; margin-left: 8px; }
  .header .menu-btn { display: none; }
  .header .actions .kbd { display: inline; }
}
.kbd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; margin-left: 6px; }

/* the mobile drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: grid; grid-template-columns: 1fr; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(14, 16, 19, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 0; padding: 0; cursor: default; }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); background: var(--ground); border-left: 1px solid var(--line); box-shadow: var(--shadow-3); display: flex; flex-direction: column; padding: var(--s4) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); overflow-y: auto; }
.drawer .sheet .top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.drawer nav { display: grid; margin-top: var(--s4); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; font-size: var(--fs-3); font-weight: 500; text-decoration: none; border-top: 1px solid var(--line); color: var(--ink); }
.drawer nav a[aria-current="page"] { color: var(--signal); }
.drawer nav a:last-child { border-bottom: 1px solid var(--line); }
.drawer nav a .ico { width: 18px; height: 18px; color: var(--ink-3); }
.drawer .foot { margin-top: auto; padding-top: var(--s5); display: grid; gap: var(--s3); }
.drawer .foot .row { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; }
.drawer[data-open="false"] { display: none; }
.drawer .sheet { transform: translateX(0); }
.drawer.entering .sheet { animation: slideIn var(--d-base) var(--ease-out); }
.drawer.entering .scrim { animation: fadeIn var(--d-base) var(--ease-out); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- search */
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 16, 19, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.search-dialog { position: fixed; inset: 0; width: 100%; height: 100%; place-items: start center; padding: max(12vh, 64px) var(--gutter) var(--gutter); overflow: hidden; }
.search-dialog:not([open]) { display: none; }
.search-dialog[open] { display: grid; }
.search-panel { width: min(100%, 680px); max-height: calc(100dvh - max(12vh, 64px) - var(--gutter)); display: flex; flex-direction: column; border-radius: var(--r-4); background: var(--plate); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; }
.search-panel .row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.search-panel .row .ico { color: var(--ink-3); }
.search-panel input { flex: 1; min-height: var(--tap); border: 0; background: transparent; font-size: var(--fs-3); color: var(--ink); }
.search-panel input:focus-visible { outline: none; }
.search-panel input::-webkit-search-cancel-button, .search-panel input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-panel .results { overflow-y: auto; padding: 8px; }
.search-panel .result { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-2); text-decoration: none; color: var(--ink); }
.search-panel .result .where { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.search-panel .result .what { font-weight: 600; }
.search-panel .result .snip { font-size: var(--fs-1); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-panel .result mark { background: var(--signal-soft); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-panel .result[aria-selected="true"], .search-panel .result:hover { background: var(--ground-2); }
.search-panel .empty { padding: 28px 16px; color: var(--ink-3); text-align: center; }
.search-panel .empty b { color: var(--ink); font-weight: 600; }
.search-panel .foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 16px; border-top: 1px solid var(--line); font-size: var(--fs-0); color: var(--ink-3); }

/* confirmation dialog */
.confirm-dialog { position: fixed; inset: 0; width: 100%; height: 100%; display: none; place-items: center; padding: var(--gutter); }
.confirm-dialog[open] { display: grid; }
.confirm-panel { width: min(100%, 460px); background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow-3); padding: var(--s5); display: grid; gap: var(--s4); }
.confirm-panel .k { color: var(--bad); }
.confirm-panel .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: var(--s2); }
.btn-danger { --btn-bg: var(--bad); --btn-ink: #fff; --btn-line: var(--bad); }
.btn-danger:hover { --btn-bg: #8F1D17; --btn-line: #8F1D17; }

/* ---------------------------------------------------------------- floating */
.float { position: fixed; right: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: var(--z-float); display: grid; gap: 10px; justify-items: end; }
.float .to-top { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--d-base), transform var(--d-base); background: var(--plate); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.float.show-top .to-top { opacity: 1; transform: none; pointer-events: auto; }
.float .contact-btn { box-shadow: var(--shadow-2); }
.float .sheet { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(calc(100vw - 2 * var(--gutter)), 320px); border-radius: var(--r-4); padding: var(--s4); display: grid; gap: 4px; }
.float .sheet[hidden] { display: none; }
.float .sheet .k { padding: 4px 8px 8px; }
.float .sheet a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 10px; border-radius: var(--r-2); text-decoration: none; font-weight: 500; color: var(--ink); }
.float .sheet a:hover { background: var(--ground-2); }
.float .sheet a .ico { color: var(--ink-3); }
.float .sheet a small { display: block; font-weight: 400; font-size: var(--fs-0); color: var(--ink-3); }
body.no-float .float { display: none; }

/* ---------------------------------------------------------------- banner */
.banner { position: fixed; left: max(var(--gutter), env(safe-area-inset-left)); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: var(--z-banner); width: min(calc(100vw - 2 * var(--gutter)), 420px); border-radius: var(--r-4); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.banner p { font-size: var(--fs-1); color: var(--ink-2); }
.banner .row { display: flex; gap: 8px; flex-wrap: wrap; }
.banner .row .btn { flex: 1; }
@media (max-width: 720px) { .banner { right: max(var(--gutter), env(safe-area-inset-right)); width: auto; bottom: calc(var(--s4) + env(safe-area-inset-bottom)); } body.banner-open .float { bottom: calc(var(--s4) + env(safe-area-inset-bottom) + 190px); } }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: 14px 4px; cursor: pointer; font-weight: 600; font-size: var(--fs-3); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; color: var(--ink-3); transition: transform var(--d-base) var(--ease-out); }
.faq[open] summary .ico { transform: rotate(45deg); color: var(--signal); }
.faq summary:hover { color: var(--signal); }
.faq .a { padding: 0 4px 22px; max-width: var(--measure); color: var(--ink-2); }
.faq .a > * + * { margin-top: .8em; }
.faq .a a { color: var(--signal); }
.faq .a .permalink { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.faq .a .permalink:hover { color: var(--signal); }
.faq.flash { animation: flash 1.6s var(--ease-out); }
@keyframes flash { 0% { background: var(--signal-soft); } 100% { background: transparent; } }

/* ---------------------------------------------------------------- code */
.code { position: relative; }
.code pre { margin: 0; padding: 16px 56px 16px 16px; overflow-x: auto; border-radius: var(--r-3); background: var(--ground-2); border: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-1); line-height: 1.55; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.code .copy .ico { width: 16px; height: 16px; }
.code .copy[data-state="done"] { color: var(--ok); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); position: relative; z-index: 1; font-size: var(--fs-1); }
.footer .cols { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 880px) { .footer .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); } }
.footer a, .footer li, .footer p { overflow-wrap: anywhere; }
.footer p a, .footer .fine a { text-decoration: underline; }
.footer .brand { margin: 0 0 12px; }
.footer .k { margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: space-between; color: var(--ink-3); font-size: var(--fs-0); }
.footer .legal .links { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer .legal button { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: none; cursor: pointer; font-size: inherit; }
.footer .legal button:hover { text-decoration: underline; }
.news { display: grid; gap: 10px; }
.news .row { display: flex; gap: 8px; }
.news .row input { flex: 1; min-width: 0; }
.news .fine { font-size: var(--fs-0); color: var(--ink-3); }
.news[data-state="done"] .row, .news[data-state="done"] .fine { display: none; }
.news .done { display: none; gap: 8px; align-items: center; color: var(--ok); font-weight: 500; }
.news[data-state="done"] .done { display: flex; }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 90ms; } .js .reveal[data-delay="2"] { transition-delay: 180ms; } .js .reveal[data-delay="3"] { transition-delay: 270ms; }
.magnetic { will-change: transform; }

/* ---------------------------------------------------------------- HERO */
.hero { padding-top: var(--s7); padding-bottom: var(--s8); overflow: hidden; }
@media (min-width: 880px) { .hero { padding-top: var(--s8); padding-bottom: var(--s9); } }
.hero .grid { align-items: center; }
.hero h1 { margin: var(--s4) 0 var(--s5); }
.hero h1 .accent { display: block; font-size: .78em; color: var(--ink-2); font-weight: 400; margin-top: .12em; }
.hero .lede { margin-bottom: var(--s6); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta .btn { min-height: 52px; padding-inline: 24px; }
.hero .fine { margin-top: var(--s4); font-size: var(--fs-0); color: var(--ink-3); max-width: 46ch; }
.hero .map-wrap { position: relative; }
@media (min-width: 880px) { .hero .map-wrap { margin-right: calc(-1 * var(--gutter)); } }
@media (min-width: 1280px) { .hero .map-wrap { margin-right: calc((100vw - var(--container)) / -2 + 0px); } }
.sysmap { width: 100%; height: auto; overflow: visible; font-family: var(--mono); }
.sysmap .grid-l { stroke: var(--etch); stroke-width: 1; }
.sysmap .route { fill: none; stroke: var(--line-2); stroke-width: 1.25; stroke-linecap: round; }
.sysmap .route.on { stroke: var(--signal-2); }
.sysmap .node { fill: var(--plate); stroke: var(--line-2); stroke-width: 1.25; }
.sysmap .node.core { fill: var(--ink); stroke: var(--ink); }
.sysmap .node.out { stroke: var(--signal-2); }
.sysmap .label { fill: var(--ink-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.sysmap .label.big { fill: var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: -.005em; text-transform: none; font-weight: 600; }
.sysmap .label.inv { fill: var(--ink-inverse); }
.sysmap .star { fill: var(--star); }
.sysmap .pulse { fill: var(--signal-2); }
.sysmap .signal { fill: var(--signal-2); r: 3.5; offset-rotate: 0deg; }
.sysmap .signal.amber { fill: var(--amber-2); }
.sysmap .ring { fill: none; stroke: var(--signal-2); stroke-width: 1; opacity: .5; }
.sysmap .stat { fill: var(--ink-3); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
/* drawing in: every route starts hidden and draws on load, then the signals travel */
.js .sysmap .route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sysmap.live .route { animation: draw var(--d-scene) var(--ease-in-out) forwards; }
.js .sysmap.live .route:nth-child(2) { animation-delay: 80ms; } .js .sysmap.live .route:nth-child(3) { animation-delay: 160ms; }
.js .sysmap .signal { opacity: 0; }
.js .sysmap.live .signal { animation: travel 5.2s linear infinite; animation-delay: calc(var(--d-scene) + var(--i, 0) * 1.3s); }
.js .sysmap.live .signal.slow { animation-duration: 7s; }
.js .sysmap.live .ring { animation: ring 3.2s var(--ease-out) infinite; transform-origin: center; transform-box: fill-box; }
.js .sysmap.live .node.core { animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------------------------------------------------------------- THE LOOP (a rail, not a card row) */
.loop { position: relative; }
.rail { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: stop; }
.rail::before { content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.stop { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 var(--s4); padding: 14px 0; align-items: start; min-width: 0; }
.stop h3, .stop p { grid-column: 2; }
.stop::before { counter-increment: stop; content: counter(stop, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ground); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); transition: background var(--d-base), color var(--d-base), border-color var(--d-base); }
.stop.on::before { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.stop h3 { font-size: var(--fs-3); font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 32px; }
.stop p { color: var(--ink-2); font-size: var(--fs-1); max-width: 52ch; margin-top: 4px; }
@media (min-width: 880px) {
  .rail { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s7); }
  .rail::before { display: none; }
  .stop { grid-template-columns: minmax(0, 1fr); padding: 0; align-content: start; }
  .stop h3, .stop p { grid-column: 1; }
  .stop::before { grid-column: 1; grid-row: 1; margin-bottom: var(--s4); }
  /* the connector: from this number to the next, and a fading tail at the end of a row */
  .stop::after { content: ""; position: absolute; top: 16px; left: 40px; right: calc(-1 * var(--s5)); height: 1px; background: var(--line); transition: background var(--d-slow); }
  .stop.on::after { background: var(--line-2); }
  .stop:nth-child(5n)::after, .stop:last-child::after { right: 0; background: linear-gradient(90deg, var(--line), transparent); }
  .stop h3 { font-size: var(--fs-2); display: grid; gap: 6px; justify-items: start; }
  .stop p { font-size: var(--fs-0); }
}

/* ---------------------------------------------------------------- PAIN (editorial) */
.pain .quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.1rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
.pain .quote em { font-style: normal; font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.pain .outcomes { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: var(--s6); }
.pain .outcomes > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); align-items: start; }
.pain .outcomes .ico { color: var(--signal); margin-top: 3px; }
.pain .outcomes h3 { font-size: var(--fs-3); }
.pain .outcomes p { color: var(--ink-2); font-size: var(--fs-1); margin-top: 4px; max-width: 46ch; }
.demo { margin-top: var(--s6); display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- BUILD OUTWARD (the growing centre) */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.module { background: var(--plate); padding: 14px 14px 12px; display: grid; gap: 8px; min-height: 92px; align-content: space-between; transition: background var(--d-slow) var(--ease-out); }
.module .name { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); transition: color var(--d-slow); }
.module .ico { color: var(--ink-3); transition: color var(--d-slow); }
.module.lit { background: var(--ground-2); }
.module.lit .name, .module.lit .ico { color: var(--ink); }
.module.lit.core { background: var(--ink); }
.module.lit.core .name, .module.lit.core .ico { color: var(--ink-inverse); }
.module.lit.core .tag-live { color: var(--ok-on-inverse); border-color: color-mix(in srgb, var(--ok-on-inverse) 55%, transparent); }
.module.lit.core .tag-talk { color: var(--amber-on-inverse); border-color: color-mix(in srgb, var(--amber-on-inverse) 55%, transparent); }
.module .tag { justify-self: start; }
.growth { display: grid; gap: var(--s5); }
.growth .k { display: flex; align-items: center; gap: 10px; }
.growth .k .n { font-family: var(--mono); font-size: 22px; color: var(--ink-on, var(--ink)); letter-spacing: -.02em; }
.band { --ink-on: var(--ink-inverse); }
:root[data-theme="dark"] .band { --ink-on: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { --ink-on: var(--ink); } }
.capstone { margin-top: var(--s4); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-3); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.capstone .ico { color: var(--amber-2); }
.capstone .tag { margin-left: auto; }
.capstone-name { color: inherit; text-decoration: none; }
.capstone-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- EQUATION */
.equation { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-family: var(--mono); font-size: clamp(.95rem, .8rem + .7vw, 1.25rem); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.equation span { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--plate); box-shadow: var(--highlight); }
.equation .op { border: 0; background: none; box-shadow: none; padding: 0; color: var(--ink-3); }
.equation .sum { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.questions { counter-reset: q; display: grid; gap: 0; border-top: 1px solid var(--line); }
.questions li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-2); }
.questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 5px; }

/* ---------------------------------------------------------------- INDUSTRIES */
.industries { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .industries { grid-template-columns: 1fr 1fr; column-gap: var(--s7); } }
.industries a { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 60px; }
.industries a b { font-weight: 600; display: block; }
.industries a small { display: block; color: var(--ink-3); font-size: var(--fs-0); }
.industries a .ico { color: var(--ink-3); transition: transform var(--d-base) var(--ease-out), color var(--d-base); }
.industries a:hover .ico { transform: translateX(4px); color: var(--signal); }
.industries a:hover b { text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- THE FILM (#24) */
/* One per language, fetched only when played (preload none); the frame is the film's own ground. */
.film-frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: #0e1013; box-shadow: var(--shadow-2); }
/* it plays muted on its own; this is the one tap that gives it a voice */
.film-sound { position: absolute; left: var(--s4); top: var(--s4); display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(14, 16, 19, .72); color: #fff; font: inherit; font-weight: 600; font-size: var(--fs-1, 15px); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-sound .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.film-sound:hover { background: rgba(14, 16, 19, .88); }
.film-sound:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.film-sound[hidden] { display: none; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0e1013; }
.film-note { margin-top: var(--s3); }
@media print { .film { display: none; } }

/* ---------------------------------------------------------------- COMMAND CENTER plate */
.cc { display: grid; gap: var(--s5); }
.cc .plate { padding: 0; }
.cc .plate .top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cc .plate .top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.cc .plate .top .who { margin-left: auto; color: var(--ink-2); }
.panes { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .panes { grid-template-columns: 1fr 1fr 1fr; } }
.pane { padding: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-height: 96px; }
@media (min-width: 640px) { .pane { border-right: 1px solid var(--line); } .pane:nth-child(3n) { border-right: 0; } .pane:nth-last-child(-n+3) { border-bottom: 0; } }
.pane .name { font-weight: 600; font-size: var(--fs-1); }
.pane .what { font-size: var(--fs-0); color: var(--ink-3); }
.pane .bar { height: 5px; border-radius: 3px; background: var(--ground-3); margin-top: 6px; position: relative; overflow: hidden; }
.pane .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 40%); background: var(--signal-2); border-radius: 3px; }
.pane.first .name { color: var(--signal); }

/* ---------------------------------------------------------------- CONNECT */
.connect { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .connect { grid-template-columns: 1fr 1fr; } }
.connect .item { padding: var(--s5) 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.connect .item h3 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.connect .item p { color: var(--ink-2); max-width: 48ch; }
.connect .systems { display: flex; flex-wrap: wrap; gap: 6px; }
.connect .systems span { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); }

/* ---------------------------------------------------------------- CHECK IT YOURSELF */
.proof { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proof > div { display: grid; grid-template-columns: 1fr; gap: 8px; padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .proof > div { grid-template-columns: 2fr 3fr 1.4fr; gap: var(--s6); align-items: center; } }
.proof h3 { font-size: var(--fs-3); }
.proof p { color: var(--ink-2); max-width: 52ch; }
.proof .do { justify-self: start; }
@media (min-width: 880px) { .proof .do { justify-self: end; } }

/* ---------------------------------------------------------------- PLANS on the home page */
.plans-home { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .plans-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-h { padding: var(--s5) 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
@media (min-width: 720px) { .plan-h { padding: var(--s5) var(--s5) var(--s5) 0; border-right: 1px solid var(--line); } .plan-h:last-child { border-right: 0; } .plan-h + .plan-h { padding-left: var(--s5); } }
.plan-h .name { font-weight: 600; font-size: var(--fs-3); }
.plan-h .price { font-size: var(--fs-5); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-h .price small { font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.plan-h .setup { font-size: var(--fs-0); color: var(--ink-3); font-family: var(--mono); letter-spacing: .04em; }
.plan-h .short { color: var(--ink-2); font-size: var(--fs-1); margin-top: 4px; }
.plan-h.featured .name::after { content: "most chosen"; margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); vertical-align: middle; }
.skeleton { display: grid; gap: 10px; }
.skeleton i { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--ground-2), var(--ground-3), var(--ground-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(1) { width: 40%; } .skeleton i:nth-child(2) { width: 60%; height: 34px; } .skeleton i:nth-child(3) { width: 80%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- FINAL CTA */
.final { padding-block: var(--s9); }
.final h2 { font-size: var(--fs-6); max-width: 14ch; }
.final .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s6); }
.final .cta .btn { min-height: 52px; padding-inline: 24px; }
.final .lines { margin-top: var(--s6); display: grid; gap: 10px; align-content: start; font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .02em; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 880px) { .final .lines { margin-top: calc(var(--s6) + 8px); } }
.final .lines a { text-decoration: none; }
.final .lines a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- interior pages */
.page-head { padding-top: var(--s7); padding-bottom: var(--s6); }
@media (min-width: 880px) { .page-head { padding-top: var(--s8); padding-bottom: var(--s7); } }
.page-head h1 { font-size: var(--fs-5); max-width: 20ch; margin-top: var(--s3); }
@media (min-width: 880px) { .page-head h1 { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem); } }
.page-head .lede { margin-top: var(--s4); }
.updated { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .04em; color: var(--ink-3); }
.two { display: grid; gap: var(--s6); }
@media (min-width: 880px) { .two { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s8); } .two.sticky > :first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.list-rule { display: grid; border-top: 1px solid var(--line); }
.list-rule > * { padding: var(--s4) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.list-rule h3 { font-size: var(--fs-3); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.list-rule p { color: var(--ink-2); max-width: var(--measure); }
.cap-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .cap-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s7); } }
.cap-grid > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s3); align-items: baseline; }
.cap-grid b { font-weight: 600; }
.cap-grid small { grid-column: 1 / -1; color: var(--ink-3); font-size: var(--fs-0); }
.toc { display: grid; gap: 4px; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 8px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: var(--fs-1); overflow-wrap: anywhere; min-width: 0; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--signal); }
.contact-ways { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-ways a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; overflow-wrap: anywhere; gap: var(--s4); align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 72px; }
.contact-ways a b { display: block; font-weight: 600; }
.contact-ways a[href^="mailto:"] b { font-size: var(--fs-1); }
.contact-ways a small { display: block; color: var(--ink-3); font-size: var(--fs-0); }
.contact-ways a .ico:first-child { color: var(--signal); }
.contact-ways a .ico:last-child { color: var(--ink-3); transition: transform var(--d-base) var(--ease-out); }
.contact-ways a:hover .ico:last-child { transform: translateX(4px); }
.form-panel { padding: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-panel { padding: var(--s6); } }
/* ---------------------------------------------------------------- onboarding (#51)
   A new client's intake. Same plates, fields, hairlines and marks as the rest
   of the site; the only new shapes are the status rail and the rows. */
.ob-track { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; gap: 0; counter-reset: rung; border-top: 1px solid var(--line); }
.ob-rung { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ob-rung::before { counter-increment: rung; content: counter(rung, decimal-leading-zero); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ground); font-size: 11px; color: var(--ink-3); }
.ob-rung.done { color: var(--ink-2); }
.ob-rung.done::before { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.ob-rung.on { color: var(--ink); font-weight: 600; }
.ob-rung.on::before { background: var(--signal); color: #fff; border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.ob-rung.ask.on::before { background: var(--amber); border-color: var(--amber); box-shadow: none; }
@media (min-width: 960px) {
  .ob-track { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 0; column-gap: var(--s4); }
  .ob-rung { flex-direction: column; align-items: flex-start; gap: 10px; border-bottom: 0; padding: 0; min-height: 0; }
  .ob-rung::after { content: ""; position: absolute; top: 14px; left: 36px; right: calc(-1 * var(--s4)); height: 1px; background: var(--line); }
  .ob-rung.done::after { background: var(--line-2); }
  .ob-rung:last-child::after { display: none; }
  .ob-rung span { max-width: 14ch; line-height: 1.35; }
}
.ob-banner { margin-bottom: var(--s5); padding: var(--s4) var(--s5); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); border-radius: var(--r-3); background: color-mix(in srgb, var(--amber) 7%, var(--plate)); display: grid; gap: 8px; }
.ob-banner .k { color: var(--amber-text); }
.ob-banner ul { padding-left: 1.2em; display: grid; gap: 4px; }
.ob-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 960px) { .ob-grid { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s7); } .ob-side { position: sticky; top: calc(var(--header-h) + var(--s4)); } }
.ob-progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ob-progress span { display: block; height: 100%; width: 0; background: var(--signal-2); transition: width var(--d-slow) var(--ease-out); }
.ob-side .toc a { justify-content: space-between; gap: 10px; }
.ob-mark { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ob-mark.ok { color: var(--ok); }
.ob-mark.ask { color: var(--amber-text); }
.ob-fields { display: grid; gap: var(--s5); }
.ob-fields fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ob-fields legend { font-weight: 500; font-size: var(--fs-1); padding: 0; margin-bottom: 8px; }
.ob-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ob-consent label, .ob-choice { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: var(--tap); font-weight: 400; font-size: var(--fs-2); color: var(--ink); }
.ob-consent input, .ob-choice input, .ob-day input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--signal); }
.ob-radio { display: grid; gap: 0; }
.ob-choice { padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.ob-choice:last-of-type { border-bottom: 1px solid var(--line); }
.ob-choice > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ob-choice b { font-weight: 600; font-size: var(--fs-2); }
.ob-choice small { color: var(--ink-3); font-size: var(--fs-0); }
.ob-choice input { margin-top: 0; }
.ob-play { min-height: 36px; padding-inline: 10px; font-size: var(--fs-0); flex: none; }
.ob-radio .hint, .ob-radio .err, .ob-hours .hint, .ob-list .hint { margin-top: 8px; display: block; }
.ob-hours { display: grid; gap: 0; }
.ob-day { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ob-day label { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: var(--fs-1); cursor: pointer; min-height: var(--tap); }
.ob-day input[type="checkbox"] { margin: 0; }
.ob-day input[type="time"] { width: auto; min-width: 7.5em; min-height: 40px; padding: 6px 10px; }
.ob-day input[type="time"]:disabled { display: none; }
.ob-day input[type="time"]:disabled + span { display: none; }
.ob-day > .small { grid-column: 2 / -1; justify-self: end; }
.ob-rows { display: grid; gap: 0; }
.ob-row { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); align-items: end; }
.ob-row .field label { font-size: var(--fs-0); color: var(--ink-3); font-weight: 500; }
.ob-row textarea { min-height: 72px; }
@media (min-width: 720px) { .ob-row.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .ob-row.cols-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .ob-row.cols-2:has(textarea) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: start; } .ob-row:has(textarea) .ob-remove { margin-top: 22px; } }
.ob-remove { min-height: 40px; padding-inline: 10px; font-size: var(--fs-0); color: var(--ink-3); justify-self: start; }
.ob-list-tools { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.ob-missing { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; color: var(--ink-2); }
.ob-ready { padding: var(--s4); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); border-radius: var(--r-2); color: var(--ink-2); }
.ob-ready b { color: var(--ink); }
.ob-after { display: grid; gap: var(--s6); }
.ob-due { color: var(--ink-2); display: grid; gap: 10px; }
.ob-due b { color: var(--ink); }
.ob-due ul { padding-left: 1.2em; }
.ob-checks ul { list-style: none; padding: 0; margin: 12px 0 16px; border-top: 1px solid var(--line); }
.ob-check { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ob-check > span:last-child { display: grid; gap: 2px; }
.ob-check small { color: var(--ink-3); font-size: var(--fs-0); }
.ob-check .tag { justify-self: start; }
.ob-check .tag-talk { color: var(--amber-text); }
.ob-check.waiting .tag-talk, .ob-check.optional .tag-talk { color: var(--ink-2); border-color: var(--line-2); }
@media (max-width: 520px) { .ob-check { grid-template-columns: 1fr; gap: 6px; } .ob-day { grid-template-columns: minmax(0, 1fr) auto; } .ob-day input[type="time"] { grid-column: auto; } }
.ob-dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 2 * var(--gutter))); color: var(--ink); }
.ob-dialog:not([open]) { display: none; }
.ob-dialog::backdrop { background: rgba(14, 16, 19, .55); backdrop-filter: blur(2px); }
.ob-dialog .plate { background: var(--plate); }
@media print { .ob-side, .ob-actions, .ob-play, .ob-remove, .ob-list-tools { display: none; } .ob-grid { grid-template-columns: 1fr; } }

.notfound { min-height: 60dvh; display: grid; align-content: center; padding-block: var(--s9); }
.notfound .code { font-family: var(--mono); font-size: clamp(4rem, 2rem + 10vw, 9rem); line-height: 1; letter-spacing: -.04em; color: var(--ink-3); font-weight: 500; }
.notfound .code b { color: var(--signal); font-weight: 500; }
.notfound .search-inline { display: flex; gap: 8px; margin-top: var(--s5); max-width: 480px; }
.notfound .search-inline input { flex: 1; min-width: 0; }
.notfound ul { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); list-style: none; padding: 0; }
.notfound ul a { font-weight: 500; }
.config-list { display: grid; gap: var(--s6); }
.config { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.config h2 { font-size: var(--fs-4); }
.config .row { display: grid; gap: var(--s4); }
@media (min-width: 880px) { .config { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s7); } .config h2, .config .lede-s { grid-column: 1; } .config .row { grid-column: 2; grid-row: 1 / span 3; } }
.config .lede-s { color: var(--ink-2); max-width: 40ch; }
.config .flow { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.config .flow span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--plate); }
.config .flow i { font-style: normal; color: var(--ink-3); align-self: center; }
.config .pre { display: grid; gap: 6px; }
.config .pre li { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-1); color: var(--ink-2); }
.config .pre li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal-2); flex: none; position: relative; top: -2px; }
.config .pre li .tag { margin-left: auto; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .sysmap .route { stroke-dashoffset: 0; }
  .js .sysmap .signal { opacity: 1; offset-distance: 38%; }
  .js .sysmap .ring { opacity: 0; }
  .skeleton i { animation: none; }
  .magnetic { transform: none !important; }
}

/* No cross-document view transition. Tried 2026-09-17; it paused rendering
   of the arriving page in a way a click could hang on. A page that appears
   at once beats a fade that can stall. */

/* ---------------------------------------------------------------- print */
@media print {
  :root { --ground: #fff; --plate: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; --line-2: #888; --signal: #000; --signal-text: #000; }
  @page { margin: 18mm 16mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  body::before, .progress, .header, .drawer, .float, .banner, dialog, .skip, .to-top, .news, .hero .map-wrap, .demo, .btn, .theme-btn, .search-btn, .footer .cols, .toc, .reveal[data-print="hide"] { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  main, .scene, .container { padding: 0 !important; max-width: none !important; }
  .scene { padding-block: 8mm !important; break-inside: avoid; }
  .band { background: none !important; color: #000 !important; }
  .plate, .glass { box-shadow: none !important; background: none !important; border-color: #bbb !important; }
  .plate::after { display: none; }
  h1 { font-size: 26pt; } h2 { font-size: 18pt; } h3 { font-size: 13pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]:not([href*="northstarautonomous.com"])::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: ""; }
  .faq { break-inside: avoid; }
  .faq summary .ico { display: none; }
  .faq .a { display: block !important; }
  .faq:not([open]) .a { display: block !important; }
  .footer { border-top: 1px solid #bbb; padding-top: 6mm; }
  .footer .legal { display: block; }
  .modules, .panes, .rail { break-inside: avoid; }
  .sysmap { display: none; }
  .print-note { display: block !important; font-size: 9pt; color: #444; margin-top: 4mm; }
}
.print-note { display: none; }

/* ---------------------------------------------------------------- theme button faces */
.theme-btn .moon, .theme-btn .sun { display: inline-flex; }
.theme-btn[data-mode="light"] .moon { display: none; }
.theme-btn[data-mode="dark"] .sun { display: none; }


/* ---------------------------------------------------------------- the configurator (/pricing)
   The ids and class names are pricing.js's; the look is the system's. No
   card wall: the plans are three columns separated by hairlines, the add-ons
   are a ruled list, and the running total is a glass rail at the foot. */
.configurator .step { padding-block: var(--s7); }
.configurator .step + .step { border-top: 1px solid var(--line); }
.configurator .plans { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .configurator .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.configurator .plan { position: relative; display: grid; gap: 6px; align-content: start; padding: var(--s5) var(--s4) var(--s5) var(--s4); border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--d-fast); }
@media (min-width: 720px) { .configurator .plan { border-right: 1px solid var(--line); } .configurator .plan:last-child { border-right: 0; } }
.configurator .plan:hover { background: var(--ground-2); }
.configurator .plan:has(input:checked) { background: var(--plate); box-shadow: inset 0 3px 0 var(--signal-2); }
.configurator .plan:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: -3px; }
.configurator .plan input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.configurator .plan .name { font-weight: 600; font-size: var(--fs-3); display: flex; align-items: center; gap: 10px; }
.configurator .plan .name::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.configurator .plan:has(input:checked) .name::before { border-color: var(--signal); box-shadow: inset 0 0 0 4px var(--signal); }
.configurator .plan .price { font-size: var(--fs-5); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.configurator .plan .price small { font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.configurator .plan .setup { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .04em; color: var(--ink-3); }
.configurator .plan .blurb { color: var(--ink-2); margin-top: 8px; }
.configurator .plan ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-3); font-size: var(--fs-0); display: grid; gap: 2px; }
.configurator .plan.is-skeleton { cursor: default; }
.configurator .cat { margin-top: var(--s5); }
.configurator .cat h3 { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 4px; }
.configurator .addon { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); min-height: 56px; }
.configurator .addon:last-child { border-bottom: 1px solid var(--line); }
.configurator .addon input { inline-size: 22px; block-size: 22px; margin: 0; accent-color: var(--signal); }
.configurator .addon .label { font-weight: 500; cursor: pointer; }
.configurator .addon .amt { font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.configurator .addon.off .label, .configurator .addon.off .amt { color: var(--ink-3); }
.configurator .addon .info { grid-column: 2 / -1; margin: 0; color: var(--ink-2); font-size: var(--fs-1); max-width: var(--measure); }
/* THE ⓘ. One button everywhere a thing is named and not yet explained: the
   price list's rows, the Chief of Staff on the home page and on its pricing
   card. 28 px round, 24 px clear of its neighbours (WCAG 2.5.8). */
.info-btn { inline-size: 28px; block-size: 28px; flex: none; padding: 0; cursor: pointer; border-radius: 50%; border: 1px solid var(--line-2); background: var(--plate); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 15px; line-height: 1; text-transform: none; letter-spacing: 0; color: var(--ink-2); display: inline-grid; place-items: center; transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast); }
.info-btn:hover { border-color: var(--ink); color: var(--ink); }
.info-btn[aria-expanded="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.info-panel { flex-basis: 100%; display: grid; gap: 10px; padding-top: var(--s4); margin-top: 4px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: var(--fs-1); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.info-panel[hidden] { display: none; }
/* opened on the carbon band (the home page's capstone): light words on the
   dark ground in both themes, and a link that can be read there. */
.band .info-btn { background: transparent; color: rgba(244, 242, 238, .92); border-color: rgba(244, 242, 238, .5); }
.band .info-btn:hover { border-color: rgba(244, 242, 238, .95); color: #F4F2EE; }
.band .info-btn[aria-expanded="true"] { background: #F4F2EE; color: #14161A; border-color: #F4F2EE; }
.band .info-panel { color: rgba(244, 242, 238, .88); border-top-color: rgba(244, 242, 238, .18); }
.band .info-panel .link { color: #5ED3F0; }
.info-panel p { margin: 0; max-width: var(--measure); }
.info-panel .k { margin-top: 6px; }
.info-panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; max-width: var(--measure); }
.info-panel .cta-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 6px; }
@media (max-width: 480px) { .configurator .addon { grid-template-columns: auto 1fr auto; } .configurator .addon .tag { grid-column: 2; justify-self: start; } }
.configurator .combos { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .configurator .combos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.configurator .combo { text-align: left; display: grid; gap: 4px; padding: var(--s4) var(--s4) var(--s4) 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-weight: 600; font-size: var(--fs-2); color: var(--ink); cursor: pointer; transition: color var(--d-fast); }
@media (min-width: 720px) { .configurator .combo { border-right: 1px solid var(--line); padding-right: var(--s4); } .configurator .combo:last-child { border-right: 0; } .configurator .combo + .combo { padding-left: var(--s4); } }
.configurator .combo:hover { color: var(--signal); }
.configurator .combo small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-1); }
.configurator .talk { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .configurator .talk { grid-template-columns: 1fr 1fr; column-gap: var(--s7); } }
.configurator .talk .card { display: grid; gap: 8px; padding: var(--s5) 0; border-bottom: 1px solid var(--line); align-content: start; }
.configurator .talk .card h4, .configurator .talk .card h3 { font-size: var(--fs-3); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.configurator .talk .card .info-panel { border-top: 0; padding-top: 0; margin-top: 0; }
.configurator .talk .card p { color: var(--ink-2); max-width: 48ch; }
.configurator .talk .card .btn { justify-self: start; margin-top: 4px; }
.configurator .total { position: sticky; bottom: 0; z-index: 30; border-left: 0; border-right: 0; border-radius: 0; padding: var(--s4) 0 calc(var(--s4) + env(safe-area-inset-bottom, 0px)); margin-top: var(--s5); box-shadow: 0 -10px 30px -20px rgba(20, 22, 26, .3); }
.configurator .total .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.configurator .total .big { font-size: var(--fs-4); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.configurator .total .sub { color: var(--ink-3); font-size: var(--fs-1); }
.configurator .total .lines { margin: 8px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-1); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.configurator .total .problems { margin: 8px 0 0; padding: 0; list-style: none; color: var(--amber); font-size: var(--fs-1); }
.configurator .total .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.configurator .term { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-2); overflow: hidden; }
.configurator .term button { background: transparent; color: var(--ink-2); border: 0; min-height: 40px; padding: 0 14px; cursor: pointer; font-weight: 500; font-size: var(--fs-1); }
.configurator .term button[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); }
.configurator .term button:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) {
  /* the running total must not eat the phone: one line of figures, a compact
     term switch, two buttons on a row and the custom-pricing door as a link */
  .configurator .total { padding-top: 10px; }
  .configurator .total .big { font-size: var(--fs-3); }
  .configurator .total .sub { font-size: var(--fs-0); }
  .configurator .term button { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
  .configurator .total .lines { display: none; }
  .configurator .total .cta-row { gap: 8px; margin-top: 8px; }
  .configurator .total .cta-row .btn { flex: 1 1 40%; min-height: 40px; padding-inline: 10px; font-size: 14px; }
  .configurator .total .cta-row #custom { flex-basis: 100%; order: 3; min-height: 32px; background: none; border: 0; text-decoration: underline; color: var(--ink-2); font-weight: 500; }
}
@media print { .configurator .total { position: static; box-shadow: none; } .configurator .total .cta-row, .configurator .term { display: none; } .configurator .addon input { display: none; } .configurator .addon .info { display: block !important; } }
