/* shared/tokens.css */
/* simplenova brand v2 tokens (30 Nov 2026). Source: Projects/simplenova-identity/BRAND-V2-20261130.md.
   Paper, ink green, sage, one lime action. Light is the default; <html data-theme="night"> or any element with
   data-theme="night" (an "ink island": the product window, a band) takes the dark set. Components read the semantic layer. */
:root {
  /* colour: light primitives */
  --paper: #F5F7F3; --sheet: #FCFDFB; --sage: #E9EEE3; --ink: #172623; --ink-2: #46534F; --ink-3: #5B6763; --rule: #D8DED2;
  --field-border: #76837D; --graphite: #46534F; --green: #1F6B4F; --green-hover: #17523C; --ok: #2E6B4E; --warn: #805400; --bad: #B3261E;
  --ink-hover: #263B36; --paper-glass: rgba(245, 247, 243, .88);
  --shadow-window: 0 1px 2px rgba(23, 38, 35, .05), 0 14px 36px rgba(23, 38, 35, .08);
  --surface-light: none; --edge-light: none; --hairline: 1px solid var(--rule);
  --light: radial-gradient(closest-side, rgba(233, 238, 227, .95), rgba(233, 238, 227, .5) 55%, rgba(233, 238, 227, 0) 100%);
  --dot-ink: rgba(23, 38, 35, .14); --bar-ink: rgba(23, 38, 35, .045);
  /* fixed values that do not flip with the theme */
  --lime: #CAF171;             /* the one primary action (ink text on it, 12:1); the mark on dark. Never text or a hairline on light */
  --lime-hover: #D8F593;
  --mint: #A6E3C2;             /* links and signal on dark, 10:1 */
  --likely: #F0C24B;           /* the evidence mark "Likely" (amber) only; also the warning colour on dark */
  --likely-edge: #805400;
  --night: #172623;            /* the ink-green ground */
  --night-2: #1E302C;
  --night-3: #263B36;
  --night-ink: #F5F7F3;
  --night-ink-2: #B7C3BD;
  --night-ink-3: #9EACA5;
  --night-rule: #31463F;
  --night-field: #778C84;
  --ink-fixed: #172623;        /* dark text on lime, amber and paper chips in either theme */
  --pick: var(--lime);         /* the one primary action */
  --pick-hover: var(--lime-hover);
  --data-2: var(--likely);

    /* 4.2 type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-h1: min(clamp(3rem, 1.6rem + 3.1vw, 4.25rem), 12.6vw);   /* 50k: one H1 size on every page, 48 to 68; pages do not override it (the home hero steps down only where it shares a row with the globe) */
  --lh-h1: 1.02;
  --ls-h1: -0.035em;
  --fs-h2: clamp(2rem, 1.6rem + 1.1vw, 2.5rem);    /* 50k: h2 32 to 40 */
  --lh-h2: 1.1;
  --ls-h2: -0.025em;
  --fs-h3: 1.375rem;
  --lh-h3: 1.25;
  --ls-h3: -0.01em;
  --fs-lead: clamp(1.1875rem, 1.1rem + .25vw, 1.25rem);
  --lh-lead: 1.5;
  --fs-body: 1.0625rem;
  --lh-body: 1.55;
  --fs-small: 0.875rem;
  --lh-small: 1.5;
  --fs-label: 0.8125rem;      /* 50k: figure labels, sentence case Geist 13 */
  --lh-label: 1.3;
  --ls-label: 0;
  /* enterprise scale, 30 Nov: every fixed text size on the site is one of these (12 px is the floor) */
  --fs-micro: 0.75rem;         /* 12: badges, table meta */
  --fs-ui: 0.9375rem;          /* 15: controls, navigation, table cells */
  --fs-base: 1rem;             /* 16: form fields */
  --fs-md: 1.125rem;           /* 18 */
  --fs-h4: 1.25rem;            /* 20 */
  --fs-xl: 1.5rem;             /* 24: figures from here up are Geist 600 */
  --fs-2xl: 1.75rem;           /* 28 */
  --fs-3xl: 2rem;              /* 32 */

  /* 4.3 space, grid, shape */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --container: 1200px;
  --gutter: 24px;
  --side: 24px;                 /* page side padding; 16px under 600px (set in base.css) */
  --section-pad: clamp(64px, 8vw, 112px);
  --r-logo: 8px;                /* the logo tile only */
  --r-control: 10px;
  --r-card: 14px;               /* 50k radius scale: 10 controls, 14 cards, 20 windows, pill */
  --r-window: 20px;
  --r-brief: 14px;
  --r-inner: 4px;               /* focus rings round text, marks inside a control */
  --r-pill: 999px;
  --hairline: 1px solid var(--rule);
  --header-h: 64px;

  /* 4.5 motion */
  /* motion language (docs/website/v3/10-motion-direction.md, binding): base unit 0.4s, four durations only */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* entrances and landings */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);    /* exits only */
  --t-1: 0.2s;                                  /* micro: hover, press, tab out */
  --t-2: 0.4s;                                  /* enter: rise, draw-on */
  --t-3: 0.8s;                                  /* big: fills, count-ups, window rise */
  --t-4: 1.2s;                                  /* sequence beat */
  --stagger: 60ms;                              /* cascade step, reading order, max 8 */
  --rise: 16px;                                 /* rise-and-fade travel */
  /* sketch to real (amendment A3, Kai 22 Nov): the one soft in-out move, as in the brand band; used only by data-sketch */
  --t-sketch: 1.4s;
  --ease-soft: cubic-bezier(0.6, 0, 0.4, 1);
  /* older names, kept so nothing breaks; they point at the scale */
  --t-hover: var(--t-1);
  --t-enter: var(--t-2);
  --t-draw: var(--t-2);

    --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --ease-fade: cubic-bezier(0, 0, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  /* semantic layer: components read these, so a theme changes one place */
  --surface-page: var(--paper); --surface-raised: var(--sheet); --surface-tint: var(--sage);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --line: var(--rule); --line-control: var(--field-border);
  --signal: var(--green); --signal-hover: var(--green-hover); --traj: var(--green);
  --positive: var(--ok); --negative: var(--bad); --caution: var(--warn);
  --data-1: var(--green); --data-3: var(--ink-2); --data-4: var(--ok); --ring: 2px solid var(--signal);
    --control-h: 48px;
  --row-h: 48px;               /* data rows; .table--compact sets 40 */
  --measure: 68ch;
  --z-raised: 1;
  --z-sticky: 50;
  --z-sheet: 60;
  --z-skip: 100;
  --t-press: 120ms;
  --t-state: 150ms;
}

/* ---------- dark set: the whole page (<html data-theme="night">) or an ink island inside a paper page ---------- */
[data-theme="night"], .cband {
  color-scheme: dark;
  --paper: #172623; --sheet: #1E302C; --sage: #263B36; --ink: #F5F7F3; --ink-2: #B7C3BD; --ink-3: #9EACA5; --rule: #31463F;
  --field-border: #778C84; --graphite: #9EACA5; --green: #A6E3C2; --green-hover: #C9F0DA; --ok: #7FD6A8; --warn: #F0C24B; --bad: #FF9C93;
  --ink-hover: #FFFFFF; --paper-glass: rgba(23, 38, 35, .82);
  --shadow-window: 0 1px 0 rgba(245, 247, 243, .05) inset, 0 1px 2px rgba(10, 18, 16, .4), 0 18px 44px rgba(10, 18, 16, .34);
  --surface-light: linear-gradient(180deg, rgba(245, 247, 243, .035), rgba(245, 247, 243, 0) 120px); --edge-light: inset 0 1px 0 rgba(245, 247, 243, .05); --hairline: 1px solid var(--rule);
  --light: radial-gradient(closest-side, rgba(202, 241, 113, .14), rgba(166, 227, 194, .07) 50%, rgba(166, 227, 194, 0) 100%);
  --dot-ink: rgba(245, 247, 243, .13); --bar-ink: rgba(245, 247, 243, .04);
  --surface-page: var(--paper); --surface-raised: var(--sheet); --surface-tint: var(--sage);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --line: var(--rule); --line-control: var(--field-border);
  --signal: var(--green); --signal-hover: var(--green-hover); --traj: var(--green);
  --positive: var(--ok); --negative: var(--bad); --caution: var(--warn);
  --data-1: var(--green); --data-3: var(--ink-2); --data-4: var(--ok); --ring: 2px solid var(--signal);
}
/* Bands that are dark by their own rule (.section--night, .on-night, .footer) are written with the fixed --night-* names,
   so inside a night page they get the light set back and render exactly as on a paper page. data-theme="paper" is a light island. */
