/* ==========================================================================
   SINTESIS — design tokens
   Source of truth: Sintesis Brand.pdf (Berlin — September 2026), sections 03–06,
   amended 17 October 2026 by the founder's decision: Ink is the default web ground;
   Paper is the second theme and always the print surface (print.css).
   Cadmium under 5% of any surface.
   Contrast figures below are WCAG 2.x ratios, recomputed on 18 October 2026.
   ========================================================================== */

:root {
  /* --- Corporate palette (exact brand swatches) --- */
  --c-paper:     #F3F2F2;   /* grounds, documents · paper on ink 14.86:1 */
  --c-ink:       #201E1D;   /* text, mark, hard rules, dark grounds · ink on paper 14.86:1 */
  --c-graphite:  #605D5D;   /* brand swatch · 5.83:1 on paper (AA, not 7:1); web secondary text uses --c-graphite-text */
  --c-graphite-text: #514E4E; /* secondary text on paper · 7.37:1 on paper, 8.24:1 on white */
  --c-soft:      #D7D3D3;   /* grid lines, chart baselines, dividers, inactive */
  --c-cadmium:   #F2C300;   /* decision points only · ink on it 9.95:1; cadmium on paper 1.49:1 (never text on paper) */

  /* --- Cadmium budget (one principal point per composition) ---
     Hero: the primary CTA plus the figure's one point (the legend key does not count).
     Header: the Paper Triage Score button only (the active-nav underline is the view marker).
     Ladder: a single marker on Service 1 (Strategy Evidence File), the build / no-build decision.
     Closing CTA: outline button, because the painting already carries the field.
     Evidence-tab and process markers: only where they mean "the client's decision". */

  /* --- Semantic roles: Ink theme (default) --- */
  color-scheme: dark;
  --bg:            var(--c-ink);
  --bg-elev:       #2A2827;          /* form fields, code blocks — near ink */
  --bg-inverse:    var(--c-paper);
  --fg:            var(--c-paper);
  --fg-body:       #E4E1E0;          /* long-reading body text on ink · 12.76:1 */
  --fg-2:          #B8B3B3;          /* secondary text on ink · 8.01:1 */
  --fg-inverse:    var(--c-ink);
  --fg-inverse-2:  var(--c-graphite-text);
  --rule:          var(--c-paper);   /* hard 2px rules */
  --rule-soft:     #4A4746;          /* 1px grid lines */
  --accent:        var(--c-cadmium); /* one decision point per composition */
  --accent-ink:    var(--c-ink);     /* always ink on cadmium */
  --focus:         var(--c-paper);
  --chart-subject: var(--c-paper);
  --chart-context: #8E8989;          /* comparison series · 4.81:1 on ink */
  --chart-context-2: #4A4746;
  --chart-grid:    #3B3838;
  --chart-regime:  #8E8989;          /* regime ribbon · 4.81:1 on ink, 3.09:1 on paper */

  /* --- Inverse surface (.surface-inverse): paper documents lying on the ink ground --- */
  --inv-bg:        var(--c-paper);
  --inv-bg-elev:   #FFFFFF;
  --inv-fg:        var(--c-ink);
  --inv-fg-body:   var(--c-ink);
  --inv-fg-2:      var(--c-graphite-text);
  --inv-rule:      var(--c-ink);
  --inv-rule-soft: var(--c-soft);
  --inv-chart-subject: var(--c-ink);
  --inv-chart-context: #8E8989;
  --inv-chart-grid: var(--c-soft);

  /* --- Type --- */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (web). Body 17px per brand hierarchy; ≥16px on mobile. */
  --fs-display: clamp(2.75rem, 1.2rem + 5.2vw, 6.25rem);   /* 44 → 100px */
  --fs-title:   clamp(2rem, 1.1rem + 2.8vw, 3.5rem);        /* 32 → 56px */
  --fs-h2:      clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);   /* 26 → 36px */
  --fs-h3:      1.375rem;                                    /* 22px */
  --fs-h4:      1.125rem;                                    /* 18px */
  --fs-body:    1.0625rem;                                   /* 17px */
  --fs-small:   0.9375rem;                                   /* 15px */
  --fs-mono:    0.8125rem;                                   /* 13px */
  --fs-label:   0.75rem;                                     /* 12px, caps, +8% */

  --lh-display: 0.98;
  --lh-title:   1.05;
  --lh-head:    1.15;
  --lh-body:    1.5;
  --lh-mono:    1.55;

  --ls-display: -0.02em;   /* Display · 800 · −2% */
  --ls-title:   -0.015em;  /* Title · 800 · −1.5% */
  --ls-label:   0.08em;    /* Label · Mono 500 · +8% caps */
  --ls-wordmark: 0.06em;   /* SINTESIS · +6% */
  --ls-macro:   0.42em;    /* MACRO · +42% */

  /* --- Layout --- */
  --max-w:      1440px;
  --gutter:     clamp(16px, 4vw, 64px);
  --col-gap:    clamp(16px, 2vw, 32px);
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.5rem;
  --space-6:    2rem;
  --space-7:    3rem;
  --space-8:    4rem;
  --space-9:    6rem;
  --space-10:   8rem;
  --section-y:  clamp(4rem, 8vw, 8rem);

  --rule-w:     2px;
  --rule-soft-w: 1px;
  --radius:     0;        /* square corners, always */
  --touch:      44px;

  /* --- Motion --- */
  --t-fast:  150ms;
  --t-base:  220ms;
  --t-slow:  300ms;
  --t-reveal: 600ms;
  --ease:    cubic-bezier(0.2, 0, 0, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);   /* line and wipe draws (motion.css, 21 October 2026) */
  --stagger-step: 70ms;                          /* [data-reveal="stagger"] step between children */
}

/* --- Paper theme (second option; chosen with the theme control, remembered in local storage only
   when the visitor changes it — strictly necessary storage, § 25 (2) no. 2 TDDDG) --- */
:root[data-theme="paper"] {
  color-scheme: light;
  --bg:            var(--c-paper);
  --bg-elev:       #FFFFFF;
  --bg-inverse:    var(--c-ink);
  --fg:            var(--c-ink);
  --fg-body:       var(--c-ink);
  --fg-2:          var(--c-graphite-text);
  --fg-inverse:    var(--c-paper);
  --fg-inverse-2:  #B8B3B3;
  --rule:          var(--c-ink);
  --rule-soft:     var(--c-soft);
  --focus:         var(--c-ink);
  --chart-subject: var(--c-ink);
  --chart-context: #8E8989;          /* 3.09:1 on paper */
  --chart-context-2: var(--c-soft);
  --chart-grid:    var(--c-soft);

  /* Inverse surface in Paper: the ink panel, as before 17 October 2026 */
  --inv-bg:        var(--c-ink);
  --inv-bg-elev:   #2A2827;
  --inv-fg:        var(--c-paper);
  --inv-fg-body:   #E4E1E0;
  --inv-fg-2:      #B8B3B3;
  --inv-rule:      var(--c-paper);
  --inv-rule-soft: #4A4746;
  --inv-chart-subject: var(--c-paper);
  --inv-chart-context: #8E8989;
  --inv-chart-grid: #3B3838;
}
/* --- Data-image and hash-glyph tokens (visual upgrade of 21 October 2026, VISUAL_SPEC § C5) ---
   A custom property that refers to another one is resolved on the element that declares it, so these are declared on
   :root and again on every surface that redefines --fg / --bg / --chart-subject: inside a surface they follow that surface
   (inside .surface-inverse the glyph follows --inv-fg). Paper values come from the Paper --fg / --bg / --chart-subject. */
:root, .surface-inverse, .on-ink, [data-surface="ink"], .surface-ink, .hero__plate {
  --glyph-on: var(--fg);              /* set bits */
  --glyph-ground: transparent;        /* glyph background */
  --glyph-inv-on: var(--bg);          /* set bits, inverted glyph (the specification in the register wall) */
  --glyph-inv-ground: var(--fg);      /* ground, inverted glyph */
  --data-line: var(--chart-subject);  /* data lines · paper on ink 14.86:1, ink on paper 14.86:1 */
  --data-context: var(--chart-regime);/* bars, shading, input lines · #8E8989: 4.81:1 on ink, 3.09:1 on paper */
}
.on-cadmium, [data-surface="cadmium"] {
  --glyph-on: var(--fg); --glyph-ground: transparent; --glyph-inv-on: var(--bg); --glyph-inv-ground: var(--fg);
  --data-line: var(--c-ink); --data-context: var(--c-ink);   /* never graphite on cadmium */
}

/* No automatic switch from the operating-system preference: Ink is the brand's web ground and Paper
   is an explicit choice. Print always uses Paper (print.css). */

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; --t-reveal: 0ms;
  }
}


/* Self-hosted typefaces. Never load from fonts.googleapis.com / fonts.gstatic.com:
   third-party font delivery transmits the visitor's IP address (LG München I, 3 O 17493/20).
   Archivo (SIL OFL 1.1) — variable, wght 100–900 served as one file per subset.
   IBM Plex Mono (SIL OFL 1.1) — static 400 / 500. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   SINTESIS — base: reset, typography, grid, utilities
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video, canvas { display: block; max-width: 100%; }
svg { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25rem; }
ul.plain, ol.plain { list-style: none; padding: 0; }
hr { border: 0; border-top: var(--rule-w) solid var(--rule); }
strong, b { font-weight: 600; }
small { font-size: var(--fs-small); }
abbr[title] { text-decoration: none; }
::selection { background: var(--c-cadmium); color: var(--c-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Surfaces redefine --focus, so the outline follows the local ground without per-surface overrides. */

/* --- Skip link --- */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 0.75rem 1rem; background: var(--c-ink); color: var(--c-paper);
  font-family: var(--f-mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: var(--ls-label);
  z-index: 1000; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); outline-color: var(--c-cadmium); }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; line-height: var(--lh-head); letter-spacing: var(--ls-title); text-wrap: balance; }
h1 { font-size: var(--fs-title); line-height: var(--lh-title); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
p, li, dd { max-width: 68ch; }
/* Sprite holder for the mark symbol (no inline style attribute: the production CSP blocks style="…"). */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.display {
  font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-display);
  letter-spacing: var(--ls-display); text-wrap: balance; max-width: 16ch; hyphens: auto; overflow-wrap: anywhere;
}
.title { font-size: var(--fs-title); font-weight: 800; line-height: var(--lh-title); letter-spacing: var(--ls-title); max-width: 26ch; hyphens: auto; overflow-wrap: anywhere; }
.h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: var(--ls-title); line-height: var(--lh-head); max-width: 24ch; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-head); }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.45; max-width: 58ch; }
.lede--narrow { max-width: 46ch; }
.muted { color: var(--fg-2); }
.small { font-size: var(--fs-small); }
.measure { max-width: 68ch; }
.measure-wide { max-width: 80ch; }
.balance { text-wrap: balance; }

.mono {
  font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-mono); line-height: var(--lh-mono);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.label, .kicker {
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); line-height: 1.4;
  text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.label--ink, .kicker--ink { color: var(--fg); }
.kicker { display: flex; align-items: center; gap: 0.75rem; }
.kicker::before { content: ""; display: inline-block; width: 2rem; height: var(--rule-w); background: currentColor; flex: none; }
.kicker--plain::before { display: none; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.caps { text-transform: uppercase; letter-spacing: var(--ls-label); }

/* --- Rules --- */
.rule { border-top: var(--rule-w) solid var(--rule); }
.rule-soft { border-top: var(--rule-soft-w) solid var(--rule-soft); }
.rule-b { border-bottom: var(--rule-w) solid var(--rule); }
.rule-soft-b { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.rule-anim { position: relative; }
.rule-anim::before {   /* drawn once by motion.js; the hidden state lives in motion.css under html.motion-ok (21 October 2026) */
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--rule-w)); height: var(--rule-w); width: 100%;
  background: var(--rule); transform-origin: left;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--max-w) * 0.72); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); }
.grid > * { min-width: 0; }
.c-1 { grid-column-end: span 1; } .c-2 { grid-column-end: span 2; } .c-3 { grid-column-end: span 3; } .c-4 { grid-column-end: span 4; }
.c-5 { grid-column-end: span 5; } .c-6 { grid-column-end: span 6; } .c-7 { grid-column-end: span 7; } .c-8 { grid-column-end: span 8; }
.c-9 { grid-column-end: span 9; } .c-10 { grid-column-end: span 10; } .c-11 { grid-column-end: span 11; } .c-12 { grid-column-end: span 12; }
.c-start-2 { grid-column-start: 2; } .c-start-3 { grid-column-start: 3; } .c-start-4 { grid-column-start: 4; }
.c-start-5 { grid-column-start: 5; } .c-start-6 { grid-column-start: 6; } .c-start-7 { grid-column-start: 7; } .c-start-8 { grid-column-start: 8; } .c-start-9 { grid-column-start: 9; }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c-1, .c-2, .c-3 { grid-column-end: span 3; }
  .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12 { grid-column-end: span 6; }
  .c-md-2 { grid-column: span 2; } .c-md-3 { grid-column: span 3; } .c-md-4 { grid-column: span 4; } .c-md-6 { grid-column: span 6; }
  [class*="c-start-"] { grid-column-start: auto; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-5); }
  .c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12,
  .c-md-2, .c-md-3, .c-md-4, .c-md-6 { grid-column-end: span 4; }
  .c-sm-2 { grid-column-end: span 2; }
}

.section { padding-block: var(--section-y); border-top: var(--rule-w) solid var(--rule); }
.section--flush { border-top: 0; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-4); margin-bottom: clamp(2rem, 4vw, 4rem); align-items: start; }
.section__head > .kicker { grid-column: 1 / -1; }
.section__head > .h2, .section__head > h2 { grid-column: span 8; }
.section__head > .section__aside { grid-column: 10 / -1; align-self: end; }
@media (max-width: 1024px) {
  .section__head { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .section__head > .h2, .section__head > h2, .section__head > .section__aside { grid-column: 1 / -1; }
}

/* Surfaces
   .surface-inverse is theme-aware: in Ink (default) it is a paper document lying on the ink ground;
   in Paper it is the ink panel. .on-ink and [data-surface="ink"] are kept as aliases for older markup. */
.surface-inverse, .on-ink, [data-surface="ink"] {
  background: var(--inv-bg); color: var(--inv-fg);
  --fg: var(--inv-fg); --fg-body: var(--inv-fg-body); --fg-2: var(--inv-fg-2); --rule: var(--inv-rule); --rule-soft: var(--inv-rule-soft);
  --bg: var(--inv-bg); --bg-elev: var(--inv-bg-elev); --focus: var(--inv-fg);
  --chart-subject: var(--inv-chart-subject); --chart-context: var(--inv-chart-context); --chart-grid: var(--inv-chart-grid);
}
/* Always-ink surface (the pre-17-October meaning of .on-ink): stays ink in both themes. The hero plate is the
   plan's "frameless Ink plate": invisible as a panel on the Ink ground, an ink panel on Paper. */
.surface-ink, .hero__plate, .hero__plate.on-ink, .hero__plate.surface-inverse {
  background: var(--c-ink); color: var(--c-paper);
  --fg: var(--c-paper); --fg-body: #E4E1E0; --fg-2: #B8B3B3; --rule: var(--c-paper); --rule-soft: #4A4746; --bg: var(--c-ink); --bg-elev: #2A2827; --focus: var(--c-paper);
  --chart-subject: var(--c-paper); --chart-context: #8E8989; --chart-grid: #3B3838;
}
.hero__plate { margin: 0; }
:root[data-theme="paper"] .hero__plate { padding: var(--space-5); }
.on-cadmium, [data-surface="cadmium"] {
  background: var(--c-cadmium); color: var(--c-ink);
  --fg: var(--c-ink); --fg-2: #4A4300; --rule: var(--c-ink); --rule-soft: #C9A200; --bg: var(--c-cadmium); --focus: var(--c-ink);
}

/* --- Spacing utilities --- */
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-xl > * + * { margin-top: var(--space-8); }
.flow > * + * { margin-top: 1em; }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); }
.pt-4 { padding-top: var(--space-4); } .pt-6 { padding-top: var(--space-6); }
.right { text-align: right; }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }

/* --- Reveal motion: moved to motion.css and motion.js on 21 October 2026 (every hidden state under html.motion-ok) --- */

/* Pre-release banner (site.json test_version) */
.test-banner { margin: 0; max-width: none; padding: 0.5rem 1rem; background: var(--bg-elev); border-bottom: 1px solid var(--rule-soft); color: var(--fg); font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; text-align: center; }


/* ==========================================================================
   SINTESIS — components
   Square corners. No shadows. Ink ground by default, paper documents on it. Cadmium = one decision point.
   ========================================================================== */

/* --- Brand lockup --------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; min-height: var(--touch); }
.brand .mark { width: 28px; height: 25.5px; color: currentColor; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-family: var(--f-display); font-weight: 800; letter-spacing: var(--ls-wordmark); text-transform: uppercase; font-size: 1rem; line-height: 1; }
.wordmark--lg { font-size: clamp(2.5rem, 8vw, 6rem); }
.macro { font-family: var(--f-mono); font-weight: 500; letter-spacing: var(--ls-macro); text-transform: uppercase; font-size: 0.5625rem; margin-top: 0.3rem; color: var(--fg-2); }
.macro--cadmium { color: var(--c-cadmium); }
.brand:hover { text-decoration: none; }

/* --- Business-only line (decision 1 of Fredy Solano, 19 November 2026) ------------------------------
   On every page, above the header: quiet (secondary text, mono) but legible (8.0:1 on Ink, 7.4:1 on Paper). Not sticky. */
.b2b-bar { background: var(--bg); border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.b2b-bar__line {
  margin-block: 0; padding-block: 0.4375rem; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: 0.02em; line-height: 1.45; color: var(--fg-2);
}
.b2b-bar__seg { white-space: nowrap; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: var(--rule-soft-w) solid var(--rule-soft);
  transition: border-color var(--t-fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 64px; }
.nav-primary { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; padding: 0; margin: 0; }
.nav-primary a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--touch);
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label);
  text-decoration: none; color: var(--fg-2); position: relative; padding: 0 0.125rem;
}
.nav-primary a:hover, .nav-primary a:focus-visible { color: var(--fg); }
.nav-primary a[aria-current="page"], .nav-primary a.is-active { color: var(--fg); }
.nav-primary a[aria-current="page"]::after, .nav-primary a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--c-cadmium);
}
.nav-utility { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-utility a, .nav-utility button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); min-width: var(--touch); padding: 0 0.625rem;
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label);
  text-decoration: none; color: var(--fg-2); border: 0; background: none;
}
.nav-utility a:hover, .nav-utility button:hover, .nav-utility a:focus-visible, .nav-utility button:focus-visible { color: var(--fg); }
.nav-utility .sep { color: var(--rule-soft); }
.nav-utility .menu-toggle { display: none; }
/* The header's single cadmium point: the persistent Paper Triage Score button (19 November 2026) */
.nav-utility .nav-cta {
  min-height: 36px; min-width: 0; padding: 0 0.875rem; margin-left: 0.5rem;
  background: var(--c-cadmium); border: var(--rule-w) solid var(--c-cadmium); color: var(--c-ink); white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.nav-utility .nav-cta:hover, .nav-utility .nav-cta:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.nav-utility .nav-cta[aria-current="page"] { background: transparent; border-color: var(--fg); color: var(--fg); }
/* V-02: outlined while an in-page cadmium point is on screen (main.js sets html.cta-quiet), so a viewport never holds two */
html.cta-quiet .nav-utility .nav-cta:not(:hover):not(:focus-visible) { background: transparent; border-color: var(--fg); color: var(--fg); }
/* Two-option theme control: Ink | Paper (DE Dunkel | Hell), aria-pressed on each option */
.theme-switch { display: inline-flex; align-items: stretch; border: var(--rule-soft-w) solid var(--rule-soft); margin: 0; padding: 0; }
.theme-switch button {
  min-height: 36px; padding: 0 0.625rem; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); background: none; border: 0;
}
.nav-utility .theme-switch button { min-height: 36px; min-width: 0; padding: 0 0.625rem; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"], .nav-utility .theme-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 1024px) {
  .nav-primary, .nav-utility .hide-md { display: none; }
  .nav-utility .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header__inner { gap: var(--space-3); }
  .nav-utility .nav-cta { padding: 0 0.625rem; letter-spacing: 0.04em; margin-left: 0; }
  .nav-utility .menu-toggle { padding: 0 0.5rem; }
}
@media (max-width: 400px) {   /* the longer "Paper Triage Score" label (19 November 2026): brand, button and menu fit 375 px without a sideways scroll */
  .site-header .brand { gap: 0.5rem; }
  .nav-utility .nav-cta { padding: 0 0.5rem; letter-spacing: 0.02em; }
  .nav-utility .menu-toggle { padding: 0 0.375rem; }
}
@media (max-width: 365px) { .site-header .brand__text { display: none; } }   /* the mark alone carries the accessible name below 366 px */

/* Mobile ledger menu */
.nav-mobile { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--fg); display: none; flex-direction: column; overflow: auto; }
.nav-mobile[open], .nav-mobile.is-open { display: flex; }
.nav-mobile__head { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: var(--rule-w) solid var(--rule); padding-inline: var(--gutter); }
.nav-mobile__list { list-style: none; padding: 0; margin: 0; }
.nav-mobile__list li { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.nav-mobile__list a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem;
  padding: 1.125rem var(--gutter); text-decoration: none; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; min-height: var(--touch);
}
.nav-mobile__list a .idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); font-weight: 400; }
.nav-mobile__list a .xl { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 500; }
.nav-mobile__list a[aria-current="page"] { position: relative; }
.nav-mobile__list a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-cadmium); }
.nav-mobile__cta { padding: var(--space-6) var(--gutter) 0; }
.nav-mobile__util { margin-top: auto; padding: var(--space-6) var(--gutter); border-top: var(--rule-w) solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.nav-mobile__util > a { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 500; color: var(--fg-2); text-decoration: none; min-height: var(--touch); display: inline-flex; align-items: center; }
.nav-mobile__util .theme-switch button { min-height: var(--touch); padding: 0 0.875rem; }
body.nav-open, .sintesis-root.nav-open { overflow: hidden; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: var(--touch); padding: 0.75rem 1.25rem;
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: 1.2;
  color: var(--fg); background: transparent; border: var(--rule-w) solid var(--fg); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn--primary { background: var(--c-cadmium); border-color: var(--c-cadmium); color: var(--c-ink); }
/* Hover and focus come from the local tokens: ink on paper, paper on ink, on every surface. */
.btn--primary:hover, .btn--primary:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--sm { min-height: 36px; padding: 0.375rem 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
.link-mono { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); display: inline-flex; align-items: center; min-height: var(--touch); }
.link-mono::after { content: "\2192"; margin-left: 0.5rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 7rem) clamp(3rem, 6vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-7); align-items: start; }
.hero__copy { grid-column: span 8; display: flex; flex-direction: column; gap: var(--space-6); }
.hero__visual { grid-column: 9 / -1; align-self: stretch; }
.hero .display { margin-top: var(--space-4); }
.hero .lede { margin-top: var(--space-2); }
@media (max-width: 1024px) { .hero__copy, .hero__visual { grid-column: 1 / -1; } }

/* --- Boundary strip ------------------------------------------------------- */
.boundary {
  border-top: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-soft-w) solid var(--rule-soft);
  padding: var(--space-3) 0; max-width: none;
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2);
}
.boundary--ink { border-color: var(--rule); color: var(--fg); }
.boundary span + span::before { content: "\00B7"; margin: 0 0.75rem; color: var(--rule-soft); }

