/* 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: 01-head */
.how-head { padding-bottom: var(--s-6); }
.page-how .sample { padding-top: var(--s-6); }

/* section: 02-replay */
/* 03-sample: blueprint 6.1 section 3. One product window, four ARIA tabs, three margin notes, three points. */
.sample { padding-bottom: var(--s-8); }
.sample__intro { max-width: 720px; margin-bottom: var(--s-6); }
.sample__intro h2 { margin-bottom: var(--s-4); }
.sample__stage { max-width: 1080px; margin-inline: auto; }
.sample__pw { margin: 0; }
.sample__pw .pw__title { white-space: normal; text-overflow: clip; line-height: 1.3; padding-block: var(--s-1); }
.sample__pw .pw__bar { height: auto; min-height: 40px; }

/* tabs: shown only with JS; without JS all four panels stack */
.sample__tabs { display: none; gap: var(--s-1); padding: var(--s-2) var(--s-4) 0; border-bottom: var(--hairline); overflow-x: auto; }
.js .sample__tabs { display: flex; }
.sample__tab { flex: none; min-height: 44px; padding: 0 var(--s-4); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; 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; }
.sample__tab:hover { color: var(--ink); }
.sample__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.sample__body { padding: var(--s-5) var(--s-4) var(--s-4); }
.sample__panel + .sample__panel { margin-top: var(--s-6); padding-top: var(--s-6); border-top: var(--hairline); }
.js .sample__panel + .sample__panel { margin-top: 0; padding-top: 0; border-top: 0; }
.sample__panel:focus-visible { outline-offset: 4px; border-radius: var(--r-control); }
.sample__cap { margin-bottom: var(--s-4); }

/* top 5 */
.sample__counts { display: flex; gap: var(--s-7); margin: 0 0 var(--s-5); }
.sample__counts div { display: flex; flex-direction: column-reverse; gap: var(--s-1); }
.sample__counts dd { margin: 0; font-size: var(--fs-3xl); line-height: 1; }
.sample__cols { display: grid; gap: var(--s-6); }
.sample__who { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: start; }
.sample__who .t5__rank { grid-area: auto; }
.sample__name { font-weight: 600; }
.sample__role { font-size: var(--fs-small); color: var(--ink-2); }
.sample__score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.sample__score .num { font-size: var(--fs-3xl); line-height: 1; }
.sample__sum { margin-top: var(--s-4); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); max-width: 56ch; }
.bars { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.bars__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2ch; column-gap: var(--s-3); align-items: center; font-size: var(--fs-small); }
.bars__track { height: 8px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--rule); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--w); background: var(--ink); }
.bars__fill--est { background: repeating-linear-gradient(135deg, var(--graphite) 0 1px, var(--sage) 1px 5px); } /* fine pencil hatching on sand, so "estimate" never relies on colour alone */
.bars__row b { text-align: right; font-weight: 500; }
.bars__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); }
.bars__k { display: inline-block; width: 18px; height: 8px; margin-right: 8px; border-radius: var(--r-pill); background: var(--ink); vertical-align: 1px; }
.bars__k--est { background: repeating-linear-gradient(135deg, var(--graphite) 0 1px, var(--sage) 1px 5px); border: 1px solid var(--graphite); }
.sample__rest .t5__row { padding-inline: var(--s-2); }

/* sources */
.srcs { list-style: none; margin: 0; padding: 0; }
.srcs__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) 0; border-top: var(--hairline); align-items: center; }
.srcs__row:last-child { border-bottom: var(--hairline); }
.srcs__claim { font-size: var(--fs-small); }
.srcs__row .chip { justify-self: start; }

/* first message */
.msg { display: grid; gap: var(--s-3); max-width: 62ch; padding: var(--s-5); background: var(--paper); border: var(--hairline); border-radius: var(--r-card); font-size: var(--fs-small); line-height: var(--lh-small); }
.msg__subj { color: var(--ink); font-weight: 500; }
.msg__subj .label { margin-right: var(--s-2); }
.msg__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-4); }
.msg__act .small { color: var(--ink-2); }

/* margin notes: a pencil arrow and a script line, under the content of the tab they belong to */
.sample__note { display: flex; justify-content: flex-end; align-items: flex-start; margin-top: var(--s-4); }
.sample__note .pencil { width: 56px; height: 34px; transform: scaleY(-1) rotate(-12deg); }
.sample__note .note { margin-top: var(--s-2); }