[data-theme="night"] :is(.section--night, .section--ink, .on-night, .footer, [data-theme="paper"]), [data-theme="paper"] {
  color-scheme: light;
  --paper: #F5F7F3; --sheet: #FCFDFB; --sage: #E9EEE3; --ink: #172623; --ink-2: #46534F; --ink-3: #5B6763; --rule: #D8DED2;
  --field-border: #76837D; --graphite: #46534F; --green: #1F6B4F; --green-hover: #17523C; --ok: #2E6B4E; --warn: #805400; --bad: #B3261E;
  --ink-hover: #263B36; --paper-glass: rgba(245, 247, 243, .88);
  --shadow-window: 0 1px 2px rgba(23, 38, 35, .05), 0 14px 36px rgba(23, 38, 35, .08);
  --surface-light: none; --edge-light: none; --hairline: 1px solid var(--rule);
  --light: radial-gradient(closest-side, rgba(233, 238, 227, .95), rgba(233, 238, 227, .5) 55%, rgba(233, 238, 227, 0) 100%);
  --dot-ink: rgba(23, 38, 35, .14); --bar-ink: rgba(23, 38, 35, .045);
  --surface-page: var(--paper); --surface-raised: var(--sheet); --surface-tint: var(--sage);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --line: var(--rule); --line-control: var(--field-border);
  --signal: var(--green); --signal-hover: var(--green-hover); --traj: var(--green);
  --positive: var(--ok); --negative: var(--bad); --caution: var(--warn);
  --data-1: var(--green); --data-3: var(--ink-2); --data-4: var(--ok); --ring: 2px solid var(--signal);
}
:is(.section--night, .section--ink, .on-night, .footer):not([data-theme="paper"]) { --signal: var(--mint); --signal-hover: var(--night-ink); --traj: var(--mint); --ring: 2px solid var(--mint); }

/* contrast and forced colours */
@media (prefers-contrast: more) {
  :root, [data-theme="paper"] { --rule: #76837D; --ink-2: #263B36; --ink-3: #263B36; --field-border: #46534F; }
  [data-theme="night"] { --rule: #9EACA5; --ink-2: #E9EEE3; --ink-3: #E9EEE3; --field-border: #B7C3BD; }
}

/* shared/base.css */
/* base.css: fonts, reset, type scale, container and grid, section padding, focus, reduced motion. */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
em, i, cite, address { font-style: normal; }
[hidden] { display: none !important; }

/* type scale (4.2). Sentence case, no italics, no glow. */
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 600; text-wrap: balance; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 600; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
/* 50k: no uppercase mono micro-labels. A label is sentence case Geist 13/500. Eyebrows above headings are being removed
   page by page (IDENTITY.md); until then they read as a quiet label, never cobalt. */
.label, .eyebrow { font-family: var(--font-sans); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.eyebrow { display: block; margin-bottom: var(--s-3); }
.section--night .eyebrow, .on-night .eyebrow { color: var(--night-ink-2); }
/* hover states only where a fine pointer can hover (no sticky states after a tap) */
/* text links in running copy are cobalt; components (nav, buttons, chips, footer) set their own colour */
main a:not([class]) { color: var(--signal); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
@media (hover: hover) and (pointer: fine) { main a:not([class]):hover { color: var(--signal-hover); } }
.section--night a:not([class]) { color: var(--mint); }
@media (hover: hover) and (pointer: fine) { .section--night a:not([class]):hover { color: var(--night-ink); } }
.num { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
/* brand v2: no handwriting. Emphasis is a lime bar under the words (ink text on it), or weight. */
.note, .hl { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% .42em; background-position: 0 88%; color: var(--ink-fixed); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .12em; }
.note { display: inline; font-size: var(--fs-small); font-weight: 600; }
/* on ink green the bar is the whole word: lime behind ink text */
[data-theme="night"] :is(.note, .hl), :is(.section--night, .section--ink, .on-night) :is(.note, .hl) { background-size: 100% 100%; background-position: 0 0; border-radius: var(--r-inner); padding: .04em .3em; color: var(--ink-fixed); }
mark { background: var(--sage); color: var(--ink); padding: 0 .12em; border-radius: 2px; box-shadow: inset 0 -1.5px 0 var(--signal); }

/* container and 12-column grid (4.3) */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--sheet { background: var(--sheet); }
.section--night { background: var(--night); color: var(--night-ink); }
.section--rule { border-block: var(--hairline); }
/* ink band: the ink-green ground with paper text; same rules as .section--night */
.section--ink { background: var(--night); color: var(--night-ink); }
.section--ink .lead, .section--ink .label, .section--ink .eyebrow, .section--ink .small { color: var(--night-ink-2); }
.section--ink a:not([class]), .section--ink a:not([class]):hover { color: var(--night-ink); }
.section--ink :is(.num-lg, .stat__num) { color: var(--pick); }
@media (max-width: 599px) { :root { --side: 16px; --gutter: 16px; } }

/* utilities */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip); background: var(--ink); color: var(--sheet); padding: var(--s-3) var(--s-4); border-radius: var(--r-control); text-decoration: none; }
.skip:focus { top: var(--s-3); }

/* focus: 2px signal ring, 2px offset, on every ground */
:focus-visible { outline: var(--ring); outline-offset: 2px; }
.section--night :focus-visible, .on-night :focus-visible, .footer :focus-visible { outline-color: var(--mint); }
.section--ink :focus-visible { outline-color: var(--night-ink); }

/* enter motion (4.5): opacity and 8px rise, once. Only when JS is present and motion is allowed. */
/* motion.js attributes (see 01-spine-notes "Motion API"). Start states apply only under html.motion, which boot.js sets
   when motion is allowed (not reduced, not save-data); everything else renders final at once. --d is the cascade delay. */
[data-reveal] { transition: opacity var(--t-2) var(--ease-out) var(--d, 0ms), transform var(--t-2) var(--ease-out) var(--d, 0ms); }
[data-reveal="window"] { transition-duration: var(--t-3); }
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(var(--rise)); }
.motion [data-reveal="lift"]:not(.is-in) { opacity: 1; }          /* LCP-safe: rises, never invisible */
.motion [data-reveal="window"]:not(.is-in) { transform: translateY(var(--rise)) scale(0.98); }
[data-fill] { transform-origin: left center; transition: transform var(--t-3) var(--ease-out) var(--d, 0ms); }
.motion [data-fill]:not(.is-in) { transform: scaleX(0); }
[data-count] { font-variant-numeric: tabular-nums; }
/* data-sketch: before it plays, the element is a graphite pencil drawing of itself: its real content in pencil (grey,
   lighter, no colour, check dots as open circles) on paper with a light hatch behind it. motion.js draws a pencil outline
   round it; then the paper lifts and the colour comes in (filter and opacity on each direct child), the outline lingers
   and fades. Before it is in view nothing plays; reduced motion, save-data and no JS show the real state only. */
[data-sketch] { position: relative; isolation: isolate; }
[data-sketch] > * { transition: filter var(--t-sketch) var(--ease-soft), opacity var(--t-sketch) var(--ease-soft); }
[data-sketch]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--paper) url("/img/hatch.svg"); opacity: 0; transition: opacity var(--t-sketch) var(--ease-soft); }
.motion [data-sketch]:not(.is-real)::before { opacity: 1; }
.motion [data-sketch]:not(.is-real) > :not(.sketch-line) { filter: grayscale(1) contrast(0.85); opacity: 0.62; }
.motion [data-sketch] .t5__strip i { transition: background-color var(--t-sketch) var(--ease-soft), border-color var(--t-sketch) var(--ease-soft), border-radius var(--t-sketch) var(--ease-soft); }
.motion [data-sketch]:not(.is-real) .t5__strip i { border-radius: 50%; background: transparent; border: 1px solid var(--graphite); }
.sketch-line { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity var(--t-sketch) var(--ease-soft) var(--t-2); }
.sketch-line path { transition-duration: var(--t-3) !important; }
.pencil.sketch-line { stroke: var(--graphite); } /* the sketch is graphite, not the cobalt annotation pencil */
.sketch-line .pencil__b { transform: translate(1.2px, 0.8px); }
[data-sketch].is-real .sketch-line { opacity: 0; }
/* a sequence left mid-play (scrolled away) finishes at once */
.is-flushed [data-reveal], .is-flushed [data-fill], .is-flushed .pencil[data-draw], .is-flushed .pencil[data-draw] path { transition: none !important; }

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

/* 28 Nov: moving between pages cross-fades (browsers that support it; others cut as before). Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 140ms var(--ease-exit) both; }
  ::view-transition-new(root) { animation: vt-in 220ms var(--ease-fade) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* shared/components.css */