/* --- Split ledger --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-8); position: relative; }
.split > * { padding-top: var(--space-5); border-top: var(--rule-w) solid var(--rule); }
.split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--rule-soft-w); background: var(--rule-soft); }
.split__trunk { grid-column: 1 / -1; border-top: 0 !important; padding-top: 0 !important; margin-bottom: var(--space-6); text-align: center; }
.split__trunk .label { display: inline-block; padding: 0.5rem 0.75rem; border: var(--rule-w) solid var(--rule); color: var(--fg); }
.split__trunk::after { content: ""; display: block; width: var(--rule-soft-w); height: var(--space-6); background: var(--rule); margin: 0 auto; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .split::before { display: none; }
  .split__trunk { text-align: left; }
  .split__trunk::after { margin: 0; }
}

/* --- Ledger lists & tables ------------------------------------------------ */
.ledger { list-style: none; padding: 0; margin: 0; border-top: var(--rule-w) solid var(--rule); }
.ledger > li { display: grid; grid-template-columns: minmax(3.5rem, max-content) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); max-width: none; }
.ledger > li > .idx, .ledger > li > .num { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); padding-top: 0.2em; white-space: nowrap; }
.ledger--3 > li { grid-template-columns: minmax(3.5rem, max-content) minmax(0, 1fr) minmax(0, 1fr); }
.ledger--tight > li { padding: var(--space-3) 0; }
.ledger h3, .ledger h4 { margin-bottom: 0.25rem; }
.ledger--check > li { grid-template-columns: 1.75rem 1fr; }
.ledger--check .box { width: 1rem; height: 1rem; border: var(--rule-w) solid var(--fg); margin-top: 0.3em; }
.ledger--check .box.is-done { background: var(--fg); }
.ledger--check .box.is-decision { background: var(--c-cadmium); border-color: var(--c-cadmium); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-ledger { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.45; font-variant-numeric: tabular-nums; }
.table-ledger caption { text-align: left; padding-bottom: var(--space-3); font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); font-weight: 500; }
.table-ledger th, .table-ledger td { text-align: left; vertical-align: top; padding: 0.625rem 1rem 0.625rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.table-ledger thead th { font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); color: var(--fg-2); border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
.table-ledger td.n, .table-ledger th.n { text-align: right; }
.table-ledger td.n:last-child, .table-ledger th.n:last-child { padding-right: 0; }
.table-ledger tbody tr:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.table-ledger .ok::before { content: "\25A0\00A0"; }
.table-ledger .fail::before { content: "\25A1\00A0"; }
.table-ledger .decision { background: var(--c-cadmium); color: var(--c-ink); padding: 0.125rem 0.375rem; font-weight: 500; }
.table-ledger--body { font-family: var(--f-display); font-size: var(--fs-small); }
.table-ledger--body td:first-child { font-family: var(--f-mono); font-size: var(--fs-mono); }

/* --- Metadata block ------------------------------------------------------- */
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4) var(--space-5); margin: 0; border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); }
.meta > div { min-width: 0; }
.meta--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* legal-entity and contact blocks: long legal names and addresses keep whole words */
.meta.meta--2 dd, .meta > .meta__wide dd { hyphens: manual; -webkit-hyphens: manual; }
.meta > .meta__wide { grid-column: 1 / -1; }   /* the legal name takes the full row, so it never breaks inside a word */   /* no automatic hyphenation inside a legal name; lines break between words */
@media (max-width: 640px) { .meta--2 { grid-template-columns: minmax(0, 1fr); } }
.nc { text-transform: none; }   /* Greek model symbols inside uppercase labels keep their case (σ, not Σ) */
.meta dt { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); margin-bottom: 0.25rem; }
.meta dd { font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: break-word; hyphens: auto; }
.meta dd a[href^="mailto:"], .meta dd a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 480px) { .meta dd a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; hyphens: none; -webkit-hyphens: none; } }   /* Q-02: a long address may wrap in a narrow two-column aside, never with a hyphen that would change the address (NEW-01) */
.meta dd code, .meta dd .hash, .meta dd .hub-hash-inline { overflow-wrap: anywhere; word-break: break-all; hyphens: none; }
.meta--inline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; border: 0; padding: 0; }
.meta--inline > div { display: flex; gap: 0.5rem; }
.meta--inline dt { margin: 0; }
.meta--inline dt::after { content: "\00B7"; margin-left: 0.5rem; }
.metaline { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 0.25rem 1.3rem; overflow: hidden; max-width: none; }
/* each item carries its separator in the gap to its left; at the start of a line it falls outside the box and is clipped, so no line opens with "·" */
.metaline > span::before { content: "\00B7"; display: inline-block; width: 1.3rem; margin-left: -1.3rem; text-align: center; }
.metaline > span.status::before { content: ""; display: block; width: 0.6rem; margin-left: 0; }   /* a status keeps its square; the gap separates it */
.metaline--counters > span { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border: var(--rule-w) solid currentColor; flex: none; }
.status--validated::before, .status--published::before { background: currentColor; }
.status--decision::before { background: var(--c-cadmium); border-color: var(--c-cadmium); }

/* --- Research card -------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-7); }
.card-grid > .card-research { grid-column: span 4; }
.card-grid > .card-research.is-flagship { grid-column: span 12; display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-6); align-items: start; }
/* flagship plus exactly two cards: the two share the row instead of leaving an empty third slot */
.card-grid > .is-flagship + .card-research:nth-last-child(2), .card-grid > .is-flagship + .card-research:nth-last-child(2) + .card-research { grid-column: span 6; }
@media (max-width: 1024px) { .card-grid > .card-research, .card-grid > .card-research.is-flagship { grid-column: 1 / -1; grid-template-columns: 1fr; } }
.card-research { position: relative; border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.card-research__head { display: flex; justify-content: space-between; gap: var(--space-4); }
.card-research h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: var(--ls-title); line-height: 1.15; }
.is-flagship h3 { font-size: var(--fs-h2); }
.card-research h3 a { text-decoration: none; }
.card-research h3 a::after { content: ""; position: absolute; inset: 0; }
.card-research:hover h3 a, .card-research:focus-within h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.card-research .thesis { color: var(--fg); }
.card-research__sub { color: var(--fg-2); font-size: var(--fs-small); margin-top: -0.5rem; }
.card-research .meta { border-top: var(--rule-soft-w) solid var(--rule-soft); margin-top: auto; }
.card-research__visual { border: var(--rule-soft-w) solid var(--rule-soft); padding: var(--space-4); background: var(--bg); }
.card-research__visual svg { width: 100%; height: auto; }

/* --- Research index rows -------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filters .filter { min-height: 40px; padding: 0.375rem 0.875rem; border: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); background: none; }
.filters .filter:hover { border-color: var(--fg); color: var(--fg); }
.filters .filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters input[type="search"] { min-height: 40px; min-width: min(16rem, 100%); padding: 0.5rem 0.75rem; border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); background: var(--bg-elev); color: var(--fg); font-family: var(--f-mono); font-size: var(--fs-mono); border-radius: 0; }
.index-row { display: grid; grid-template-columns: 6rem 1fr 14rem; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); position: relative; }
.index-row:first-of-type { border-top: var(--rule-w) solid var(--rule); }
.index-row .code { font-family: var(--f-mono); font-size: var(--fs-mono); }
.index-row h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0; margin-bottom: 0.375rem; }
.index-row h3 a { text-decoration: none; }
.index-row h3 a::after { content: ""; position: absolute; inset: 0; }
.index-row:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.index-row .meta { border: 0; padding: 0; margin-top: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-2) var(--space-4); }
.index-row .side { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); display: flex; flex-direction: column; gap: 0.25rem; }
.index-row .sub { color: var(--fg-2); margin-bottom: 0.375rem; }
.index-row[hidden] { display: none; }
@media (max-width: 800px) { .index-row { grid-template-columns: 1fr; gap: var(--space-2); } .index-row .side { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1rem; } }

/* --- Article -------------------------------------------------------------- */
.article-head { padding-block: clamp(2rem, 5vw, 4rem) var(--space-7); }
.article-head .title { max-width: 28ch; margin-top: var(--space-4); }
.article-head .thesis { margin-top: var(--space-5); }
.article-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.article-layout .article-body { grid-column: 1 / span 8; }
.article-layout .article-side { grid-column: 10 / -1; }
@media (min-width: 1025px) { .article-layout .article-body, .article-layout .article-side { grid-row: 1; } }
.article-side .side-block { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: var(--space-6); }
.toc { list-style: none; padding: 0; margin: 0; border-top: var(--rule-w) solid var(--rule); }
.toc li { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.toc a { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.5rem; padding: 0.625rem 0; text-decoration: none; font-size: var(--fs-small); min-height: var(--touch); align-items: center; }
.toc a .idx { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--fg-2); }
.toc a:hover, .toc a[aria-current="true"] { text-decoration: underline; }
.article-body { font-size: var(--fs-body); color: var(--fg-body); }
.article-body h2, .article-body h3, .article-body h4, .article-body strong, .article-body .fig__title { color: var(--fg); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: var(--ls-title); margin-top: 2.5em; padding-top: 1em; border-top: var(--rule-w) solid var(--rule); display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; align-items: baseline; max-width: 66ch; }
.article-body h2 .idx { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-mono); color: var(--fg-2); letter-spacing: 0; }
.article-body h3 { margin-top: 1.8em; font-size: var(--fs-h4); }
.article-body p, .article-body li { max-width: 66ch; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li + li { margin-top: 0.35em; }
.article-body blockquote { border-left: var(--rule-w) solid var(--rule); padding-left: var(--space-4); color: var(--fg-2); }
.article-body pre, .article-body code, .article-body kbd { font-family: var(--f-mono); font-size: var(--fs-mono); }
.article-body pre { background: var(--bg-elev); border: var(--rule-soft-w) solid var(--rule-soft); padding: var(--space-4); overflow-x: auto; line-height: 1.5; max-width: 100%; }
.article-body code { background: var(--bg-elev); padding: 0.1em 0.3em; }
.article-body pre code { background: none; padding: 0; }
.article-body .eq { font-family: var(--f-mono); font-size: 1rem; padding: var(--space-4) 0; border-top: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-soft-w) solid var(--rule-soft); overflow-x: auto; white-space: nowrap; }
.article-body .eq .eqn { float: right; color: var(--fg-2); font-size: var(--fs-mono); }
.article-body .table-wrap { margin-top: 1.5em; }
.article-body figure { margin-top: 2em; }
.article-foot { margin-top: var(--space-8); padding-top: var(--space-6); border-top: var(--rule-w) solid var(--rule); display: grid; gap: var(--space-6); }
.notice { border-left: var(--rule-w) solid var(--rule); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); background: var(--bg-elev); }
.notice--mono { font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.5; }
.notice .label { display: block; margin-bottom: 0.375rem; }
@media (max-width: 1024px) {
  .article-layout .article-body, .article-layout .article-side { grid-column: 1 / -1; }
  .article-side { order: -1; margin-bottom: var(--space-6); }
  .article-side .side-block { position: static; }
}

/* --- Figures & charts ----------------------------------------------------- */
.fig { margin: 0; }
.fig__head { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-bottom: var(--space-3); font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.fig__head .fig__title { color: var(--fg); }
.fig__plot { position: relative; }
.fig__plot svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .baseline { stroke: var(--fg); stroke-width: 2px; vector-effect: non-scaling-stroke; }
/* Non-scaling strokes: series 3px (a documented deviation from the brand's 4px for dense 22-year monthly series), context 2px, baseline 2px */
.chart .series { fill: none; stroke: var(--chart-subject); stroke-width: 3px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .series--context { stroke: var(--chart-context); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.chart .series--context-2 { stroke: var(--chart-context-2); }
.chart .zero { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .tick { font-family: var(--f-mono); font-size: 11px; fill: var(--fg-2); font-variant-numeric: tabular-nums; }
.chart .latest { fill: var(--c-cadmium); stroke: var(--fg); stroke-width: 1.5; }
.chart .latest-label { font-family: var(--f-mono); font-size: 11px; fill: var(--fg); font-weight: 500; paint-order: stroke fill; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
/* Static charts keep a fixed 720-unit viewBox, so their labels are enlarged on phones; fluid charts (charts.js) draw at real size */
@media (max-width: 640px) { .fig__plot .chart:not(.chart--fluid) .tick, .fig__plot .chart:not(.chart--fluid) .latest-label { font-size: 19px; } .fig__plot .chart:not(.chart--fluid) .latest { r: 8; } }
.chart .crosshair { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 1 3; }
.chart .hover-dot { fill: var(--bg); stroke: var(--fg); stroke-width: 2; }
.chart .hover-dot[hidden], .chart .crosshair[hidden] { display: none; }
.fig__tip { position: absolute; pointer-events: none; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.4; background: var(--bg); color: var(--fg); border: var(--rule-soft-w) solid var(--fg); padding: 0.375rem 0.5rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.fig__tip[hidden] { display: none; }
.fig__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: var(--space-3); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); }
.fig__legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.fig__legend .sw { width: 1.25rem; height: 2px; background: var(--chart-subject); display: inline-block; }
.fig__legend .sw--context { background: var(--chart-context); }
.fig__legend .sw--latest { width: 0.6rem; height: 0.6rem; background: var(--c-cadmium); border: 1.5px solid var(--fg); }
.fig__legend .sw--cutoff { width: 0.6rem; height: 0.6rem; background: var(--c-cadmium); border: 1.5px solid var(--fg); }
.fig__source { padding-top: var(--space-3); font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); line-height: 1.6; }
.fig__note { padding-top: var(--space-3); font-size: var(--fs-small); color: var(--fg-2); max-width: 66ch; }
.fig details { margin-top: var(--space-3); }
.fig summary { cursor: pointer; font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 500; min-height: var(--touch); display: inline-flex; align-items: center; }
.fig summary::-webkit-details-marker { display: none; }
.fig summary::after { content: "+"; margin-left: 0.5em; }
.fig details[open] > summary::after { content: "\2212"; }
.tag-demo { display: inline-block; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; border: var(--rule-soft-w) solid var(--fg-2); color: var(--fg-2); padding: 0.125rem 0.5rem; }

/* --- Documents (artifacts) ------------------------------------------------ */
.doc { border: var(--rule-soft-w) solid var(--rule-soft); border-top: var(--rule-w) solid var(--rule); background: var(--bg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--fs-small); min-width: 0; }
.doc__head { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.doc__head .code { color: var(--fg); }
.doc h4 { font-size: var(--fs-h4); }
.doc .table-ledger { font-size: 0.75rem; }
.doc .table-ledger th, .doc .table-ledger td { padding: 0.375rem 0.625rem 0.375rem 0; }
.doc__lines { display: grid; gap: 0.5rem; }
.doc__lines span { display: block; height: 0.5rem; background: var(--rule-soft); }
.doc__lines span:nth-child(2) { width: 85%; } .doc__lines span:nth-child(3) { width: 60%; }
.doc__foot { margin-top: auto; padding-top: var(--space-3); border-top: var(--rule-soft-w) solid var(--rule-soft); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.doc .sq { display: inline-block; width: 0.75rem; height: 0.75rem; background: var(--c-cadmium); vertical-align: -0.1em; }
.doc--ink { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); --fg: var(--c-paper); --fg-2: #B8B3B3; --rule: var(--c-paper); --rule-soft: #4A4746; --bg: var(--c-ink); }

/* Evidence rail */
.rail { display: flex; gap: var(--col-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); scrollbar-width: thin; scrollbar-color: var(--fg-2) transparent; -webkit-overflow-scrolling: touch; }
.rail > * { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; }
.rail:focus-visible { outline-offset: 6px; }
.rail-nav { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* --- Process sequence (Signals → Handover) -------------------------------- */
.process { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.process__map { grid-column: span 5; position: sticky; top: 5.5rem; }
.process__stages { grid-column: 7 / -1; }
.infomap { width: 100%; height: auto; }
.infomap .mark-path { stroke: var(--fg); fill: none; stroke-linecap: round; }
.infomap .leader { stroke: var(--rule-soft); stroke-width: 1; fill: none; }
.infomap .io-rule { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.infomap text { font-family: var(--f-mono); font-weight: 500; font-size: 6px; letter-spacing: 0.5px; text-transform: uppercase; fill: var(--fg-2); }
.infomap text.io { fill: var(--fg); }
.infomap .node { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.infomap .node.is-active { fill: var(--c-cadmium); }
.infomap .marker { fill: var(--c-cadmium); stroke: var(--fg); stroke-width: 1; transition: transform var(--t-base) var(--ease); }
.infomap text.is-active { fill: var(--fg); }
.stage-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; border-top: var(--rule-w) solid var(--rule); }
.stage-list li { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.stage-list a { display: grid; grid-template-columns: 1.25rem 2.5rem 1fr; align-items: center; gap: 0.75rem; min-height: var(--touch); text-decoration: none; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); padding: 0.375rem 0; }
.stage-list a .dot { width: 0.75rem; height: 0.75rem; border: var(--rule-soft-w) solid var(--fg-2); }
.stage-list li.is-active a { color: var(--fg); }
.stage-list li.is-active a .dot { background: var(--c-cadmium); border-color: var(--fg); }
.stage { padding: var(--space-7) 0; border-top: var(--rule-w) solid var(--rule); display: grid; gap: var(--space-5); scroll-margin-top: 6rem; opacity: 0.75; transition: opacity var(--t-slow) var(--ease); }
.stage.is-active, .no-js .stage { opacity: 1; }
.stage__head { display: flex; align-items: baseline; gap: var(--space-4); }
.stage__head .idx { font-family: var(--f-mono); font-size: var(--fs-h3); color: var(--fg-2); }
.stage__head h3 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: var(--ls-title); }
.stage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.stage__facts { display: grid; gap: var(--space-4); }
.stage__facts dt { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); margin-bottom: 0.25rem; }
.stage__facts dd { font-size: var(--fs-small); }
@media (max-width: 1024px) {
  .process__map { grid-column: 1 / -1; position: static; }
  .process__stages { grid-column: 1 / -1; }
  .infomap { display: none; }
  .stage__grid { grid-template-columns: 1fr; }
  .stage { opacity: 1; }
}
.stage-simple { list-style: none; padding: 0; margin: 0; border-top: var(--rule-w) solid var(--rule); display: none; }
@media (max-width: 1024px) { .stage-simple { display: block; } }
.stage-simple li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; padding: 0.625rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: var(--fs-mono); }
.stage-simple li .k { color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); font-weight: 500; }

/* Simple architecture diagram */
.arch { width: 100%; height: auto; }
.arch rect { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.arch rect.ext { stroke-dasharray: 3 3; stroke: var(--fg-2); }
.arch rect.decision { fill: var(--c-cadmium); }
.arch line, .arch path { stroke: var(--fg); stroke-width: 1.25; fill: none; }
.arch path.soft, .arch line.soft { stroke: var(--rule-soft); }
.arch text { font-family: var(--f-mono); font-size: 8px; fill: var(--fg); letter-spacing: 0.3px; }
.arch text.k { fill: var(--fg-2); font-size: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.arch rect.decision + text { fill: var(--c-ink); }
.arch text.lg { font-family: var(--f-display); font-weight: 600; font-size: 8px; letter-spacing: 0; }

/* --- Steps / outcomes ----------------------------------------------------- */
.outcomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); border-top: var(--rule-w) solid var(--rule); }
.outcomes > div { padding-top: var(--space-4); border-top: var(--rule-soft-w) solid transparent; }
.outcomes .idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); display: block; margin-bottom: var(--space-3); }
.outcomes h3 { font-size: var(--fs-h4); margin-bottom: 0.375rem; }
.outcomes p { font-size: var(--fs-small); color: var(--fg-2); }
@media (max-width: 1024px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } .outcomes > div { border-top-color: var(--rule-soft); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: var(--space-6); } }
.accept-reject h3 { display: flex; align-items: center; gap: 0.75rem; }
.accept-reject h3::before { content: ""; width: 0.75rem; height: 0.75rem; border: var(--rule-w) solid var(--fg); flex: none; }
.accept-reject .accept h3::before { background: var(--fg); }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.375rem; align-content: start; }
.field > label, .field > .field__label { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.field .req { color: var(--fg); }
.field .hint { font-size: var(--fs-small); color: var(--fg-2); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: var(--touch); padding: 0.625rem 0.75rem; background: var(--bg-elev); color: var(--fg);
  border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); border-radius: var(--radius);
  font-size: var(--fs-body);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.is-invalid input:not([type="checkbox"]):not([type="radio"]), .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--fg); border-left: 4px solid var(--fg); }
.field.is-invalid .check input, .check.is-invalid input { outline: 2px solid var(--fg); outline-offset: 2px; }
.field__error { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg); }
.field__error:empty { display: none; }
.field__error::before { content: "Error \00B7\00A0"; text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); font-weight: 500; }
:lang(de) .field__error::before { content: "Fehler \00B7\00A0"; }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; min-height: var(--touch); padding: 0.5rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--c-ink); appearance: none; border: var(--rule-w) solid var(--fg); background: var(--bg-elev); cursor: pointer; border-radius: 0; }
.check input:checked { background: var(--fg); box-shadow: inset 0 0 0 3px var(--bg-elev); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check label { font-size: var(--fs-small); cursor: pointer; }
.check label a { text-decoration: underline; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-family: var(--f-mono); font-size: var(--fs-mono); border-left: var(--rule-w) solid var(--fg); padding: var(--space-3) var(--space-4); background: var(--bg-elev); }
.form__status:empty { display: none; }
.warning { border: var(--rule-w) solid var(--fg); padding: var(--space-4); font-size: var(--fs-small); }
.warning .label { display: block; margin-bottom: 0.375rem; color: var(--fg); }

/* Radio ledger (self-assessment questions: the Paper Triage Score) */
.opt-list { display: grid; gap: 0; border-top: var(--rule-w) solid var(--rule); margin-top: var(--space-3); }
.opt { display: grid; grid-template-columns: 1.5rem 2.5rem 1fr; gap: 0.75rem; align-items: start; padding: 0.875rem 0.5rem 0.875rem 0.75rem; border-bottom: var(--rule-soft-w) solid var(--rule-soft); border-left: 4px solid transparent; cursor: pointer; min-height: var(--touch); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.opt:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.opt input { width: 1.125rem; height: 1.125rem; margin: 0.25rem 0 0; appearance: none; border: var(--rule-w) solid var(--fg); background: var(--bg-elev); border-radius: 0; cursor: pointer; }
.opt input:checked { background: var(--fg); box-shadow: inset 0 0 0 3px var(--bg-elev); }
.opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt .lvl { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); padding-top: 0.15rem; }
.opt .txt { font-size: var(--fs-small); }
.opt.is-checked { border-left-color: var(--fg); }
.opt.is-checked .lvl { color: var(--fg); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.rs-dim { padding: var(--space-6) 0; border-top: var(--rule-w) solid var(--rule); }
.rs-dim legend { float: left; width: 100%; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-3); align-items: baseline; margin-bottom: 0.5rem; }
.rs-dim legend + .why { clear: both; }
.rs-dim legend .idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); }
.rs-dim legend .q { font-size: var(--fs-h3); font-weight: 600; }
.rs-dim .why { font-size: var(--fs-small); color: var(--fg-2); max-width: 66ch; }
.rs-progress { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); display: flex; justify-content: space-between; gap: var(--space-4); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); }
.rs-progress .bar { flex: 1; height: 2px; background: var(--rule-soft); align-self: center; position: relative; }
.rs-progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--fg); transition: width var(--t-base) var(--ease); }
.rs-result { border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-6); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); }
.rs-result__score { grid-column: span 4; }
.rs-result__score .big { font-family: var(--f-mono); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.rs-result__score .big small { font-size: 0.35em; color: var(--fg-2); }
.rs-result__dims { grid-column: span 8; }
.rs-bars { list-style: none; padding: 0; margin: 0; border-top: var(--rule-w) solid var(--rule); }
.rs-bars, .rs-blockers, .rs-result__dims > .label, .rs-result__dims > #rs-next { max-width: 52rem; }
.rs-bars li, .rs-blockers li { max-width: none; }
.rs-bars li { display: grid; grid-template-columns: 2.5rem 1fr 3.5rem 7rem; gap: var(--space-3); align-items: center; padding: 0.625rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: var(--fs-mono); }
.rs-bars .name { font-family: var(--f-display); font-size: var(--fs-small); }
.rs-bars .track { height: 8px; background: var(--rule-soft); position: relative; grid-column: 1 / -1; }
.rs-bars .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fg); }
.rs-bars .track i.is-blocker { background: repeating-linear-gradient(135deg, var(--fg) 0 2px, transparent 2px 5px); border: 1px solid var(--fg); }
.rs-bars .rag { text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.rs-bars .rag::before { content: ""; width: 0.6rem; height: 0.6rem; border: var(--rule-soft-w) solid var(--fg); flex: none; }
.rs-bars .rag--green::before { background: var(--fg); }
.rs-bars .rag--amber::before { background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.rs-bars .rag--red::before { background: transparent; }
@media (max-width: 800px) { .rs-result__score, .rs-result__dims { grid-column: 1 / -1; } .rs-bars li { grid-template-columns: 2.5rem 1fr 3.5rem; } .rs-bars .rag { grid-column: 2 / -1; } }
.rs-blockers { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.rs-blockers li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding: var(--space-4) 0; border-top: var(--rule-soft-w) solid var(--rule-soft); }
.rs-blockers li:first-child { border-top: var(--rule-w) solid var(--rule); }
.rs-blockers li::before { counter-increment: b; content: "0" counter(b); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); }
.rs-blockers li:first-child::before { background: var(--fg); color: var(--bg); padding: 0 0.25rem; justify-self: start; align-self: start; }

/* --- Consent dialog ------------------------------------------------------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--bg); color: var(--fg); border-top: var(--rule-w) solid var(--rule); padding: var(--space-5) 0; display: none; }
.consent.is-open { display: block; }
body.consent-open, .sintesis-root.consent-open { padding-bottom: 12rem; }
.consent__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-4); align-items: start; }
.consent__text { grid-column: span 7; }
.consent__text h2 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
/* No analytics provider configured: nothing to consent to, so no control that opens the dialog (also without JavaScript) */
body[data-analytics-provider="none"] .js-consent-open, body[data-analytics-provider=""] .js-consent-open { display: none !important; }
.consent__text h2:focus { outline: none; }
.consent__text h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent__text p { font-size: var(--fs-small); max-width: 62ch; }
.consent__actions { grid-column: 8 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; align-self: end; }
.consent__actions .btn { width: 100%; padding-inline: 0.5rem; }
.consent__settings { grid-column: 1 / -1; border-top: var(--rule-soft-w) solid var(--rule-soft); padding-top: var(--space-4); display: grid; gap: var(--space-3); }
.consent__settings[hidden] { display: none; }
.consent__settings .check label strong { display: block; font-weight: 600; }
.consent__settings .check label span { color: var(--fg-2); }
@media (max-width: 1024px) { .consent__text, .consent__actions { grid-column: 1 / -1; } }
@media (max-width: 640px) { .consent__actions { grid-template-columns: 1fr; } }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: var(--rule-w) solid var(--rule); padding-block: var(--space-8) var(--space-6); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); }
.site-footer__brand { grid-column: span 4; display: grid; gap: var(--space-4); align-content: start; }
.site-footer__category { font-size: var(--fs-small); color: var(--fg); max-width: 36ch; }
.site-footer__cols { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }   /* free tools · services · research · company (19 November 2026) */
.site-footer h2 { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding-block: 0.375rem; line-height: 1.35; text-decoration: none; font-size: var(--fs-small); color: var(--fg); }
.site-footer li a:hover { text-decoration: underline; }
.site-footer__entity { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); line-height: 1.6; }
.site-footer__entity strong { color: var(--fg); font-weight: 500; }
.site-footer__entity a { color: var(--fg); }
.site-footer__notes { grid-column: 1 / -1; border-top: var(--rule-soft-w) solid var(--rule-soft); padding-top: var(--space-5); display: grid; gap: var(--space-3); }
/* Business-only line: body size, not muted (PAngV / BGH I ZR 99/08 notice must be prominent) */
.site-footer__business { font-size: var(--fs-body); color: var(--fg); max-width: 90ch; }
.site-footer__boundary { font-size: var(--fs-small); color: var(--fg-2); max-width: 90ch; }
.site-footer__boundary a { color: var(--fg); }
.site-footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-6); padding-top: var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__legal li a, .site-footer__bottom a { color: var(--fg-2); text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: var(--touch); display: inline-flex; align-items: center; }
.site-footer__legal li a:hover, .site-footer__bottom a:hover, .site-footer__legal a[aria-current="page"] { color: var(--fg); }
.site-footer__bottom .group { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; }
.site-footer__copy { text-transform: none; letter-spacing: 0.02em; }   /* keeps "haftungsbeschränkt" and "i.G." in their legal form */
@media (max-width: 1024px) { .site-footer__brand, .site-footer__cols { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.grid > .notice, .grid > .doc, .grid > .meta, .grid > .btn-row, .grid > .stack { align-self: start; }

/* All-in-one bundle routing */
.sintesis-root [data-route] { display: none; }
.sintesis-root [data-route].is-current { display: block; }

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs { padding-top: var(--space-5); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.breadcrumbs li { display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.6rem; color: var(--rule-soft); }
.breadcrumbs a { text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--fg); }

/* --- Page header (inner pages) ------------------------------------------- */
.page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-5); }
.page-head > .kicker { grid-column: 1 / -1; }
.page-head > .title, .page-head > h1 { grid-column: span 8; }
.page-head > .lede { grid-column: span 7; }
.page-head > .page-head__aside { grid-column: 10 / -1; grid-row: 2 / span 2; align-self: start; }
@media (max-width: 1024px) { .page-head > .title, .page-head > h1, .page-head > .lede, .page-head > .page-head__aside { grid-column: 1 / -1; grid-row: auto; } }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { padding-block: var(--section-y); }
.cta-band .grid { align-items: end; }
.cta-band .display { font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); }