.sample__stage > .pw-label { margin-top: var(--s-4); }
.sample__points { list-style: none; display: grid; gap: var(--s-5); margin: var(--s-6) 0 0; padding: 0; }
.sample__points h3 { margin-bottom: var(--s-2); }
.sample__points p { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); max-width: 36ch; }
.sample__more { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .sample__body { padding: var(--s-6) var(--s-6) var(--s-5); }
  .sample__tabs { padding-inline: var(--s-6); }
  .sample__cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--s-7); }
  .srcs__row { grid-template-columns: minmax(0, 1fr) auto 10.5rem; column-gap: var(--s-4); }
  .srcs__when { text-align: right; }
  .sample__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
}
@media (min-width: 600px) { .cells { gap: var(--s-3); } }
@media (max-width: 599px) {
  .sample__tabs { padding-inline: var(--s-2); gap: 0; }
  .sample__tab { padding-inline: 6px; letter-spacing: 0.02em; } /* 4 tabs must fit 343 px */
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars__row { grid-template-columns: 6.5rem minmax(0, 1fr) 2ch; }
  .sample__counts { gap: var(--s-6); }
}

/* First message tab: the note sits in the empty right side beside the send button (>= 1024 px); under the message below that */
@media (min-width: 1024px) {
  #spanel-message { position: relative; }
  .sample__note--msg { position: absolute; right: var(--s-4); top: 74%; margin: 0; max-width: 300px; }
  .sample__note--msg .pencil { transform: scale(-1, -1) rotate(8deg); }
}
@media (max-width: 1023px) {
  .sample__note--msg { justify-content: flex-start; margin-top: var(--s-4); }
  .sample__note--msg .pencil { display: none; }
  .sample__note--msg .note { white-space: normal; margin-top: 0; }
}

/* fills grow from the left (data-fill); the final width stays in the markup */

/* tab switch: outgoing fades out (--t-1), incoming rises (--t-2) and its parts cascade at --stagger. Motion only when allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .sample__panel.is-out { opacity: 0; transition: opacity var(--t-1, var(--t-1)) var(--ease-in, var(--ease-in)); }
  .js .sample__panel.is-in { animation: sample-rise var(--t-2, 400ms) var(--ease-out) both; }
  .js .sample__panel.is-in :is(.bars__row, .cell, .srcs__row, .msg > *, .t5__row, .sample__counts > div) { animation: sample-rise var(--t-2, 400ms) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger, 60ms)); }
}
@keyframes sample-rise { from { opacity: 0; transform: translateY(var(--rise, 16px)); } to { opacity: 1; transform: none; } }

/* ---- 27 Nov: the search replay (section.js). One scene at a time once the script is ready; without it the Top 5 and the evidence stack. ---- */
.loop__rail { display: none; margin: 0; padding: 0 var(--s-4); list-style: none; border-bottom: var(--hairline); overflow-x: auto; scrollbar-width: none; }
.js .loop__rail { display: flex; }
.loop__rail li { flex: 1 0 auto; }
.loop__tab { position: relative; display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 44px; padding: 0 var(--s-3); background: none; border: 0; 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; white-space: nowrap; }
.loop__tab::before, .loop__tab::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px; height: 2px; }
.loop__tab::before { background: var(--rule); }
.loop__tab::after { background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.loop__tab.is-done::after { transform: scaleX(1); }
.loop__tab[aria-current] { color: var(--ink); }
.loop__tab[aria-current]::after { transform: scaleX(1); }
.loop.is-live .loop__tab.is-now::after { animation: loop-fill var(--dur, 5s) linear both; }
.loop.is-paused .loop__tab.is-now::after, .loop.is-off .loop__tab.is-now::after { animation-play-state: paused; }
@keyframes loop-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.loop__n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: var(--fs-micro); letter-spacing: 0; }
.loop__tab[aria-current] .loop__n, .loop__tab.is-done .loop__n { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
@media (hover: hover) and (pointer: fine) { .loop__tab:hover { color: var(--ink); } }
.loop__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: var(--r-inner); }