/* components.css: the spine's shared components (blueprint 4.4 and 4.6). Squads reuse these classes; they do not restyle them.
   header · menu sheet · logo · buttons · arrow link · brief box · product window · top 5 rows · check cells · chips ·
   pencil marks · margin note · footer · slim footer */

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: var(--fs-h4); letter-spacing: -0.035em; min-height: 44px; border-radius: var(--r-control); color: var(--ink); }
.logo__mark { flex: none; width: 26px; height: 26px; fill: currentColor; transition: transform var(--t-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo__mark { transform: translateX(2px); } }
.footer .logo, .on-night .logo, .section--night .logo { color: var(--night-ink); }
.footer .logo__mark, .on-night .logo__mark, .section--night .logo__mark, [data-theme="night"] .logo__mark { fill: var(--lime); }

/* ---------- header (4.6) ---------- */
.header { position: sticky; top: 0; z-index: var(--z-sticky); height: var(--header-h); background: var(--paper-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t-hover) linear; }
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.header__nav { display: flex; gap: var(--s-1); margin-inline: auto; }
.header__nav a, .header__login { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-3); font-size: var(--fs-ui); color: var(--ink-2); text-decoration: none; border-radius: var(--r-control); transition: color var(--t-hover); }
@media (hover: hover) and (pointer: fine) { .header__nav a:hover, .header__login:hover { color: var(--ink); text-decoration: underline; } }
.header__nav a[aria-current="page"] { color: var(--ink); }
.header__end { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.header__nav + .header__end { margin-left: 0; }
.header__menu { display: none; min-height: 44px; padding-inline: var(--s-3); background: none; border: 1px solid transparent; border-radius: var(--r-control); font-size: var(--fs-ui); cursor: pointer; text-decoration: none; align-items: center; }
@media (hover: hover) and (pointer: fine) { .header__menu:hover { border-color: var(--ink); } }
@media (max-width: 899px) {
  .header__nav, .header__login { display: none; }
  .header__menu { display: inline-flex; }
}
/* 320 px (WCAG reflow): logo, button and Menu must fit in 288 px */
@media (max-width: 380px) { .header__in { gap: var(--s-2); } .header__end { gap: var(--s-1); } .header .btn--sm { padding-inline: var(--s-3); } .header__menu { padding-inline: var(--s-2); } .logo { gap: 8px; } .logo span { font-size: var(--fs-base); } }
.js .no-js-only, html:not(.js) .js-only { display: none !important; }

/* menu sheet (under 900px): full height, focus trapped, Esc closes */
.menu-sheet { position: fixed; inset: 0; z-index: var(--z-sheet); background: var(--paper); display: flex; flex-direction: column; padding: 0 var(--side) var(--s-6); overflow-y: auto; overscroll-behavior: contain; }
.menu-sheet__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-sheet__close { min-height: 44px; padding-inline: var(--s-3); background: none; border: 1px solid var(--rule); border-radius: var(--r-control); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .menu-sheet__close:hover { border-color: var(--ink); } }
.menu-sheet ul { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); border-top: var(--hairline); }
.menu-sheet li { border-bottom: var(--hairline); }
.menu-sheet li a { display: flex; align-items: center; min-height: 56px; font-size: var(--fs-h3); letter-spacing: -0.01em; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .menu-sheet li a:hover { text-decoration: underline; } }
.menu-sheet .btn { width: 100%; }
body.has-sheet { overflow: hidden; }

/* ---------- buttons (4.6) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-control); border: 1px solid transparent; font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 500; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover), transform var(--t-hover); }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--fs-ui); }
/* large landing-page CTA (Kai, 25 Nov): page-level primary calls only, never the header or inline buttons */
.btn--lg { min-height: 56px; padding-inline: 32px; font-size: var(--fs-md); font-weight: 600; } /* 32px: off the space scale on purpose, sized for the large CTA */
@media (max-width: 599px) { .btn--lg { min-height: 52px; padding-inline: 28px; font-size: var(--fs-body); } }
/* brand v2: the primary action is lime with ink text on every ground (12:1); one per view */
.btn--primary { background: var(--pick); color: var(--ink-fixed); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-fixed) 14%, transparent); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--pick-hover); } }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { background: var(--sage); } }
.btn:active { transform: scale(.97); transition-duration: var(--t-press); }
/* the header button swaps outline <-> primary as brief boxes scroll by: swap instantly, so its text never fades through its own background */
[data-header-cta] { transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--sage); color: var(--ink-2); border-color: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading { cursor: progress; }
.on-night .btn--primary, .section--night .btn--primary { background: var(--pick); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .on-night .btn--primary:hover, .section--night .btn--primary:hover { background: var(--pick-hover); } }
.on-night .btn--outline, .section--night .btn--outline { color: var(--night-ink); border-color: var(--night-ink); }

/* secondary: text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--signal); font-weight: 500; text-decoration: none; border-radius: var(--r-inner); }
.link-arrow::after { content: ""; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("/img/arrow.svg") center / contain no-repeat; mask: url("/img/arrow.svg") center / contain no-repeat; transition: transform var(--t-hover); } /* 50k: drawn arrow, no unicode glyph */
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { color: var(--signal-hover); text-decoration: underline; } }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(3px); } }
.on-night .link-arrow, .section--night .link-arrow { color: var(--mint); }
.section--ink .link-arrow { color: var(--mint); }
.section--ink .btn--outline { color: var(--night-ink); border-color: var(--night-ink); }

/* ---------- brief box (4.6, 5, 9.1) ---------- */
.brief { max-width: 600px; }
.brief__label { display: block; margin-bottom: var(--s-2); color: var(--ink-3); }
.brief__box { position: relative; display: flex; align-items: center; gap: var(--s-2); min-height: 74px; padding: 9px 9px 9px var(--s-5); background: var(--sheet); border: 1px solid var(--field-border); border-radius: var(--r-brief); transition: border-color var(--t-hover); }
@media (hover: hover) and (pointer: fine) { .brief__box:hover { border-color: var(--ink-2); } }
.brief__box:focus-within { border-color: var(--signal); outline: var(--ring); outline-offset: 2px; }
.brief__input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; font-size: var(--fs-md); color: var(--ink); }
.brief__input::placeholder { color: var(--ink-3); opacity: 1; }
.brief__input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--signal); } /* the box carries the ring; a gold marker line under the text marks the field itself */
.brief__btn { flex: none; min-height: 56px; padding-inline: 32px; font-size: var(--fs-md); font-weight: 600; } /* large CTA; box padding below leaves >6px + border clear for the hover lean */
@media (max-width: 599px) { .brief__btn { min-height: 52px; padding-inline: 28px; font-size: var(--fs-body); } }
.brief__btn:focus-visible { outline-offset: 3px; }
.brief__err { min-height: 0; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--bad); }
.brief__err:empty { margin: 0; }
.brief.is-error .brief__box { border-color: var(--bad); }
.brief.is-shake .brief__box { animation: brief-shake 320ms ease-in-out 1; }
@keyframes brief-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.brief__under { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); }
.brief__under .link-arrow { font-size: var(--fs-small); }
/* night variant: night-2 field, gold button */
.brief--night .brief__label { color: var(--night-ink-2); }
.brief--night .brief__box { background: var(--night-2); border-color: var(--night-ink-2); }
.brief--night .brief__box:focus-within { border-color: var(--mint); outline-color: var(--mint); }
.brief--night .brief__input { color: var(--night-ink); }
.brief--night .brief__input::placeholder { color: var(--night-ink-2); }
.brief--night .brief__btn { background: var(--pick); color: var(--ink); }
.brief--night .brief__under { color: var(--night-ink-2); }
@media (max-width: 599px) {
  .brief__box { flex-direction: column; align-items: stretch; padding: 0; border: 0; background: none; min-height: 0; gap: var(--s-3); }
  .brief__box:hover { border-color: transparent; }
  .brief__box:focus-within { outline: none; }
  .brief__input { flex: none; height: 56px; padding-inline: var(--s-4); background: var(--sheet); border: 1px solid var(--field-border); border-radius: var(--r-brief); }
  .brief__input:focus-visible { outline: var(--ring); outline-offset: 2px; border-color: var(--ink); }
  .brief.is-error .brief__input { border-color: var(--bad); }
  .brief__btn { width: 100%; }
  .brief--night .brief__input { background: var(--night-2); border-color: var(--night-ink-2); }
}