/* --- Design-system proof -------------------------------------------------- */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.swatch { border: var(--rule-soft-w) solid var(--rule-soft); }
.swatch i { display: block; height: 96px; }
.swatch div { padding: 0.75rem; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.5; }
.swatch div strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-small); }
.proportion { display: flex; height: 16px; border: var(--rule-soft-w) solid var(--rule-soft); }
@media (max-width: 800px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.specimen { border-top: var(--rule-soft-w) solid var(--rule-soft); padding: var(--space-4) 0; display: grid; grid-template-columns: 12rem 1fr 10rem; gap: var(--space-4); align-items: baseline; }
.specimen .k { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--ls-label); }
@media (max-width: 800px) { .specimen { grid-template-columns: 1fr; gap: 0.5rem; } }
.logo-sizes { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-end; }
.logo-sizes figure { margin: 0; display: grid; gap: 0.5rem; justify-items: start; }
.logo-sizes figcaption { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.tile { border: var(--rule-soft-w) solid var(--rule-soft); padding: var(--space-5); }
.tile--ink { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }

/* --- 404 ------------------------------------------------------------------ */
.error-code { font-family: var(--f-mono); font-size: clamp(4rem, 12vw, 10rem); line-height: 1; letter-spacing: -0.02em; }
.error-code.numeral { font-family: var(--f-display); font-weight: 800; line-height: 0.9; }   /* V-19: the site's registry-numeral voice */

/* ==========================================================================
   Signature additions — the paintings: one field, one gesture, one straight line
   ========================================================================== */

/* Cadmium hero: the one full-field moment. Ink on cadmium (12.5:1). */
.hero--field { background: var(--c-cadmium); color: var(--c-ink); --fg: var(--c-ink); --fg-2: #4A4300; --rule: var(--c-ink); --rule-soft: #C9A200; --bg: var(--c-cadmium); --focus: var(--c-ink); position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 9rem) clamp(3rem, 7vw, 7rem); }
.hero--field .hero__grid { position: relative; z-index: 1; }
.hero--field .kicker { color: var(--c-ink); }
.hero--field .lede { max-width: 44ch; }
.hero--field .btn:not(.btn--primary) { border-color: var(--c-ink); color: var(--c-ink); }
.hero--field .btn:not(.btn--primary):hover, .hero--field .btn:not(.btn--primary):focus-visible { background: var(--c-ink); color: var(--c-cadmium); }
.hero__gesture { position: absolute; right: max(2vw, calc((100vw - var(--max-w)) / 2)); top: 50%; transform: translateY(-50%); width: clamp(220px, 30vw, 520px); height: auto; color: var(--c-ink); pointer-events: none; }
.hero__gesture svg { width: 100%; height: auto; display: block; }
.hero__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-ink); }
@media (max-width: 1024px) { .hero__gesture { position: static; transform: none; width: min(46vw, 260px); margin: var(--space-6) var(--gutter) 0 auto; } .hero--field .hero__visual { grid-column: 1 / -1; } }

/* Straight line: the boundary strip drawn as one hard rule under the field */
.boundary--hard { border-top: var(--rule-w) solid var(--rule); border-bottom: 0; padding-top: var(--space-4); color: var(--fg); }

/* L-rule: section kickers carry the corner of the paintings' straight line */
.section__head--l { position: relative; padding-left: var(--space-5); }
.section__head--l::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: var(--rule-w); height: calc(100% - 0.35rem); background: var(--rule); }
.section__head--l > .kicker::before { display: none; }

/* Rivet rule: the process as a hard line with marks along it (painting 1) */
.rivet { position: relative; padding-top: var(--space-6); }
.rivet__line { position: absolute; left: 0; right: 0; top: calc(var(--space-6) + 0.55rem); height: var(--rule-w); background: var(--rule); }
.rivet__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--col-gap); position: relative; }
.rivet__steps > li { padding-top: var(--space-6); position: relative; }
.rivet__steps > li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--bg); border: var(--rule-w) solid var(--rule); box-sizing: border-box; }
.rivet__steps > li.is-decision::before { background: var(--c-cadmium); }
.rivet__steps .idx { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-2); display: block; margin-bottom: 0.375rem; }
.rivet__steps h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: var(--ls-title); margin-bottom: 0.375rem; }
.rivet__steps p { font-size: var(--fs-small); color: var(--fg-2); }
.rivet__steps .art { display: block; margin-top: 0.75rem; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg); }
@media (max-width: 1024px) { .rivet__steps { grid-template-columns: repeat(2, 1fr); } .rivet__line { display: none; } .rivet__steps > li { padding-left: 2rem; padding-top: 0; } .rivet__steps > li::before { top: 0.2rem; } }
@media (max-width: 640px) { .rivet__steps { grid-template-columns: 1fr; } }

/* Offer ladder */
.ladder { width: 100%; border-collapse: collapse; }
.ladder th, .ladder td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.ladder thead th { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
.ladder td.lvl { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); white-space: nowrap; }
.ladder td.offer { font-weight: 600; }
.ladder td.offer a { text-decoration: none; }
.ladder td.offer a:hover { text-decoration: underline; }
.ladder td.fee, .ladder th.fee { font-family: var(--f-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; white-space: nowrap; }
.ladder tr.is-core td.offer::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; background: var(--c-cadmium); border: 1px solid var(--fg); margin-right: 0.6rem; vertical-align: 0.05em; }
@media (max-width: 800px) { .ladder thead { display: none; } .ladder tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 1rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); } .ladder td { border: 0; padding: 0; } .ladder td.lvl { grid-column: 1 / -1; } .ladder td.fee { grid-column: 2; grid-row: 2; } .ladder td.result { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--fg-2); } }

/* Level blocks on the Engagements page */
.level { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-5); padding-block: var(--space-7); border-top: var(--rule-w) solid var(--rule); scroll-margin-top: 5rem; }
.level__head { grid-column: span 4; }
.level__head .lvl { display: block; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); margin-bottom: 0.75rem; }
.level__head h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: var(--ls-title); }
.level__head .promise { margin-top: var(--space-4); font-size: 1.125rem; line-height: 1.4; }
.level__head .meta { margin-top: var(--space-5); }
.level__body { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.level__body h3 { font-size: var(--fs-h4); margin-bottom: 0.75rem; }
.level__body .ledger > li { padding: 0.5rem 0; }
.level--core { position: relative; }
.level--core::before { content: ""; position: absolute; left: 0; top: calc(-1 * var(--rule-w)); width: 6rem; height: var(--rule-w); background: var(--c-cadmium); }
@media (max-width: 1024px) { .level__head, .level__body { grid-column: 1 / -1; } .level__body { grid-template-columns: 1fr; } }

/* Painting band (reference canvas) */
.band { margin: 0; position: relative; border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
.band img { width: 100%; height: clamp(240px, 42vw, 560px); object-fit: cover; display: block; }
.band figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
.band figcaption span { display: inline-block; background: var(--c-paper); color: var(--c-ink); font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; padding: 0.5rem 0.75rem; margin: 0 0 var(--space-4) var(--gutter); }
.band--tile img { height: auto; aspect-ratio: 1; }

/* German display headlines: longer compounds, slightly smaller, wider measure */
:lang(de) .display { font-size: clamp(2.1rem, 0.9rem + 3.5vw, 4.25rem); max-width: 20ch; hyphens: manual; overflow-wrap: normal; }
:lang(de) .hero--cover .display { max-width: none; }

/* Original data-canvas band */
.band--canvas svg.canvas { display: block; width: 100%; height: clamp(260px, 40vw, 560px); }
.band--tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* ==========================================================================
   Template language — painting panels, duotones, edge strips, signal grain
   ========================================================================== */

/* Hero as cover: ink panel with the statement, the painting as the panel beside it (template 02) */
.hero--cover { padding: 0; background: var(--c-ink); color: var(--c-paper); --fg: var(--c-paper); --fg-2: #B8B3B3; --rule: var(--c-paper); --rule-soft: #4A4746; --bg: var(--c-ink); --bg-elev: #2A2827; --focus: var(--c-paper); }
.hero--cover .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; min-height: min(78vh, 760px); }
.hero--cover .hero__copy { grid-column: span 7; padding-block: clamp(3.5rem, 7vw, 7rem); padding-right: clamp(1rem, 4vw, 4rem); justify-content: center; }
.hero--cover .hero__panel { grid-column: 8 / -1; position: relative; min-height: 320px; }
.hero--cover .hero__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--cover .hero__panel::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c-paper); }
.hero--cover .kicker { color: #B8B3B3; }
.hero--cover .btn:not(.btn--primary) { border-color: var(--c-paper); color: var(--c-paper); }
.hero--cover .btn:not(.btn--primary):hover, .hero--cover .btn:not(.btn--primary):focus-visible { background: var(--c-paper); color: var(--c-ink); }
.hero--cover .hero__caption { position: absolute; left: 0; bottom: 0; background: var(--c-ink); color: #B8B3B3; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; padding: 0.5rem 0.75rem; }
@media (max-width: 1024px) {
  .hero--cover .hero__copy { grid-column: 1 / -1; padding-right: 0; }
  .hero--cover .hero__panel { grid-column: 1 / -1; min-height: 46vw; }
  .hero--cover .hero__panel::after { width: 100%; height: 2px; bottom: auto; }
}

/* Page heads on inner pages carry the painting as an edge strip (templates 05/06) */
.page-head--strip { position: relative; }
.page-head--strip .edge-strip { display: none; } /* retired 17 October 2026: it read as a cropped painting */

/* Full-bleed photo band (template 04) */
.band--photo img { height: clamp(220px, 34vw, 480px); }

/* Signal grain: a section with the grain image as a quiet texture behind paper, one per page at most */
.texture { position: relative; isolation: isolate; }
.texture > picture, .texture > .texture__img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.texture > picture, .texture > .texture__img { display: none; }
.texture > picture img, .texture__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; mix-blend-mode: multiply; }
/* The grain is art-directed for paper: shown in the Paper theme only, never on an inverse surface */
:root[data-theme="paper"] .texture > picture, :root[data-theme="paper"] .texture > .texture__img { display: block; }
:root[data-theme="paper"] .surface-inverse .texture > picture, :root[data-theme="paper"] .on-ink .texture > picture, :root[data-theme="paper"] .surface-inverse .texture__img, :root[data-theme="paper"] .on-ink .texture__img { display: none; }

/* Split CTA: duotone painting beside an ink statement panel (closing slide 09) */
.cta-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--c-ink); color: var(--c-paper); --fg: var(--c-paper); --fg-2: #B8B3B3; --rule: var(--c-paper); --rule-soft: #4A4746; --bg: var(--c-ink); --focus: var(--c-paper); border-top: var(--rule-w) solid var(--rule); }
.cta-split__img { grid-column: span 5; position: relative; min-height: 320px; }
.cta-split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-split__body { grid-column: 6 / -1; padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; gap: var(--space-6); justify-content: center; }
.cta-split .btn:not(.btn--primary) { border-color: var(--c-paper); color: var(--c-paper); }
.cta-split .btn:not(.btn--primary):hover, .cta-split .btn:not(.btn--primary):focus-visible { background: var(--c-paper); color: var(--c-ink); }
@media (max-width: 1024px) { .cta-split__img, .cta-split__body { grid-column: 1 / -1; } .cta-split__img { min-height: 44vw; } }

/* Offer ladder additions */
.ladder td.price, .ladder th.price { font-family: var(--f-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder .pos { display: block; font-size: var(--fs-small); color: var(--fg-2); font-weight: 400; margin-top: 0.2rem; }
.stack-table .table-ledger tfoot td { border-top: var(--rule-w) solid var(--rule); font-weight: 500; }
.governance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); border-top: var(--rule-w) solid var(--rule); }
.governance > div { padding-top: var(--space-4); }
.governance .idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); display: block; margin-bottom: var(--space-3); }
.governance h3 { font-size: var(--fs-h4); margin-bottom: 0.375rem; }
.governance p { font-size: var(--fs-small); color: var(--fg-2); }
@media (max-width: 1024px) { .governance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .governance { grid-template-columns: 1fr; } }

/* ==========================================================================
   Revision 10 October 2026 — paper hero with live figure, abstracts, interactive figures, evidence stepper, state-price calculator
   ========================================================================== */
.hero--figure { background: var(--bg); color: var(--fg); padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5rem); }
.hero--figure .hero__grid { align-items: center; }
.hero--figure .hero__copy { grid-column: span 6; }
.hero--figure .hero__fig { grid-column: 7 / -1; }
.hero--figure .hero__fig .fig { border: 0; padding: 0; background: none; } /* frameless: the figure sits on the ground (brand p.26) */
.hero--figure .display { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.75rem); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; margin-top: 0; }
.hero--figure .lede { font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem); }
/* the German H1 runs to four lines in the half-width column; a smaller size keeps the CTA above the fold at 1366 × 768 */
:lang(de) .hero--figure .display { font-size: clamp(2rem, 0.8rem + 3.1vw, 4.1rem); }
@media (max-width: 1024px) { .hero--figure .hero__copy, .hero--figure .hero__fig { grid-column: 1 / -1; } }

/* Practice strip: the three words */
.practice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.practice > div { padding: var(--space-5) var(--space-5) var(--space-5) 0; border-right: var(--rule-soft-w) solid var(--rule-soft); }
.practice > div:last-child { border-right: 0; }
.practice > div + div { padding-left: var(--space-5); }
.practice .idx { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-2); display: block; margin-bottom: 0.5rem; }
.practice h2, .practice h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: var(--ls-title); margin-bottom: 0.5rem; }
.practice p { font-size: var(--fs-small); color: var(--fg-2); }
@media (max-width: 800px) { .practice { grid-template-columns: 1fr; } .practice > div, .practice > div + div { border-right: 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); padding-left: 0; } .practice > div:last-child { border-bottom: 0; } }

/* Abstract block before the full text */
.abstract { border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-soft-w) solid var(--rule-soft); padding: var(--space-5) 0; margin-top: var(--space-6); display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-5); }
.abstract .label { padding-top: 0.25rem; }
.abstract p { font-size: 1.0625rem; line-height: 1.5; max-width: 66ch; }
.abstract .abstract__facts { margin-top: var(--space-4); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (max-width: 640px) { .abstract { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Interactive figures */
.fig--interactive .fig__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; padding: var(--space-3) 0; }
.fig--interactive .fig__tools .label { margin-right: 0.5rem; }
.fig--interactive .fig__tools .filter { min-height: 32px; padding: 0.25rem 0.625rem; }
.fig--interactive .fig__tools .filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fig__hint { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--fg-2); letter-spacing: var(--ls-label); text-transform: uppercase; padding-top: 0.5rem; }
.chart .shade { fill: var(--fg); opacity: 0.18; }   /* in-plot regime shading, secondary to the ribbon */
.chart .ribbon { fill: var(--chart-regime); }       /* regime ribbon below the plot · #8E8989, 4.81:1 on ink, 3.09:1 on paper */
.chart .ribbon-track { fill: none; stroke: var(--rule-soft); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart .band { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .band--mean { stroke-dasharray: 1 3; }
.chart .event { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.6; }
.fig__legend .sw--shade { width: 1rem; height: 0.5rem; background: var(--chart-regime); }
.fig__legend .sw--band { width: 1.25rem; height: 0; border-top: 1px dashed var(--fg-2); }
.fig__legend .sw--event { width: 0; height: 0.9rem; border-left: 1px dashed var(--fg); }
.fig--interactive .fig__plot svg { display: block; }

/* Evidence file stepper */
.evidence { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-6); border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-5); }
.evidence__steps { list-style: none; padding: 0; margin: 0; }
.evidence__steps li { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.evidence__steps [role="tab"] { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: baseline; width: 100%; text-align: left; padding: 0.875rem 0; min-height: var(--touch); font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h4); color: var(--fg-2); position: relative; }
.evidence__steps [role="tab"] .idx { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 400; }
.evidence__steps [role="tab"] .sub { display: block; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; margin-top: 0.25rem; }
.evidence__steps [role="tab"][aria-selected="true"] { color: var(--fg); }
.evidence__steps [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%); width: 0.5rem; height: 0.5rem; background: var(--fg); }   /* a navigation state in the foreground colour; cadmium stays with the verdict */
.evidence__progress { height: 2px; background: var(--rule-soft); margin-top: var(--space-4); position: relative; }
.evidence__progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fg); transition: width var(--t-base) var(--ease); }
.evidence__panels [role="tabpanel"] { display: grid; gap: var(--space-4); }
.evidence__panels [role="tabpanel"][hidden] { display: none; }
.evidence__nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: var(--space-4); }
@media (max-width: 1024px) { .evidence { grid-template-columns: 1fr; } .evidence__steps [role="tab"][aria-selected="true"]::before { left: -0.75rem; width: 0.4rem; height: 0.4rem; } }

/* State-price calculator */
.arb { border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-5); display: grid; gap: var(--space-5); }
.arb__table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: var(--fs-mono); }
.arb__table th, .arb__table td { padding: 0.375rem 0.5rem 0.375rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); text-align: left; vertical-align: middle; }
.arb__table th.n, .arb__table td.n { text-align: right; }
.arb__table thead th { font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); color: var(--fg-2); border-bottom: var(--rule-w) solid var(--rule); }
.arb__table input { width: 5.5rem; min-height: 36px; padding: 0.25rem 0.5rem; text-align: right; background: var(--bg-elev); border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); font: inherit; color: inherit; }
.arb__table td:last-child input { border-bottom-color: var(--c-cadmium); border-bottom-width: 3px; }
.arb__verdict { border-left: var(--rule-w) solid var(--fg); padding: var(--space-3) var(--space-4); background: var(--bg-elev); font-size: var(--fs-small); }
.arb__verdict.is-neg, .arb__verdict.is-res { border-left-color: var(--c-cadmium); }
.arb__out .decision { background: var(--c-cadmium); color: var(--c-ink); padding: 0 0.25rem; }

/* Matrix / equation display */
.matrix { font-family: var(--f-mono); font-size: var(--fs-mono); border-collapse: collapse; }
.matrix td, .matrix th { padding: 0.375rem 0.75rem; text-align: right; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.matrix th { font-weight: 500; color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-label); }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix td.hi { background: var(--c-cadmium); color: var(--c-ink); }

/* Pipeline diagram */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: var(--rule-w) solid var(--rule); counter-reset: p; }
.pipeline > div { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-right: var(--rule-soft-w) solid var(--rule-soft); position: relative; }
.pipeline > div + div { padding-left: var(--space-4); }
.pipeline > div:last-child { border-right: 0; }
.pipeline > div::before { counter-increment: p; content: "0" counter(p); font-family: var(--f-mono); font-size: var(--fs-label); color: var(--fg-2); display: block; margin-bottom: 0.5rem; }
.pipeline h3 { font-size: var(--fs-small); font-weight: 600; margin-bottom: 0.25rem; }
.pipeline p { font-size: 0.8125rem; color: var(--fg-2); }
.pipeline > div.is-decision::before { background: var(--c-cadmium); color: var(--c-ink); display: inline-block; padding: 0 0.25rem; }
@media (max-width: 1024px) { .pipeline { grid-template-columns: repeat(3, 1fr); } .pipeline > div:nth-child(3) { border-right: 0; } .pipeline > div:nth-child(4) { padding-left: 0; } }
@media (max-width: 640px) { .pipeline { grid-template-columns: 1fr; } .pipeline > div, .pipeline > div + div { border-right: 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); padding-left: 0; } }

/* Ladder without prices */
.ladder td.terms { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); white-space: nowrap; }

/* Founder block */
.founder { display: grid; grid-template-columns: 8fr 4fr; gap: var(--space-6); border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-5); }
.founder .mark-tile { aspect-ratio: 1; width: 6rem; background: var(--c-cadmium); display: grid; place-items: center; }   /* a brand tile, not a portrait placeholder (VQ-19) */
.founder .mark-tile svg { width: 55%; height: auto; color: var(--c-ink); }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } .founder .mark-tile { max-width: 6rem; } }