.loop__body { padding: var(--s-5) var(--s-4) var(--s-4); }
.loop__scene + .loop__scene { margin-top: var(--s-6); padding-top: var(--s-6); border-top: var(--hairline); }
.loop__scene--pre { display: none; }
.loop.is-ready .loop__scene { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.loop.is-ready .loop__scene.is-active { display: block; }
.loop__cap { margin-bottom: var(--s-4); }

/* things that arrive on the clock */
.loop.is-live [data-at] { opacity: 0; transform: translateY(8px); transition: opacity var(--t-1) var(--ease-out), transform var(--t-1) var(--ease-out); }
.loop.is-live [data-at].is-on { opacity: 1; transform: none; }
.loop.is-live [data-loop-type], .loop.is-live [data-loop-count] { opacity: 1; transform: none; transition: none; }

/* 1 brief */
.loop__box { display: flex; align-items: center; min-height: 64px; margin: 0; padding: var(--s-3) var(--s-5); background: var(--sheet); border: 1px solid var(--field-border); border-radius: var(--r-card); font-size: var(--fs-md); line-height: 1.35; color: var(--ink); }
.loop__caret { flex: none; width: 2px; height: 1.3em; margin-left: 2px; background: var(--signal); }
.loop.is-live:not(.is-paused) .loop__caret { animation: loop-caret 1s steps(2, jump-none) infinite; }
@keyframes loop-caret { to { opacity: 0; } }
.loop__line { margin: var(--s-4) 0 0; color: var(--ink-2); font-size: var(--fs-ui); max-width: 58ch; }

/* 2 nine checks: plain cells, numbered, before anyone has been judged against them */
.loop__check { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.loop__check .cell__state { font-family: var(--font-sans); color: var(--ink-3); }

/* 3 sources */
.loop__read { display: grid; gap: var(--s-6); align-items: start; }
ul.loop__srcs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.loop__src { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: center; min-height: 48px; border-top: var(--hairline); font-size: var(--fs-ui); }
.loop__src:last-child { border-bottom: var(--hairline); }
.loop__track { height: 4px; border-radius: var(--r-pill); background: var(--paper); overflow: hidden; }
.loop__track i { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
.loop__src b { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ok); }
.loop.is-live .loop__src { opacity: 1; transform: none; }
.loop.is-live .loop__src > span:first-child { color: var(--ink-3); transition: color var(--t-1); }
.loop.is-live .loop__src.is-on > span:first-child { color: var(--ink); }
.loop.is-live .loop__src .loop__track i { transform: scaleX(0); transition: transform .7s var(--ease-out); }
.loop.is-live .loop__src.is-on .loop__track i { transform: scaleX(1); }
.loop.is-live .loop__src b { opacity: 0; transition: opacity var(--t-1) .65s; }
.loop.is-live .loop__src.is-on b { opacity: 1; }
.loop__counts { display: flex; gap: var(--s-7); margin: 0; }
.loop__counts dd { margin: 0 0 var(--s-1); font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* 4 top 5 and 5 evidence reuse .t5, .cells-key and .srcs */
.loop .t5__row { padding-inline: var(--s-2); }
.loop__key { margin-top: var(--s-4); }

.loop__foot { display: none; justify-content: flex-end; padding: 0 var(--s-4) var(--s-3); }
.js .loop__foot { display: flex; }
.loop__pause { min-height: 44px; padding: 0 var(--s-2); background: none; border: 0; 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; text-decoration: underline; text-underline-offset: 3px; }
.loop__pause:hover { color: var(--ink); }

@media (min-width: 900px) {
  .loop__rail, .loop__foot { padding-inline: var(--s-6); }
  .loop__body { padding: var(--s-6) var(--s-6) var(--s-5); }
  .loop__read { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--s-8); }
  .loop__counts { flex-direction: column; gap: var(--s-6); }
  .loop__box { font-size: var(--fs-h3); min-height: 76px; }
}
@media (max-width: 599px) {
  .loop__rail { padding-inline: var(--s-2); }
  .loop__tab { padding-inline: var(--s-2); gap: 6px; letter-spacing: .02em; }
  .loop__tab::before, .loop__tab::after { left: var(--s-2); right: var(--s-2); }
  .loop__n { display: none; }
  .loop__src { grid-template-columns: minmax(0, 1fr) 56px auto; column-gap: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) { .loop__tab::after, .loop__caret { animation: none !important; } }

/* ---- 28 Nov: four small screens instead of one. Each keeps the replay's parts; the grid gives each its own space. ---- */
.sample__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.sample__grid > .mini { min-width: 0; }
.mini .pw__title { font-family: var(--font-sans); letter-spacing: 0; }
.mini .loop__body { padding: var(--s-5) var(--s-4) var(--s-5); }
.mini .loop__box { font-size: var(--fs-body); min-height: 60px; padding-inline: var(--s-4); }
.mini .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.mini .srcs__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); }
.mini .msg { padding: var(--s-4); max-width: none; }
.mini .loop__counts { flex-direction: row; gap: var(--s-6); }
/* a scene inside a small screen fades in when its turn comes */
.loop.is-live.mini .loop__scene.is-active { animation: mini-in var(--t-2, 400ms) var(--ease-out) both; }
@keyframes mini-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* the sources run into one count */
.loop__join { display: none; }
.loop__join path { fill: none; stroke: var(--signal); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.loop.is-live .loop__join path { opacity: 1; transform: none; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t-3) var(--ease-out); }
.loop.is-live .loop__join path.is-on { stroke-dashoffset: 0; }
.sample__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); }
.sample__foot .pw-label { margin: 0; }
@media (min-width: 700px) {
  .mini--sources .loop__read { grid-template-columns: minmax(0, 1.6fr) 72px auto; column-gap: 0; align-items: stretch; }
  .mini--sources .loop__join { display: block; width: 100%; height: 100%; }
  .mini--sources .loop__counts { flex-direction: column; justify-content: center; gap: var(--s-5); padding-left: var(--s-4); }
  .mini--sources .loop__src { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) {
  .sample__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
  .mini--brief { grid-column: span 5; }
  .mini--sources { grid-column: span 7; }
  .mini--top { grid-column: span 7; }
  .mini--proof { grid-column: span 5; }
}
@media (max-width: 599px) { .mini .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .loop.mini .loop__scene { animation: none !important; } }

/* 50k round 5 (29 Nov 2026): a small screen fills its window. Windows that share a row take the taller one's height, and
   the free height used to sit under the content as empty sheet. Each window is now a column whose active scene takes
   the height: the evidence rows share it, the drafted message is a pane that fills it, the nine checks share it, and
   the Top 5 key and the brief's note sit on the window's floor. section.js measures scenes with .is-fitting on, so
   the fill never feeds back into the height it reserves. */
.sample__grid > .mini { display: flex; flex-direction: column; }
.mini .loop__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.loop.is-ready.mini .loop__scene.is-active { display: flex; flex-direction: column; flex: 1 1 auto; }
/* transition: none, because under reduced motion base.css gives every property a 1 ms transition, and a measurement taken in the same tick would read the old value */
.loop.is-fitting.mini .loop__scene.is-active { flex: none; transition: none !important; }
.mini--proof .srcs { flex: 1 1 auto; display: grid; grid-auto-rows: 1fr; }
.mini--proof .msg { flex: 1 1 auto; align-content: start; }
.mini--top .loop__key { margin-top: auto; padding-top: var(--s-4); }
.mini--brief .loop__box { margin-block: auto; }
.mini--brief .cells { flex: 1 1 auto; grid-auto-rows: 1fr; }
.mini--sources .loop__read { flex: 1 1 auto; }
.mini--sources ul.loop__srcs { grid-auto-rows: 1fr; }

/* 30 Nov (critique, cross-page 2): a figure at 24 px or more is Geist 600, tabular */
.loop__counts dd.num { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* 30 Nov 2026 (shorter home page): on a phone the four screens sit side by side in one swipe row, the next one showing
   at the edge, instead of four windows stacked (about 1,700 px shorter at 390). The page itself never scrolls sideways. */
@media (max-width: 699px) {
  .sample__grid { display: flex; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
    margin-inline: calc(-1 * var(--side)); padding: 2px var(--side) var(--s-3); scrollbar-width: none; }
  .sample__grid::-webkit-scrollbar { display: none; }
  .sample__grid > .mini { flex: 0 0 86%; scroll-snap-align: start; }
}

/* section: 03-tour */
/* 037-tour: six real app screens crossfading in one product window (Kai, 27 Nov 2026). Tokens only. */
.tour__head { max-width: 720px; margin-bottom: var(--s-6); }
.tour__head h2 { margin-bottom: var(--s-4); }
.tour__stage { max-width: 1080px; margin-inline: auto; }
.tour__shots { position: relative; aspect-ratio: 1440 / 900; background: var(--paper); overflow: hidden; }
.tour__shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top left; opacity: 0; transition: opacity var(--t-3) var(--ease-out); }
.tour__shot.is-on { opacity: 1; }
/* half faded, as asked: the lower part of each screen melts into the window, so it reads as a glimpse, not a manual */
.tour__shots::after { content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--sheet) 82%, transparent) 78%, var(--sheet)); }
ol.tour__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.tour__step { position: relative; display: grid; gap: 2px; width: 100%; min-height: 64px; padding: var(--s-3) var(--s-4); text-align: left; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-control); color: var(--ink-2); font: inherit; font-size: var(--fs-small); line-height: 1.35; cursor: pointer; transition: border-color var(--t-1) var(--ease-out), color var(--t-1) var(--ease-out); }
.tour__step b { font-weight: 600; color: var(--ink); font-size: var(--fs-ui); }
@media (hover: hover) and (pointer: fine) { .tour__step:hover { border-color: var(--ink-2); } }
.tour__step[aria-pressed="true"] { border-color: var(--signal); color: var(--ink); }
/* the current step carries a thin cobalt line along its top edge; while the sequence runs it fills left to right */
.tour__step::before { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); top: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.tour__step[aria-pressed="true"]::before { transform: scaleX(1); }
.motion [data-tour].is-running .tour__step[aria-pressed="true"]::before { animation: tour-fill 4.2s linear 1 both; }
@keyframes tour-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 720px) { ol.tour__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { ol.tour__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tour__step { min-height: 92px; align-content: start; } }
@media (prefers-reduced-motion: reduce) { .tour__shot { transition: none; } .tour__step::before { animation: none !important; } }

/* ---- tour: night (28 Nov). Kai: "sleek and modern ... to match the hiring built for the future part". The same night
   ground as the closing band; the bright product window sits on it, lit from behind by one cobalt glow. ---- */
.tour.section--night { position: relative; overflow: clip; }
.tour.section--night .lead { color: var(--night-ink-2); }
.tour.section--night .tour__stage { position: relative; }
.tour.section--night .tour__stage::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 62%; pointer-events: none; border-radius: 50%;
  background: var(--light); } /* 50k: the one light, no blur filter */