/* ---------- product window (4.6) ---------- */
.pw { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-window); box-shadow: var(--shadow-window); overflow: hidden; transition: transform var(--t-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pw:hover { transform: translateY(-2px); } } /* product windows lift 2px (10-motion 4) */
.pw__bar { display: flex; align-items: center; gap: var(--s-3); height: 40px; padding-inline: var(--s-4); border-bottom: var(--hairline); }
.pw__dots { display: flex; gap: 6px; }
.pw__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); opacity: .55; }
.pw__title { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw__body { padding: var(--s-3) var(--s-4) var(--s-4); }
.pw-label { margin-top: var(--s-3); }

/* top 5 rows (inside a product window) */
.t5__head { display: flex; justify-content: space-between; padding: 2px 0 var(--s-2); color: var(--ink-3); }
.t5 { margin: 0; }
.t5__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "rank who score" "rank strip strip"; column-gap: var(--s-3); row-gap: 5px; align-items: center; padding: 9px var(--s-2); margin-inline: calc(-1 * var(--s-2)); position: relative; border-radius: var(--r-control); transition: background-color var(--t-hover); }
/* straight hairline dividers: drawn inset, so the hover fill keeps its radius without curling the rule */
.t5__row + .t5__row::before { content: ""; position: absolute; left: var(--s-2); right: var(--s-2); top: 0; height: 1px; background: var(--rule); }
.t5__row.is-active { background: var(--paper); }
.t5__rank { grid-area: rank; align-self: start; padding-top: 1px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink-3); }
.t5__who { grid-area: who; min-width: 0; font-size: var(--fs-small); line-height: 1.3; }
.t5__who b { font-weight: 600; }
.t5__who span { display: block; color: var(--ink-2); font-size: var(--fs-label); white-space: normal; overflow-wrap: anywhere; }
.t5__score { grid-area: score; align-self: start; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: var(--fs-ui); }
.t5__strip { grid-area: strip; display: flex; align-items: center; gap: 3px; }
.t5__strip i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--graphite); }
.t5__strip i.m { background: var(--ink); border-color: var(--ink); }
.t5__strip i.l { background: var(--likely); border-color: var(--likely-edge); }
.t5__strip i.n { border-style: dashed; }
.t5__strip small { margin-left: 6px; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-3); }
/* compact rows (hero card, request page): name, checks and score on one line; the role under it, never truncated */
.t5--compact .t5__row { grid-template-columns: 18px minmax(0, 1fr) auto auto; grid-template-areas: "rank name strip score" "rank role role role"; column-gap: var(--s-3); row-gap: 2px; padding-block: 8px; }
.t5--compact .t5__who { display: contents; }
.t5--compact .t5__who b { grid-area: name; font-size: var(--fs-small); font-weight: 600; }
.t5--compact .t5__who > span { grid-area: role; white-space: normal; overflow: visible; color: var(--ink-2); font-size: var(--fs-label); }
.t5--compact .t5__strip { gap: 2px; }
.t5--compact .t5__strip i { width: 6px; height: 6px; }
.t5--compact .t5__score { min-width: 2ch; text-align: right; }
.t5__more { padding-top: var(--s-2); border-top: var(--hairline); font-size: var(--fs-label); color: var(--ink-3); }

/* ---------- check cells (4.6) ---------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.cell { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-2); min-height: 76px; padding: 10px var(--s-3); border-radius: var(--r-control); font-size: var(--fs-label); line-height: 1.3; border: 1.5px solid transparent; }
.cell__state { font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0; text-transform: none; }
.cell--matched { background: var(--ink); color: var(--sheet); }
.cell--likely { background: var(--likely); color: var(--ink); }
.cell--none { background: var(--sheet); color: var(--ink); border: 1.5px dashed var(--graphite); }
.cell--notmet { background: var(--sheet); color: var(--ink-2); border-color: var(--rule); }
.cell--notmet .cell__text { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cells-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); }
.cells-key i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; }
.cells-key .k-m { background: var(--ink); } .cells-key .k-l { background: var(--likely); } .cells-key .k-n { border: 1.5px dashed var(--graphite); }

/* ---------- chip (4.6) ---------- */
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--sage); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { a.chip:hover { background: var(--rule); text-decoration: underline; } }

/* ---------- the Field (blueprint 8): <div class="field" data-field="hero|mini|funnel|night"> ----------
   field.js mounts it near the viewport; until then (and for reduced motion, save-data, low memory, no JS) the
   fallback image shows. Size the .field box in your section; the globe fits the smaller side. */
.field { position: relative; }
.field__img, .field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field__img { object-fit: contain; transition: opacity var(--t-3) var(--ease-out); }
.field__canvas { opacity: 0; pointer-events: none; transition: opacity var(--t-3) var(--ease-out); }
.field.is-live .field__canvas { opacity: 1; }
.field.is-live .field__img { opacity: 0; }
/* scan ring: a cobalt circle that sweeps out over the globe once per scan (transform and opacity only) */
.field__scan { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 1.25px solid var(--signal); border-radius: 50%; opacity: 0; transform: scale(0.05); pointer-events: none; }
.field[data-field="night"] .field__scan { border-color: var(--mint); }
.field__scan.is-on { animation: field-scan var(--t-3) var(--ease-out) 1; }
@keyframes field-scan { from { opacity: 0.6; transform: scale(0.05); } to { opacity: 0; transform: scale(1); } }
.field__pause { position: absolute; right: var(--s-2); bottom: var(--s-2); z-index: 3; min-height: 32px; padding: 0 var(--s-1); background: none; border: 0; border-radius: var(--r-inner); font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .field__pause:hover { color: var(--ink); text-decoration: underline; } }
.section--night .field__pause, .field[data-field="night"] .field__pause { color: var(--night-ink-2); }
@media (hover: hover) and (pointer: fine) { .section--night .field__pause:hover, .field[data-field="night"] .field__pause:hover { color: var(--night-ink); } }

/* ---------- footer (4.6) ---------- */
.footer { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding-top: var(--s-8); }
.footer a { color: var(--night-ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { text-decoration: underline; } }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-6) var(--gutter); }
.footer__brand p { margin-top: var(--s-4); color: var(--night-ink-2); max-width: 26ch; }
.footer__brand p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--night-ink-2); }
.footer__h { margin-bottom: var(--s-3); color: var(--night-ink-2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--night-ink); font-size: var(--fs-ui); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--night-rule); color: var(--night-ink-2); }
.footer__line { color: var(--night-ink); font-weight: 500; }
.footer__brand .footer__slogan { margin-top: var(--s-4); font-size: var(--fs-xl); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: var(--night-ink); max-width: none; }
.footer__mark { margin-top: var(--s-6); padding-bottom: var(--s-7); } /* 30 Nov: the name in Geist 600, whole, 48 px clear below (tools/build_wordmark_geist.py) */
.footer__mark svg { width: 100%; height: auto; fill: var(--night-2); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- night theme fixes (28 Nov). Only under <html data-theme="night">; the paper theme is untouched. ---------- */
/* primary is gold on night, as in the closing band; dark text stays dark on every light fill */
[data-theme="night"] .btn--primary { background: var(--pick); color: var(--ink-fixed); }
@media (hover: hover) and (pointer: fine) {
  [data-theme="night"] .btn--primary:hover { background: var(--pick-hover); }
  [data-theme="night"] .section--ink .btn--primary:hover { background: var(--pick-hover); }
}
[data-theme="night"] :is(.section--night, .on-night) .btn--primary { background: var(--pick); color: var(--ink-fixed); }
[data-theme="night"] .btn:is(:disabled, [aria-disabled="true"]):not(.is-loading), [data-theme="night"] :is(.section--night, .on-night, .section--ink) .btn:is(:disabled, [aria-disabled="true"]):not(.is-loading) { background: var(--sage); color: var(--ink-2); border-color: transparent; }
[data-theme="night"] :is(.cell--likely, .plan__badge, .calc__src li:target) { color: var(--ink-fixed); } /* 50k: mark is a cobalt-tint selection now, so it keeps the theme ink */
/* raised surfaces: a soft top-light, thin borders */
[data-theme="night"] .pw { background-image: var(--surface-light); }
[data-theme="night"] .pw__dots i { opacity: .7; }
[data-theme="night"] .t5__row.is-active { background: var(--sage); }
[data-theme="night"] .cell--matched { background: var(--ink); color: var(--ink-fixed); }
/* header: night glass, a hairline once scrolled */
[data-theme="night"] .header.is-scrolled { border-bottom-color: var(--rule); }
/* footer and night bands sit on the night ground: a hairline keeps the edge */
[data-theme="night"] .footer { border-top: 1px solid var(--night-rule); }
[data-theme="night"] main > .section--night:not(:first-child) { border-top: 1px solid var(--night-rule); }
/* the Field's still image is drawn on paper: turn it to night (dots light, gold kept gold) */
/* paper islands (brand band): their own ground and text, a clean edge against the night */
[data-theme="night"] [data-theme="paper"] { background-color: var(--paper); color: var(--ink); }

/* slim legal footer (request page) */
.footer--slim { padding: var(--s-6) 0; }
.footer--slim .footer__base { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.footer--slim .footer__base a { min-height: 36px; display: inline-flex; align-items: center; color: var(--night-ink-2); }

/* ==================================================================================================================
   50k identity layer (29 Nov 2026). One system for simplenova.io and the app: simplenova-identity/IDENTITY.md
   ("dots and trajectories"). Website detail: docs/DESIGN-SYSTEM-50k.md. Tokens only, so night and paper both work.
   ================================================================================================================== */

/* ---------- icons: one custom set in static/img/icons.svg (24 grid, 1.6 stroke, round caps and joins, no fills).
   <svg class="ic" aria-hidden="true"><use href="/img/icons.svg#i-check"/></svg>. Colour is currentColor. ---------- */
.ic { display: inline-block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; vertical-align: -0.2em; }
.ic--16 { width: 16px; height: 16px; }
.ic--24 { width: 24px; height: 24px; }
.ic--28 { width: 28px; height: 28px; }
/* the one container an icon may sit in: feature rows, proof items, steps */
.ic-tile { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-control); background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--edge-light); color: var(--ink); }
.ic-tile .ic { width: 20px; height: 20px; }
.ic-tile--signal { color: var(--signal); }
.ic-tile--lg { width: 48px; height: 48px; border-radius: var(--r-card); }
.ic-tile--lg .ic { width: 24px; height: 24px; }