/* research index · abstract disclosure */
.row-abstract { margin: 0.5rem 0 0.75rem; }
.row-abstract summary { cursor: pointer; list-style: none; display: inline-block; border-bottom: 1px solid var(--rule); padding-bottom: 0.125rem; }
.row-abstract summary::-webkit-details-marker { display: none; }
.row-abstract summary::after { content: ' +'; }
.row-abstract[open] summary::after { content: ' −'; }
.row-abstract p { max-width: 70ch; margin-top: 0.5rem; }

/* ==========================================================================
   Utilities replacing former inline style attributes (the production CSP sets style-src 'self',
   so style="…" in markup is blocked; JavaScript may still set element.style.x)
   ========================================================================== */
.list-indent { padding-left: 1.25rem; margin: 0; }
.band--plain { border: 0; }
.band figcaption.is-static { position: static; }
.band figcaption.is-static span { margin: 0.5rem 0 0; }
.link-mono--inline { min-height: auto; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.nowrap { white-space: nowrap; }

/* Root language page (dist/index.html), styled from this file instead of an inline <style> */
.redirect { padding: 2rem var(--gutter); }
.redirect h1 { font-size: 1rem; font-weight: 800; letter-spacing: var(--ls-wordmark); text-transform: uppercase; margin-bottom: 1rem; }

/* ==========================================================================
   Integration, 18 October 2026: rules requested by the research (G, R) and offer (M) tracks
   ========================================================================== */
/* Ladder: fifth "next step" column on Home and Engagements */
.ladder td.cta { white-space: nowrap; text-align: right; padding-right: 0; }
@media (max-width: 800px) { .ladder td.cta { grid-column: 1 / -1; text-align: left; } }
/* Full SHA-256 values wrap on phones (fallback to the <wbr> breaks the generators insert) */
code.hash, code[data-register-hash] { overflow-wrap: anywhere; word-break: break-all; }
/* Research notes: long title under the short H1, call-to-action box, note-specific disclosure */
.article-head__subtitle { margin-top: var(--space-3); color: var(--fg-2); max-width: 60ch; }
.article-cta { margin-top: var(--space-6); max-width: 66ch; }
.article-cta .btn-row { margin-top: var(--space-3); }
.disclosure-list > li { grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr); }
@media (max-width: 640px) { .disclosure-list > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } }
/* Self-assessment tools: one question group per phone screen (.rs-dim; the retired score script scrolled to the next fieldset) */
@media (max-width: 640px) { .rs-dim { min-height: calc(100svh - 9rem); } }
/* V3-14 · phones: every ladder row stacks the same way (level, name and product, timeline, fee, next step) */
@media (max-width: 640px) {
  .ladder tr { grid-template-columns: minmax(0, 1fr); }
  .ladder td, .ladder td.lvl, .ladder td.offer, .ladder td.fee, .ladder td.terms, .ladder td.cta, .ladder td.result { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .ladder td.terms { white-space: normal; }
  .ladder td.terms br { display: none; }
}

/* ==========================================================================
   Shared visual classes · visual upgrade of 21 October 2026 (VISUAL_SPEC § C5, track P).
   Usable by every track; tracks do not redefine them (they size and place them in their own files).
   ========================================================================== */
/* Hash glyph: SHA-256 drawn as 16 × 16 bits (bit i = row i/16, column i%16; build.py hash_glyph, register.js glyphSVG).
   Never a seal, stamp or certificate: it is the hash, drawn. */
.glyph { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.glyph__ground { fill: var(--glyph-ground); }
.glyph__on { fill: var(--glyph-on); }
.glyph--inv .glyph__ground { fill: var(--glyph-inv-ground); }
.glyph--inv .glyph__on { fill: var(--glyph-inv-on); }
/* The 64 hex characters as 16 rows of four, beside a glyph of the same height (one row per glyph row) */
.hexrows {
  display: grid; grid-template-rows: repeat(16, 1fr); align-items: center; margin: 0; padding: 0; background: none;
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; color: var(--fg-2); white-space: nowrap;
}
.hexrows > span { display: block; }
/* Caption under a data image: series · span · source · "historical values only; not a signal, not a forecast" (§ C6) */
.data-caption {
  font-family: var(--f-mono); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: 0; color: var(--fg-2);
  max-width: 72ch; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: break-word; margin: 0;
}
.data-caption a { color: var(--fg); }
/* Marks a drawing that is not data: "Schematic" / "Schema" */
.label-schematic {
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--fg-2);
}
/* Registry numerals (always aria-hidden next to real text, or the visible value of a labelled <dd>) */
.numeral {
  font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1; line-height: 0.9; letter-spacing: -0.02em;
}
.numeral--outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg-2); }
@supports not (-webkit-text-stroke: 1px black) { .numeral--outline { color: var(--fg-2); } }


/* Motion and reveal utilities, shared by every page (track P, visual upgrade of 21 October 2026).
   Contract (VISUAL_SPEC § C1): assets/js/motion.js adds html.motion-ok only with JavaScript, without a reduced-motion
   preference and while P1 is not in site.json visual_off. EVERY hidden-initial state is written under html.motion-ok,
   so visitors without JavaScript, with reduced motion or with P1 passed see every element complete. Elements in the
   first viewport are marked .is-revealed before html.motion-ok is set (no blink). Each element reveals once; motion.js
   adds .is-revealed and .is-in on reveal and .is-done 2.6 s later, which releases the reveal transitions so components
   keep their own (so --draw-dur must stay below 2400ms). Print: print.css forces the final state. */

/* --- Pass switch (shared contract 2): a fallback shows only when build.py appends its move id from visual_off --- */
[data-move-fallback] { display: none; }

:root { --reveal-dur: 480ms; --reveal-rise: 12px; }

/* --- [data-reveal] (empty) and the legacy "mask": fade and rise once --- */
html.motion-ok [data-reveal=""]:not(.is-done) { transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); }
html.motion-ok [data-reveal=""]:not(.is-revealed) { opacity: 0; transform: translateY(var(--reveal-rise)); }

/* --- [data-reveal="stagger"]: the parent stays, its direct children fade and rise in 70 ms steps (first 20 children) --- */
html.motion-ok [data-reveal="stagger"]:not(.is-done) > * {
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: calc(min(var(--i, 0), 20) * var(--stagger-step));
}
html.motion-ok [data-reveal="stagger"]:not(.is-revealed) > * { opacity: 0; transform: translateY(var(--reveal-rise)); }

/* --- [data-reveal="head"] (auto-tagged .section__head--l): the 2 px L-rule draws down, then kicker and heading rise --- */
html.motion-ok [data-reveal="head"]::before { transform-origin: top; }
html.motion-ok [data-reveal="head"]:not(.is-done)::before { transition: transform 420ms var(--ease-draw); }
html.motion-ok [data-reveal="head"]:not(.is-revealed)::before { transform: scaleY(0); }
html.motion-ok [data-reveal="head"]:not(.is-done) > * { transition: opacity var(--reveal-dur) var(--ease) 280ms, transform var(--reveal-dur) var(--ease) 280ms; }
html.motion-ok [data-reveal="head"]:not(.is-done) > .kicker { transition-delay: 120ms; }
html.motion-ok [data-reveal="head"]:not(.is-done) > h2,
html.motion-ok [data-reveal="head"]:not(.is-done) > .h2 { transition-delay: 200ms; }
html.motion-ok [data-reveal="head"]:not(.is-revealed) > * { opacity: 0; transform: translateY(8px); }

/* --- [data-draw] / [data-draw="wipe"] / legacy [data-reveal="mask"]: left-to-right wipe. Put it on an HTML wrapper or an
   OUTER <svg>, never on an inner SVG child. clip-path ends at inset(0) during the draw and is released by .is-done. --- */
html.motion-ok [data-draw]:not([data-draw="stroke"]):not(.is-done),
html.motion-ok [data-reveal="mask"]:not(.is-done) { transition: clip-path var(--draw-dur, 1200ms) var(--ease-draw); }
html.motion-ok [data-draw]:not([data-draw="stroke"]).is-revealed:not(.is-done),
html.motion-ok [data-reveal="mask"].is-revealed:not(.is-done) { clip-path: inset(0 0 0 0); }
html.motion-ok [data-draw]:not([data-draw="stroke"]):not([data-draw="down"]):not(.is-revealed),
html.motion-ok [data-reveal="mask"]:not(.is-revealed) { clip-path: inset(0 100% 0 0); }
/* [data-draw="down"]: top-to-bottom */
html.motion-ok [data-draw="down"]:not(.is-revealed) { clip-path: inset(0 0 100% 0); }

/* --- [data-draw="stroke"] on an <svg>, <g> or <path>: every element (or itself) with pathLength="1" draws its stroke.
   Such paths must carry pathLength="1" in the markup and must not use vector-effect: non-scaling-stroke. --- */
html.motion-ok [data-draw="stroke"] [pathLength="1"], html.motion-ok [data-draw="stroke"][pathLength="1"] { stroke-dasharray: 1 2; }
html.motion-ok [data-draw="stroke"]:not(.is-done) [pathLength="1"],
html.motion-ok [data-draw="stroke"][pathLength="1"]:not(.is-done) { transition: stroke-dashoffset var(--draw-dur, 1200ms) var(--ease-draw); }
html.motion-ok [data-draw="stroke"]:not(.is-revealed) [pathLength="1"],
html.motion-ok [data-draw="stroke"][pathLength="1"]:not(.is-revealed) { stroke-dashoffset: 1.001; }

/* --- .rule-anim (older markup): the 2 px top rule draws left to right once --- */
html.motion-ok .rule-anim:not(.is-done)::before { transition: transform var(--t-reveal) var(--ease); }
html.motion-ok .rule-anim:not(.is-in)::before { transform: scaleX(0); }

/* --- [data-count-to]: no CSS needed; the HTML text is the final value and motion.js counts up to it on reveal --- */


/* Home page visual layer, EN and DE (track H, visual upgrade of 21 October 2026).
   H1 trial field · H2 regime ribbon · H3 founder canvas panel · H4 registry band and RN-001 hash glyph · H5 the passage.
   Hidden-initial states live only under html.motion-ok (motion.js); without JS, with reduced motion and in print every
   element shows its complete final state. New elements carry data-move; replaced markup is kept as data-move-fallback. */

/* ---------- H1 · trial field inside the compact Overfitting Machine (the hero plate is ink in both themes) ---------- */
.trial-field { --tf-dot: var(--data-context); --tf-line: var(--data-line); --tf-label: var(--fg-2); --tf-grid: var(--chart-grid); display: grid; gap: var(--space-2); }
.trial-field[hidden] { display: none; }
.trial-field__box { position: relative; aspect-ratio: 620 / 330; }
.trial-field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trial-field__note { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); line-height: 1.5; color: var(--fg-2); max-width: 72ch; }
@media (max-width: 600px) { .trial-field__box { aspect-ratio: 4 / 3; } }
/* the dot strip (and its cadmium best dot) gives way to the field; it returns when H1 is passed, and in print */
:root:not([data-visual-off~="H1"]) .hero__plate .ofm__strip { display: none; }
/* No layout shift on load: the field takes no space until home-visual.js has moved it into the rendered plate, and the
   copy is aligned to the top of the hero so the taller plate never re-centres it. */
.hero__plate > .trial-field { display: none; }
:root:not([data-visual-off~="H1"]) .hero--figure .hero__grid { align-items: start; }
/* the plate is drawn by overfit.js: reserve a little less than its rendered height (EN 717–787 px, DE 743–812 px,
   measured on 21 October 2026), so the hero does not grow under the first paint */
@media (min-width: 1025px) {
  :root.js:not([data-visual-off~="H1"]) .hero--figure .hero__plate { --plate-min: 712px; min-height: var(--plate-min); }
  :root.js:not([data-visual-off~="H1"]):lang(de) .hero--figure .hero__plate { --plate-min: 738px; }
}
@media (min-width: 1280px) {
  :root.js .hero--figure .hero__plate { --plate-min: 738px; }
  :root.js:lang(de) .hero--figure .hero__plate { --plate-min: 762px; }
}
@media (min-width: 1440px) {
  :root.js .hero--figure .hero__plate { --plate-min: 780px; }
  :root.js:lang(de) .hero--figure .hero__plate { --plate-min: 805px; }
}