.tour.section--night .pw { position: relative; border-color: var(--rule); box-shadow: var(--edge-light), 0 40px 100px -24px rgba(0, 0, 0, .75); }
.tour.section--night .tour__step { background: var(--night-2); border-color: var(--night-rule); color: var(--night-ink-2); }
.tour.section--night .tour__step b { color: var(--night-ink); }
.tour.section--night .tour__step[aria-pressed="true"] { border-color: var(--mint); color: var(--night-ink); }
.tour.section--night .tour__step::before { background: var(--mint); }
@media (hover: hover) and (pointer: fine) { .tour.section--night .tour__step:hover { border-color: var(--night-ink-2); } }
.tour.section--night .pw-label, .tour.section--night .label { color: var(--night-ink-2); }
.tour.section--night .pw .label, .tour.section--night .pw .pw__title { color: var(--ink-3); }

/* 50k (29 Nov 2026): each step names itself with an icon from the shared set; the selected step is its full cobalt
   border only (no bar along one side of a rounded box). */
.tour__step b { display: flex; align-items: center; gap: var(--s-2); }
.tour__ic { color: var(--ink-2); }
.tour__step[aria-pressed="true"] .tour__ic { color: var(--signal); }
.tour__step::before { display: none; }

/* 50k round 5: steps in one row are one height */
.tour__steps > li { display: flex; }
.tour__step { height: auto; align-content: start; }