/* ---------- small labels: sentence case Geist 13/500 (the same look as .label) ---------- */
.figlabel { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; color: var(--ink-2); }

/* ---------- dot grid: 1 px dots, 18 px pitch, only inside a window or behind a diagram; fades at the edges ---------- */
.dotgrid { background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent); mask-image: radial-gradient(closest-side, #000 52%, transparent); }

/* ---------- the one light per view: .has-light on the section; place it behind the main object with
   --light-x, --light-y (from the section's top left) and --light-w. Still: no breathing, no pointer follow. ---------- */
.has-light { position: relative; isolation: isolate; }
.has-light::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: var(--light-x, 50%); top: var(--light-y, 50%); width: var(--light-w, min(820px, 110vw)); aspect-ratio: 1.15; transform: translate(-50%, -50%); background: var(--light); }

/* ---------- trajectory: the thin line that carries the work (SVG path or line) ---------- */
.traj { fill: none; stroke: var(--traj); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.traj--faint { stroke-opacity: .45; }
.traj--light { stroke: var(--mint); }
.traj-dot { fill: var(--paper); stroke: var(--traj); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.traj-dot--on { fill: var(--traj); }

/* ---------- surfaces: night raised surfaces carry the top light, never an outer glow ---------- */
.surface { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--edge-light); }
.pw { box-shadow: var(--shadow-window); }

/* 50k round 5: with the nav hidden (under 900) the header's end pair goes to the right edge */
@media (max-width: 899px) { .header__nav + .header__end { margin-left: auto; } }

/* ---------- 30 Nov 2026, after the independent critique ---------- */
/* Figures: at 24 px and above a figure is Geist 600 with tabular numerals; Geist Mono is for 16 px and below only
   (scores, indices, IDs). .num on a large figure therefore reads as Geist. */
.figure, .num-lg { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* One closing band for every page: H2, lead, then button and link, all left; the signature mark at right from 1024.
   <section class="section cband"><div class="wrap cband__in">[svg.cband__mark] h2, p.lead, div.cband__actions</div></section> */
/* brand v2: the close is an ink-green band on every page (the dark token set comes from tokens.css), and the footer follows it */
.cband { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); }
.cband .logo__mark { fill: var(--lime); }
main:has(> :is(.cband, .brand):last-child) + .footer { border-top: 1px solid var(--night-rule); }
.cband__in { position: relative; }
.cband__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.cband__mark { display: none; }
@media (min-width: 1024px) {
  .cband__mark { display: block; position: absolute; right: var(--side); top: 50%; width: min(560px, 44%); height: auto; transform: translateY(-50%); pointer-events: none; color: var(--signal); }
  .cband__in > :not(.cband__mark) { position: relative; z-index: 1; max-width: 56%; }
}

/* brand v2: where a page ends on the brand band the footer's large wordmark would repeat the lockup, so it steps aside */
main:has(> .brand:last-child) + .footer { padding-top: var(--s-7); }
main:has(> .brand:last-child) + .footer .footer__mark { display: none; }
main:has(> .brand:last-child) + .footer .footer__base { padding-bottom: var(--s-6); }
/* short pages: the footer sits at the bottom of the window */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.brand + .cband { border-top: 1px solid var(--rule); }
.footer--slim .footer__base { justify-content: flex-start; }

/* shared/system.css */
/* system.css (30 Nov 2026): the enterprise component layer. Reads only the semantic tokens, so night, paper and
   high-contrast all follow. Reference: docs/ENTERPRISE-SYSTEM.md and docs/system-reference.html.
   form fields · data table · status · alert · figure · definition rows · disclosure · forced colours · print */

/* ---------- form fields ---------- */
.field-row { position: relative; display: grid; gap: 6px; align-content: start; }
.field-row__label { font-size: var(--fs-ui); font-weight: 500; }
.field-row__hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-3); }
.field-row__hint:empty { display: none; }
.field-row__err { font-size: var(--fs-small); font-weight: 500; color: var(--negative); }
.input { width: 100%; min-height: var(--control-h); padding: 10px 14px; background: var(--surface-raised); border: 1px solid var(--line-control); border-radius: var(--r-control); font-size: var(--fs-base); color: var(--text); transition: border-color var(--t-state) var(--ease-out); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: none; padding-right: 36px; }
@media (hover: hover) and (pointer: fine) { .input:hover { border-color: var(--text-2); } }
.input:focus-visible { outline: var(--ring); outline-offset: 2px; border-color: var(--signal); }
.input[aria-invalid="true"] { border-color: var(--negative); }
.input:disabled { background: var(--surface-tint); color: var(--text-2); cursor: not-allowed; }
.field-row:has(> select)::after { content: ""; position: absolute; right: 17px; bottom: 21px; width: 7px; height: 7px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg); pointer-events: none; }