/* ---------- H2 · regime ribbon, full bleed between the hero and #proof ---------- */
.ribbon { margin: 0 0 var(--space-2); }
.ribbon__frame { --draw-dur: 1200ms; height: 132px; }
.ribbon__frame:empty { display: none; }
.ribbon__svg { display: block; width: 100%; height: 132px; overflow: visible; }
.ribbon__line { fill: none; stroke: var(--data-line); stroke-width: 2; stroke-linejoin: round; }
.ribbon__bars rect { fill: var(--data-context); }
.ribbon__zero { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 4; }
.ribbon__zl { font: 500 11px var(--f-mono); fill: var(--fg-2); letter-spacing: 0.04em; }
.ribbon__base { stroke: var(--rule); stroke-width: 2; }
.ribbon__ticks line { stroke: var(--rule-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ribbon__yl { font: 500 11px var(--f-mono); fill: var(--fg-2); letter-spacing: 0.04em; }
.ribbon > .data-caption { max-width: var(--max-w); margin-top: var(--space-3); }
.ribbon > .data-caption .link-mono { min-height: 0; vertical-align: baseline; display: inline; white-space: nowrap; }
/* Chrome's IntersectionObserver counts an element whose own clip-path hides it as not intersecting, so the observed
   frame stays unclipped and the wipe clips the svg inside it (same timing as the shared [data-draw] wipe). */
html.motion-ok .ribbon .ribbon__frame[data-draw]:not([data-draw="stroke"]):not([data-draw="down"]):not(.is-revealed) { clip-path: none; }
html.motion-ok .ribbon .ribbon__frame:not(.is-done) > svg { transition: clip-path var(--draw-dur) var(--ease-draw); }
html.motion-ok .ribbon .ribbon__frame:not(.is-revealed) > svg { clip-path: inset(0 100% 0 0); }
@media (max-width: 600px) {
  .ribbon__frame, .ribbon__svg { height: 72px; }
  .ribbon__yl:not(.ribbon__yl--10) { display: none; }
}

/* ---------- H3 · founder panel: DS-001 drawn as one gesture on a cadmium field ---------- */
.canvas-panel { --draw-dur: 1800ms; margin: 0; height: 100%; min-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--c-cadmium); color: var(--c-ink); }
.canvas-panel__title { margin: 0 var(--space-5); padding: var(--space-5) 0 var(--space-3); border-bottom: var(--rule-w) solid var(--c-ink); color: var(--c-ink); font-family: var(--f-mono); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.02em; max-width: none; }   /* LR-03/V-03: the series is named before the line is read */
.canvas-panel > svg { display: block; width: 100%; height: 100%; min-height: 0; }
.canvas-panel__cap.data-caption { color: var(--c-ink); max-width: none; margin: 0 var(--space-5); padding: var(--space-3) 0 var(--space-5); border-top: var(--rule-w) solid var(--c-ink); }
.cta-split__fallback[data-move-fallback] { display: none; }   /* the painting; build.py restores it when H3 is passed */
@media (max-width: 1024px) {
  .canvas-panel { height: auto; min-height: 0; }
  .canvas-panel > svg { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- H4 · registry band (build-time values) and the RN-001 hash glyph ---------- */
.registry-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--space-7); border-top: var(--rule-w) solid var(--rule); }
.registry-band > div { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-4) var(--space-5) 0; border-left: var(--rule-w) solid var(--rule); }
.registry-band > div:first-child { border-left: 0; padding-left: 0; }
.registry-band dd { margin: auto 0 0; color: var(--fg); font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.registry-band .numeral--date { font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.registry-band dd:empty::after { content: "\2014"; }
@media (max-width: 600px) {
  .registry-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registry-band > div { padding: var(--space-4) 0 var(--space-4) var(--space-4); }
  .registry-band > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .registry-band > div:nth-child(n + 3) { border-top: var(--rule-soft-w) solid var(--rule-soft); }
  .registry-band dd { font-size: 44px; }
  .registry-band .numeral--date { font-size: 20px; }
}
/* H4 passed: build.py restores the metaline with display: revert, which falls back to the browser's block; keep its flex row */
:root[data-visual-off~="H4"] .metaline--counters[data-move-fallback="H4"] { display: flex !important; }
.hashglyph { --glyph-size: 192px; margin: 0; display: grid; gap: var(--space-3); }   /* 12 px per bit row keeps the 12 px hex rows legible */
.hashglyph__pair { display: flex; align-items: flex-start; gap: var(--space-4); }
.hashglyph .glyph { flex: none; width: var(--glyph-size); height: var(--glyph-size); outline: var(--rule-soft-w) solid var(--rule-soft); outline-offset: 3px; }
.hashglyph .hexrows { height: var(--glyph-size); }

/* ---------- H5 · the passage: six gates a hypothesis must survive (inside the #evidence inverse surface) ---------- */
.passage { --mark: 16px; --post: 40px; margin: 0 0 var(--space-7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4) var(--space-5); }
.passage__head, .passage > .data-caption { grid-column: 1 / -1; margin: 0; }
.passage__gates { --stagger-step: 200ms; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* one line through the gates: solid up to G4, dashed after it (the failure is recorded, not repaired) */
.passage__gates::before, .passage__gates::after { content: ""; position: absolute; top: calc(var(--post) / 2 - 1px); height: 0; border-top: var(--rule-w) solid var(--fg); transform-origin: left center; }
.passage__gates::before { left: 0; width: 58.3333%; }
.passage__gates::after { left: 58.3333%; right: 0; border-top-style: dashed; }
.passage__gate { position: relative; z-index: 1; min-width: 0; }   /* gates sit above the line, also while they fade in */
.passage__gate button { position: relative; display: grid; grid-template-areas: "mark" "id" "name" "res"; justify-items: center; align-content: start; gap: 0.25rem; width: 100%; min-height: var(--touch); padding: 0 0.25rem var(--space-2); text-align: center; color: var(--fg); }
.passage__gate button::before { content: ""; position: absolute; top: 0; left: 50%; height: var(--post); margin-left: -1px; border-left: var(--rule-w) solid var(--fg); }
.passage__mark { grid-area: mark; position: relative; z-index: 1; width: var(--mark); height: var(--mark); margin: calc((var(--post) - var(--mark)) / 2) 0 calc((var(--post) - var(--mark)) / 2 + var(--space-2)); border: 1.5px solid var(--fg); background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.is-yes .passage__mark { background: var(--fg); }
.is-partial .passage__mark { background: linear-gradient(90deg, var(--fg) 50%, var(--bg) 50%); }
.is-no .passage__mark { background: var(--c-cadmium); border-color: var(--c-ink); }   /* the section's one cadmium square, outlined in ink */
.passage__id { grid-area: id; color: var(--fg-2); }
.passage__name { grid-area: name; font-family: var(--f-display); font-weight: 600; font-size: clamp(0.9375rem, 0.85rem + 0.25vw, 1.0625rem); line-height: 1.2; hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.passage__res { grid-area: res; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.passage__gate button:hover .passage__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.passage__gate button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.passage__verdict { margin: 0; padding-top: calc(var(--post) / 2 - 0.75em); font-family: var(--f-display); font-size: var(--fs-h4); line-height: 1.5; white-space: nowrap; }
.passage__verdict strong { font-weight: 800; }
/* motion: the line draws, the gates follow it (200 ms steps), the verdict comes last */
html.motion-ok .passage__gates::before { transition: transform 700ms var(--ease-draw, cubic-bezier(0.65, 0, 0.35, 1)); }
html.motion-ok .passage__gates::after { transition: transform 500ms var(--ease-draw, cubic-bezier(0.65, 0, 0.35, 1)) 700ms; }
html.motion-ok .passage__gates:not(.is-in)::before, html.motion-ok .passage__gates:not(.is-in)::after { transform: scaleX(0); }
html.motion-ok .passage__verdict { transition: opacity 400ms var(--ease) 1200ms; }
html.motion-ok .passage__gates:not(.is-in) + .passage__verdict { opacity: 0; }
@media (max-width: 800px) {
  .passage { grid-template-columns: minmax(0, 1fr); }
  .passage__gates { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .passage__gates::before, .passage__gates::after { top: 0; left: calc(var(--post) / 2 - 1px); width: 0; height: 58.3333%; border-top: 0; border-left: var(--rule-w) solid var(--fg); transform-origin: center top; }
  .passage__gates::after { top: 58.3333%; bottom: 0; height: auto; border-left-style: dashed; }
  .passage__gate button { grid-template-areas: "mark id name res"; grid-template-columns: var(--post) auto minmax(0, 1fr) auto; justify-items: start; align-items: center; align-content: center; column-gap: var(--space-3); height: 100%; min-height: 52px; padding: 0 0.25rem 0 0; text-align: left; }
  .passage__gate button::before { top: 50%; left: 0; width: var(--post); height: 0; margin: 0; border-left: 0; border-top: var(--rule-w) solid var(--fg); }
  .passage__mark { margin: 0 0 0 calc((var(--post) - var(--mark)) / 2); }
  .passage__res { justify-self: end; }
  .passage__verdict { padding: var(--space-2) 0 0; white-space: normal; }
  html.motion-ok .passage__gates:not(.is-in)::before, html.motion-ok .passage__gates:not(.is-in)::after { transform: scaleY(0); }
}
/* step 04 opened from a gate: the matching matrix row is framed until another step is shown */
.evidence tr.is-hl > td { background: var(--bg-elev); box-shadow: inset 0 var(--rule-w) 0 var(--fg), inset 0 calc(-1 * var(--rule-w)) 0 var(--fg); }

.hero__plate .ofm__formula--strip { display: none; }   /* V-06: replaced on screen by the trial-field sentence */
@media print {
  .hero__plate .ofm__strip { display: block !important; }
  .hero__plate .ofm__formula--strip { display: block !important; }
  .hero__plate .ofm-best { fill: #201E1D !important; stroke: #201E1D !important; }   /* V-15: no cadmium dot on paper */
  .passage__gates::before, .passage__gates::after { transform: none !important; transition: none !important; }
  .passage__verdict { opacity: 1 !important; }
  .passage__gate button::before { border-color: #000; }
  .registry-band, .hashglyph { break-inside: avoid; }
}


/* Engagements, company and home offer overview visual layer, EN and DE (track M, visual upgrade of 21 October 2026; offer overview and Dashboard block, track O, 19 November 2026).
   Moves M1–M4 of docs/17. Every new element carries data-move="M…" (hidden by build.py when its id is in site.json visual_off).
   Hidden-initial motion states live under html.motion-ok only (motion.js), so no-JS and reduced-motion visitors see the final state.
   No new cadmium except the M2 gate square (the one decision point of #process). Colours come from tokens; data tokens fall back
   to the chart tokens until tokens.css carries --data-line / --data-context. */

/* ---------------------------------------------------------------- M1 · numbered sheets (Engagements / Leistungen): Service 1, Service 2 and the Dashboard schematic */
/* Wipe for M1 schematics and the M3 drawing: the OBSERVED element is the unclipped wrapper ([data-reveal="wipe-child"]) and
   only its <svg> is clipped. Reason: Chromium's IntersectionObserver applies a target's own clip-path, so a target that starts at
   clip-path: inset(0 100% 0 0) reports an intersection ratio of 0 and never reaches the reveal threshold below the first viewport. */
html.motion-ok [data-reveal="wipe-child"] > svg { clip-path: inset(-4px); transition: clip-path var(--draw-dur, 1200ms) var(--ease-draw, cubic-bezier(0.65, 0, 0.35, 1)); }
html.motion-ok [data-reveal="wipe-child"]:not(.is-revealed) > svg { clip-path: inset(-4px 100% -4px -4px); }
/* the S6 svg carries data-draw from build.py; its own clip is replaced by the wrapper-driven wipe above */
html.motion-ok .signals .signals__frame[data-reveal="wipe-child"] > svg[data-draw] { clip-path: inset(-4px); transition: clip-path 1600ms var(--ease-draw, cubic-bezier(0.65, 0, 0.35, 1)); }
html.motion-ok .signals .signals__frame[data-reveal="wipe-child"]:not(.is-revealed) > svg[data-draw] { clip-path: inset(-4px 100% -4px -4px); }

.level__numeral { display: block; font-size: 180px; line-height: 0.8; margin: 0 0 var(--space-5) -0.03em; }
.level__numeral:not(.numeral--outline) { color: var(--fg); }
:root:not([data-visual-off~="M1"]) .level__body { align-content: start; }   /* the schematic row must not stretch with the tall head column */
.level__art { grid-column: 1 / -1; margin: 0; max-width: 320px; }
.level__art svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 96; overflow: visible; --draw-dur: 1100ms; }
.level__art figcaption { margin-top: var(--space-2); }
.level__art text { font-family: var(--f-mono); font-size: 11px; fill: var(--fg-2); }
.level__art .sx-cell { fill: none; stroke: var(--data-context, var(--chart-regime)); stroke-width: 1; }
.level__art .sx-sheet__page { fill: var(--bg); stroke: var(--data-line, var(--chart-subject)); stroke-width: 1.5; }
.level__art .sx-sheet__fold { fill: none; stroke: var(--data-line, var(--chart-subject)); stroke-width: 1.5; }
.level__art .sx-sheet__lines { fill: none; stroke: var(--data-context, var(--chart-regime)); stroke-width: 1; }
.level__art .sx-sheet__n { fill: var(--fg); }
.level__art .sx-sheet--verdict .sx-sheet__page { fill: var(--fg); stroke: var(--fg); }
.level__art .sx-sheet--verdict .sx-sheet__fold,
.level__art .sx-sheet--verdict .sx-sheet__lines { stroke: var(--bg); }
.level__art .sx-sheet--verdict .sx-sheet__n { fill: var(--bg); }
.level__art .sx-line { fill: none; stroke: var(--data-line, var(--chart-subject)); stroke-width: 1.5; }
.level__art .sx-line--rail { stroke-width: 2; }
.level__art .sx-box { fill: var(--bg); stroke: var(--data-context, var(--chart-regime)); stroke-width: 1.5; }
.level__art .sx-box--key { stroke: var(--data-line, var(--chart-subject)); stroke-width: 2; }
.level__art .sx-t--key { fill: var(--fg); }
.level__art .sx-mark { fill: none; stroke: var(--data-context, var(--chart-regime)); stroke-width: 1; }
.level__art .sx-fill { fill: var(--data-line, var(--chart-subject)); }
.level__art .sx-tick { fill: none; stroke: var(--data-line, var(--chart-subject)); stroke-width: 1; }
.level__art .sx-q { fill: var(--data-context, var(--chart-regime)); }
.level__art .sx-box--dash { stroke-dasharray: 3 3; }
@media (max-width: 600px) { .level__numeral { font-size: 96px; margin-bottom: var(--space-4); } }

/* ---------------------------------------------------------------- M2 · the 12-week plan drawn (#process)
   24 half-week columns, so the gate sits exactly where M2 ends and M3 begins inside week 6 (table: M2 3–6, M3 6–10, M4 10–12). */
.timeline-fig { margin: 0 0 var(--space-7); }
.timeline {
  --tl-bar-h: 2.5rem;
  position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: auto minmax(var(--tl-bar-h), auto) var(--tl-bar-h) 2.25rem var(--tl-bar-h) minmax(var(--tl-bar-h), auto) auto auto;
  row-gap: 0.5rem; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.25; color: var(--fg);
}
.timeline::before {   /* week grid behind the bars */
  content: ""; grid-row: 2 / 7; grid-column: 1 / -1; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--rule-soft) 1px, transparent 1px); background-size: calc(100% / 12) 100%;
  box-shadow: inset -1px 0 0 var(--rule-soft);
}
.tl-axis { display: contents; }
.tl-axis i { grid-row: 1; grid-column: span 2; font-style: normal; font-size: var(--fs-label); line-height: 1; color: var(--fg-2); padding: 0 0 0.375rem 0.375rem; }
.tl-bar { position: relative; z-index: 1; display: flex; align-items: center; min-width: 0; padding: 0.25rem 0.625rem; border: var(--rule-w) solid var(--fg); background: var(--bg); overflow-wrap: anywhere; }
.tl-m1 { grid-row: 2; grid-column: 1 / 5; }
.tl-m2 { grid-row: 3; grid-column: 5 / 12; }
.tl-m3 { grid-row: 5; grid-column: 12 / 20; }
.tl-m4 { grid-row: 6; grid-column: 20 / 25; }
.tl-gate { grid-row: 3 / 6; grid-column: 12 / -1; position: relative; z-index: 2; display: flex; align-items: center; gap: 0.625rem; border-left: var(--rule-w) solid var(--fg); color: var(--fg); pointer-events: none; }
.tl-gate__sq { flex: none; width: 0.875rem; height: 0.875rem; margin-left: calc(-0.4375rem - var(--rule-w) / 2); background: var(--c-cadmium); border: 1.5px solid var(--c-ink); }
.tl-brk { position: relative; margin-top: 0.875rem; padding-top: 0.5rem; border-top: 1px solid var(--fg-2); color: var(--fg-2); font-size: var(--fs-label); line-height: 1.3; }
.tl-brk::before, .tl-brk::after { content: ""; position: absolute; top: -0.5rem; height: 0.5rem; border-left: 1px solid var(--fg-2); }
.tl-brk::before { left: 0; }
.tl-brk::after { right: 0; }
.tl-brk--ai { grid-row: 7; grid-column: 1 / 12; }
.tl-brk--cn { grid-row: 8; grid-column: 1 / -1; margin-top: 0.5rem; }
.timeline-fig .data-caption { margin-top: var(--space-4); }

/* phones: weeks run downward (rows are half-weeks; row 12 is the gate), labels to the right, brackets as vertical rules */
@media (max-width: 600px) {
  .timeline { grid-template-columns: 2.25rem minmax(0, 1fr) 1.75rem 1.75rem; grid-template-rows: repeat(11, 1rem) auto repeat(13, 1rem); row-gap: 0; }
  .timeline::before { display: none; }
  .tl-axis i { grid-column: 1; padding: 0.1875rem 0 0; border-top: 1px solid var(--rule-soft); }
  .tl-axis i:nth-child(1) { grid-row: 1 / 3; } .tl-axis i:nth-child(2) { grid-row: 3 / 5; } .tl-axis i:nth-child(3) { grid-row: 5 / 7; }
  .tl-axis i:nth-child(4) { grid-row: 7 / 9; } .tl-axis i:nth-child(5) { grid-row: 9 / 11; } .tl-axis i:nth-child(6) { grid-row: 11 / 14; }
  .tl-axis i:nth-child(7) { grid-row: 14 / 16; } .tl-axis i:nth-child(8) { grid-row: 16 / 18; } .tl-axis i:nth-child(9) { grid-row: 18 / 20; }
  .tl-axis i:nth-child(10) { grid-row: 20 / 22; } .tl-axis i:nth-child(11) { grid-row: 22 / 24; } .tl-axis i:nth-child(12) { grid-row: 24 / 26; }
  .tl-bar { align-items: flex-start; margin-bottom: 3px; padding: 0.375rem 0.625rem; }
  .tl-m1 { grid-column: 2; grid-row: 1 / 5; }
  .tl-m2 { grid-column: 2; grid-row: 5 / 12; }
  .tl-m3 { grid-column: 2; grid-row: 13 / 21; }
  .tl-m4 { grid-column: 2; grid-row: 21 / 26; }
  .tl-gate { grid-column: 2; grid-row: 12; align-items: flex-start; border-left: 0; border-top: var(--rule-w) solid var(--fg); margin: 0.375rem 0 0.75rem; padding-top: 0.625rem; }
  .tl-gate__sq { margin: calc(-0.625rem - 0.4375rem - var(--rule-w) / 2) 0 0 0; }
  .tl-brk { writing-mode: vertical-rl; margin: 0 0 3px 0.5rem; padding: 0 0 0 0.25rem; border-top: 0; border-left: 1px solid var(--fg-2); line-height: 1.1; }
  .tl-brk::before, .tl-brk::after { left: -0.375rem; right: auto; width: 0.375rem; height: 0; border-left: 0; border-top: 1px solid var(--fg-2); }
  .tl-brk::before { top: 0; }
  .tl-brk::after { top: auto; bottom: 0; }
  .tl-brk--ai { grid-column: 3; grid-row: 1 / 12; }
  .tl-brk--cn { grid-column: 4; grid-row: 1 / 26; margin-top: 0; }
}

/* motion: bars grow left to right (phones: top to bottom), 150 ms apart; the gate square and the brackets come last */
html.motion-ok .timeline-fig .timeline[data-reveal] > * { opacity: 1; transform: none; transition: none; }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-bar { transition: clip-path 560ms var(--ease-draw, cubic-bezier(0.65, 0, 0.35, 1)); }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-m2 { transition-delay: 150ms; }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-m3 { transition-delay: 300ms; }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-m4 { transition-delay: 450ms; }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-gate,
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-brk { transition: opacity 420ms var(--ease) 820ms; }
html.motion-ok .timeline-fig .timeline[data-reveal] > .tl-brk--cn { transition-delay: 920ms; }
html.motion-ok .timeline-fig .timeline[data-reveal]:not(.is-revealed) > .tl-bar { clip-path: inset(0 100% 0 0); }
html.motion-ok .timeline-fig .timeline[data-reveal]:not(.is-revealed) > .tl-gate,
html.motion-ok .timeline-fig .timeline[data-reveal]:not(.is-revealed) > .tl-brk { opacity: 0; }
@media (max-width: 600px) { html.motion-ok .timeline-fig .timeline[data-reveal]:not(.is-revealed) > .tl-bar { clip-path: inset(0 0 100% 0); } }

/* ---------------------------------------------------------------- M3 · five public series drawn into one line (#mission) */
.signals { margin: 0; align-self: start; }
/* the codes sit in a left gutter beside their lanes, so no label covers the start of a series */
.signals__frame { position: relative; }
.signals__frame > svg { display: block; width: calc(100% - 3.25rem); height: auto; aspect-ratio: 2 / 1; margin-left: 3.25rem; overflow: visible; --draw-dur: 1600ms; }
.signals .signals__in { fill: none; stroke: var(--data-context, var(--chart-regime)); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.signals .signals__trunk { fill: none; stroke: var(--fg); stroke-width: 2; vector-effect: non-scaling-stroke; }   /* V-13: the convergence carries */
.signals__codes { position: absolute; inset: 10% auto 10% 0; display: grid; grid-template-rows: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 1; color: var(--fg-2); pointer-events: none; }
.signals__codes li { align-self: center; justify-self: start; }
.signals figcaption { margin-top: var(--space-3); }

/* ---------------------------------------------------------------- M4 · self-assessment result ascent (.rs-ascent; kept for the self-assessment tools, unused by the offer pages) */
.rs-ascent { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.rs-ascent li { position: relative; min-height: 4.5rem; margin: 0; padding: 0.625rem 0.25rem 0 0.4375rem; border-top: var(--rule-w) solid var(--rule-soft); font-size: 0.8125rem; line-height: 1.25; color: var(--fg-2); hyphens: manual; overflow-wrap: anywhere; }
.rs-ascent li .mono { display: block; margin-bottom: 0.25rem; font-size: var(--fs-label); line-height: 1.2; text-transform: uppercase; letter-spacing: var(--ls-label); }
.rs-ascent li:nth-child(2) { margin-bottom: 12px; }
.rs-ascent li:nth-child(3) { margin-bottom: 24px; }
.rs-ascent li:nth-child(4) { margin-bottom: 36px; }
.rs-ascent li + li::after { content: ""; position: absolute; left: 0; top: calc(-1 * var(--rule-w)); height: calc(12px + var(--rule-w)); border-left: var(--rule-w) solid var(--rule-soft); }
.rs-ascent li[aria-current="step"] { border-top-color: var(--fg); color: var(--fg); font-weight: 600; }
.rs-ascent li[aria-current="step"] .mono { font-weight: 500; }
.rs-ascent li[aria-current="step"]::before {   /* the marker: an ink square (paper on Ink), never cadmium; borders so it prints */
  content: ""; position: absolute; left: 0.4375rem; bottom: calc(100% + var(--rule-w) + 2px); width: 0; height: 0; border: 6px solid var(--fg);
  transition: transform 600ms var(--ease);
}
.rs-ascent li.is-from::before { transform: translate(var(--rs-dx, 0), var(--rs-dy, 0)); transition: none; }
/* narrow score column (phones, and 801–1359 px where the score takes four of twelve columns) and print: a vertical ascent */
@media screen and (max-width: 600px), screen and (min-width: 801px) and (max-width: 1359px), print {
  .rs-ascent { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .rs-ascent li { min-height: 0; padding: 0.5rem 0 0.5rem 1.375rem; font-size: var(--fs-small); }
  .rs-ascent li .mono { display: inline; margin: 0 0.375rem 0 0; }
  .rs-ascent li:nth-child(2) { margin: 0 0 0 12px; }
  .rs-ascent li:nth-child(3) { margin: 0 0 0 24px; }
  .rs-ascent li:nth-child(4) { margin: 0 0 0 36px; }
  .rs-ascent li + li::after { display: none; }
  .rs-ascent li[aria-current="step"]::before { left: 0; bottom: auto; top: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .rs-ascent li::before { transition: none; } }

/* V-07: on phones the milestone table stacks each row as a labelled block (no horizontal clipping under M2) */
@media (max-width: 600px) {
  .table-ledger--stack, .table-ledger--stack tbody, .table-ledger--stack tr, .table-ledger--stack td { display: block; width: 100%; }
  .table-ledger--stack caption { display: block; white-space: normal; overflow-wrap: anywhere; }
  .table-ledger--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-ledger--stack tr { padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
  .table-ledger--stack tbody tr:first-child { border-top: var(--rule-w) solid var(--rule); }
  .table-ledger--stack td, .table-ledger--stack td.n { border: 0; padding: 0.125rem 0; text-align: left; }
  .table-ledger--stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
  .table-ledger--stack td:first-child[data-label]::before { display: none; }
  .table-ledger--stack td:first-child { font-weight: 500; padding-bottom: var(--space-2); }
}

/* ---------------------------------------------------------------- print (always Paper; decorative figures carry .no-print) */
@media print {
  .level__numeral { font-size: 40pt; line-height: 1; margin: 0 0 4pt; color: #000 !important; -webkit-text-stroke: 0 !important; }
  .rs-ascent { margin-top: 10pt; }
  .rs-ascent li { break-inside: avoid; }
  .rs-ascent li::before { transform: none !important; }
  :root:not([data-visual-off~="M4"]) .rs-bars .track i { transform: none !important; }
}

:root[data-visual-off~="M3"] #mission .c-5 { grid-column-end: span 8; }   /* M3 passed: the mission text takes its former width */

/* ---------------------------------------------------------------- Offer overview (Home #levels, Engagements #levels), 19 November 2026
   Free tools, two services and one software licence in one table; the paid rows start under a full rule. No prices anywhere:
   the terms column reads "Free" or "Quoted after the intake call". */
.ladder--offer tbody tr.is-paid-first > td { border-top: var(--rule-w) solid var(--rule); }
.ladder--offer td.offer .pos { max-width: 46ch; }
@media (max-width: 800px) { .ladder--offer tbody tr.is-paid-first { border-top: var(--rule-w) solid var(--rule); } .ladder--offer tbody tr.is-paid-first > td { border-top: 0; } }
/* the retired ids #level-0 and #level-3 land on the overview instead of nowhere */
.anchor-alias { display: block; height: 0; overflow: hidden; }
/* B2B line beside every call to action on the offer pages and in the intake form (decision 1 of 19 November 2026) */
.page-head > .btn-row, .page-head > .offer-b2b { grid-column: 1 / span 8; }
@media (max-width: 1024px) { .page-head > .btn-row, .page-head > .offer-b2b { grid-column: 1 / -1; } }
@media (max-width: 800px) { .ladder--offer td.terms--dup { display: none; } }   /* the type cell already says Free */
.offer-b2b { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0; font-family: var(--f-mono); font-size: var(--fs-mono); line-height: 1.45; color: var(--fg); }
.offer-b2b::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border: var(--rule-w) solid var(--fg); transform: translateY(-0.05em); }
.form .offer-b2b { margin-top: var(--space-4); }
.stack > .offer-b2b { font-size: var(--fs-label); }

/* the B2B line, the boundary and the next step directly under the overview table */
.offer-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-5) var(--space-7); margin-top: var(--space-5); }
.offer-foot__text { display: grid; gap: var(--space-2); max-width: 64ch; }
.offer-foot__text p { margin: 0; }

/* Home: the Algorithmic Dashboard in brief, beside the six states of the weekly review (a legend, not a screen of the software) */
.offer-product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); margin-top: var(--space-8); padding-top: var(--space-6); border-top: var(--rule-w) solid var(--rule); }
.offer-product__copy { grid-column: span 6; }
.offer-product__copy .h3 { max-width: 24ch; }
.offer-product__copy p { max-width: 60ch; }
.offer-product__copy .btn-row { margin-top: var(--space-5); align-items: center; }
.offer-product__states { grid-column: 8 / -1; align-self: start; margin: 0; }
.states { margin: 0; border-top: var(--rule-w) solid var(--rule); }
.states__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-4); padding: 0.75rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.states dt { display: flex; align-items: center; gap: 0.625rem; margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--fg); }
.states dd { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--fg-2); }
.states__mark { position: relative; flex: none; width: 0.875rem; height: 0.875rem; border: 1.5px solid var(--fg); background: transparent; }
.states__row--run .states__mark { background: var(--fg); }
.states__row--watch .states__mark { background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.states__row--resize .states__mark { background: linear-gradient(0deg, var(--fg) 50%, transparent 50%); }
.states__row--pause .states__mark::before, .states__row--pause .states__mark::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 1.5px; background: var(--fg); }
.states__row--pause .states__mark::before { left: 3px; }
.states__row--pause .states__mark::after { right: 3px; }
.states__row--retire .states__mark { background: linear-gradient(135deg, transparent calc(50% - 0.75px), var(--fg) calc(50% - 0.75px), var(--fg) calc(50% + 0.75px), transparent calc(50% + 0.75px)); }
.states__row--unknown .states__mark { border-style: dashed; }
.offer-product__states .data-caption { margin-top: var(--space-3); }
@media (max-width: 1024px) { .offer-product__copy, .offer-product__states { grid-column: 1 / -1; } }
@media (max-width: 480px) { .states__row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }
@media print {
  .states__mark { border-color: #000 !important; }
  .states__row--run .states__mark { background: #000 !important; }
  .offer-product, .states__row { break-inside: avoid; }
}


/* Algorithmic Dashboard product page and simulated demo, EN and DE (track D, final version of 19 November 2026).
   Every demo surface carries the dashed label "Simulated · synthetic data · not a track record". Colours come from the theme
   tokens only (Ink and Paper); cadmium marks the client's decision (RESIZE, PAUSE or RETIRE to confirm), WATCH is hatched,
   UNKNOWN dashed and a held pause grey, so no state depends on colour alone and every state is also written out.
   No hidden-initial state lives here: reveals use motion.css ([data-reveal], [data-draw]) on elements the script never
   replaces; the few transitions use the motion tokens, which reduced motion sets to 0 ms. Moves: D1 demo panels and the head's preview card,
   D2 hash chain drawn as 16 × 16 bits, D3 phone Glance (site.json visual_off hides them and restores their fallbacks). */

/* --- page head and the business-only line ---------------------------------------------------------------------------- */
.dd-head > .btn-row, .dd-head > .dd-b2b { grid-column: 1 / span 8; }
.dd-b2b { font-family: var(--f-mono); font-size: var(--fs-mono); line-height: var(--lh-mono); color: var(--fg-2); }
.dd-head > .dd-b2b { margin-top: calc(-1 * var(--space-2)); }
.dd-head .meta dd, .dd-cta__side .meta dd, .dd-head > .title { hyphens: manual; -webkit-hyphens: manual; }   /* the H1 breaks between words, never inside one (VQ-12) */
@media (max-width: 1024px) { .dd-head > .btn-row, .dd-head > .dd-b2b { grid-column: 1 / -1; } }

/* --- the product preview in the page head (VQ-05): a static week-12 card, part of D1 ----------------------------------
   Plain HTML written by src/tools/dashboard_snapshot.py from the demo's own render (same glyph classes), so it shows with
   JavaScript off and with reduced motion, and the demo never redraws it. On a wide screen it stands in the right-hand column
   and the four facts move under the lede; on tablets and phones it follows the H1 directly. The S-01 glyph keeps its is-act
   class but no cadmium here: the head's one cadmium point is its button (V-02). */
.dd-peek { margin: 0; min-width: 0; }
.dd-peek .dd-panel__bar { padding: var(--space-2) var(--space-4); }
.dd-peek .dd-panel__body { padding: var(--space-4) var(--space-4) var(--space-3); }
.dd-peek__head { font-size: 1.25rem; font-weight: 800; line-height: var(--lh-head); letter-spacing: var(--ls-title); margin-top: var(--space-2); text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
.dd-peek .dd-strip { margin-top: var(--space-4); }
.dd-peek .dd-strip__fill { height: 40px; }
.dd-peek .dd-strip__b { font-size: 0.6875rem; }   /* the five names keep a gap down to the 300 px card at 1025 px */
.dd-peek .dd-strip__b.is-act { --g-fg: var(--fg); --g-bg: transparent; --g-bd: var(--fg); }
.dd-peek__go { max-width: none; padding: 0 var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); }
@media (min-width: 1025px) {
  .dd-head > .dd-peek { grid-column: 9 / -1; grid-row: 2 / span 5; align-self: start; }   /* beside H1, lede, facts, button and business line */
  .dd-head > .page-head__aside { grid-column: 1 / span 8; grid-row: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .dd-head > .dd-peek { grid-column: 1 / -1; order: 1; max-width: 36rem; }
  .dd-head > .lede, .dd-head > .page-head__aside, .dd-head > .btn-row, .dd-head > .dd-b2b { order: 2; }
}

/* --- a section: text beside its demo panel --------------------------------------------------------------------------- */
.dd-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); align-items: start; }
.dd-sec__text { grid-column: 1 / span 4; }
.dd-sec__text > * + * { margin-top: var(--space-4); }
.dd-sec__text .h2 { max-width: 16ch; }
.dd-sec__text .ledger { margin-top: var(--space-5); }
.dd-sec__demo { grid-column: 5 / -1; display: grid; gap: var(--space-6); min-width: 0; }
.dd-try { font-family: var(--f-mono); font-size: var(--fs-mono); line-height: var(--lh-mono); color: var(--fg-2); border-left: var(--rule-w) solid var(--rule-soft); padding-left: var(--space-3); }
.dd-terms { margin: 0; }
.dd-terms > div { padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.dd-terms dt { font-weight: 600; font-size: var(--fs-small); }
.dd-terms dd { font-size: var(--fs-small); color: var(--fg-2); margin-top: 0.125rem; }
@media (max-width: 1024px) { .dd-sec__text, .dd-sec__demo { grid-column: 1 / -1; } .dd-sec__text .h2 { max-width: 20ch; } }

/* --- the demo panel ---------------------------------------------------------------------------------------------------- */
.dd-panel { border: var(--rule-soft-w) solid var(--rule-soft); border-top: var(--rule-w) solid var(--rule); background: var(--bg-elev); min-width: 0; }
.dd-panel__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
.dd-panel__body { padding: var(--space-5) var(--space-4); }
.dd-panel__foot { max-width: none; padding: var(--space-3) var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); font-size: var(--fs-small); color: var(--fg-2); }
@media (min-width: 641px) { .dd-panel__body { padding: var(--space-6); } .dd-panel__bar, .dd-panel__foot { padding-inline: var(--space-6); } }
.dd-sim { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; line-height: 1.4; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg); border: var(--rule-soft-w) dashed var(--fg-2); padding: 0.25rem 0.5rem; }
.dd-static { margin-top: var(--space-4); }

/* --- the six states ---------------------------------------------------------------------------------------------------- */
.dd-st { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); white-space: nowrap; color: var(--fg); }
.dd-st::before { content: ""; width: 0.75rem; height: 0.75rem; flex: none; border: 1.5px solid var(--g-bd); background: var(--g-bg); }
/* one glyph per state on every page (the home and Services set): shape carries the state, colour only the step.
   is-act: yellow ground, waits for the client's confirmation; is-held: grey, already confirmed and held. */
.dd-st, .dd-strip__b { --g-fg: var(--fg); --g-bg: transparent; --g-bd: var(--fg); }
.dd-st.is-act, .dd-strip__b.is-act { --g-fg: var(--c-ink); --g-bg: var(--c-cadmium); --g-bd: var(--c-cadmium); }
:root[data-theme="paper"] .dd-st.is-act, :root[data-theme="paper"] .dd-strip__b.is-act { --g-bd: var(--c-ink); }
.dd-st.is-held, .dd-strip__b.is-held { --g-fg: var(--fg-2); --g-bd: var(--fg-2); }
.dd-st--run::before, .dd-b--run .dd-strip__fill { background: var(--g-fg); }
.dd-st--watch::before, .dd-b--watch .dd-strip__fill { background: linear-gradient(90deg, var(--g-fg) 50%, var(--g-bg) 50%); }
.dd-st--resize::before, .dd-b--resize .dd-strip__fill { background: linear-gradient(0deg, var(--g-fg) 50%, var(--g-bg) 50%); }
.dd-st--pause::before, .dd-b--pause .dd-strip__fill { background: linear-gradient(90deg, var(--g-bg) 26%, var(--g-fg) 26% 40%, var(--g-bg) 40% 60%, var(--g-fg) 60% 74%, var(--g-bg) 74%); }
.dd-st--retire::before, .dd-b--retire .dd-strip__fill { background: linear-gradient(135deg, var(--g-bg) calc(50% - 1px), var(--g-fg) calc(50% - 1px) calc(50% + 1px), var(--g-bg) calc(50% + 1px)); }
.dd-st--unk::before, .dd-b--unk .dd-strip__fill { border-style: dashed; }
.dd-key .dd-st { margin-right: 0.25rem; }
.dd-key .dd-st ~ .dd-st { margin-left: var(--space-3); }
.dd-states td:first-child { width: 9rem; }
@media (max-width: 640px) {   /* tables stack on a phone: one block per row, labels from data-label */
  .dd-stack, .dd-stack tbody, .dd-stack tr, .dd-stack td { display: block; width: 100%; }
  .dd-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dd-stack tr { padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
  .dd-stack tbody tr:first-child { border-top: var(--rule-w) solid var(--rule); }
  .dd-stack td { border: 0; padding: 0.125rem 0; }
  .dd-doc .dd-stack td { padding: 0.125rem 0; }
  .dd-stack caption { display: block; width: 100%; }
  .dd-stack td[data-label]::before { content: attr(data-label); margin-right: 0.5rem; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-2); }
}

/* --- 01 the weekly review ---------------------------------------------------------------------------------------------- */
.dd-review__head { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); font-weight: 800; line-height: var(--lh-head); letter-spacing: var(--ls-title); margin-top: var(--space-3); max-width: 24ch; text-wrap: balance; }
.dd-review__sub { list-style: none; padding: 0; margin: var(--space-3) 0 0; color: var(--fg-2); }
.dd-review__sub li { max-width: 72ch; padding-left: 1rem; text-indent: -1rem; }
.dd-review__sub li::before { content: "\2014\00A0"; }
.dd-strip { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.dd-strip__b { display: grid; gap: 0.25rem; min-width: 0; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); max-width: none; }
.dd-strip__fill { display: block; height: 56px; border: var(--rule-w) solid var(--g-bd); background: var(--g-bg); }
.dd-strip__st { color: var(--fg-2); overflow-wrap: anywhere; }
.dd-halted { border: var(--rule-soft-w) solid var(--fg); padding: 0 0.375rem; color: var(--fg); }
.dd-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); }
.dd-ctrl__wk { display: flex; align-items: center; gap: var(--space-2); }
.dd-ctrl input[type="range"] { width: min(14rem, 46vw); min-height: var(--touch); accent-color: var(--fg); }
.dd-ctrl output { font-family: var(--f-mono); font-size: var(--fs-mono); min-width: 7.5rem; }
.dd-ctrl .check { padding: 0; align-items: center; }
.dd-ctrl__end { margin-left: auto; }
@media (max-width: 640px) { .dd-ctrl__end { margin-left: 0; } }