/* 30 Nov (critique, Home 1): the six screens are the night app now, so the window is a night window on the page's own
   ground (the section is no longer a paper-token island), nothing fades out at the bottom, and at 600 px and below the
   frame shows a readable crop (the screen at 720 px wide, top left) instead of a whole desktop scaled to a thumbnail. */
.tour { position: relative; overflow: clip; }
.tour .tour__stage { position: relative; }
.tour .tour__stage::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 62%; pointer-events: none; background: var(--light); }
.tour .pw { position: relative; box-shadow: var(--edge-light), 0 40px 100px -24px rgba(0, 0, 0, .75); }
.tour__shots::after { display: none; }
@media (max-width: 599px) {
  .tour__shots { aspect-ratio: auto; height: 300px; }
  .tour__shot { inset: 0 auto auto 0; width: 720px; height: 450px; object-fit: cover; object-position: 0 0; }
}

/* 30 Nov 2026 (six divisions, shorter home page): from 1100 px the six step names stand in one column beside the
   window instead of a row under it, and the tour follows the sample search as the second half of the same proof. */
.tour { padding-top: 0; }
@media (min-width: 1100px) {
  .tour__stage { max-width: none; display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "steps pw" "steps note"; column-gap: var(--s-6); align-items: start; }
  .tour__pw { grid-area: pw; }
  ol.tour__steps { grid-area: steps; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .tour__stage > .pw-label { grid-area: note; }
  .tour__step { min-height: 0; }
  .tour .tour__stage::before { left: 30%; right: 4%; }
}

/* section: 04-beyond */
/* 04-beyond (1 Dec 2026): four division statements in one row, each a link. It closes the tour, so it carries no top
   padding of its own; one hairline above each statement, the same rhythm as the proof strip. */
.beyond { padding-block: 0 clamp(56px, 7vw, 96px); }
.tour:has(+ .beyond) { padding-bottom: var(--s-7); }
.beyond__h { margin: 0 0 var(--s-5); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.beyond__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gutter); margin: 0; padding: 0; list-style: none; }
.beyond__list > li { display: flex; min-width: 0; }
.beyond__a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n go" "l l"; gap: var(--s-2) var(--s-3); align-content: start; width: 100%; padding-block: 20px var(--s-5); border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.beyond__n { grid-area: n; font-size: var(--fs-body); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.beyond__l { grid-area: l; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.5; }
.beyond__a .ic { grid-area: go; margin-top: 3px; color: var(--signal); transition: transform var(--t-state) var(--ease-out); }
.beyond__a:focus-visible { outline: var(--ring); outline-offset: 2px; border-radius: var(--r-inner); }
@media (hover: hover) and (pointer: fine) {
  .beyond__a:hover .beyond__n { text-decoration: underline; text-underline-offset: 3px; }
  .beyond__a:hover .ic { transform: translateX(3px); }
}
@media (min-width: 600px) { .beyond__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .beyond__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .beyond__a .ic { transition: none; } }