/* ---------- data table: <div class="table-wrap" tabindex="0" role="region" aria-label="…"><table class="table"> ---------- */
.table-wrap { overflow-x: auto; position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: var(--edge-light); }
.table-wrap:focus-visible { outline: var(--ring); outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); line-height: 1.4; }
.table :is(th, td) { height: var(--row-h); padding: var(--s-2) var(--s-4); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table thead th { font-size: var(--fs-label); font-weight: 500; color: var(--text-2); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.table--compact { --row-h: 40px; }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover { background: var(--surface-tint); } }

/* ---------- status: always a word, the dot only repeats it ---------- */
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 500; color: var(--text); white-space: nowrap; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.status--live::before { background: var(--signal); border-color: var(--signal); }
.status--done::before { background: var(--positive); border-color: var(--positive); }
.status--review::before { background: var(--likely); border-color: var(--caution); }
.status--failed::before { background: var(--negative); border-color: var(--negative); }

/* ---------- alert: a full border, never a side bar ---------- */
.alert { padding: var(--s-4); border: 1px solid var(--line-control); border-radius: var(--r-control); background: var(--surface-raised); font-size: var(--fs-small); line-height: var(--lh-small); }
.alert > :first-child:is(h2, h3, b) { display: block; margin-bottom: var(--s-2); font-size: var(--fs-base); line-height: 1.3; font-weight: 600; }
.alert--error { border-color: var(--negative); }
.alert--error > :first-child:is(h2, h3, b) { color: var(--negative); }
.alert:focus, .alert:focus-visible { outline: none; box-shadow: 0 0 0 1px currentColor; }
.alert--error:focus, .alert--error:focus-visible { box-shadow: 0 0 0 1px var(--negative); }

/* ---------- figure with its label: at 24 px and above a figure is Geist 600 ---------- */
.fig { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.fig__n { font-size: var(--fs-2xl); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fig__t { color: var(--text-2); font-size: var(--fs-small); line-height: var(--lh-small); max-width: 32ch; }

/* ---------- definition rows: the quiet alternative to a card grid ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows > * { display: grid; gap: var(--s-1) var(--s-6); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.rows :is(dt, b) { font-weight: 600; letter-spacing: -0.01em; }
.rows :is(dd, span) { margin: 0; color: var(--text-2); max-width: var(--measure); }
@media (min-width: 900px) { .rows--split > * { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }

/* ---------- disclosure ---------- */
.disclose { border-block: 1px solid var(--line); }
.disclose > summary { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; font-weight: 500; cursor: pointer; list-style: none; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 6px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--t-state) var(--ease-out); }
.disclose[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.disclose > summary:focus-visible { outline: var(--ring); outline-offset: 2px; border-radius: var(--r-inner); }

/* ---------- forced colours: shapes drawn with background colour need a system colour ---------- */
@media (forced-colors: active) {
  .btn, .chip, .cell, .surface, .pw { border: 1px solid ButtonText; }
  .t5__strip i { forced-color-adjust: none; }
  .status::before { border-color: CanvasText; }
  .t5__strip i.m { background: CanvasText; border-color: CanvasText; }
  .t5__strip i.l { background: Highlight; border-color: CanvasText; }
  .link-arrow::after { background: LinkText; }
}

/* ---------- print: paper, ink, no chrome; links show where they go ---------- */
@media print {
  :root, [data-theme="night"] { color-scheme: light; --paper: #fff; --sheet: #fff; --ink: #172623; --ink-2: #263B36; --ink-3: #46534F; --rule: #B7C3BD; --signal: #17523C; --night: #fff; --night-2: #fff; --night-ink: #172623; --night-ink-2: #263B36; --night-rule: #B7C3BD; }
  .header, .menu-sheet, .skip, .footer__mark, .field, .brief, canvas, [data-mega-panel] { display: none !important; }
  .section { padding-block: 24px; break-inside: auto; }
  .surface, .pw, .pkg, .table-wrap { box-shadow: none; break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  details > :not(summary) { display: block; }
  main a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 10pt; overflow-wrap: anywhere; }
}

/* section: 005-system */
/* 005-system (sleek pass, 30 Nov 2026): the Platform page's hero (H1 beside the system picture, the one light of the
   view behind it), the six division cards and Devi stated once in one raised band. The markup is generated by
   tools/six.py; the picture's own rules are in /css/six.css. Semantic tokens only. */

/* ---- hero ---- */
.pf-hero { padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 64px); overflow-x: clip; }
.pf-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.pf-h1 { margin: 0; font-size: clamp(2.75rem, 1.2rem + 3.2vw, 3.75rem); }
.pf-hero__lead { max-width: 50ch; margin: var(--s-5) 0 0; color: var(--text-2); }
.pf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.pf-fig { position: relative; isolation: isolate; margin: 0; min-width: 0; }
.pf-fig::before { content: ""; position: absolute; z-index: -2; pointer-events: none; left: 50%; top: 45%; width: min(820px, 125%); aspect-ratio: 1.15;
  transform: translate(-50%, -50%); background: var(--light); }
.pf-fig::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 var(--s-7);
  background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 98%); mask-image: radial-gradient(closest-side, #000 25%, transparent 98%); }
.pf-read { display: grid; min-height: 3em; margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; text-align: center; }
.pf-read > span { grid-area: 1 / 1; max-width: 54ch; margin-inline: auto; }
.pf-read__live { visibility: hidden; color: var(--text); font-weight: 500; }
.pf-read.is-live .pf-read__base { visibility: hidden; }
.pf-read.is-live .pf-read__live { visibility: visible; }
@media (min-width: 1024px) {
  .pf-hero__in { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: var(--s-6); }
  .pf-h1__l { display: block; }
}

/* ---- the six cards ---- */
.pf-six { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 6vw, 88px); }
.pf-head { max-width: 720px; margin-bottom: var(--s-6); }
.pf-head .lead { max-width: 60ch; margin: var(--s-3) 0 0; }
.pf-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.pf-cards > li { display: flex; min-width: 0; }
.pf-card { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: var(--s-5); background: var(--surface-light), var(--surface-raised);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--edge-light); color: var(--text); text-decoration: none;
  transition: border-color var(--t-state) var(--ease-out); }
.pf-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); color: var(--signal); }
.pf-glyph { flex: none; width: 40px; height: 40px; overflow: visible; }
.pf-glyph__dot { fill: var(--text-3); }
.pf-glyph__devi { fill: var(--text); }
.pf-glyph__on { fill: var(--signal); }
.pf-glyph__traj { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-linecap: round; }
.pf-card__count { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-label); line-height: var(--lh-label); }
.pf-card__count .num { color: var(--text); }
.pf-card__n { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.pf-card__d { margin: var(--s-2) 0 0; color: var(--text-2); font-size: var(--fs-base); line-height: 1.5; }
.pf-card__parts { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-4) 0; padding: 0; list-style: none; }
.pf-card__parts li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-2); font-size: var(--fs-label); line-height: var(--lh-label); }
.pf-card__parts .pf-card__more { padding-inline: var(--s-1); border-color: transparent; }
.pf-card .six__go { transition: transform var(--t-state) var(--ease-out); }
.pf-card:focus-visible { outline: var(--ring); outline-offset: 2px; }
.pf-card.is-lit { border-color: var(--signal); }
@media (hover: hover) and (pointer: fine) {
  .pf-card:hover { border-color: var(--text-3); }
  .pf-card:hover .six__go { transform: translateX(3px); }
}
@media (min-width: 600px) { .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Devi: one raised band ---- */
.pf-devi { padding-block: clamp(56px, 6vw, 88px); background: var(--surface-light), var(--surface-raised); }
.pf-devi__head { display: grid; gap: var(--s-6); align-items: end; }
.pf-devi__head h2 { max-width: 16ch; }
.pf-devi__line { max-width: 56ch; margin: var(--s-4) 0 0; color: var(--text-2); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.pf-devi__say { margin: 0; color: var(--text-2); font-size: clamp(2rem, 1.1rem + 2.6vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: var(--ls-h1); }
.pf-devi__say span { display: block; }
.pf-devi__say .pf-devi__you { color: var(--text); }
.pf-devi__cols { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.pf-devi__col { padding: var(--s-6); background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-card); }
.pf-devi__t { margin: 0 0 var(--s-5); font-size: var(--fs-h4); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.pf-devi__list { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.pf-devi__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); color: var(--text-2); line-height: 1.6; }
.pf-ico { width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-devi__col--not .pf-ico { stroke: var(--text-2); }
@media (min-width: 900px) { .pf-devi__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pf-devi__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); } }
@media (max-width: 599px) {
  .pf-devi__col { padding: var(--s-5); }
  .pf-card { padding: var(--s-4) var(--s-5); }
  .pf-card__top { margin-bottom: var(--s-2); }
  .pf-glyph { width: 32px; height: 32px; }
  .pf-card__parts { margin-block: var(--s-3); }
  .pf-card__count { padding-top: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) { .pf-card, .pf-card .six__go { transition: none; } }

/* section: 01-explorer */
/* Platform Explorer (28 Nov 2026): two-tier master-detail. Pillar switcher on top, a vertical rail of four modules on the
   left, the module's mini-page on the right (copy, working preview, three figures, deep-dive card), and a slide-over
   sheet for the technical breakdown. Tokens only. Without JS every pillar and module is shown in reading order. */
.px { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.px-head { max-width: 780px; margin-bottom: var(--s-7); }
.px-title { font-size: clamp(3rem, 2.3rem + 2vw, 3.5rem); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); margin-bottom: var(--s-4); }
.px-lead { max-width: 640px; }

/* tier 1: pillars */
.px-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); padding: 4px; }
.px-pillar { display: flex; align-items: center; justify-content: center; gap: var(--s-3); height: 56px; min-height: 0; padding: var(--s-2) var(--s-4); border: 0; border-radius: var(--r-control); background: none; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; text-align: left; transition: background-color var(--t-1) var(--ease-out), color var(--t-1) var(--ease-out); }
.px-pillar[aria-selected="true"] { background: var(--ink); color: var(--sheet); }
@media (hover: hover) and (pointer: fine) { .px-pillar:not([aria-selected="true"]):hover { background: var(--paper); color: var(--ink); } }
.px-pillar:focus-visible, .px-mod:focus-visible, .px-pick:focus-visible, .px-deep__go:focus-visible, .px-sheet__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.px-pillar[aria-selected="true"]:focus-visible { outline-color: var(--signal); }

.px-group { margin-top: var(--s-6); }
.px-group + .px-group { padding-top: var(--s-7); border-top: var(--hairline); }
.px.is-live .px-group + .px-group { padding-top: 0; border-top: 0; }
.px-blurb { margin: 0 0 var(--s-5); color: var(--ink-2); max-width: 70ch; }

/* tier 2: rail + canvas */
.px-md { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.px-rail { display: none; }
.px.is-live .px-rail { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x mandatory; scroll-padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.px-mod { scroll-snap-align: start; }
.px-mod { flex: none; display: grid; gap: 2px; min-height: 56px; padding: var(--s-2) var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--sheet); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-1) var(--ease-out), background-color var(--t-1) var(--ease-out); }
.px-mod__name { font-weight: 600; font-size: var(--fs-ui); letter-spacing: -.01em; }
.px-mod__f { font-size: var(--fs-label); line-height: 1.35; font-weight: 400; color: var(--ink-2); }
.px-mod[aria-selected="true"] { border-color: var(--ink); background: var(--sage); }
@media (hover: hover) and (pointer: fine) { .px-mod:not([aria-selected="true"]):hover { border-color: var(--field-border); } }

.px-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-window); box-shadow: var(--shadow-window); }
.px-panel + .px-panel { margin-top: var(--s-5); }
.px.is-live .px-panel + .px-panel { margin-top: 0; }
.px-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.px-h { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 var(--s-4); }
.px-sum { margin: 0; color: var(--ink-2); max-width: 60ch; }
ul.px-points { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.px-points li { position: relative; padding-left: 28px; font-size: var(--fs-ui); line-height: 1.5; }
.px-points .px-tick { position: absolute; left: 0; top: .2em; color: var(--ok); }
.px-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; }