/* --- 02 strategies, most urgent first ---------------------------------------------------------------------------------- */
.dd-list { list-style: none; padding: 0; margin: 0; border-top: var(--rule-w) solid var(--rule); }
.dd-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); align-items: start; max-width: none; }
.dd-row > .dd-st { margin-top: 0.3rem; }
.dd-row__dec { margin-top: 0.25rem; }
.dd-row__dec .label { margin-right: 0.125rem; }
.dd-row__go { display: flex; flex-direction: column; align-items: flex-end; }
.dd-row__go .link-mono { min-height: 32px; }
.dd-dots { display: inline-flex; gap: 4px; margin-top: var(--space-2); vertical-align: middle; }
.dd-dot { display: block; width: 12px; height: 12px; border: 1.5px solid var(--fg-2); }
.dd-dot--1 { border-color: var(--fg); background: repeating-linear-gradient(135deg, var(--fg) 0 1.5px, transparent 1.5px 3.5px); }
.dd-dot--2, .dd-dot--3 { border-color: var(--fg); background: var(--fg); }
.dd-why { margin-top: var(--space-1); }
.dd-why summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 32px; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; }
.dd-why summary::-webkit-details-marker { display: none; }
.dd-why summary::after { content: "+"; margin-left: 0.5em; }
.dd-why[open] summary::after { content: "\2212"; }
.dd-why p { border-left: var(--rule-w) solid var(--rule-soft); padding-left: var(--space-3); }
@media (max-width: 640px) {
  .dd-row { grid-template-columns: minmax(0, 1fr); }
  .dd-row__go { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); }
}

/* --- 03 the four tests and the rulebook -------------------------------------------------------------------------------- */
.dd-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-4); }
.dd-tabs button { font-family: var(--f-mono); font-size: var(--fs-mono); min-height: 36px; min-width: 3.5rem; padding: 0.25rem 0.75rem; border: var(--rule-soft-w) solid var(--rule-soft); background: var(--bg); }
.dd-tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.dd-tests__head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; }
.dd-tests__list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
.dd-test { border-top: var(--rule-soft-w) solid var(--rule-soft); padding-top: var(--space-3); max-width: none; min-width: 0; }
.dd-test__head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: baseline; }
.dd-test__head b { font-weight: 600; }
.dd-test__v { margin-left: auto; text-align: right; }
.dd-bar { display: block; width: 100%; height: 28px; margin-top: var(--space-2); overflow: visible; }
.dd-z--0 { fill: color-mix(in srgb, var(--fg) 10%, transparent); }
.dd-z--1 { fill: url(#dd-hatch); }
.dd-z--2 { fill: color-mix(in srgb, var(--fg) 40%, transparent); }
.dd-z--3 { fill: color-mix(in srgb, var(--fg) 66%, transparent); }
.dd-tk { fill: var(--fg-2); }
.dd-mk { fill: var(--fg); stroke: var(--bg-elev); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dd-mk--x { fill: var(--c-cadmium); stroke: var(--fg); stroke-width: 1.5; }
.dd-mk--s { fill: var(--bg-elev); stroke: var(--fg); stroke-width: 1.5; }
.dd-hatch__bg { fill: transparent; }
.dd-hatch__ln { fill: var(--fg-2); }
.dd-test__lines { font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.45; color: var(--fg-2); margin-top: var(--space-2); }
.dd-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-2); }
.dd-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dd-legend i { display: block; width: 1.25rem; height: 0.625rem; border: var(--rule-soft-w) solid var(--rule-soft); }
.dd-legend .dd-lg--0 { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.dd-legend .dd-lg--1 { background: repeating-linear-gradient(135deg, var(--fg-2) 0 1.5px, transparent 1.5px 4px); }
.dd-legend .dd-lg--2 { background: color-mix(in srgb, var(--fg) 40%, transparent); }
.dd-legend .dd-lg--3 { background: color-mix(in srgb, var(--fg) 66%, transparent); }
.dd-legend .dd-lg--m { width: 4px; height: 1rem; background: var(--fg); border: 0; }
.dd-rules__t th { font-family: var(--f-display); font-size: var(--fs-small); font-weight: 400; color: var(--fg); text-transform: none; letter-spacing: 0; vertical-align: middle; }
.dd-rules__t td.n { width: 7.5rem; vertical-align: middle; }
.dd-rules__t input { width: 6.5rem; min-height: 36px; padding: 0.25rem 0.5rem; text-align: right; font-family: var(--f-mono); font-size: var(--fs-mono); background: var(--bg); color: var(--fg); border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); border-radius: 0; }
.dd-rules__t input[aria-invalid="true"] { border-left: 4px solid var(--fg); }
.dd-status:empty { display: none; }
.dd-status { margin-top: var(--space-3); border-left: var(--rule-w) solid var(--fg); padding: var(--space-2) var(--space-3); background: var(--bg); font-size: var(--fs-small); }
@media (max-width: 760px) { .dd-tests__list { grid-template-columns: minmax(0, 1fr); } }

/* --- 04 confirm and act ------------------------------------------------------------------------------------------------ */
.dd-act { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); }
.dd-queue { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 4px; }
.dd-queue li { max-width: none; }
.dd-queue__b { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; width: 100%; min-height: var(--touch); text-align: left; padding: var(--space-3); border: var(--rule-soft-w) solid var(--rule-soft); background: var(--bg); }
button.dd-queue__b[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 4px 0 0 var(--fg); }
.dd-queue__c { flex-basis: 100%; color: var(--fg-2); }
.dd-who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.dd-who .btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.dd-cmd__t { font-weight: 600; font-size: var(--fs-h4); margin-top: var(--space-4); }
.dd-cmd__t + p { margin-top: var(--space-2); }
.dd-cmd__f { font-size: 1.5rem; margin: var(--space-3) 0; }
.dd-cmd__f b { font-weight: 500; background: var(--c-cadmium); color: var(--c-ink); padding: 0 0.3rem; }
.dd-phrase { font-family: var(--f-mono); font-size: var(--fs-mono); border: var(--rule-soft-w) solid var(--rule-soft); padding: 0.125rem 0.375rem; white-space: nowrap; }
.dd-form { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.dd-form fieldset { border: 0; padding: 0; margin: 0; }
.dd-form legend { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.dd-form .dd-radios { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.dd-form .check input[type="radio"] { border-radius: 50%; }
.dd-msg:empty { display: none; }
.dd-msg { margin-top: var(--space-4); border-left: var(--rule-w) solid var(--fg); padding: var(--space-2) var(--space-3); background: var(--bg); }
.dd-ledger { list-style: none; padding: 0; margin: var(--space-2) 0 0; border-top: var(--rule-soft-w) solid var(--rule-soft); }
.dd-ledger li { padding: 0.375rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); max-width: none; }
.dd-halt { border-style: dashed; }
@media (max-width: 760px) { .dd-act { grid-template-columns: minmax(0, 1fr); } }

/* --- 05 records and the chain ------------------------------------------------------------------------------------------ */
.dd-doc { padding: var(--space-5); }
.dd-doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); border-bottom: var(--rule-w) solid var(--rule); padding-bottom: var(--space-3); margin-bottom: var(--space-3); }
.dd-doc__t { font-weight: 800; font-size: var(--fs-h4); letter-spacing: 0.02em; text-transform: uppercase; }
.dd-doc .table-wrap { margin-top: var(--space-3); }
.dd-doc .table-ledger { font-size: 0.75rem; }
.dd-doc .table-ledger th, .dd-doc .table-ledger td { padding: 0.375rem 0.75rem 0.375rem 0; }
.dd-doc__sig { margin-top: var(--space-3); }
.dd-doc__hash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-4) 0 0; }
.dd-doc__hash dd { margin-top: 0.25rem; }
.dd-hash { font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; }
.dd-doc__stmt { font-size: 0.75rem; line-height: 1.5; color: var(--fg-2); margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--rule-soft-w) solid var(--rule-soft); max-width: none; }
.dd-chainwrap { margin-top: var(--space-6); }
.dd-chain { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.dd-chain li { max-width: none; }
.dd-chain__rec { display: grid; justify-items: start; gap: 0.25rem; }
.dd-chain__rec .glyph { width: 64px; height: 64px; outline: var(--rule-soft-w) solid var(--rule-soft); outline-offset: 3px; margin-bottom: 0.375rem; }
.dd-chain__rec.is-altered .glyph { outline: var(--rule-w) dashed var(--fg); }
.dd-chain__link { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.dd-chain__link::before { content: ""; display: block; width: 3.5rem; height: var(--rule-w); background: var(--fg-2); }
.dd-chain__link.is-broken::before { background: repeating-linear-gradient(90deg, var(--fg) 0 5px, transparent 5px 9px); }
.dd-chain__link .label { font-size: 0.6875rem; }
.dd-chain__link.is-broken .label { color: var(--fg); font-weight: 600; }
.dd-chain__msg { margin-top: var(--space-4); border-left: var(--rule-w) solid var(--fg); padding: var(--space-2) var(--space-3); background: var(--bg); }
.dd-json { margin-top: var(--space-5); }
.dd-json summary { cursor: pointer; display: inline-flex; align-items: center; min-height: var(--touch); font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); }
.dd-json pre { max-height: 20rem; overflow: auto; margin-top: var(--space-2); padding: var(--space-3); background: var(--bg); border: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 640px) {
  .dd-doc { padding: var(--space-4); }
  .dd-doc__hash { grid-template-columns: minmax(0, 1fr); }
  .dd-chain { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .dd-chain__rec { grid-template-columns: auto auto; align-items: center; column-gap: var(--space-3); }
  .dd-chain__rec .glyph { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .dd-chain__link { flex-direction: row; padding-left: 20px; }
  .dd-chain__link::before { width: var(--rule-w); height: 1.25rem; }
  .dd-chain__link.is-broken::before { background: repeating-linear-gradient(180deg, var(--fg) 0 4px, transparent 4px 7px); }
}

/* --- 06 the phone Glance (the app's own ink screen in both themes) ----------------------------------------------------- */
.dd-phonewrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.dd-phone { border: 8px solid var(--fg); border-block-width: 26px; max-width: 300px; background: var(--c-ink); }
.dd-phone__screen { display: grid; align-content: start; gap: var(--space-2); min-height: 500px; padding: var(--space-4); }
.dd-phone__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); border-bottom: var(--rule-soft-w) solid var(--rule-soft); padding-bottom: var(--space-2); }
.dd-phone__top .mono { font-weight: 500; letter-spacing: var(--ls-wordmark); }
.dd-phone__ring { position: relative; justify-self: center; width: 168px; height: 168px; margin: var(--space-3) 0; }
.dd-phone__ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 2.25rem; line-height: 1.25; }
.dd-phone__ring .small { font-size: 0.75rem; color: var(--fg-2); }
.dd-ring { width: 100%; height: 100%; }
.dd-ring__bg { fill: none; stroke: var(--rule-soft); stroke-width: 10; }
.dd-ring__on { fill: none; stroke: var(--fg); stroke-width: 10; }
.dd-ring__warn { fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-dasharray: 2 3; }
.dd-phone__pct { display: block; font-size: 2rem; font-weight: 800; letter-spacing: var(--ls-title); }
.dd-phone__n b { font-size: 1.75rem; font-weight: 800; margin-right: 0.25rem; }
.dd-phone__screen > .label { margin-top: var(--space-2); }
.dd-phone__ok { margin-top: var(--space-2); padding-top: var(--space-2); border-top: var(--rule-soft-w) solid var(--rule-soft); }
.dd-phone__sim { font-family: var(--f-mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: var(--ls-label); text-transform: uppercase; border: var(--rule-soft-w) dashed var(--fg-2); padding: 0.25rem 0.5rem; margin-top: var(--space-2); }
.dd-alerts { list-style: none; padding: 0; margin: var(--space-2) 0 0; border-top: var(--rule-w) solid var(--rule); }
.dd-alerts li { padding: var(--space-2) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: var(--fs-mono); max-width: none; }
.dd-alertrules { margin-top: var(--space-6); }
@media (max-width: 760px) { .dd-phonewrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* --- delivery, limits and the request ---------------------------------------------------------------------------------- */
.dd-deliver { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); }
.dd-deliver > div { border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); }
.dd-deliver .idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); display: block; margin-bottom: var(--space-3); }
.dd-deliver h3 { font-size: var(--fs-h4); margin-bottom: 0.375rem; }
.dd-deliver p { font-size: var(--fs-small); color: var(--fg-2); }
.dd-releases { margin-top: var(--space-7); }
.dd-cta__side { align-self: end; }
@media (max-width: 1024px) { .dd-deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dd-deliver { grid-template-columns: minmax(0, 1fr); } }

/* --- print: the demo prints as its current snapshot, without its controls ---------------------------------------------- */
@media print {
  .dd-ctrl, .dd-tabs, .dd-who, .dd-form, .dd-halt, .dd-json, [data-dd-do] { display: none !important; }
  .dd-panel { background: none; break-inside: avoid; }
  .dd-phone { border-color: #201E1D; }
}


/* Paper Triage Score page and tool, EN and DE (track T, final version of 19 November 2026).
   One square language for the three answers and bands, never colour alone: outline = No / Not testable yet,
   half-filled = Partly / Fix these first, filled = Yes / Ready for an Evidence File. No cadmium here: the page's
   yellow points are the shared .btn--primary buttons. Motion (M4) is driven by triage.js and only sets element.style. */

/* ---------- the square glyph ---------- */
.pt-sq { display: inline-block; flex: none; width: 0.75rem; height: 0.75rem; border: 2px solid var(--fg); background: transparent; vertical-align: -0.05em; }
.pt-sq--1 { background: linear-gradient(to top, var(--fg) 50%, transparent 50%); }
.pt-sq--2 { background: var(--fg); }

/* ---------- intro: how to answer and the three bands ---------- */
.pt-intro { padding-bottom: var(--space-7); }
.pt-intro__rule { font-size: var(--fs-body); }
.pt-bands { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: var(--rule-w) solid var(--rule); }
.pt-bands__item { display: grid; grid-template-columns: 1.25rem 1fr; column-gap: var(--space-3); row-gap: 0.25rem; align-content: start; padding: var(--space-4) 0 0; max-width: none; }
.pt-bands__item .pt-sq { margin-top: 0.3rem; }
.pt-bands__name { font-weight: 600; font-size: var(--fs-h4); line-height: var(--lh-head); }
.pt-bands__rule { grid-column: 2; }
@media (max-width: 800px) {
  .pt-bands { grid-template-columns: 1fr; }
  .pt-bands__item { padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
}

/* ---------- layout: questions and the live panel ---------- */
.pt-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.pt-form { grid-column: 1 / span 8; grid-row: 1; min-width: 0; }
.pt-live { grid-column: 10 / -1; grid-row: 1; position: sticky; top: calc(var(--pt-top, 64px) + var(--space-5)); z-index: 5; margin-top: var(--space-2);
  border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); background: var(--bg); }
.pt-strip { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; gap: 4px; }
.pt-strip li { flex: 1 1 0; min-width: 0; max-width: 2.25rem; display: grid; gap: 0.25rem; justify-items: stretch; margin: 0; }
.pt-strip li[data-q="4"], .pt-strip li[data-q="9"] { margin-left: 8px; }   /* group gaps: A 01–03 · B 04–08 · C 09–10 */
.pt-strip i { display: block; aspect-ratio: 1; border: var(--rule-soft-w) solid var(--rule-soft); background: transparent; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.pt-strip span { font-family: var(--f-mono); font-size: 0.625rem; line-height: 1; color: var(--fg-2); text-align: center; font-variant-numeric: tabular-nums; }
.pt-strip li.is-0 i { border: 2px solid var(--fg); }
.pt-strip li.is-1 i { border: 2px solid var(--fg); background: linear-gradient(to top, var(--fg) 50%, transparent 50%); }
.pt-strip li.is-2 i { border: 2px solid var(--fg); background: var(--fg); }
.pt-live__count { margin-top: var(--space-3); color: var(--fg-2); }
.pt-live__score { margin-top: var(--space-4); font-family: var(--f-mono); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.pt-live__score small { font-size: 0.4em; color: var(--fg-2); }
.pt-live__band { margin-top: var(--space-2); color: var(--fg-2); }
.pt-live.is-complete .pt-live__band { color: var(--fg); font-weight: 500; }
.pt-live__go { margin-top: var(--space-4); }

/* ---------- question groups and questions ---------- */
.pt-form > noscript .notice { margin-bottom: var(--space-6); }
.pt-group + .pt-group { margin-top: var(--space-7); }
.pt-group__h { display: flex; align-items: baseline; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--rule-w) solid var(--rule);
  font-size: var(--fs-h3); font-weight: 800; letter-spacing: var(--ls-title); line-height: var(--lh-head); }
.pt-group__h .mono { font-size: var(--fs-mono); font-weight: 500; color: var(--fg-2); }
.pt-group__h > .mono:first-child { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; align-self: center; }
.pt-group__h > .mono:first-child::after { content: " \00B7"; }
.pt-group__range { margin-left: auto; }
.pt-q { margin: 0; padding: var(--space-5) 0 var(--space-6); border: 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); min-width: 0; }
.pt-group .pt-q:last-child { border-bottom: 0; }
.pt-q legend { float: left; width: 100%; padding: 0; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); align-items: baseline; margin-bottom: 0.375rem; }
.pt-q legend + .pt-q__why { clear: both; }
.pt-q__idx { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pt-q__name { font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-head); }
.pt-q__why { font-size: var(--fs-small); color: var(--fg-2); max-width: 66ch; margin-left: calc(2.5rem + var(--space-3)); }
.pt-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.pt-opt { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 0.5rem; min-height: var(--touch); padding: 0.75rem 0.875rem 0.875rem;
  border: var(--rule-soft-w) solid var(--rule-soft); background: transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.pt-opt:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); border-color: var(--fg-2); }
.pt-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pt-opt:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pt-opt.is-checked .pt-opt__tag, .pt-opt:has(input:checked) .pt-opt__tag { font-weight: 700; }
.pt-opt.is-checked, .pt-opt:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.pt-opt__tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg); }
.pt-opt__txt { font-size: var(--fs-small); line-height: 1.45; color: var(--fg-body); }
.pt-actions { margin-top: var(--space-6); padding-top: var(--space-6); border-top: var(--rule-w) solid var(--rule); }

/* ---------- result ---------- */
.pt-result { margin-top: var(--space-8); }
.pt-res { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-7); }
.pt-res__main { grid-column: span 5; min-width: 0; }
.pt-res__detail { grid-column: 7 / -1; min-width: 0; }
.pt-score { font-family: var(--f-mono); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); margin-top: var(--space-2); }
.pt-score small { font-size: 0.35em; color: var(--fg-2); }
/* not testable: the numeral steps back so it never outweighs the band (VQ-14) */
.pt-result[data-band="untestable"] .pt-score { color: var(--fg-2); font-size: clamp(2.25rem, 5vw, 3.5rem); }
.pt-printed { display: none; }
@media print { .pt-printed { display: block; margin-top: 3mm; } }
.pt-band { display: flex; align-items: center; gap: 0.75rem; margin-top: var(--space-2); font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); color: var(--fg); }
.pt-band .pt-sq { width: 1.125rem; height: 1.125rem; border-width: 3px; }
#pt-band-note { margin-top: var(--space-2); max-width: 44ch; }

.pt-scale { margin-top: var(--space-6); max-width: 30rem; }
.pt-scale__track { position: relative; display: grid; grid-template-columns: 70fr 30fr; gap: 3px; height: 10px; }
.pt-scale__zone--fix { background: repeating-linear-gradient(135deg, var(--fg-2) 0 1px, transparent 1px 5px); border: var(--rule-soft-w) solid var(--fg-2); }
.pt-scale__zone--ready { background: var(--fg); }
.pt-scale__mark { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; transform: translate(-50%, -50%); background: var(--bg); border: 4px solid var(--fg); box-shadow: 0 0 0 2px var(--bg);
  transition: transform 900ms var(--ease); }
.pt-scale__mark.is-from { transform: translate(calc(-50% + var(--pt-from, 0px)), -50%); transition: none; }   /* M4: set and removed by triage.js */
.pt-scale__ticks { position: relative; height: 1.25rem; margin-top: 0.5rem; font-size: var(--fs-label); color: var(--fg-2); }
.pt-scale__ticks span { position: absolute; top: 0; }
.pt-scale__ticks span:first-child { left: 0; }
.pt-scale__ticks .pt-scale__t70 { left: 70%; transform: translateX(-50%); }
.pt-scale__ticks span:last-child { right: 0; }
.pt-scale__names { display: grid; grid-template-columns: 70fr 30fr; gap: 3px; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.pt-scale__names span + span { padding-left: 0.25rem; }
.pt-scale.is-muted .pt-scale__track { opacity: 0.45; }

.pt-gate { list-style: none; margin: var(--space-2) 0 0; padding: 0; border-top: var(--rule-w) solid var(--rule); }
.pt-gate li { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: var(--space-3); align-items: baseline; padding: 0.625rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); max-width: none; font-size: var(--fs-small); }
.pt-gate__tag { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); white-space: nowrap; }
.pt-gate li.is-missing .pt-gate__tag { color: var(--fg); font-weight: 600; }