/* section: 05-brand */
/* brand band, brand v2 (30 Nov 2026): ink green, the lockup large in lime, the slogan, one action. The board's own
   arrangement: lockup above a hairline, slogan left, descriptor right. */
.brand { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 10vw, 144px); }
.brand__bars { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(760px, 62%); height: auto; transform: translateY(-50%); fill: var(--night-2); pointer-events: none; }
.brand__lockup { display: flex; align-items: center; gap: .2em; color: var(--lime); font-size: clamp(3.25rem, 1.2rem + 9.2vw, 9rem); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.brand__lockup svg { flex: none; width: 1.08em; height: 1.08em; fill: currentColor; }
.brand__row { display: grid; gap: var(--s-5); margin-top: clamp(40px, 6vw, 88px); padding-top: var(--s-6); border-top: 1px solid var(--night-rule); }
.brand__slogan { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; color: var(--night-ink); }
.brand__sub { max-width: 30ch; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--night-ink-2); }
.brand__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
@media (min-width: 900px) { .brand__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: start; } }
@media (max-width: 599px) { .brand__links { flex-direction: column; align-items: stretch; } .brand__links .btn { width: 100%; } .brand__links .link-arrow { justify-content: center; } .brand__bars { width: 110%; right: -40%; } }
.brand__slogan span { display: block; }
/* 1 Dec 2026: the page's close sits in the band's right column, so the band and the close are one ending. */
.brand__ask { margin: 0 0 var(--s-3); font-size: var(--fs-2xl); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--night-ink); }
.brand__side .brand__sub { max-width: 36ch; }
@media (max-width: 899px) { .brand__side { margin-top: var(--s-4); } }