/* the working preview */
.px-preview { min-width: 0; }
.px-pw { margin: 0; }
.px-pw .pw__bar { height: auto; min-height: 40px; }
.px-pw .pw__title { white-space: normal; text-overflow: clip; line-height: 1.3; padding-block: var(--s-1); }
.px-pw__body { padding: var(--s-3) var(--s-3) var(--s-4); }
ol.px-list, ul.px-cells, ul.px-queue, ol.px-stages { margin: 0; padding: 0; list-style: none; }
.px-list .px-pick { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-control); }
.px-list li + li { border-top: var(--hairline); }
.px-list .px-pick[aria-pressed="true"] { background: var(--paper); }
.px-list .t5__row + .t5__row::before { display: none; }
.px-pw .t5__strip i { border-radius: 50%; }
.px-detail { margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); border: var(--hairline); background: var(--paper); border-radius: var(--r-control); font-size: var(--fs-small); line-height: 1.5; color: var(--ink); min-height: 3.2em; }
.px-cells { gap: var(--s-2); }
.px-cell { width: 100%; height: 100%; border: 0; font: inherit; font-size: var(--fs-label); text-align: left; cursor: pointer; }
.px-cell.cell--none { border: 1px dashed var(--graphite); }
.px-cell[aria-pressed="true"] { outline: 2px solid var(--signal); outline-offset: 2px; }
.px-queue { display: grid; gap: var(--s-2); }
.px-msg { display: grid; gap: 6px; padding: var(--s-3) var(--s-4); background: var(--paper); border: var(--hairline); border-radius: var(--r-control); }
.px-msg__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0; }
.px-msg__subj { margin: 0; font-weight: 600; font-size: var(--fs-ui); }
.px-msg__body { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.px-msg__go { justify-self: start; margin-top: 2px; }
.px-msg.is-done { background: var(--sheet); }
.px-msg.is-done .px-msg__status { background: var(--ink); color: var(--sheet); }
.px-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--s-2); }
.px-stage { display: grid; gap: 2px; width: 100%; min-height: 72px; padding: var(--s-2) var(--s-3); border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--sheet); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.px-stage__n { font-size: var(--fs-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.px-stage__name { font-size: var(--fs-label); color: var(--ink-2); line-height: 1.25; }
.px-stage[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.px-stage[aria-pressed="true"] .px-stage__name { color: var(--night-ink-2); }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-3) 0 0; min-height: 28px; }
.px-stagebox .px-detail { margin-top: var(--s-2); }

/* three figures */
.px-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.px-stat { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4) 0; border-bottom: var(--hairline); }
.px-stat dd { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -.02em; min-height: 1.1em; }
.px-stat dd.px-word, .px-stat dd.num { font-family: var(--font-sans); font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; } /* figures with a unit ("10 min") read as words, so Geist, not mono */
.px-stage__i { font-size: var(--fs-label); letter-spacing: 0; color: var(--ink-3); }
.px-stage[aria-pressed="true"] .px-stage__i { color: var(--night-ink-2); }
.px-stat dt { font-weight: 500; font-size: var(--fs-ui); }
.px-stat .small { margin: 0; color: var(--ink-3); }
.px-stat dd.small { font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: 0; } /* the note is a second description, not a paragraph, so the list stays valid */

/* the deep-dive card */
.px-deep { padding: var(--s-5); border-radius: var(--r-card); background: var(--night); color: var(--night-ink); }
.px-deep__t { margin: 0 0 var(--s-2); font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.015em; color: var(--night-ink); }
.px-deep__p { margin: 0; color: var(--night-ink-2); font-size: var(--fs-ui); max-width: 56ch; }
.px-deep__go { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: var(--s-4); padding: 0 var(--s-4); border: 1px solid var(--night-ink-2); border-radius: var(--r-control); background: none; color: var(--night-ink); font: inherit; font-weight: 500; cursor: pointer; transition: background-color var(--t-1) var(--ease-out), color var(--t-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .px-deep__go:hover { background: var(--night-ink); color: var(--night); } }
.px-deep__go:focus-visible { outline-color: var(--pick); }

.px-close { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin: var(--s-8) 0 0; color: var(--ink-2); }

/* the slide-over sheet */
html.px-lock { overflow: hidden; }
.px-sheet { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--rule); background: var(--sheet); color: var(--ink); box-shadow: -24px 0 64px color-mix(in srgb, var(--ink-fixed) 18%, transparent); }
.px-sheet::backdrop { background: color-mix(in srgb, var(--ink-fixed) 45%, transparent); }
.px-sheet__in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.px-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: var(--hairline); }
.px-sheet__sub { margin: var(--s-2) 0 0; }
.px-sheet__t { margin: 0; font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -.02em; outline: none; }
.px-sheet__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-control); background: none; color: var(--ink); cursor: pointer; }
.px-sheet__body { overflow-y: auto; padding: var(--s-5); overscroll-behavior: contain; }
.px-sheet__intro { margin: 0 0 var(--s-5); font-size: var(--fs-body); line-height: 1.55; }
.px-sheet__sec { padding: var(--s-4) 0; border-top: var(--hairline); }
.px-sheet__sec h4 { margin: 0 0 var(--s-2); font-size: var(--fs-base); font-weight: 600; letter-spacing: -.01em; }
.px-sheet__sec p { margin: 0 0 var(--s-2); color: var(--ink-2); font-size: var(--fs-ui); line-height: 1.55; }
.px-sheet__sec ul { margin: var(--s-2) 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--fs-ui); line-height: 1.5; }
.px-sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); padding: var(--s-4) var(--s-5); border-top: var(--hairline); background: var(--paper); }
.px-sheet__foot p { margin: 0; flex: 1 1 220px; font-size: var(--fs-ui); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .px-sheet[open] { animation: px-in .28s var(--ease-sheet); }
  .px-sheet[open]::backdrop { animation: px-fade .28s ease-out; }
  .px-sheet.is-closing { animation: px-out .22s var(--ease-exit) forwards; }
  .px-sheet.is-closing::backdrop { animation: px-fade .22s ease-in reverse forwards; }
  .px.is-live .px-panel:not([hidden]) { animation: px-rise .26s var(--ease-out); }
}
@keyframes px-in { from { transform: translateX(100%); } }
@keyframes px-out { to { transform: translateX(100%); } }
@keyframes px-fade { from { opacity: 0; } }
@keyframes px-rise { from { opacity: 0; transform: translateY(8px); } }
/* without JS the breakdown is simply part of the page */
html:not(.js) .px-sheet { display: block; position: static; width: auto; height: auto; max-height: none; border: 0; border-top: var(--hairline); box-shadow: none; background: none; }
html:not(.js) .px-sheet__close { display: none; }
html:not(.js) .px-sheet__in { display: block; }
html:not(.js) .px-sheet__body { overflow: visible; padding-inline: 0; }