.pt-checks { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: var(--rule-w) solid var(--rule); }
.pt-checks li { display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--space-2); align-items: baseline; padding: 0.5rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); max-width: none; font-size: var(--fs-small); }
.pt-checks__idx { color: var(--fg-2); }
.pt-checks__tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); white-space: nowrap; }
.pt-checks li.is-2 .pt-checks__tag { color: var(--fg-2); }
.pt-checks li.is-0 .pt-checks__tag { font-weight: 600; }
.pt-checks li { transition: opacity 300ms ease; }
.pt-checks li:nth-child(2) { transition-delay: 40ms; } .pt-checks li:nth-child(3) { transition-delay: 80ms; } .pt-checks li:nth-child(4) { transition-delay: 120ms; }
.pt-checks li:nth-child(5) { transition-delay: 160ms; } .pt-checks li:nth-child(6) { transition-delay: 200ms; } .pt-checks li:nth-child(7) { transition-delay: 240ms; }
.pt-checks li:nth-child(8) { transition-delay: 280ms; } .pt-checks li:nth-child(9) { transition-delay: 320ms; } .pt-checks li:nth-child(10) { transition-delay: 360ms; }
.pt-checks.is-from li { opacity: 0; transition: none; }   /* M4: set and removed by triage.js */
@media (prefers-reduced-motion: reduce) { .pt-scale__mark, .pt-checks li { transition: none; } }

.pt-fix { list-style: none; margin: var(--space-2) 0 0; padding: 0; counter-reset: ptfix; }
.pt-fix li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding: var(--space-4) 0; border-top: var(--rule-soft-w) solid var(--rule-soft); max-width: none; }
.pt-fix li:first-child { border-top: var(--rule-w) solid var(--rule); }
.pt-fix li::before { counter-increment: ptfix; content: counter(ptfix, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); justify-self: start; align-self: start; padding: 0 0.25rem; }
.pt-fix li.is-0::before { background: var(--fg); color: var(--bg); }
.pt-fix__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.pt-fix__tag { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.pt-fix__how { margin-top: 0.25rem; max-width: 66ch; color: var(--fg-body); }
.pt-fix__tool { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.125rem; }
.pt-fix__tool .link-mono { min-width: 0; }
.pt-fix__free { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); border: var(--rule-soft-w) solid var(--rule-soft); padding: 0.0625rem 0.375rem; }
.pt-next__h, .pt-fix__h { font-size: var(--fs-label); font-weight: 500; }
.pt-b2b { max-width: 66ch; }

.pt-method { padding-block: var(--space-7) var(--space-8); }
.pt-method .notice { margin-top: var(--space-3); max-width: 80ch; }

/* ---------- narrow screens: the live panel becomes a bar under the header ---------- */
@media (max-width: 960px) {
  .pt-layout { display: block; }
  .pt-live { top: var(--pt-top, 64px); margin: 0 calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 0.625rem; border-top: 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); row-gap: 0.25rem; align-items: center; }
  .pt-live > .label, .pt-live__band, .pt-live__go { display: none; }
  .pt-strip { grid-column: 1; grid-row: 1; margin: 0; gap: 3px; }
  .pt-strip li { max-width: 1.75rem; }
  .pt-strip li[data-q="4"], .pt-strip li[data-q="9"] { margin-left: 6px; }
  .pt-live__count { grid-column: 1; grid-row: 2; margin: 0; font-size: var(--fs-label); }
  .pt-live__score { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.75rem; }
  .pt-group:first-of-type { margin-top: var(--space-6); }
  .pt-res__main, .pt-res__detail { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pt-opts { grid-template-columns: 1fr; }
  .pt-q__why { margin-left: 0; }
  .pt-checks { grid-template-columns: 1fr; }
  .pt-q { scroll-margin-top: 9rem; }
}

/* ---------- forced colours: keep the squares visible ---------- */
@media (forced-colors: active) {
  .pt-sq, .pt-strip i, .pt-scale__zone, .pt-scale__mark, .pt-fix li::before { forced-color-adjust: none; }
  .pt-sq, .pt-strip li[class] i { border-color: CanvasText; }
  .pt-sq--1, .pt-strip li.is-1 i { background: linear-gradient(to top, CanvasText 50%, Canvas 50%); }
  .pt-sq--2, .pt-strip li.is-2 i, .pt-scale__zone--ready { background: CanvasText; }
  .pt-scale__mark { background: Canvas; border-color: CanvasText; }
}

/* ---------- print: the result only, on paper ---------- */
@media print {
  .page--paper-triage .pt-intro, .page--paper-triage .pt-layout, .page--paper-triage #intake, .page--paper-triage .page-head__aside, .pt-live { display: none !important; }
  .page--paper-triage .page-head { padding-block: 0 4mm; }
  .page--paper-triage .page-head .lede { font-size: 10pt; }
  .pt-result { padding-top: 0; }
  .pt-result .section__head { margin-bottom: 4mm; }
  .pt-res { display: block; }
  .pt-res__detail { margin-top: 6mm; }
  /* Q-08: the result block may break across pages (an unbreakable block left page 1 empty); its parts stay whole and labels stay with what follows */
  .pt-score, .pt-band, .pt-scale, .pt-gate li, .pt-checks li, .pt-fix li, #pt-next, .pt-method .notice { break-inside: avoid; page-break-inside: avoid; }
  .pt-result .label { break-after: avoid; page-break-after: avoid; }
  .pt-checks li { opacity: 1 !important; transition: none !important; }
  .pt-scale__mark { transform: translate(-50%, -50%) !important; transition: none !important; }
  .pt-method { padding-block: 6mm 0; }
}


/* ==========================================================================
   SINTESIS — research hub: Overfitting Machine, register, atlas, regime explorer, archive frames.
   Ink first: instruments sit on the ground; artefacts (ledger, archive frames, register entry) are paper documents lying on it.
   Tokens only (tokens.css). One cadmium point per composition: the chosen N (lab), the best trial (hero), the selected note (atlas).
   No red or green, no glow, no shadows, square corners. Bundled after components.css.
   ========================================================================== */

/* --- Paper documents on the ground (theme-aware) --- */
.hub-doc {
  --fg: var(--c-ink); --fg-2: var(--c-graphite); --rule: var(--c-ink); --rule-soft: var(--c-soft); --bg: var(--c-paper); --bg-elev: #FFFFFF;
  --focus: var(--c-ink); --chart-subject: var(--c-ink); --chart-context: #9A9595; --chart-grid: var(--c-soft);
  background: var(--bg); color: var(--fg); border: var(--rule-soft-w) solid var(--c-soft);
}
:root[data-theme="paper"] .hub-doc { --bg: #FFFFFF; --bg-elev: var(--c-paper); }
.hub-offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.js [data-archive] .hub-archive__fallback:not(.is-shown) { display: none; }

/* --- Header band --- */
.hub-head { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hub-head > .lede { grid-column: span 8; }
.hub-counters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: var(--space-4) clamp(1.5rem, 4vw, 4rem); margin: var(--space-4) 0 0; padding-top: var(--space-4); border-top: var(--rule-w) solid var(--rule); }
.hub-counters dt { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.hub-counters dd { margin: 0.25rem 0 0; font-family: var(--f-mono); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hub-head__byline { grid-column: 1 / -1; color: var(--fg-2); }
@media (max-width: 1024px) { .hub-head > .lede { grid-column: 1 / -1; } }
@media (max-width: 640px) { .hub-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hub-section .section__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* --- Shared controls --- */
.ofm__range { -webkit-appearance: none; appearance: none; width: 100%; height: var(--touch); margin: 0; background: transparent; cursor: pointer; }
.ofm__range::-webkit-slider-runnable-track { height: 2px; background: var(--fg); }
.ofm__range::-moz-range-track { height: 2px; background: var(--fg); }
.ofm__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--fg); border: 3px solid var(--bg); border-radius: 0; }
.ofm__range::-moz-range-thumb { width: 18px; height: 18px; background: var(--fg); border: 3px solid var(--bg); border-radius: 0; }
.ofm__range:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ofm__num-in { width: 100%; min-height: var(--touch); padding: 0.5rem 0.75rem; border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); border-radius: 0; background: var(--bg-elev); color: var(--fg); }
select.ofm__num-in { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.25rem; }
.ofm__control { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-4); }
.ofm__control > .label { grid-column: 1 / -1; }
.ofm__out { min-width: 4.5rem; text-align: right; font-size: var(--fs-small); }
.ofm__details summary, .rx__details summary, .hub-verify__cmds summary, .hub-gates__table summary { cursor: pointer; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); min-height: var(--touch); display: inline-flex; align-items: center; }
.ofm__details summary::-webkit-details-marker, .rx__details summary::-webkit-details-marker, .hub-verify__cmds summary::-webkit-details-marker, .hub-gates__table summary::-webkit-details-marker { display: none; }
.ofm__details summary::after, .rx__details summary::after, .hub-verify__cmds summary::after, .hub-gates__table summary::after { content: "+"; margin-left: 0.5em; }
.ofm__details[open] > summary::after, .rx__details[open] > summary::after, .hub-verify__cmds[open] > summary::after, .hub-gates__table[open] > summary::after { content: "\2212"; }
.ofm__details .table-ledger, .rx__details .table-ledger { margin-top: var(--space-4); }
.table-ledger tr.is-current td { font-weight: 600; }

/* --- Overfitting Machine · compact (home hero) --- */
.ofm--compact .ofm__plate { display: grid; gap: var(--space-3); }
.ofm__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.ofm__value { display: flex; align-items: baseline; gap: 0.375rem; margin: 0; }
.ofm__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.ofm__unit { font-family: var(--f-mono); font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); color: var(--fg-2); }
.nocase { text-transform: none; letter-spacing: 0; }
.ofm__text { max-width: 52ch; }
.ofm__strip { width: 100%; height: auto; overflow: visible; }
.ofm__caption { color: var(--fg); }
.ofm__formula { color: var(--fg-2); max-width: 70ch; }
.ofm__more { margin: 0; }

/* --- Overfitting Machine · full lab --- */
.ofm__tabs { display: flex; gap: var(--space-2); border-bottom: var(--rule-w) solid var(--rule); margin-bottom: var(--space-6); }
.ofm__tab { min-height: var(--touch); padding: 0 1rem; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.ofm__tab:hover { color: var(--fg); }
.ofm__tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.ofm__panel:focus-visible { outline-offset: 6px; }
.ofm__lab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); align-items: start; }
.ofm__inputs { grid-column: span 4; display: grid; gap: var(--space-5); }
.ofm__results { grid-column: span 8; display: grid; gap: var(--space-4); }
.ofm__fig { grid-column: span 6; margin: 0; }
.ofm__fig svg { width: 100%; height: auto; overflow: visible; }
.ofm__figcap { display: block; padding-bottom: var(--space-3); border-bottom: var(--rule-soft-w) solid var(--rule-soft); margin-bottom: var(--space-3); }
.ofm__lab--form .ofm__form { grid-column: span 5; display: grid; gap: var(--space-4); }
.ofm__lab--form .ofm__results { grid-column: span 7; }
.ofm__field { display: grid; gap: 0.375rem; }
.ofm__field .small { margin: 0; }
.ofm__seed { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.ofm__guess { border-top: var(--rule-soft-w) solid var(--rule-soft); padding-top: var(--space-4); display: grid; gap: var(--space-3); }
.ofm__guess-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); align-items: center; }
.ofm__guess-row > .label { grid-column: 1 / -1; }
.ofm__guess-out:empty { display: none; }
.ofm__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-4) var(--space-5); margin: 0; border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); }
.ofm__stats dt { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
.ofm__stats dd { margin: 0.25rem 0 0; font-family: var(--f-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; }
.ofm--full .ofm__caption { margin-top: var(--space-6); }
.ofm__how { color: var(--fg-2); max-width: 90ch; margin-top: var(--space-3); }
.ofm__err { border-left: var(--rule-w) solid var(--fg); padding-left: var(--space-3); }
.ofm__free, .ofm__hypo { color: var(--fg-2); }
@media (max-width: 1024px) {
  .ofm__inputs, .ofm__results, .ofm__lab--form .ofm__form, .ofm__lab--form .ofm__results { grid-column: 1 / -1; }
  .ofm__fig { grid-column: span 6; }
}
@media (max-width: 800px) { .ofm__fig { grid-column: 1 / -1; } }

/* --- Instrument marks (SVG) --- */
.ofm-axis, .rx-axis { stroke: var(--fg); stroke-width: 1.5; }
.ofm-tick, .rx-tick { stroke: var(--fg-2); stroke-width: 1; }
.ofm-grid, .rx-grid { stroke: var(--chart-grid); stroke-width: 1; }
.ofm-tl, .rx-tl { font-family: var(--f-mono); font-size: 11px; fill: var(--fg-2); font-variant-numeric: tabular-nums; }
.ofm-tl--fg, .rx-tl--fg { fill: var(--fg); font-weight: 500; }
.ofm-line { fill: none; stroke: var(--chart-subject); stroke-width: 2.5; stroke-linejoin: round; }
.ofm-guide { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 3; }
.ofm-pt { fill: var(--c-cadmium); stroke: var(--c-ink); stroke-width: 1.5; }
.ofm-bar { fill: var(--chart-context); }
.ofm-exp { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ofm-dot { fill: var(--fg-2); opacity: 0.75; }
.ofm-best { fill: var(--c-cadmium); stroke: var(--c-ink); stroke-width: 1.5; }
@media (max-width: 640px) { .ofm-tl, .rx-tl { font-size: 17px; } }

/* --- Register: ledger, verifier, single entry --- */
.hub-register__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); align-items: start; }
.hub-register__ledger { grid-column: span 7; }
.hub-register__verify { grid-column: span 5; position: sticky; top: 6rem; }
@media (max-width: 1024px) { .hub-register__ledger, .hub-register__verify { grid-column: 1 / -1; } .hub-register__verify { order: -1; position: static; } }
.hub-ledger { padding: clamp(1rem, 2.5vw, 1.75rem); }
.hub-ledger__head { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.hub-ledger__count { font-size: var(--fs-small); }
/* V3-02: the ledger fits its 7-column panel: fixed layout, five columns (gates passed sits in the status cell), wrapping text */
.hub-ledger__table { table-layout: fixed; width: 100%; }
.hub-ledger__table thead th:nth-child(1) { width: 30%; }
.hub-ledger__table thead th:nth-child(2) { width: 18%; }   /* "Specification" / "Spezifikation" on one line */
.hub-ledger__table thead th:nth-child(3) { width: 16%; }
.hub-ledger__table thead th:nth-child(5) { width: 12%; }   /* fits the sort button "Versuche" (DE) */
.hub-ledger__table th, .hub-ledger__table td { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hub-ledger__gates { display: block; color: var(--fg-2); margin-top: 0.25rem; }
/* 21 Oct 2026 (integration): auto layout on phones, so the Status column is not squeezed to one word per line */
@media (max-width: 640px) { .hub-ledger__table { table-layout: auto; } .hub-ledger__table thead th:nth-child(1) { width: 40%; } .hub-ledger__table thead th:nth-child(2) { width: 0; } .hub-ledger__table th:nth-child(2), .hub-ledger__table td:nth-child(2) { display: none; } }
/* DATA-07 · phones: each register entry becomes a stacked block. The ID and title take the full width; registered, status and
   trials sit on one line underneath, on the same three-column grid as the sort buttons in the head. */
@media (max-width: 640px) {
  .hub-ledger__table, .hub-ledger__table thead, .hub-ledger__table tbody { display: block; width: 100%; }
  .hub-ledger__table thead tr, .hub-ledger__entry > tr:first-child { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 4.75rem; column-gap: 0; }   /* cells keep their 1rem right padding; no gap, so the head rules run unbroken */
  .hub-ledger__table thead th, .hub-ledger__entry > tr:first-child > * { width: auto !important; min-width: 0; }
  .hub-ledger__table thead th:nth-child(1), .hub-ledger__entry > tr:first-child > th { grid-column: 1 / -1; }
  .hub-ledger__entry > tr:first-child > th, .hub-ledger__table thead th:nth-child(1) { border-bottom: 0; }
  .hub-ledger__table thead th:not(:nth-child(1)) { border-top: 0; }
  .hub-ledger__entry > tr:first-child > td:nth-child(3), .hub-ledger__table thead th:nth-child(3) { padding-left: 0.75rem; }   /* first visible cell of the second line lines up with the ID */
  .hub-ledger__table thead th.n, .hub-ledger__entry > tr:first-child > td.n { text-align: right; }
  .hub-ledger__hashrow, .hub-ledger__hashrow > td, .hub-ledger__table tbody > tr:only-child, .hub-ledger__table tbody > tr:only-child > td { display: block; }
  .hub-ledger__title { max-width: none; hyphens: manual; -webkit-hyphens: manual; }
}
/* static copy of the register (no JavaScript): the same facts in a plain table */
.hub-ledger-static__table { table-layout: fixed; width: 100%; }
.hub-ledger-static__table thead th:nth-child(1) { width: 17%; } .hub-ledger-static__table thead th:nth-child(3) { width: 13%; } .hub-ledger-static__table thead th:nth-child(4) { width: 30%; }
.hub-ledger-static__table code.hash { overflow-wrap: anywhere; word-break: break-all; font-size: 0.75rem; }
.hub-ledger__more { border-bottom: 0; padding-top: var(--space-4); }
.hub-ledger__title { display: block; font-family: var(--f-display); color: var(--fg-2); margin-top: 0.25rem; max-width: 34ch; }
.hub-ledger__entry > tr:first-child > * { border-bottom: 0; padding-bottom: 0.25rem; }
.hub-ledger__hashrow > td { padding-top: 0.25rem; padding-bottom: var(--space-4); }
.hub-ledger__hashrow .label { display: block; margin-bottom: 0.25rem; }
.hub-ledger__table tbody:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.hub-ledger__table tbody tr:hover { background: none; }
.hub-ledger__empty { color: var(--fg-2); font-family: var(--f-display); font-size: var(--fs-small); }
.hub-ledger__note { color: var(--fg-2); margin-top: var(--space-4); }
.hub-sort { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; min-height: 2rem; display: inline-flex; align-items: center; gap: 0.375rem; }
.hub-sort::after { content: "\2195"; opacity: 0.45; }
th[aria-sort="ascending"] .hub-sort::after { content: "\2191"; opacity: 1; }
th[aria-sort="descending"] .hub-sort::after { content: "\2193"; opacity: 1; }
.hub-hash { display: block; font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.5; word-break: break-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hub-hash-inline { font-family: var(--f-mono); font-size: 0.875em; word-break: break-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hub-hash__lic { display: block; margin-top: var(--space-2); color: var(--fg-2); max-width: 70ch; }
.hub-ledger__kinds { margin-top: var(--space-2); }
.hub-hash__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); font-family: var(--f-display); }
.hub-verify { display: grid; gap: var(--space-4); }
.hub-verify__head { max-width: 24ch; }
.hub-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: clamp(1.25rem, 3vw, 2rem); border: var(--rule-soft-w) dashed var(--fg-2); min-height: 8rem; }
.hub-drop.is-over { border-style: solid; border-color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.hub-drop__text { margin: 0; }
.hub-drop__input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hub-drop__input:focus-visible + .hub-drop__btn { outline: 2px solid var(--focus); outline-offset: 3px; }
.hub-drop__btn { cursor: pointer; }
.hub-verify__local { color: var(--fg-2); margin: 0; }
.hub-verify__out:empty { display: none; }
.hub-verify__out { display: grid; gap: var(--space-3); border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-4); }
.hub-verify__msg { display: flex; gap: 0.625rem; align-items: baseline; margin: 0; }
.hub-mark { flex: none; width: 0.7rem; height: 0.7rem; border: var(--rule-w) solid currentColor; }
.is-match .hub-mark { background: currentColor; }
.hub-verify__meta { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3) var(--space-5); margin: 0; }
.hub-verify__meta dt { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); font-weight: 500; }
.hub-verify__meta dd { margin: 0.25rem 0 0; font-family: var(--f-mono); font-size: var(--fs-mono); overflow-wrap: anywhere; }
.hub-verify__wide { grid-column: 1 / -1; }
.hub-entry { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: var(--space-3); }
.hub-entry__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; margin: 0; }
.hub-entry__title { font-weight: 600; margin: 0; }
.hub-entry__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; }
.hub-entry__meta dt { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); font-weight: 500; }
.hub-entry__meta dd { margin: 0.125rem 0 0; font-family: var(--f-mono); font-size: var(--fs-mono); }
.hub-entry__hl { margin: 0; }
.hub-entry__verify { margin: 0; }