@media (min-width: 760px) {
  .px-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-6); padding: var(--s-6); }
  .px-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); }
  .px-stat { border-bottom: 0; }
  .px-deep { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-6); align-items: center; }
  .px-deep__t, .px-deep__p { grid-column: 1; }
  .px-deep__go { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 1100px) {
  .px-md { grid-template-columns: 264px minmax(0, 1fr); column-gap: var(--s-6); }
  .px.is-live .px-rail { position: sticky; top: 88px; flex-direction: column; overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
  .px-mod { min-height: 64px; }
}
@media (max-width: 899px) { .px-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .px-pillars { grid-template-columns: minmax(0, 1fr); }
  .px-pillar { justify-content: flex-start; height: 48px; }
  .px-panel { padding: var(--s-4); border-radius: var(--r-card); }
  .px-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-sheet__head, .px-sheet__body, .px-sheet__foot { padding-inline: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) { .px-pillar, .px-mod, .px-deep__go { transition: none; } }

/* night theme (28 Nov): selected states are a raised night surface with light text, not a light fill */
[data-theme="night"] .px-pillar[aria-selected="true"], [data-theme="night"] .px-stage[aria-pressed="true"] { background: var(--sage); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field-border); }
[data-theme="night"] .px-stage[aria-pressed="true"] { border-color: var(--field-border); }
[data-theme="night"] .px-pillar[aria-selected="true"] .px-pillar__n, [data-theme="night"] .px-stage[aria-pressed="true"] :is(.px-stage__name, .px-stage__i) { color: var(--ink-2); }

/* 30 Nov 2026, six divisions: six tabs across from 1180, three across below, two across on a phone */
.px-pillars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.px-pillar { padding-inline: var(--s-2); font-size: var(--fs-ui); text-align: center; }
@media (max-width: 1179px) { .px-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .px-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .px-pillar { justify-content: center; height: 52px; line-height: 1.2; } }
.px-head h2 { margin-bottom: var(--s-4); }

/* section: 02-works */
/* 02-works (sleek pass, 30 Nov 2026): one compact raised band. Four cards set into it, then "now / not yet" beside the
   detail. Semantic tokens only. */
.works { padding-block: clamp(56px, 6vw, 88px); background: var(--surface-light), var(--surface-raised); }
.works__head { max-width: 720px; margin-bottom: var(--s-6); }
.works__head h2 { margin-bottom: var(--s-3); }
.works__head .lead { max-width: 62ch; margin: 0; }
ul.works__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.works__card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-card); }
.works__card h3 { margin: 0; font-size: var(--fs-body); line-height: 1.3; letter-spacing: var(--ls-h3); }
.works__card > p { flex: 1; margin: 0; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.55; }
ul.works__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.works__not { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.works__lines { display: grid; gap: var(--s-3); margin: 0; }
.works__lines > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); }
.works__lines dt { color: var(--text-2); font-size: var(--fs-label); line-height: 1.9; font-weight: 500; }
.works__lines dd { margin: 0; color: var(--text); font-weight: 500; line-height: 1.5; }
.works__not > p { max-width: 68ch; margin: 0; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.6; }
@media (min-width: 600px) { ul.works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* from 1200 px: heading, lead and "now / not yet" in the left column; the four cards and the detail in the right */
@media (min-width: 1200px) {
  .works .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr auto; column-gap: var(--s-7); row-gap: var(--s-5); }
  .works__head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  ul.works__grid { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .works__not { display: contents; }
  .works__lines { grid-column: 1; grid-row: 2 / span 2; align-self: start; padding-top: var(--s-5); border-top: 1px solid var(--line); }
  .works__not > p { grid-column: 2; grid-row: 3; }
}

/* section: 025-features-head */
.pfeat { padding-block: clamp(64px, 7vw, 96px) var(--s-6); }
.pfeat h2 { max-width: 20ch; }
.pfeat__lead { max-width: 40rem; margin-top: var(--s-3); }

/* section: 03-index */
/* tools: sticky filter bar + 22 expandable rows (blueprint 6.4) */
.tindex { padding-bottom: var(--section-pad); }


.tl { padding: 0; margin: 0; list-style: none; border-top: var(--hairline); }
.trow { border-bottom: var(--hairline); transition: opacity var(--t-enter); }
.trow.is-dim { opacity: 0.45; }

.trow__sum { display: grid; grid-template-columns: 40px minmax(0, 1.1fr) minmax(0, 1.6fr) 24px; align-items: center; gap: var(--s-4); min-height: 64px; padding-block: var(--s-3); cursor: pointer; list-style: none; border-radius: var(--r-inner); }
.trow__sum::-webkit-details-marker { display: none; }
.trow__sum:hover .trow__name { text-decoration: underline; text-underline-offset: 0.2em; }
.trow__sum:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.trow__chip { justify-self: end; }
.trow__n { color: var(--ink-3); font-size: var(--fs-small); }
.trow__name { font-weight: 600; letter-spacing: var(--ls-h3); }
.trow__line { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.trow__plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.trow__plus::before, .trow__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform var(--t-enter) var(--ease-out); }
.trow__plus::after { transform: rotate(90deg); }
details[open] > .trow__sum .trow__plus::after { transform: rotate(0); }

.trow__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-1, var(--t-1)) var(--ease-out); }
.trow__in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) var(--s-7); padding: var(--s-2) 0 var(--s-6) calc(40px + var(--s-4)); }
.trow__body.is-shut { grid-template-rows: 0fr; }
.trow__body.is-pre { transition: none; }
@media (prefers-reduced-motion: reduce) { .trow__body { transition: none; } }
.trow__desc { max-width: 34em; color: var(--ink-2); }
.trow__plans { margin-top: var(--s-3); color: var(--ink-3); }
.trow__lists { display: grid; gap: var(--s-5); align-content: start; }
.trow__lh { margin-bottom: var(--s-2); }
.trow__steps, .trow__ticks { display: grid; gap: var(--s-2); padding: 0; margin: 0; list-style: none; font-size: var(--fs-small); line-height: var(--lh-small); }
.trow__steps { counter-reset: s; }
.trow__steps li, .trow__ticks li { position: relative; padding-left: 28px; }
.trow__steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-micro); line-height: 1; } /* 11px: step numeral inside a 20px ring, below the label token */
.trow__ticks li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(40deg); }

@media (max-width: 899px) {
  .trow__sum { grid-template-columns: 32px minmax(0, 1fr) 24px; gap: var(--s-1) var(--s-3); }
  .trow__n { grid-row: 1 / span 3; align-self: start; padding-top: 3px; }
  .trow__name, .trow__line, .trow__chip { grid-column: 2; }
  .trow__chip { justify-self: start; margin-top: var(--s-1); }
  .trow__plus { grid-column: 3; grid-row: 1 / span 3; align-self: start; margin-top: 4px; }
  .trow__in { grid-template-columns: minmax(0, 1fr); padding-left: calc(32px + var(--s-3)); gap: var(--s-5); }
}

/* ==== Sleek pass (30 Nov 2026): the index is six collapsed groups (native details, the first one open). Each group is
   one raised surface; rows sit in two columns from 900 px and an open row takes the full width. ==== */
.tindex { padding-bottom: clamp(56px, 6vw, 88px); }
.fgroups { display: grid; gap: var(--s-3); }
.fgroup { min-width: 0; background: var(--surface-light), var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--edge-light); }
.fgroup__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-card); cursor: pointer; list-style: none; }
.fgroup__sum::-webkit-details-marker { display: none; }
.fgroup__sum:focus-visible { outline: var(--ring); outline-offset: 2px; }
.fgroup__name { margin: 0; font-size: var(--fs-md); line-height: 1.3; letter-spacing: var(--ls-h3); }
.fgroup__count { color: var(--text-2); font-size: var(--fs-small); }
.fgroup__count .num { color: var(--text); }
.fgroup__chev { color: var(--text-2); transition: transform var(--t-state) var(--ease-out); }
.fgroup[open] > .fgroup__sum .fgroup__chev { transform: rotate(180deg); }
.fgroup__body { padding: 0 var(--s-5) var(--s-4); }
.fgroup__to { margin: 0 0 var(--s-2); }
.fgroup .tl { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-6); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.fgroup .trow { min-width: 0; border-bottom: 0; }
.fgroup .trow__sum { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 2px var(--s-3); min-height: 56px; padding-block: var(--s-2); }
.fgroup .trow__sum:focus-visible { outline: var(--ring); }
.fgroup .trow__n { grid-row: 1 / span 2; align-self: start; padding-top: 3px; color: var(--text-2); }
.fgroup .trow__name, .fgroup .trow__line { grid-column: 2; }
.fgroup .trow__line { color: var(--text-2); }
.fgroup .trow__plus { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
.fgroup .trow__in { padding: var(--s-2) 0 var(--s-5) calc(28px + var(--s-3)); gap: var(--s-5) var(--s-7); }
.fgroup .trow__desc { color: var(--text-2); line-height: 1.6; }
.trow__more { margin: var(--s-2) 0 0; }
.fgroup .trow:has(> details[open]) { margin-block: var(--s-2); padding-inline: var(--s-4); background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-control); }
@media (min-width: 900px) {
  .fgroup .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgroup .trow:has(> details[open]) { grid-column: 1 / -1; }
  html { scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
}
@media (min-width: 1200px) { .fgroup .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .fgroup__sum { padding-inline: var(--s-4); gap: var(--s-3); }
  .fgroup__body { padding-inline: var(--s-4); }
  .fgroup .trow__sum { min-height: 48px; }
  .fgroup .trow__line { display: none; }
  .fgroup details[open] .trow__line { display: block; }
  .fgroup .trow__plus { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .fgroup__chev { transition: none; } }

/* section: 035-value */
/* 035-value: how the value was worked out (anchor target of the /plans.html value line). Sleek pass, 30 Nov 2026: one
   raised panel on the page ground, the two figures left and the working right. Figures are Geist 600, labels sentence case. */
.tvalue { padding-block: 0 clamp(64px, 7vw, 96px); }
.tvalue__grid { display: grid; gap: var(--s-6); padding: var(--s-5); background: var(--surface-light), var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--edge-light); }
.tvalue h2 { max-width: 14em; margin-bottom: var(--s-5); font-size: var(--fs-xl); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.tvalue__stats { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.tvalue__n { margin-bottom: var(--s-2); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; }
.tvalue__p { max-width: 64ch; margin: 0; color: var(--text-2); font-size: var(--fs-base); line-height: 1.6; }
@media (min-width: 600px) { .tvalue__stats { grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; column-gap: var(--s-7); } }
@media (min-width: 1024px) { .tvalue__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-8); align-items: center; padding: var(--s-7); } }

/* section: 04-close */
/* 04-close: the shared closing band (.cband in shared/components.css). */
.tclose { padding-block: clamp(56px, 6vw, 88px); border-top: var(--hairline); }
.tclose h2 { max-width: 16em; }
.tclose .lead { margin: var(--s-4) 0 0; }