/* --- Research Atlas --- */
.atlas__table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.atlas__table caption { text-align: left; }
.atlas__table th, .atlas__table td { text-align: left; vertical-align: top; padding: 0.5rem 0.625rem 0.5rem 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); font-weight: 400; }
.atlas__table thead th { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); vertical-align: bottom; }
.atlas__group + .atlas__group > tr:first-child > * { border-top: var(--rule-w) solid var(--rule); }
.atlas__h-stage, .atlas__stage { width: 8.5rem; }
.atlas__h-method, .atlas__method { width: 14rem; }
.atlas__h-data { min-width: 6.5rem; }
.atlas__btn { font: inherit; color: inherit; text-align: left; min-height: 2.25rem; padding: 0.25rem 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-transform: inherit; letter-spacing: inherit; }
.atlas__btn:hover:not([disabled]) { text-decoration-color: currentColor; }
.atlas__btn[aria-pressed="true"] { color: var(--fg); text-decoration-color: currentColor; text-decoration-thickness: 2px; font-weight: 600; }
.atlas__btn[disabled] { cursor: default; color: var(--fg-2); }
.atlas__btn--stage { font-weight: 600; }
.atlas__btn--stage.is-hover { text-decoration-color: currentColor; }
.atlas__n { color: var(--fg-2); margin-right: 0.25rem; }
.atlas__note { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; padding: 0.25rem 0.5rem; margin: 0 0.25rem 0.25rem 0; border: var(--rule-soft-w) solid var(--rule-soft); font-family: var(--f-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.atlas__note:hover, .atlas__note.is-hover { border-color: var(--fg); }
.atlas__note.is-related { border-color: var(--fg); border-style: dashed; }
.atlas__note[aria-pressed="true"] { background: var(--c-cadmium); border-color: var(--c-cadmium); color: var(--c-ink); }
.atlas__pict { flex: none; width: 0.6rem; height: 0.6rem; border: var(--rule-w) solid currentColor; }
.atlas__note--published .atlas__pict, .atlas__note--validated .atlas__pict { background: currentColor; }
.atlas__note--draft .atlas__pict { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.atlas__note--validated .atlas__pict { outline: 1px solid currentColor; outline-offset: 2px; }
.atlas__note--superseded { color: var(--fg-2); }
.atlas__cell.is-empty::before { content: ""; display: block; width: 0.5rem; height: 1px; margin-top: 1.1rem; background: var(--rule-soft); }
.atlas__empty { color: var(--fg-2); }
.atlas__list { display: none; }
.atlas__lgroup { border-top: var(--rule-w) solid var(--rule); padding: var(--space-3) 0 var(--space-4); }
.atlas__lstage { font-size: var(--fs-body); margin: 0 0 var(--space-2); }
.atlas__lmethods, .atlas__lnotes { list-style: none; padding: 0; margin: 0; }
.atlas__lmethods > li { padding: var(--space-2) 0; border-top: var(--rule-soft-w) solid var(--rule-soft); }
.atlas__lnotes > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.atlas__lnotes .atlas__note, .atlas__list .atlas__btn { min-height: var(--touch); }
.atlas__readout { margin-top: var(--space-4); min-height: 3.2em; border-left: var(--rule-w) solid var(--rule); padding-left: var(--space-3); color: var(--fg-2); max-width: none; }
.atlas__readout strong { color: var(--fg); }
@media (max-width: 800px) { .atlas__grid { display: none; } .atlas__list { display: block; } }

/* --- Archive: identical frames, three across --- */
.hub-filters { margin-bottom: var(--space-5); }
.hub-filters__chips { display: contents; }
.hub-filters__q { min-width: 20rem; min-height: 40px; padding: 0.5rem 0.75rem; border: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-w) solid var(--fg); border-radius: 0; background: var(--bg-elev); color: var(--fg); }
.hub-filters__count { flex: 1 1 14rem; }
.hub-filters__clear[hidden] { display: none; }
@media (max-width: 640px) { .hub-filters__q { min-width: 0; width: 100%; } }
.hub-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-5); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-2); }
.status--draft::before { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.status--validated::before { outline: 1px solid currentColor; outline-offset: 2px; }
.status--superseded { color: var(--fg-2); }
.hub-archive__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.hub-archive__item { display: flex; min-width: 0; }
.hub-archive__item[hidden] { display: none; }
.hub-archive__item.is-selected { outline: var(--rule-w) solid var(--fg); outline-offset: 4px; }
.hub-archive__none { margin-top: var(--space-4); }
.hub-frame { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); padding: clamp(1rem, 2vw, 1.375rem); min-width: 0; }
.hub-frame__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); border-bottom: var(--rule-w) solid var(--rule); padding-bottom: var(--space-2); }
.hub-frame__code { font-size: var(--fs-mono); }
.hub-frame__status { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
.hub-frame__thumb { margin: 0; }
.hub-spark, .hub-glyph { display: block; width: 100%; height: 72px; }
.hub-spark__line { fill: none; stroke: var(--fg); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hub-spark__zero { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.hub-spark__shade { fill: var(--fg); opacity: 0.1; }
.hub-glyph__line { fill: none; stroke: var(--fg); stroke-width: 2; }
.hub-glyph__base { stroke: var(--fg-2); stroke-width: 1.5; }
.hub-glyph__dot { fill: var(--fg); }
.hub-glyph__cell { fill: none; stroke: var(--fg-2); stroke-width: 1.5; }
.hub-glyph__t { font-family: var(--f-mono); font-size: 10px; fill: var(--fg-2); }
.hub-frame__span { margin-top: 0.25rem; font-size: var(--fs-label); color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--ls-label); }
.hub-frame__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; line-height: 1.25; margin: 0; }
.hub-frame__title a { text-decoration: none; }
.hub-frame__title a:hover, .hub-frame__title a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.hub-frame__line { font-size: var(--fs-small); margin: 0; }   /* the one-line thesis (thesis_short, ≤ 25 words) is shown whole, never clamped mid-sentence */
.hub-frame__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: auto 0 0; padding-top: var(--space-3); border-top: var(--rule-soft-w) solid var(--rule-soft); }
.hub-frame__meta > div { display: flex; gap: 0.5rem; min-width: 0; }
.hub-frame__meta dt { white-space: nowrap; font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); font-weight: 500; }
.hub-frame__meta dd { margin: 0; font-family: var(--f-mono); font-size: var(--fs-mono); overflow-wrap: anywhere; }
.hub-badge { margin: 0; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
.hub-badge a { display: inline-flex; align-items: center; min-height: 2rem; }
@media (max-width: 1024px) { .hub-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hub-archive__grid { grid-template-columns: 1fr; } }

/* --- Regime Explorer --- */
.rx { display: grid; gap: var(--space-4); }
.rx__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); }
.rx__shade { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); }
.rx__shade legend { float: left; margin-right: var(--space-3); }
.rx__radio { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--touch); font-size: var(--fs-small); cursor: pointer; }
.rx__radio input { accent-color: var(--fg); width: 1.1rem; height: 1.1rem; margin: 0; }
.rx__plot svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.rx-line { fill: none; stroke: var(--chart-subject); stroke-width: 2; stroke-linejoin: round; }
.rx-zero { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 3; }
.rx-shade { fill: var(--fg); opacity: 0.08; }
.rx-lane { fill: none; stroke: var(--rule-soft); stroke-width: 1; }
.rx-area--pf { fill: var(--fg-2); opacity: 0.6; }
.rx-area--ps, .rx-area--p { fill: var(--fg); opacity: 0.55; }
.rx-half { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 1 3; }
.rx-cross { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 1 3; }
.rx-dot { fill: var(--bg); stroke: var(--fg); stroke-width: 2; }
.rx-hit { fill: transparent; cursor: crosshair; }
.rx__scrub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); }
.rx__out { min-width: 4.5rem; text-align: right; font-size: var(--fs-small); }
.rx__readout { margin: 0; font-size: var(--fs-small); border-left: var(--rule-w) solid var(--rule); padding-left: var(--space-3); max-width: none; }
.rx__hint { margin: 0; }
.rx__explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--col-gap); border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-5); margin-top: var(--space-3); }
.rx__h { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.rx__stats, .rx__model { margin: 0; max-width: 90ch; }
.rx__source.fig__source { text-transform: none; letter-spacing: 0.01em; font-size: var(--fs-mono); max-width: 110ch; }
@media (max-width: 800px) { .rx__explain { grid-template-columns: 1fr; } .rx__scrub { grid-template-columns: 1fr auto; } .rx__scrub .label { grid-column: 1 / -1; } }

/* --- Validation gates strip --- */
.hub-gates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: var(--rule-w) solid var(--rule); }
.hub-gates > li { border-right: var(--rule-soft-w) solid var(--rule-soft); min-width: 0; }
.hub-gates > li:last-child { border-right: 0; }
.hub-gates a { display: flex; flex-direction: column; gap: 0.375rem; height: 100%; padding: var(--space-4) var(--space-4) var(--space-5) 0; text-decoration: none; }
.hub-gates > li + li a { padding-left: var(--space-4); }
.hub-gate__id { font-weight: 800; font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--ls-title); }
.hub-gate__name { font-weight: 600; }
.hub-gate__test { font-size: var(--fs-small); color: var(--fg-2); }
.hub-gate__link { margin-top: auto; padding-top: var(--space-3); font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
.hub-gate__link::after { content: "\2192"; margin-left: 0.5rem; }
.hub-gates a:hover .hub-gate__name, .hub-gates a:focus-visible .hub-gate__name { text-decoration: underline; text-decoration-thickness: 2px; }
.hub-gates__table { margin-top: var(--space-6); }
.hub-gates__table .table-wrap { margin-top: var(--space-3); }
@media (max-width: 1024px) {
  .hub-gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-gates > li { border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
  .hub-gates > li:nth-child(3n) { border-right: 0; }
  .hub-gates > li a, .hub-gates > li + li a { padding-left: 0; padding-right: var(--space-4); }
  .hub-gates > li:not(:nth-child(3n + 1)) a { padding-left: var(--space-4); }
}
@media (max-width: 640px) {
  .hub-gates { grid-template-columns: 1fr; }
  .hub-gates > li, .hub-gates > li:nth-child(3n) { border-right: 0; }
  .hub-gates > li a, .hub-gates > li:not(:nth-child(3n + 1)) a { padding-left: 0; }
}

/* --- Close --- */
.hub-close__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-5); border-top: var(--rule-w) solid var(--rule); }
.hub-close__cta .h3 { margin: 0; }

@media print {
  .ofm__range, .ofm__tabs, .ofm__seed, .ofm__guess, .hub-drop, .hub-verify__out:empty, .hub-filters, .rx__bar, .rx__scrub, .rx__hint, .atlas__readout { display: none !important; }
  .ofm__panel[hidden] { display: block !important; }
  .hub-archive__item[hidden] { display: flex !important; }
}

/* ==========================================================================
   Visual upgrade of 21 October 2026 (track R): R1 hub head, R2 verifier, R3 gate thumbnails, R4 note head.
   Data colours come from --data-line / --data-context (tokens.css); glyph, caption and numeral classes from components.css. The only cadmium is
   the R2 match square, shown after a match only. Restyles of existing markup are scoped to the Pass switch (data-visual-off).
   ========================================================================== */

/* --- R1 · registry numerals (restyle of .hub-counters) --- */
:root:not([data-visual-off~="R1"]) .hub-counters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 0; border-top-width: 2px; }
:root:not([data-visual-off~="R1"]) .hub-counters > div { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5) 0; border-left: 2px solid var(--rule); min-width: 0; }
:root:not([data-visual-off~="R1"]) .hub-counters > div:first-child { padding-left: 0; border-left: 0; }
:root:not([data-visual-off~="R1"]) .hub-counters dd { margin-top: auto; padding-top: var(--space-3); }   /* numerals share one baseline when a label wraps */
:root:not([data-visual-off~="R1"]) .hub-counters .numeral { display: block; font-size: 96px; }
:root:not([data-visual-off~="R1"]) .hub-counters__date { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 28px; line-height: 1.1; padding-top: 0.25em; font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-visual-off~="R1"] .hub-counters .numeral { font: inherit; letter-spacing: inherit; line-height: inherit; }
@media (max-width: 600px) {
  :root:not([data-visual-off~="R1"]) .hub-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root:not([data-visual-off~="R1"]) .hub-counters > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  :root:not([data-visual-off~="R1"]) .hub-counters > div:nth-child(n + 3) { margin-top: var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); }
  :root:not([data-visual-off~="R1"]) .hub-counters > div:nth-child(even) { padding-left: var(--space-4); padding-right: 0; }
  :root:not([data-visual-off~="R1"]) .hub-counters .numeral { font-size: 56px; }
  :root:not([data-visual-off~="R1"]) .hub-counters__date { font-size: 20px; }
}

/* --- R1 · the wall of twenty hashes (glyph markup: build.py register_wall, spec C4) --- */
.hub-wall { grid-column: 1 / -1; margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: var(--rule-soft-w) solid var(--rule-soft); }   /* V-21: a figure, not a navigation landmark; V-10: separated from the counters */
.hub-wall .wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.hub-wall .wall > li { min-width: 0; }
.wall__item { display: grid; gap: 0.5rem; justify-items: start; align-content: start; color: var(--fg); text-decoration: none; }
.wall__item .glyph { display: block; width: 64px; max-width: 100%; height: auto; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--rule-soft); }
.wall__item--spec .glyph { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg); }   /* the one specification: inverted and framed */
.wall__id { font-family: var(--f-mono); font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: 0.02em; color: var(--fg-2); overflow-wrap: anywhere; }
.wall__item--spec .wall__id { color: var(--fg); font-weight: 700; }
.wall__item:hover .wall__id, .wall__item:focus-visible .wall__id { color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wall__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.hub-wall__cap { margin-top: var(--space-4); }
html.motion-ok .hub-wall .wall > li { transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: calc(min(var(--i, 0), 20) * 60ms); }
html.motion-ok .hub-wall:not(.is-revealed) .wall > li { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) { .wall__id { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 600px) { .hub-wall .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); } .wall__item .glyph { width: 48px; } }

/* --- R1 · ledger rows reached from the wall; R2 · the entry framed after a match --- */
.hub-ledger__entry > tr > * { transition: background-color 600ms var(--ease); }
.hub-ledger__entry.is-target > tr > * { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.hub-ledger__entry.is-match { outline: 2px solid var(--fg); outline-offset: -2px; }
/* V-01: inline room inside every row so the inset match/focus frame never crosses the first or last glyph */
.hub-ledger__table.table-ledger tr > :first-child { padding-left: 0.75rem; }
.hub-ledger__table.table-ledger tr > :last-child { padding-right: 0.75rem; }
.hub-ledger__entry:focus { outline: none; }
.hub-ledger__entry:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* --- R2 · verifier you can watch --- */
.hv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.hv figure { margin: 0; }
.hv-pair { position: relative; display: flex; align-items: flex-start; gap: var(--space-4); width: fit-content; max-width: calc(100% + var(--space-3)); padding: var(--space-3); margin-left: calc(-1 * var(--space-3)); }
.hv-pair figure { display: grid; gap: var(--space-2); width: 160px; }
.hv-pair .glyph { display: block; width: 160px; height: 160px; box-shadow: 0 0 0 1px var(--rule-soft); }
.hv-pair .hexrows { grid-template-rows: repeat(16, 10px); line-height: 10px; letter-spacing: 0.04em; }
@media (max-width: 640px) { .hv-pair { margin-left: 0; max-width: 100%; } }   /* V-17: no bleed into the 16 px gutter */
.hv-pair::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--fg); clip-path: inset(0 100% 0 0); pointer-events: none; }
.hv-pair.is-match::after { clip-path: inset(0); }
html.motion-ok .hv-pair::after { transition: clip-path 600ms var(--ease-draw); }
.hv-diff { fill: none; stroke: var(--fg); stroke-width: 0.14; }
.hv .data-caption { margin-top: var(--space-2); }
.hv-act { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.hv-act [hidden] { display: none; }
.hv-sq { flex: none; width: 0.8rem; height: 0.8rem; background: var(--c-cadmium); border: 1.5px solid var(--c-ink); align-self: center; }
.hv-ind { display: grid; gap: 0.375rem; padding-top: var(--space-3); border-top: var(--rule-soft-w) solid var(--rule-soft); color: var(--fg-2); }
.hv-ind p { margin: 0; }
.hv-ind code { font-family: var(--f-mono); font-size: 0.75rem; color: var(--fg); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .hv-pair { flex-wrap: wrap; gap: var(--space-3); }
  .hv-pair .glyph { width: 112px; height: 112px; }
  .hv-pair figure { width: 112px; }
  .hv-pair .hexrows { order: 3; width: 100%; grid-template-rows: none; grid-template-columns: repeat(4, max-content); gap: 0.125rem 1.25em; line-height: 1.4; }
}

/* --- R3 · six gates, six thumbnails (drawn by research-visual.js; hidden without JS and in print) --- */
.hub-gate__thumb { display: grid; gap: 0.375rem; margin-bottom: var(--space-2); }
.hub-gate__pic { display: block; aspect-ratio: 240 / 72; border-bottom: var(--rule-soft-w) solid var(--rule-soft); --draw-dur: 900ms; }
.hub-gate__pic svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hub-gate__pic svg * { vector-effect: non-scaling-stroke; }
.hub-gate__tag { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.3; color: var(--fg-2); min-height: 5.2em; }   /* LR-09/V-11: four lines reserved so every gate heading aligns (EN and DE) */
.hub-gate__tag span { white-space: nowrap; }
.gt-line { fill: none; stroke: var(--data-line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.gt-base { fill: none; stroke: var(--data-line); stroke-width: 1; }
.gt-dash { stroke-dasharray: 3 3; }
.gt-cell { fill: none; stroke: var(--data-line); stroke-width: 1.25; }
.gt-ctx { fill: var(--data-context); }
@media (max-width: 640px) {
  html.js:not([data-visual-off~="R3"]) .hub-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.js:not([data-visual-off~="R3"]) .hub-gates > li { border-right: var(--rule-soft-w) solid var(--rule-soft); border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
  html.js:not([data-visual-off~="R3"]) .hub-gates > li:nth-child(2n) { border-right: 0; }
  html.js:not([data-visual-off~="R3"]) .hub-gates > li a, html.js:not([data-visual-off~="R3"]) .hub-gates > li:not(:nth-child(3n + 1)) a { padding-left: 0; padding-right: var(--space-3); }
  html.js:not([data-visual-off~="R3"]) .hub-gates > li:nth-child(2n) a { padding-left: var(--space-3); padding-right: 0; }
  html.js:not([data-visual-off~="R3"]) .hub-gate__name, html.js:not([data-visual-off~="R3"]) .hub-gate__test { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
}

/* --- R4 · note head: stage strip and the note's own series (generated by src/tools/article_lib.py) --- */
.stage-strip { margin-top: var(--space-4); }
.stage-strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage-strip li { min-width: 0; border-top: 2px solid var(--rule-soft); }
.stage-strip li.is-done { border-top-color: var(--fg); }
.stage-strip a { display: block; padding: 0.5rem 0.75rem 0.25rem 0; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.35; color: var(--fg-2); text-decoration: none; overflow-wrap: anywhere; }
.stage-strip a[aria-current] { color: var(--fg); font-weight: 700; }
.stage-strip a:hover, .stage-strip a:focus-visible { color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note-frame { margin: var(--space-5) 0 0; }
:root:not([data-visual-off~="R4"]) .article-head .stage-strip + .title, :root:not([data-visual-off~="R4"]) .article-head .note-frame + .title { margin-top: var(--space-6); }
.note-frame__svg { display: block; width: 100%; height: 96px; overflow: visible; --draw-dur: 1200ms; }
/* The frame sits in the first viewport, where motion.js shows it at once. Below the fold (deep links) motion.js cannot reveal a clipped
   element (its observer sees a zero intersection), so the note frame never starts clipped; request to track P, 21 October 2026. */
html.motion-ok .note-frame .note-frame__svg[data-draw]:not([data-draw="down"]):not(.is-revealed) { clip-path: none; }
.note-frame__line { fill: none; stroke: var(--data-line); stroke-width: 2; stroke-linejoin: round; }
.note-frame__base { stroke: var(--rule); stroke-width: 2; }
.note-frame__zero { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 4; }
.note-frame__shade rect { fill: var(--data-context); opacity: 0.4; }
.note-frame__cap { margin-top: var(--space-2); }
@media (max-width: 600px) {
  /* V-12: five equal columns with numbers only; the current stage is named once under the strip */
  .stage-strip ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stage-strip a { padding-right: 0.25rem; }
  .stage-strip__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stage-strip[data-current]::after { content: attr(data-current); content: attr(data-current) / ""; display: block; margin-top: 0.25rem; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg); }
  .note-frame__svg { height: 64px; }
}
@media print {
  :root:not([data-visual-off~="R1"]) .hub-counters .numeral { font-size: 64px; }
  :root:not([data-visual-off~="R1"]) .hub-counters__date { font-size: 18px; }
  .stage-strip li.is-done { border-top-color: #000; }
  .stage-strip a { color: #000; }
  .note-frame__svg { clip-path: none !important; }
  .note-frame__line { stroke: #000; }
  .note-frame__cap { color: #000; }
}

/* --- Research-note CTA (line-up of 19 November 2026): the free Paper Triage Score, or one paid offer with its descriptive title as the
   label, the Spinoza name only in the small line and "quoted after the intake call · for businesses only" under the buttons (no price) --- */
.article-cta .article-cta__line { margin-top: 0.25rem; }
.article-cta .article-cta__quoted { margin-top: var(--space-2); }

/* --- Hub close: the free Paper Triage Score first, the paid line-up as quiet links (19 November 2026) --- */
.hub-close__cta > div { flex: 1 1 32rem; min-width: 0; }
.hub-close__more { margin-top: var(--space-3); max-width: 66ch; }

/* --- WP-002 (published at launch by decision of Fredy Solano, 21 October 2026): simulated static figures and the calculator ---
   The four figures are matplotlib SVGs with their own paper ground: on Ink they lie on the page as paper sheets, like print. */
.figure--static { margin: var(--space-6) 0 0; }
.figure--static img { display: block; width: 100%; max-width: 1013px; height: auto; }
.figure--static figcaption { margin-top: var(--space-2); max-width: 72ch; }
.figure--static figcaption .label-schematic { display: block; margin-bottom: 0.25rem; }
.svc { margin-top: var(--space-5); }
.ofm__stats dd.svc__note { margin-top: 0.25rem; font-family: inherit; font-size: var(--fs-small); color: var(--fg-2); font-variant-numeric: normal; }
@media (min-width: 1025px) {
  /* inside the article column the calculator splits 5 : 7, so the design names fit in their select */
  .article-body .svc .ofm__inputs { grid-column: span 5; }
  .article-body .svc .ofm__results { grid-column: span 7; }
}
@media (max-width: 640px) {
  /* WP-002 headline results: one block per rule on phones (no sideways scrolling) */
  .table-ledger--results { display: block; }
  .table-ledger--results caption { display: block; }
  .table-ledger--results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-ledger--results tbody { display: block; }
  .table-ledger--results tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-bottom: var(--rule-soft-w) solid var(--rule-soft); }
  .table-ledger--results th[scope="row"], .table-ledger--results td { display: block; padding: 0; border: 0; text-align: left; }
  .table-ledger--results th[scope="row"] { grid-column: 1 / -1; }
  .table-ledger--results td.n { text-align: left; }
  .table-ledger--results td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--fg-2); }
}
.cite-line { overflow-wrap: anywhere; }   /* Q-06: the citation URL wraps at 320 px */
@media (max-width: 400px) { .article-body h2, .article-body h3, .article-body .ledger li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }   /* Q-06: long German compounds at 320 px */


/* SINTESIS — print (research articles, the Paper Triage Score result). Print is always Paper, whatever the screen theme:
   the reset below outranks :root[data-theme="…"] in tokens.css (html:root[data-theme] is 0,2,1 against 0,2,0). */
@media print {
  @page { margin: 18mm 16mm 20mm; }
  html:root, html:root[data-theme] {
    color-scheme: light;
    --bg: #fff; --bg-elev: #fff; --fg: #000; --fg-body: #000; --fg-2: #333; --rule: #000; --rule-soft: #bbb; --focus: #000;
    --chart-subject: #000; --chart-context: #666; --chart-context-2: #bbb; --chart-grid: #ccc; --chart-regime: #8E8989;
    --inv-bg: #fff; --inv-bg-elev: #fff; --inv-fg: #000; --inv-fg-body: #000; --inv-fg-2: #333; --inv-rule: #000; --inv-rule-soft: #bbb;
    --inv-chart-subject: #000; --inv-chart-context: #666; --inv-chart-grid: #ccc;
  }
  /* Surfaces with a hard-coded ground print as paper documents */
  .surface-inverse, .on-ink, [data-surface="ink"], .surface-ink, .hero__plate, .hero__plate.on-ink, .hero__plate.surface-inverse, .on-cadmium, [data-surface="cadmium"], .cta-split, .doc--ink, .tile--ink, .hero--cover, .hero--field {
    background: #fff !important; color: #000 !important;
    --fg: #000; --fg-body: #000; --fg-2: #333; --rule: #000; --rule-soft: #bbb; --bg: #fff; --bg-elev: #fff; --focus: #000;
    --chart-subject: #000; --chart-context: #666; --chart-grid: #ccc;
  }
  html { font-size: 11pt; }
  body { background: #fff !important; color: #000 !important; display: block; }
  .site-header, .site-footer .site-footer__cols, .site-footer__legal, .consent, .nav-mobile, dialog, .skip-link, .breadcrumbs, .btn, .rail-nav, .filters, .no-print, .process__map, .fig__tip, .fig__tools, .fig__hint, .theme-switch, .nav-cta, .js-print, .js-read-paper { display: none !important; }
  .site-footer { border-top: 1pt solid #000; padding: 6mm 0 0; font-size: 8.5pt; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__business { font-size: 8.5pt; }
  main { padding: 0; }
  a { text-decoration: none; color: inherit; }
  .article-body a[href^="http"]::after { content: " (" attr(href) ")"; font-family: var(--f-mono); font-size: 8pt; color: #333; }
  .article-layout { display: block; }
  .article-side { display: block; page-break-after: avoid; }
  .article-side .side-block { position: static; }
  .toc { display: none; }
  h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
  figure, .table-wrap, .doc, .notice { page-break-inside: avoid; break-inside: avoid; }
  /* the scorecard is taller than a page: keep its parts whole, not the whole block (an unbreakable block leaves page 1 empty) */
  .rs-result__score, .rs-bars li, .rs-blockers li, #rs-next { page-break-inside: avoid; break-inside: avoid; }
  .fig__plot svg { max-height: 90mm; }
  .chart .latest-label { stroke: #fff; }
  .stage { opacity: 1 !important; }
  :focus, :focus-visible { outline: none !important; }   /* Q-08: a focus ring (the focused result block) printed as a rule across every page break */
  .print-header { display: flex !important; justify-content: space-between; border-bottom: 2pt solid #000; padding-bottom: 3mm; margin-bottom: 8mm; font-family: var(--f-mono); font-size: 8.5pt; text-transform: uppercase; letter-spacing: 0.08em; }
  /* motion (motion.css, 21 October 2026): every revealed or drawn element prints in its final state. [data-draw] keeps its
     transforms (SVG transform attributes are overridden by a CSS transform), only the clip and the stroke draw are reset. */
  [data-reveal], [data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  [data-draw] { opacity: 1 !important; clip-path: none !important; transition: none !important; }
  [data-draw] [pathLength="1"], [data-draw][pathLength="1"] { stroke-dashoffset: 0 !important; transition: none !important; }
  [data-reveal]::before, .rule-anim::before { transform: none !important; transition: none !important; }
  .numeral--outline { color: var(--fg) !important; -webkit-text-stroke: 0 !important; }
  .texture > picture, .texture > .texture__img { display: none !important; }
  .rs-form .rs-dim { display: none; }
  .page--triage #intake, .page--triage .rs-progress, .page--triage .page-head__aside { display: none !important; }   /* triage print: result only */
  .rs-result, .rs-result * { visibility: visible; }
  :root:not([data-visual-off~="H3"]) .cta-split__img { display: none !important; }   /* V-14: the founder panel is screen-only; no blank band */
}
.print-header { display: none; }
