/* ================================================================================
   ASRL EVOLUTION — css/style.css
   Art direction: LIGHTBOX / FILM. A radiology lightbox meets an engineering teardown.

   CONTRACT
   - Every element ships in its final, readable state. Animation start states live
     only under html.js-anim (added by js/main.js once GSAP has loaded).
   - Two colour states: lightbox (default) and film (html.is-xray). Every colour is a
     token; film mode only redefines tokens, so contrast is checked once per token.
   - One accent (teardown red-orange) for callout markers, step numbers and stamps.
   - Two typefaces: Instrument Sans (width axis 75–100 is a motion device) and DM Mono.
   ================================================================================ */


/* ------------------------------------------------------------------ 1. TOKENS */
:root {
    /* lightbox */
    --ground: #EDF0F2;
    --paper: #F8F9FA;
    --sunk: #E3E7EA;
    --ink: #121519;
    --ink-2: #3B424B;
    --ink-3: #56606B;
    --rule: #C5CCD2;
    --rule-strong: #8A939C;
    --wash: #F8F9FA;
    --accent: #B93C14;
    --on-ink: #F8F9FA;
    --glow: none;
    --glow-text: none;

    /* film — constant, used by x-ray layers in both modes */
    --film: #07111B;
    --film-2: #0B1824;
    --film-ink: #E4F5FC;
    --film-ink-2: #A6C2D0;
    --film-line: #8FE3FF;
    --film-grid: rgba(143, 227, 255, 0.07);
    --film-grid-major: rgba(143, 227, 255, 0.12);
    --film-accent: #FF7A4F;

    /* drawing materials (lightbox) */
    --s-main: #1B1F24;
    --s-hair: #4A535D;
    --s-sheen: rgba(27, 31, 36, 0.22);
    --s-onpanel: #5E6873;
    --s-onchip: #8C96A0;
    --m-glass: rgba(206, 219, 228, 0.55);
    --m-dark: #1B1F24;
    --m-panel: #16191D;
    --m-hole: #EDF0F2;
    --m-metal: #D3D9DE;
    --m-plate: #E6E9EC;
    --m-cell: #B9C1C8;
    --m-board: #C6CDD2;
    --m-chip: #2A2F35;
    --m-conn: #97A0A9;
    --m-flex: #B4BCC3;
    --m-tab: #F1F3F5;
    --m-lens: #1E2328;
    --m-glass2: #3A424B;
    --m-glint: #F4F7F9;
    --m-flash: #E2E6E9;
    --m-back: #DBE0E4;
    --m-plateau: #CBD2D7;
    --m-screw: #A5ADB5;
    --t-part: #3B434C;
    --t-onchip: #CDD3D8;
    --t-onpanel: #75808A;

    /* type */
    --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* layout */
    --header-h: 64px;
    --gutter: clamp(20px, 3.4vw, 56px);
    --maxw: 1360px;
    --section-pad: clamp(80px, 9.5vw, 148px);

    /* motion (mirrored in main.js) */
    --dur-state: 0.2s;
    --dur-move: 0.45s;
    --ease-exact: cubic-bezier(0.16, 0.84, 0.3, 1);
}

/* film mode: tokens only */
html.is-xray {
    --ground: #07111B;
    --paper: #0B1824;
    --sunk: #0E1F2D;
    --ink: #E4F5FC;
    --ink-2: #A6C2D0;
    --ink-3: #86A7B8;
    --rule: rgba(143, 227, 255, 0.2);
    --rule-strong: rgba(143, 227, 255, 0.48);
    --wash: #0F2231;
    --accent: #FF7A4F;
    --on-ink: #07111B;
    --glow: drop-shadow(0 0 3px rgba(143, 227, 255, 0.45));
    --glow-text: 0 0 22px rgba(143, 227, 255, 0.3);
}

/* film materials: the x-ray layers always, the whole page in film mode */
.ctx-film,
html.is-xray .teardown,
html.is-xray .knoll,
html.is-xray .qdoc--paper {
    --s-main: rgba(143, 227, 255, 0.95);
    --s-hair: rgba(143, 227, 255, 0.62);
    --s-sheen: rgba(143, 227, 255, 0.2);
    --s-onpanel: rgba(143, 227, 255, 0.5);
    --s-onchip: rgba(143, 227, 255, 0.75);
    --m-glass: rgba(143, 227, 255, 0.035);
    --m-dark: rgba(205, 246, 255, 0.35);
    --m-panel: rgba(143, 227, 255, 0.07);
    --m-hole: rgba(3, 9, 15, 0.55);
    --m-metal: rgba(160, 230, 255, 0.15);
    --m-plate: rgba(160, 230, 255, 0.055);
    --m-cell: rgba(175, 235, 255, 0.19);
    --m-board: rgba(150, 225, 255, 0.11);
    --m-chip: rgba(205, 246, 255, 0.46);
    --m-conn: rgba(205, 246, 255, 0.32);
    --m-flex: rgba(160, 230, 255, 0.13);
    --m-tab: rgba(160, 230, 255, 0.1);
    --m-lens: rgba(205, 246, 255, 0.26);
    --m-glass2: rgba(205, 246, 255, 0.16);
    --m-glint: rgba(240, 252, 255, 0.9);
    --m-flash: rgba(205, 246, 255, 0.3);
    --m-back: rgba(143, 227, 255, 0.03);
    --m-plateau: rgba(160, 230, 255, 0.09);
    --m-screw: rgba(235, 252, 255, 0.9);
    --t-part: rgba(196, 242, 255, 0.9);
    --t-onchip: #07111B;
    --t-onpanel: rgba(196, 242, 255, 0.75);
}


/* ------------------------------------------------------------------ 2. RESET & BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

html:not(.js-anim) { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--ground);
    /* one soft wash from the top of the viewport, no drawing grid */
    background-image: radial-gradient(120% 80% at 50% 0%, var(--wash) 0%, var(--ground) 62%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
svg { overflow: visible; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
b, strong { font-weight: 600; }

::selection { background: var(--ink); color: var(--on-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: fixed;
    top: 10px; left: 10px;
    z-index: 200;
    padding: 12px 16px;
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--dur-state) var(--ease-exact);
}
.skip-link:focus { transform: translateY(0); }


/* ------------------------------------------------------------------ 3. TYPE */
.mono {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(2.35rem, 1.2rem + 3.3vw, 4.4rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.028em;
    font-stretch: 100%;
    text-wrap: balance;
    text-shadow: var(--glow-text);
}

.lede {
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
    line-height: 1.45;
    color: var(--ink-2);
    max-width: 38ch;
    text-wrap: pretty;
}

.claim { font-weight: 600; color: var(--ink); }


/* split lines (SplitText) — the width axis is the motion device */
.rline { display: block; font-stretch: var(--wdth, 100%); white-space: nowrap; }
.rline-mask { display: block; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.cta__line, .fineprint__line { font-stretch: var(--wdth, 100%); }


/* ------------------------------------------------------------------ 4. LAYOUT */
.container {
    width: 100%;
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-pad);
}

.sheet-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-bottom: 14px;
    margin-bottom: clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.sheet-head__id { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }

.regmark {
    position: relative;
    display: inline-block;
    width: 14px; height: 14px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    flex: none;
}
.regmark::before,
.regmark::after {
    content: '';
    position: absolute;
    background: var(--accent);
}
.regmark::before { left: 50%; top: -5px; bottom: -5px; width: 1.5px; transform: translateX(-50%); }
.regmark::after { top: 50%; left: -5px; right: -5px; height: 1.5px; transform: translateY(-50%); }


/* ------------------------------------------------------------------ 5. COMPONENTS */

/* buttons — rectangular, ink. No pills. */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: color var(--dur-state) var(--ease-exact), border-color var(--dur-state) var(--ease-exact);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform-origin: left center;
    transition: transform var(--dur-move) var(--ease-exact);
}
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink::before { background: var(--accent); transform: scaleX(0); }
.btn--ink:hover::before { transform: scaleX(1); }
.btn--ink:hover { border-color: var(--accent); color: #fff; }
html.is-xray .btn--ink:hover { color: var(--film); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line::before { background: var(--ink); transform: scaleX(0); }
.btn--line:hover::before { transform: scaleX(1); }
.btn--line:hover { color: var(--on-ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:disabled { cursor: progress; opacity: 0.7; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--rule-strong);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
}
.chip::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.label-sample {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.label-sample::before {
    content: '';
    width: 9px; height: 9px;
    border: 1.5px dashed var(--ink-3);
}

/* stamps — land like ink */
.stamp {
    display: inline-block;
    padding: 6px 10px 5px;
    border: 2px solid var(--accent);
    border-radius: 3px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-5deg);
}
.stamp--small { font-size: 0.6875rem; padding: 5px 8px 4px; }
.stamp--big { font-size: 1rem; padding: 10px 16px 9px; border-width: 2.5px; }

/* x-ray notes — "show your workings". The sealed strip and the note share one grid
   cell, so the space is reserved in both modes and toggling never reflows the page. */
.xnote {
    display: grid;
    width: fit-content;
    max-width: min(100%, 52ch);
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}
.xnote > * { grid-area: 1 / 1; }
.xnote__hint {
    display: flex;
    align-items: flex-start;
    min-height: 100%;
    padding: 3px;
    border: 1px dashed var(--rule-strong);
    background-image: repeating-linear-gradient(-45deg, var(--rule) 0 1px, transparent 1px 6px);
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.625rem;
    line-height: 1.2;
    transition: opacity var(--dur-move) var(--ease-exact);
}
.xnote__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 7px 3px 5px;
    background: var(--ground);
    border: 1px solid var(--rule-strong);
    white-space: nowrap;
}
.xnote__tag::before {
    content: '';
    flex: none;
    width: 9px; height: 9px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: inset 4.5px 0 0 -2px var(--accent);
}
.form-sheet .xnote__tag, .tnode__card .xnote__tag, .bom .xnote__tag, .cta .xnote__tag, .report .xnote__tag { background: var(--paper); }
.xnote__text {
    position: relative;
    padding-left: 18px;
    color: var(--ink-2);
}
.xnote__text::before {
    content: '';
    position: absolute;
    left: 0; top: 0.35em;
    width: 10px; height: 10px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
}

/* no JS: the notes are plain annotations */
html.no-js .xnote__hint { display: none; }

/* JS, lightbox: note reserved but hidden (still read by screen readers) */
html.js .xnote__text { opacity: 0; clip-path: inset(0 100% 0 0); }
html.js .xnote__hint { opacity: 1; }
html.js.is-xray .xnote__text {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    color: var(--film-line);
    text-shadow: 0 0 12px rgba(143, 227, 255, 0.35);
}
html.js.is-xray .xnote__text::before { border-color: var(--film-line); }
html.js.is-xray .xnote__hint { opacity: 0; }


/* ------------------------------------------------------------------ 6. HEADER */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.site-header__progress {
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink);
}
.brand__mark { width: 84px; height: 27px; flex: none; }
.brand__descriptor {
    padding-left: 14px;
    border-left: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.2;
    max-width: 12ch;
}

/* the wordmark: pure strokes, two lines — ASRL tracked over EVOLUTION */
.wm-name, .wm-tag, .wm-lens, .wm-tick {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: square;
    stroke-linejoin: bevel;
}
.wm-tag { stroke-width: 2.3; }
.wm-lens { stroke-width: 2.2; }
.wm-tick { stroke-width: 1.5; stroke-linecap: butt; }
.wm-half { fill: var(--accent); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-2);
    transition: color var(--dur-state) var(--ease-exact);
}
.site-nav__link::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-move) var(--ease-exact);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

/* x-ray toggle */
.xray-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px 0 10px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: background-color var(--dur-state) var(--ease-exact), color var(--dur-state) var(--ease-exact), box-shadow var(--dur-state) var(--ease-exact);
}
.xray-toggle__icon { width: 22px; height: 22px; flex: none; }
.xray-toggle__icon circle, .xray-toggle__icon path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.xray-toggle__icon .xray-toggle__half { fill: var(--accent); stroke: none; }
.xray-toggle__state {
    display: inline-grid;
    min-width: 3ch;
    padding: 2px 5px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 0.6875rem;
    text-transform: uppercase;
    text-align: center;
}
.xray-toggle__state > * { grid-area: 1 / 1; }
.xray-toggle__on { visibility: hidden; }
.xray-toggle[aria-pressed="true"] .xray-toggle__on { visibility: visible; }
.xray-toggle[aria-pressed="true"] .xray-toggle__off { visibility: hidden; }
.xray-toggle:hover { background: var(--ink); color: var(--on-ink); }
.xray-toggle:hover .xray-toggle__state { background: var(--on-ink); color: var(--ink); }
html.is-xray .xray-toggle {
    border-color: var(--film-line);
    color: var(--film-line);
    box-shadow: 0 0 0 1px rgba(143, 227, 255, 0.15), 0 0 18px rgba(143, 227, 255, 0.25);
}
html.is-xray .xray-toggle__state { background: var(--film-line); color: var(--film); }
html.is-xray .xray-toggle:hover { background: var(--film-line); color: var(--film); }
html.is-xray .xray-toggle:hover .xray-toggle__state { background: var(--film); color: var(--film-line); }
html.no-js .xray-toggle { display: none; }

/* mobile menu: a :target fallback without JS, a real button with JS */
.menu-link,
.menu-button { display: none; }
.menu-button {
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
}
.menu-button__bars { display: grid; gap: 5px; width: 18px; }
.menu-button__bars span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--dur-move) var(--ease-exact);
}
.menu-button[aria-expanded="true"] .menu-button__bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: none;
    overflow-y: auto;
    background: var(--ground);
    border-top: 1px solid var(--rule);
}
.menu:target,
.menu.is-open { display: block; }
html.js .menu:target:not(.is-open) { display: none; }
html.menu-open body { overflow: hidden; }
.menu__inner { padding: 28px var(--gutter) 40px; }
.menu__meta {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.menu__list { margin-top: 8px; }
.menu__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    min-height: 60px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.menu__link .mono { font-size: 0.8125rem; color: var(--accent); letter-spacing: 0.04em; }
.menu__close {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
html.js .menu__close { display: none; }


/* ------------------------------------------------------------------ 7. DRAWINGS (materials) */
[class^="s-"], [class*=" s-"] { fill: none; }
.s-2 { stroke: var(--s-main); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.s-h { stroke: var(--s-hair); stroke-width: 0.9; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.s-d { stroke: var(--s-hair); stroke-width: 0.8; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.s-sheen { stroke: var(--s-sheen); stroke-width: 1; vector-effect: non-scaling-stroke; }
.s-onpanel { stroke: var(--s-onpanel); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.s-onchip { stroke: var(--s-onchip); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.s-faint { opacity: 0.6; }
.s-coil { fill: none; stroke: var(--s-hair); stroke-width: 0.8; vector-effect: non-scaling-stroke; }

.m-glass { fill: var(--m-glass); }
.m-dark { fill: var(--m-dark); }
.m-panel { fill: var(--m-panel); }
.m-hole { fill: var(--m-hole); }
.m-metal { fill: var(--m-metal); }
.m-plate { fill: var(--m-plate); }
.m-well { fill: none; }
.m-cell { fill: var(--m-cell); }
.m-board { fill: var(--m-board); }
.m-chip { fill: var(--m-chip); }
.m-conn { fill: var(--m-conn); }
.m-flex { fill: var(--m-flex); }
.m-tab { fill: var(--m-tab); }
.m-lens { fill: var(--m-lens); }
.m-glass2 { fill: var(--m-glass2); }
.m-glint { fill: var(--m-glint); }
.m-flash { fill: var(--m-flash); }
.m-back { fill: var(--m-back); }
.m-plateau { fill: var(--m-plateau); }
.m-screw { fill: var(--m-screw); }

.t-part {
    fill: var(--t-part);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.t-strong { font-size: 16px; font-weight: 500; }
.t-onchip { fill: var(--t-onchip); font-size: 12px; }
.t-onpanel { fill: var(--t-onpanel); }
.t-xs { font-size: 9px; }


/* ------------------------------------------------------------------ 8. HERO */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(20px, 3vh, 40px));
    padding-bottom: clamp(28px, 4vh, 56px);
}
.hero__grid {
    --stage-h: clamp(560px, calc(100svh - var(--header-h) - 64px), 800px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: clamp(28px, 3vw, 52px);
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    min-height: calc(100svh - var(--header-h) - clamp(48px, 7vh, 96px));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.hero__dict {
    grid-column: 1; grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    max-width: 34ch;
    padding-top: 6px;
    font-size: 0.9375rem;
    color: var(--ink-2);
}
.hero__dict-word { font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hero__dict-ipa { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-2); }
.hero__dict-pos { font-family: var(--font-mono); font-size: 0.875rem; font-style: italic; color: var(--accent); }
.hero__dict-def { flex-basis: 100%; }

.hero__title {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    pointer-events: none;
    font-size: clamp(2.5rem, 0.7rem + 4vw, 4.75rem);
    line-height: 0.96;
    font-weight: 600;
    letter-spacing: -0.032em;
    text-shadow: var(--glow-text);
}
.hero__line { display: block; pointer-events: auto; text-wrap: balance; }
.hero__line--a {
    grid-column: 1; grid-row: 2;
    align-self: start;
    margin-top: clamp(28px, 6vh, 64px);
}
.hero__line--b {
    grid-column: 3; grid-row: 3;
    align-self: end;
    margin-bottom: clamp(24px, 3.2vh, 40px);
}

.hero__specimen {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
}

.hero__body {
    grid-column: 3; grid-row: 4;
    align-self: end;
}
.hero__standfirst {
    max-width: 44ch;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__micro {
    margin-top: 18px;
    max-width: 40ch;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.hero__data {
    grid-column: 1; grid-row: 4;
    align-self: end;
    display: grid;
    gap: 18px;
    max-width: 380px;
}
.specimen-data {
    display: grid;
    border-top: 1px solid var(--ink);
    font-size: 0.875rem;
}
.specimen-data > div {
    display: grid;
    grid-template-columns: 11ch 1fr;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--rule);
}
.specimen-data dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 2px;
}
.specimen-data dd { color: var(--ink); }

/* the findings list: visible without JS, a screen-reader equivalent with it */
.specimen-findings { font-size: 0.875rem; }
.specimen-findings__title {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.specimen-findings__list li {
    display: grid;
    grid-template-columns: 11ch 1fr;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dotted var(--rule);
    color: var(--ink-2);
}
.specimen-findings__list .mono {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    padding-top: 2px;
}
html.js-anim .specimen-findings {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.hero__scan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__hint {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
html:not(.js-anim) .hero__scan { display: none; }

/* specimen stage */
.specimen__stage {
    position: relative;
    height: var(--stage-h);
    aspect-ratio: 456 / 896;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.specimen__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.dim__line { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dim__text { fill: var(--ink-2); font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; }
.reg path { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.bx-body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bx-lip { fill: none; stroke: var(--rule-strong); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.bx-emboss rect, .bx-emboss circle { fill: none; stroke: var(--rule); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bx-name { fill: var(--ink); font-family: var(--font-sans); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.bx-spec { fill: var(--ink-2); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; }
.bx-label__card { fill: #fff; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bx-label__bars { stroke: var(--ink); stroke-width: 2.2; }
.bx-label__text { fill: var(--ink); font-family: var(--font-mono); font-size: 8.6px; letter-spacing: 0; }
.bx-seal__tape { fill: rgba(185, 60, 20, 0.08); stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bx-seal__hatch { fill: none; stroke: var(--accent); stroke-width: 0.8; opacity: 0.55; vector-effect: non-scaling-stroke; }
.bx-seal__text { fill: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }

/* the specimen's own colours never follow film mode: the sealed box stays a lit object */
.specimen__base {
    --paper: #F8F9FA; --ink: #121519; --ink-2: #3B424B; --ink-3: #56606B;
    --rule: #C5CCD2; --rule-strong: #8A939C; --accent: #B93C14;
}

.specimen__film {
    position: absolute;
    inset: -8px;
    background-color: var(--film);
    background-image:
        linear-gradient(var(--film-grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--film-grid-major) 1px, transparent 1px),
        linear-gradient(var(--film-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--film-grid) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    clip-path: inset(0 0 0 50%);
}
.specimen__film .specimen__svg { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.specimen__film .dim__line { stroke: rgba(143, 227, 255, 0.45); }
.specimen__film .dim__text { fill: rgba(196, 242, 255, 0.7); }
.xr-box { fill: none; stroke: rgba(143, 227, 255, 0.5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.xr-box--lip { stroke: rgba(143, 227, 255, 0.2); stroke-width: 0.8; }
.xr-tray ellipse, .xr-tray path { fill: none; stroke: rgba(143, 227, 255, 0.6); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.xr-tray .xr-paper { fill: rgba(143, 227, 255, 0.05); stroke: rgba(143, 227, 255, 0.35); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.xr-tray .xr-ink { stroke: rgba(143, 227, 255, 0.35); stroke-width: 2; }
.xr-seal rect { fill: rgba(143, 227, 255, 0.04); stroke: rgba(143, 227, 255, 0.3); stroke-dasharray: 3 3; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.xr-notes path { fill: none; stroke: var(--film-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xr-notes circle { fill: var(--film-accent); }
.xr-notes text { fill: var(--film-accent); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }
/* the glow is rasterised once on its own layer; the lens only moves the clip */
.specimen__film svg { filter: drop-shadow(0 0 2px rgba(143, 227, 255, 0.35)); will-change: transform; }

/* static split (no JS / no GSAP) */
.specimen__split {
    position: absolute;
    top: -2px; bottom: -2px;
    left: 50%;
    width: 0;
    border-left: 2px solid var(--film-line);
    box-shadow: 0 0 14px rgba(143, 227, 255, 0.8);
    pointer-events: none;
}
.specimen__split::after {
    content: 'X-RAY';
    white-space: nowrap;
    position: absolute;
    top: 12px; left: 10px;
    padding: 3px 6px;
    background: var(--film);
    color: var(--film-line);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}
.specimen__split { font-size: 0; }

.specimen__lens,
.specimen__tag { display: none; }

html.js-anim .specimen__split { display: none; }
html.js-anim .specimen__lens {
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: 200px; height: 200px;
    margin: -100px 0 0 -100px;
    pointer-events: none;
    will-change: transform;
}
html.js-anim .specimen__film { clip-path: circle(0 at 50% 50%); }
html.js-anim .specimen__lens { transform: scale(0); }

.specimen__lens-ring { width: 100%; height: 100%; }
.lens__ring { fill: none; stroke: var(--film-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lens__edge { fill: none; stroke: #121519; stroke-width: 4; vector-effect: non-scaling-stroke; }
.lens__ring--inner { stroke: rgba(143, 227, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 4; }
.lens__ticks { fill: none; stroke: var(--film-line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.specimen__lens-label {
    position: absolute;
    left: 50%; top: -12px;
    transform: translateX(-50%);
    padding: 2px 6px;
    background: var(--film);
    color: var(--film-line);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

html.js-anim .specimen__tag {
    display: grid;
    gap: 3px;
    position: absolute;
    left: 0; top: 0;
    width: max-content;
    max-width: 250px;
    padding: 9px 12px 10px;
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(18, 21, 25, 0.08);
    pointer-events: none;
    will-change: transform;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}
.specimen__tag-part {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.specimen__tag-part::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.specimen__tag-claim { font-size: 0.9375rem; line-height: 1.3; font-weight: 500; color: var(--ink); }

/* film mode inverts the specimen: film everywhere, the lens shows the sealed box */
html.is-xray .specimen__lens .lens__ring { stroke: #F8F9FA; }
html.is-xray .specimen__lens-label { background: #F8F9FA; color: #121519; }


/* ------------------------------------------------------------------ 9. SYMPTOMS */
.symptoms__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: start;
}
.symptoms__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.symptoms__intro .lede { margin-top: 24px; }
.readout--symptoms { max-width: 420px; margin-top: 40px; }

.form-sheet {
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    box-shadow: 10px 10px 0 -1px var(--sunk), 10px 10px 0 0 var(--rule);
}
.form-sheet__head {
    padding: 20px 24px 16px;
    border-bottom: 2px solid var(--ink);
}
.form-sheet__title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}
.form-sheet__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.form-sheet__fields div { border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.form-sheet__fields dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.form-sheet__fields dd { font-size: 0.9375rem; font-weight: 500; }

.symptom {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 24px;
    border-bottom: 1px solid var(--rule);
}
.symptom__box {
    width: 30px; height: 30px;
    margin-top: 2px;
    border: 1.5px solid var(--ink);
    background: var(--paper);
}
.symptom__box svg { width: 100%; height: 100%; }
.symptom__box path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: square; }
.symptom__name { font-size: 1.375rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.symptom__desc { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }
.symptom__result { padding-top: 4px; }
.form-sheet__foot {
    padding: 18px 24px 20px;
    font-size: 0.9375rem;
    color: var(--ink-2);
}
.form-sheet__foot .mono {
    margin-right: 6px;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.form-sheet__foot .mono:not(:first-child) { margin-left: 14px; }


/* ------------------------------------------------------------------ 10. TEARDOWN */
.teardown { padding-bottom: calc(var(--section-pad) * 0.8); }
.teardown__head .sheet-head { margin-bottom: clamp(32px, 4vw, 56px); }
.teardown__head .chip { text-transform: uppercase; }
.teardown__lede { margin-top: 20px; max-width: 44ch; }

.teardown__rig { display: none; }
.teardown__progress { display: none; }

.teardown__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(40px, 5vw, 72px);
    border-top: 1px solid var(--ink);
    counter-reset: tstep;
}
.tstep {
    padding: 20px 20px 28px 0;
    border-bottom: 1px solid var(--rule);
}
.tstep + .tstep { padding-left: 20px; border-left: 1px solid var(--rule); }
.tstep:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.tstep__num {
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.tstep__label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: 0.9em;
    margin-right: 4px;
    color: var(--ink-3);
}
.tstep__part {
    margin-top: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.tstep__claim {
    margin-top: 6px;
    font-size: 1.375rem;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.tstep__body { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); max-width: 40ch; }

/* knolled flat-lay */
.knoll {
    --k: 0.42;
    margin-top: clamp(48px, 6vw, 88px);
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--rule-strong);
    background: var(--paper);
    position: relative;
}
.knoll__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 20px;
}
.knoll__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.knoll__art {
    display: flex;
    align-items: flex-end;
    min-height: calc(632px * var(--k));
}
.knoll__art svg {
    width: calc(var(--w, 312) * var(--k) * 1px);
    height: calc(var(--h, 632) * var(--k) * 1px);
}
.knoll__label {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
    width: 100%;
    min-width: 110px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}
.knoll__num { color: var(--accent); font-size: 0.75rem; font-weight: 400; padding-top: 2px; }
.knoll__role {
    grid-column: 2;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.knoll__screws { width: 92px; height: auto; flex: none; }
.knoll__caption {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px dashed var(--rule-strong);
    font-size: 0.9375rem;
    color: var(--ink-2);
}
.knoll__caption .mono:first-child {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.knoll__screwcount {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

/* ---- pinned teardown (desktop, added by JS) ---- */
.teardown.is-pinned { padding-block: 0; }
.teardown.is-pinned .teardown__frame {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
}
.teardown.is-pinned .teardown__container {
    position: relative;
    height: 100%;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 28px;
}
.teardown.is-pinned .teardown__head { position: relative; z-index: 3; max-width: 520px; }
.teardown.is-pinned .teardown__head .sheet-head { margin-bottom: 26px; max-width: none; }
.teardown.is-pinned .teardown__lede { font-size: 1.0625rem; margin-top: 14px; }
.teardown.is-pinned .section-title { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.6rem); }

.teardown.is-pinned .teardown__rig {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    perspective: 1500px;
    pointer-events: none;
}
.rig__part {
    position: absolute;
    left: 0; top: 0;
    transform-style: preserve-3d;
    will-change: transform;
}
.rig__spin, .rig__body { position: absolute; inset: 0; transform-style: preserve-3d; }
.rig__body svg { width: 100%; height: 100%; }
.rig__part.is-active { --s-main: var(--accent); }

.teardown.is-pinned .teardown__steps {
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    top: calc(var(--header-h) + 330px);
    width: min(400px, 30vw);
    display: block;
    margin: 0;
    border: 0;
}
.teardown.is-pinned .tstep {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--ink);
    visibility: hidden;
}
.teardown.is-pinned .tstep__num { font-size: 3.5rem; }
.teardown.is-pinned .tstep__claim { font-size: 1.75rem; }
.teardown.is-pinned .tstep__body { font-size: 1rem; }

.teardown.is-pinned .knoll {
    --k: 0.47;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    z-index: 1;
}
.teardown.is-pinned .knoll__grid { justify-content: space-between; }
.teardown.is-pinned .knoll__caption { margin-top: 18px; }

.teardown.is-pinned .teardown__progress {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    top: calc(var(--header-h) + 28px);
    height: 32px;
}
.teardown__progress-bar {
    display: block;
    width: 180px;
    height: 2px;
    background: var(--rule);
    overflow: hidden;
}
.teardown__progress-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}
.teardown__progress-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink); }


/* ------------------------------------------------------------------ 11. STOCK */
.stock__intro {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 96px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.stock__claim { margin-top: 18px; font-size: 1.0625rem; color: var(--ink-2); }

.portal {
    background: var(--paper);
    border: 1px solid var(--rule-strong);
}
.portal__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rule);
}
.portal__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.portal__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(185, 60, 20, 0.15);
}
.portal__sync { margin-left: auto; font-size: 0.75rem; color: var(--ink-3); }

.portal__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--ink);
}
.portal__tabs::-webkit-scrollbar { display: none; }
.portal__tab {
    flex: none;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-right: 1px solid var(--rule);
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background-color var(--dur-state) var(--ease-exact), color var(--dur-state) var(--ease-exact);
}
.portal__tab:hover { color: var(--ink); background: var(--sunk); }
.portal__tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.portal__tab:focus-visible { outline-offset: -4px; }
html.no-js .portal__tabs { display: none; }

.portal__table { position: relative; }
.prow {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: 16px;
    align-items: center;
    min-height: 62px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--rule);
}
.prow[hidden] { display: none; }
.prow--head {
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.prow__cat { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); }
.prow__model { font-weight: 600; line-height: 1.25; }
.prow__model small {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--ink-3);
}
.prow__num {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.prow--head .prow__num { font-size: 0.6875rem; }
.prow--head .prow__model,
.prow--head .prow__inbound { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; color: var(--ink-3); }
.prow__delta { text-align: center; font-family: var(--font-mono); }
.prow:not(.prow--head) .prow__delta {
    justify-self: center;
    display: inline-grid;
    place-items: center;
    width: 30px; height: 30px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.875rem;
}
.prow__inbound { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink); text-align: right; }
.prow__inbound--none { color: var(--ink-3); }
html.js .prow__cat { display: none; }
html.js .prow { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr); }

/* digit reels (built by JS) */
.reel { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: bottom; }
.reel__digit { display: inline-block; height: 1.3em; overflow: hidden; }
.reel__strip { display: flex; flex-direction: column; }
.reel__strip span { display: block; height: 1.3em; }

.portal__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 12px 20px;
    font-size: 0.75rem;
    color: var(--ink-3);
}
.portal__foot strong { color: var(--accent); font-weight: 500; }

.feed {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
    margin-top: clamp(40px, 5vw, 64px);
}
.feed__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.feed__text p { color: var(--ink-2); max-width: 46ch; }
.feed__code {
    background: var(--film);
    color: var(--film-ink);
    border: 1px solid var(--film);
}
.feed__code-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(143, 227, 255, 0.2);
    font-size: 0.75rem;
    color: var(--film-line);
}
.feed__code-head .label-sample { color: var(--film-ink-2); }
.feed__code-head .label-sample::before { border-color: var(--film-ink-2); }
.feed__code pre {
    margin: 0;
    padding: 18px 16px 20px;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--film-ink);
}


/* ------------------------------------------------------------------ 12. PRICING */
.pricing__layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: start;
}
.pricing__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.pricing__intro .lede { margin-top: 24px; }
.pricing__hold { margin-top: 28px; color: var(--ink-2); max-width: 40ch; }

.readout {
    margin-top: 32px;
    border-top: 2px solid var(--ink);
}
.readout__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
}
.readout__key { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.readout__val { font-size: 1rem; font-variant-numeric: tabular-nums; }
.readout__row--big { align-items: center; }
.readout__row--big .readout__key { color: var(--ink); }
.readout__zero {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.quote { position: relative; padding-top: 34px; }
.quote__label { position: absolute; top: 0; left: 0; }

.qdoc {
    padding: clamp(22px, 3vw, 40px);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    font-size: 0.9375rem;
}
.qdoc--paper {
    --paper: #F8F9FA; --ink: #121519; --ink-2: #3B424B; --ink-3: #56606B; --rule: #C5CCD2; --rule-strong: #8A939C; --accent: #B93C14;
    box-shadow: 10px 10px 0 -1px var(--sunk), 10px 10px 0 0 #C5CCD2;
}
html.is-xray .qdoc--paper {
    --paper: #0E1F2D; --ink: #E4F5FC; --ink-2: #A6C2D0; --ink-3: #86A7B8;
    --rule: rgba(143, 227, 255, 0.2); --rule-strong: rgba(143, 227, 255, 0.45); --accent: #FF7A4F;
    box-shadow: 10px 10px 0 -1px rgba(143, 227, 255, 0.05), 10px 10px 0 0 rgba(143, 227, 255, 0.2);
}
html.is-xray .qdoc--film { border-color: rgba(143, 227, 255, 0.45); }
.qdoc--film {
    position: absolute;
    top: 34px; left: 0; right: 0; bottom: 0;
    background-color: var(--film);
    background-image:
        linear-gradient(var(--film-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--film-grid) 1px, transparent 1px);
    background-size: 24px 24px;
    border-color: var(--film);
    color: var(--film-ink);
    --ink: #E4F5FC; --ink-2: #A6C2D0; --ink-3: #86A7B8; --rule: rgba(143, 227, 255, 0.22); --rule-strong: rgba(143, 227, 255, 0.5); --accent: #FF7A4F;
    clip-path: inset(0 calc(100% - var(--scan)) 0 0);
}
/* GEOMETRY CONTRACT (paper and film)
   The film sits exactly on the paper and is clipped at the scanner, so at the seam the reader sees
   film on the left and paper on the right. Rules that keep every mixed state true:
   - shared strings are identical (same font, size, alignment); only the colour differs;
   - x-ray additions never change layout: nowrap, and only where the paper is empty
     (a prefix left of right-aligned text, a suffix right of left-aligned text, or a reserved line);
   - film-only figures ([data-check] in the composition row, [data-whole]) appear only once fully
     scanned, so the beam never shows half a number. */
.qdoc__head {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
}
.qdoc__brand { display: grid; gap: 8px; min-width: 0; color: var(--ink); }
.qdoc__brand svg { width: 78px; height: 25px; }
.qdoc__brand .mono { font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.qdoc__ref { flex: none; text-align: right; }
.qdoc__kind { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.qdoc__no { font-size: 1.125rem; letter-spacing: 0.02em; white-space: nowrap; }
.qdoc__meta {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.qdoc__meta dt, .qdoc__totals dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-3);
}
.qdoc__meta dd { font-size: 0.875rem; line-height: 1.3; }
.qdoc__lines { width: 100%; table-layout: fixed; margin-top: 6px; }
.qdoc__lines th {
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: right;
}
.qdoc__lines th:first-child { text-align: left; width: 50%; }
.qdoc__lines th:nth-child(2) { width: 9%; }
.qdoc__lines th:nth-child(3) { width: 18%; }
.qdoc__lines td {
    height: 56px;
    padding: 0;
    border-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}
.qdoc__lines td:first-child { text-align: left; font-family: var(--font-sans); }
.qdoc__item { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; overflow: hidden; text-overflow: clip; }
.qdoc__sub { display: block; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.5; color: var(--ink-3); overflow: hidden; }
/* the composition row: empty (reserved) on paper, the workings on film */
.qdoc__lines tr.qdoc__comp td {
    height: 28px;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
}
.qdoc__comptext { display: block; color: var(--film-ink-2); }
.qdoc--film .qdoc__item { color: var(--film-ink); }
.qdoc--film .qdoc__sub { color: var(--film-ink-2); }
.qdoc--film .qdoc__lines td { color: var(--film-line); }
.qdoc--film .qdoc__lines td:first-child { color: var(--film-ink); }
.qdoc--film .qdoc__comptext b,
.qdoc--film [data-whole] { font-weight: 400; color: var(--film-line); }
/* fade in once fully uncovered; vanish instantly when the scanner backs over them */
.qdoc--film .is-scanned { transition: opacity 0.12s linear; }
.qdoc__eq { color: var(--film-accent); }
html.js .qdoc--film .qdoc__comptext b:not(.is-scanned),
html.js .qdoc--film [data-whole]:not(.is-scanned) { opacity: 0; }

.qdoc__totals { margin-top: 12px; margin-left: auto; width: min(100%, 340px); }
.qdoc__totals div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule);
}
.qdoc__totals dd { font-family: var(--font-mono); font-size: 0.875rem; white-space: nowrap; }
.qdoc__total { border-bottom: 2px solid var(--ink) !important; }
.qdoc__total dt { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink); }
.qdoc__total dd { font-size: 1.125rem; font-weight: 500; }
.qdoc--film .qdoc__total dd { color: var(--film-accent); }
.qdoc__foot { margin-top: 18px; font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.04em; color: var(--ink-3); }
.qdoc__foot-a { display: block; }
.qdoc__foot-b { display: block; height: 1.5em; white-space: nowrap; color: var(--film-line); }

.quote__scanner {
    position: absolute;
    top: 22px; bottom: -12px;
    left: var(--scan);
    width: 48px;
    margin-left: -24px;
    cursor: ew-resize;
    touch-action: none;
    z-index: 3;
}
.quote__scanner:focus-visible { outline: none; }
.quote__scanner:focus-visible .quote__handle { outline: 2px solid var(--accent); outline-offset: 4px; }
.quote__beam {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--film-line);
    box-shadow: 0 0 10px rgba(143, 227, 255, 0.9), 0 0 2px rgba(143, 227, 255, 1);
}
.quote__handle {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    background: var(--film);
    border: 2px solid var(--film-line);
    border-radius: 50%;
    color: var(--film-line);
    box-shadow: 0 0 16px rgba(143, 227, 255, 0.5);
    transition: transform var(--dur-state) var(--ease-exact);
}
.quote__handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.quote__scanner:hover .quote__handle,
.quote__scanner.is-dragging .quote__handle { transform: scale(1.08); }
/* without JS the quote is shown fully x-rayed: no seam, nothing to drag */
html.no-js .quote__scanner { display: none; }


/* ------------------------------------------------------------------ 13. PROVENANCE */
.provenance__intro {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 96px);
    align-items: end;
    margin-bottom: clamp(48px, 6vw, 88px);
}

.trace {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: start;
}

.passport {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    padding: 22px 24px 24px;
}
.passport__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}
.passport__title { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.passport__fields > div {
    display: grid;
    grid-template-columns: 9ch 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
}
.passport__fields dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 3px;
}
.passport__fields dd.mono { font-size: 0.875rem; }
.passport__status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.passport__status .mono { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.passport__status-val { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.passport__meter { height: 3px; margin-top: 12px; background: var(--rule); overflow: hidden; }
.passport__meter span { display: block; height: 100%; background: var(--accent); transform-origin: left center; }

.trace__route { position: relative; }
.trace__svg {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
}
.trace__path { fill: none; vector-effect: non-scaling-stroke; }
.trace__path--ghost { stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 3 5; }
.trace__path--live { stroke: var(--accent); stroke-width: 2.5; }
.trace__dot { display: none; }
.trace__dot-halo { fill: rgba(185, 60, 20, 0.14); }
.trace__dot-core { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
html.is-xray .trace__dot-halo { fill: rgba(255, 122, 79, 0.2); }

.trace__nodes {
    position: relative;
    display: grid;
    gap: clamp(40px, 7vh, 88px);
    padding-left: 72px;
}
.trace__nodes::before {
    content: '';
    position: absolute;
    left: 23px; top: 10px; bottom: 10px;
    border-left: 2.5px solid var(--accent);
}
html.js-anim .trace__nodes::before { display: none; }
html.js-anim .trace__dot { display: inline; }
html.js-anim .tnode__pin::after { transform: scale(0); transition: transform 0.25s var(--ease-exact); }
html.js-anim .tnode__pin.is-reached::after { transform: scale(1); }

.tnode { position: relative; }
.tnode__pin {
    position: absolute;
    left: -58px; top: 16px;
    width: 18px; height: 18px;
    border: 2.5px solid var(--accent);
    border-radius: 50%;
    background: var(--ground);
}
.tnode__pin::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
}
.tnode__card {
    position: relative;
    max-width: 560px;
    padding: 18px 22px 20px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
}
.tnode__step { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tnode__title {
    margin-top: 8px;
    padding-right: 120px;
    font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.018em;
    text-wrap: balance;
}
.tnode__meta { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.tnode__card .stamp {
    position: absolute;
    top: 16px; right: 18px;
}


/* ------------------------------------------------------------------ 14. PARTS LIST (BOM) */
.parts__intro {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 96px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.bom-wrap { background: var(--paper); border: 1px solid var(--rule-strong); }
.bom { width: 100%; font-size: 0.9375rem; }
.bom__caption {
    caption-side: top;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
.bom__caption-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
}
.bom { table-layout: fixed; }
.bom__c-no { width: 11%; }
.bom__c-cat { width: 16%; }
.bom__c-brands { width: 38%; }
.bom__c-war { width: 13%; }
.bom__c-lead { width: 12%; }
.bom__c-qty { width: 10%; }
.bom thead th {
    padding: 12px 20px;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: left;
}
.bom tbody td, .bom tbody th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: baseline;
}
.bom tbody th { font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.bom tbody { counter-reset: find; }
.bom tbody tr { counter-increment: find; }
.bom tbody td:first-child { font-size: 0.875rem; color: var(--accent); white-space: nowrap; }
/* engineering BOM "find number" balloons */
.bom tbody td:first-child::before {
    content: counter(find);
    display: inline-grid;
    place-items: center;
    width: 22px; height: 22px;
    margin-right: 10px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-size: 0.6875rem;
    color: var(--ink);
    vertical-align: 1px;
}
.bom tbody td:nth-child(3) { color: var(--ink-2); }
.bom tbody td.mono { font-size: 0.875rem; white-space: nowrap; }
.bom .bom__qty { text-align: right; font-variant-numeric: tabular-nums; }
.bom tfoot td {
    padding: 14px 20px 16px;
    font-size: 0.875rem;
    color: var(--ink-2);
    vertical-align: top;
}
.bom tfoot td.mono { color: var(--ink); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.bom tfoot td.bom__qty { font-size: 1.125rem; letter-spacing: 0; }
.bom tfoot .xnote { margin-top: 8px; }
.bom tbody tr { position: relative; }
html.js-anim .bom tbody tr {
    background-image: linear-gradient(90deg, transparent calc(var(--scan-x, 300%) - 3px), var(--film-line) calc(var(--scan-x, 300%) - 3px), var(--film-line) var(--scan-x, 300%), transparent var(--scan-x, 300%));
    background-repeat: no-repeat;
}
.parts__note { margin-top: 16px; font-size: 0.8125rem; color: var(--ink-3); }


/* ------------------------------------------------------------------ 15. TERMS */
.fineprint {
    position: relative;
    display: grid;
    min-height: clamp(360px, 38vw, 520px);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    overflow: hidden;
}
.fineprint > * { grid-area: 1 / 1; }
.fineprint__legal {
    display: none;
    position: absolute;
    inset: clamp(16px, 2vw, 28px);
    overflow: hidden;
    column-count: 4;
    column-gap: 20px;
    column-fill: auto;
    font-size: 7.5px;
    line-height: 1.36;
    text-align: justify;
    hyphens: auto;
    color: var(--ink-3);
}
.fineprint__legal p + p { margin-top: 5px; }
.fineprint__legal b { color: var(--ink-2); }
.fineprint__reveal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 80px);
}
.fineprint__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}
.fineprint__title {
    font-size: clamp(2.6rem, 1rem + 5.2vw, 6.4rem);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.035em;
    text-shadow: var(--glow-text);
}
.fineprint__line { display: block; }
.fineprint__line--b { color: var(--accent); }
.fineprint__beam {
    display: none;
    align-self: start;
    height: 2px;
    background: var(--film-line);
    box-shadow: 0 0 14px 2px rgba(143, 227, 255, 0.8);
    pointer-events: none;
}
html.js-anim .fineprint__legal { display: block; }
html.js-anim .fineprint__beam { display: block; opacity: 0; }

.terms__plain {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 0 clamp(32px, 5vw, 96px);
    margin-top: clamp(48px, 6vw, 88px);
}
.terms__intro {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.012em;
    max-width: 22ch;
}
.terms__list { border-top: 2px solid var(--ink); }
.term {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--rule);
}
.term__num { font-size: 0.875rem; color: var(--accent); padding-top: 6px; }
.term__title {
    font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.term__text { margin-top: 8px; color: var(--ink-2); max-width: 54ch; }
.terms__coda {
    grid-column: 2;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--ink-3);
}


/* ------------------------------------------------------------------ 16. FINDINGS */
.report {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    padding: clamp(24px, 4vw, 64px);
    box-shadow: 12px 12px 0 -1px var(--sunk), 12px 12px 0 0 var(--rule);
}
.report__head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px clamp(28px, 5vw, 96px);
    align-items: end;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ink);
}
.report__title {
    font-size: clamp(3rem, 1rem + 6vw, 7rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.045em;
    text-shadow: var(--glow-text);
}
.report__meta > div {
    display: grid;
    grid-template-columns: 10ch 1fr;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
}
.report__meta dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 3px;
}
.report__body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 5vw, 96px);
    padding: clamp(28px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--rule);
}
.report__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.report__list li {
    display: grid;
    grid-template-columns: 12ch 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
}
.report__list .mono {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 4px;
}
.report__impression { position: relative; }
.report__verdict {
    font-size: clamp(3rem, 1.2rem + 4.6vw, 6rem);
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: -0.045em;
    text-shadow: var(--glow-text);
}
.report__impression .stamp { margin-top: 28px; transform: rotate(-7deg); }

.opinions { padding-top: clamp(28px, 4vw, 48px); }
.opinions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
}
.opinion {
    padding-top: 16px;
    border-top: 1px solid var(--ink);
}
.opinion blockquote p {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.008em;
    text-wrap: pretty;
}
.opinion blockquote p::before { content: '“'; }
.opinion blockquote p::after { content: '”'; }
.opinion figcaption {
    margin-top: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}


/* ------------------------------------------------------------------ 17. CTA */
.cta {
    position: relative;
    padding-block: clamp(88px, 9vw, 140px);
    border-block: 1px solid var(--ink);
    background: var(--paper);
}
.cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: end;
}
.cta__title {
    padding-top: 0.2em;
    font-size: clamp(3rem, 1rem + 6.4vw, 7.6rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.045em;
    text-shadow: var(--glow-text);
}
.cta__line { position: relative; display: block; width: fit-content; }
.cta__line + .cta__line { margin-top: 0.36em; }
/* dimension lines measure the claims */
.cta__dim {
    position: absolute;
    left: 0; right: 0;
    top: -0.2em;
    height: 12px;
    border-left: 1.5px solid var(--ink-3);
    border-right: 1.5px solid var(--ink-3);
    pointer-events: none;
}
.cta__dim::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    border-top: 1px solid var(--ink-3);
}
.cta__dim span {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-2);
}
.cta__line--b { color: var(--accent); }
.cta__text { font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }


/* ------------------------------------------------------------------ 18. CONTACT */
.contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 6vw, 120px);
    align-items: start;
}
.contact__main .lede { margin-top: 22px; }

.file-form {
    margin-top: clamp(32px, 4vw, 48px);
    padding: clamp(20px, 3vw, 36px);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
}
.file-form__no {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}
.field { display: grid; gap: 7px; align-content: start; }
.field--notes { margin-top: 22px; }
.field label, .choice legend {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
.field__opt { color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--rule-strong);
    border-radius: 2px;
    background: var(--ground);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color var(--dur-state) var(--ease-exact);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 1px; }

.choice { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.choice legend { margin-bottom: 9px; padding: 0; }
.choice__options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
}
.choice__item input {
    position: absolute;
    opacity: 0;
    width: 100%; height: 100%;
    margin: 0;
    cursor: pointer;
}
.choice__item span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--rule-strong);
    border-radius: 2px;
    background: var(--ground);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color var(--dur-state) var(--ease-exact), color var(--dur-state) var(--ease-exact), border-color var(--dur-state) var(--ease-exact);
}
.choice__item span::before {
    content: '';
    width: 10px; height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 1px;
}
.choice__item input[type="radio"] + span::before { border-radius: 50%; }
.choice__item:hover span { border-color: var(--ink); }
.choice__item input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice__item input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.choice__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.file-form__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.file-form__privacy { font-size: 0.875rem; color: var(--ink-3); }
.form-status {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--ink);
}
.form-status:empty { display: none; }
.form-status--error { padding: 12px 14px; border: 1.5px solid var(--accent); color: var(--accent); }
.form-status--success { padding: 12px 14px; border: 1.5px solid var(--ink); }

.contact__aside { display: grid; gap: 36px; padding-top: 8px; }
.lines__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.lines__list li {
    display: grid;
    grid-template-columns: 11ch 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
}
.lines__list .mono { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lines__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.lines__list a:hover { color: var(--accent); }
.promise__text { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; max-width: 26ch; }
.next__list { border-top: 1px solid var(--ink); }
.next__list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
}
.next__num {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    font-size: 0.75rem;
    color: var(--accent);
}


/* ------------------------------------------------------------------ 19. FOOTER */
.site-footer {
    padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--ink);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
    gap: 32px clamp(28px, 4vw, 72px);
}
.brand__mark--footer { width: 132px; height: 43px; color: var(--ink); }
.site-footer__tag { margin-top: 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.04em; }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-2);
}
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { display: grid; gap: 8px; align-content: start; font-size: 0.8125rem; color: var(--ink-3); }
.site-footer__legal p:first-child { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); }


/* ------------------------------------------------------------------ 20. FILM MODE EXTRAS */
html.is-xray { color-scheme: dark; }
html.is-xray .knoll svg,
html.is-xray .rig__body svg { filter: var(--glow); }
html.is-xray .stamp { text-shadow: 0 0 10px rgba(255, 122, 79, 0.35); }
html.is-xray .form-sheet,
html.is-xray .report { box-shadow: 10px 10px 0 -1px rgba(143, 227, 255, 0.04), 10px 10px 0 0 rgba(143, 227, 255, 0.18); }
html.is-xray .bx-label__card { fill: #fff; }
html.is-xray .feed__code { border-color: rgba(143, 227, 255, 0.3); }
html.is-xray .cta { background: var(--paper); }

/* the scan beam that flips the page */
.xray-beam {
    position: fixed;
    left: 0; right: 0; top: 0;
    z-index: 300;
    height: 3px;
    background: var(--film-line);
    box-shadow: 0 0 18px 4px rgba(143, 227, 255, 0.75), 0 0 2px 1px #fff;
    pointer-events: none;
    opacity: 0;
    view-transition-name: xray-beam;
}
/* a short glow trail behind the beam, on the side that has already been scanned */
.xray-beam::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 100%;
    height: 72px;
    background: linear-gradient(to top, rgba(143, 227, 255, 0.28), rgba(143, 227, 255, 0));
}
html.vt-up .xray-beam::before { bottom: auto; top: 100%; transform: scaleY(-1); }

::view-transition-group(xray-beam) {
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 2;
}
::view-transition-old(xray-beam),
::view-transition-new(xray-beam) { animation: none; }

html.vt-down::view-transition-old(root),
html.vt-up::view-transition-old(root) { animation: none; z-index: 0; }
html.vt-down::view-transition-new(root) {
    animation: vt-wipe-down 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
    z-index: 1;
}
html.vt-up::view-transition-new(root) {
    animation: vt-wipe-up 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
    z-index: 1;
}
@keyframes vt-wipe-down {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}
@keyframes vt-wipe-up {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}


/* ------------------------------------------------------------------ 21. JS-ANIM START STATES */
/* Only under html.js-anim. GSAP clears these as each piece arrives. */
html.js-anim .symptom__box path { stroke-dasharray: 30; stroke-dashoffset: 30; }


/* ------------------------------------------------------------------ 22. RESPONSIVE */
@media (min-width: 900px) and (max-width: 1180px) {
    .hero__title { font-size: clamp(2.4rem, 4.35vw, 3.4rem); }
    .hero__grid { --stage-h: clamp(520px, calc(100svh - var(--header-h) - 72px), 700px); }
    .teardown.is-pinned .teardown__head { max-width: 44vw; }
    .teardown.is-pinned .teardown__lede { max-width: 36ch; }
}

@media (max-width: 1180px) {
    .site-nav__link { padding: 0 9px; font-size: 0.875rem; }
    .brand__descriptor { display: none; }
    .teardown__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tstep:nth-child(4n + 1) { padding-left: 20px; border-left: 1px solid var(--rule); }
    .tstep:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}

@media (max-width: 1023.98px) {
    .site-nav, .site-header__cta { display: none; }
    html.no-js .menu-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
        border: 1.5px solid var(--ink);
        font-weight: 600;
        text-decoration: none;
    }
    html.js .menu-button { display: inline-flex; }
    .site-header__actions { margin-left: auto; }

    .symptoms__layout,
    .pricing__layout,
    .stock__intro,
    .provenance__intro,
    .parts__intro,
    .feed,
    .contact__layout,
    .cta__inner,
    .terms__plain,
    .report__head,
    .report__body { grid-template-columns: minmax(0, 1fr); }
    .symptoms__intro, .pricing__intro { position: static; }
    .terms__coda { grid-column: 1; }
    .terms__intro { margin-bottom: 24px; }
    .trace { grid-template-columns: minmax(0, 1fr); }
    .passport { position: relative; top: auto; }
    .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 899.98px) {
    :root { --header-h: 60px; }

    .hero__grid {
        --stage-h: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto auto;
        min-height: 0;
    }
    .hero__dict { grid-column: 1; grid-row: 1; }
    .hero__title { grid-column: 1; grid-row: 2 / 5; font-size: clamp(2.4rem, 1.2rem + 5.6vw, 3.6rem); }
    .hero__line--a { grid-column: 1; grid-row: 1; margin-top: 18px; }
    .hero__line--b { grid-column: 1; grid-row: 3; margin: 6px 0 0; justify-self: end; text-align: right; }
    .hero__specimen { grid-column: 1; grid-row: 3; justify-self: center; margin-top: 20px; width: 100%; }
    .hero__body { grid-column: 1; grid-row: 5; margin-top: 28px; }
    .hero__data { grid-column: 1; grid-row: 6; margin-top: 28px; max-width: none; }
    .specimen__stage {
        height: clamp(420px, 62svh, 560px);
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }

    .form-sheet__fields { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .symptom { grid-template-columns: 30px minmax(0, 1fr); padding: 20px 18px; gap: 14px; }
    .symptom__result { grid-column: 2; }

    .knoll { --k: 0.235; padding: 22px 14px 18px; }
    .knoll__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
        gap: 26px 10px;
    }
    .knoll__cell { align-items: stretch; gap: 10px; }
    .knoll__art { min-height: 0; justify-content: center; }
    .knoll__label { grid-template-columns: minmax(0, 1fr); min-width: 0; font-size: 0.6875rem; padding-top: 7px; }
    .knoll__num { font-size: 0.625rem; }
    .knoll__role { grid-column: 1; font-size: 0.5625rem; letter-spacing: 0.03em; }
    .knoll__caption { font-size: 0.875rem; }
    .knoll__screwcount { margin-left: 0; }

    .prow,
    html.js .prow {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "model num" "inbound delta";
        gap: 4px 12px;
        padding: 12px 16px;
    }
    .prow__cat { display: none; }
    .prow__model { grid-area: model; }
    .prow__num:nth-of-type(3) { grid-area: num; }
    .prow__num:nth-of-type(4) { display: none; }
    .prow__delta { grid-area: delta; }
    .prow__inbound { grid-area: inbound; text-align: left; }
    .prow:not(.prow--head) .prow__delta { justify-self: end; width: auto; height: auto; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; white-space: nowrap; }
    .prow:not(.prow--head) .prow__delta::before { content: 'Δ '; }
    .prow--head { display: none; }
    .portal__sync { margin-left: 0; width: 100%; }

    /* the legal name alone fills the letterhead on a phone: the city goes */
    .qdoc__city { display: none; }

    /* a full email address does not fit beside its label on a phone */
    .lines__list li { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
    .lines__list a { min-width: 0; overflow-wrap: anywhere; }
    .qdoc__meta { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .qdoc__lines thead { display: none; }
    .qdoc__lines, .qdoc__lines tbody { display: block; }
    .qdoc__lines tr {
        display: grid;
        grid-template-columns: 3.6em minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
        height: 82px;
    }
    .qdoc__lines td { height: auto; border: 0; font-size: 0.8125rem; }
    .qdoc__lines td:first-child { grid-column: 1 / -1; }
    .qdoc__lines td:nth-child(2) { text-align: left; }
    .qdoc__lines td:nth-child(2)::after { content: ' ×'; }
    .qdoc__lines td:nth-child(3) { text-align: left; }
    /* the unit is left-aligned on mobile, so its prefix would shift the figure: drop it here */
    .qdoc__lines td:nth-child(3) .qdoc__eq { display: none; }
    .qdoc__lines tr.qdoc__comp { display: block; height: 42px; }
    .qdoc__lines tr.qdoc__comp td { display: block; height: 42px; font-size: 0.6875rem; line-height: 1.45; white-space: normal; }
    .qdoc__foot-b { height: 3em; white-space: normal; }
    .qdoc__totals { width: 100%; }

    .trace__nodes { padding-left: 52px; gap: 36px; }
    .tnode__pin { left: -44px; }
    .trace__nodes::before { left: 16px; }
    .tnode__title { padding-right: 0; }
    .tnode__card .stamp { position: relative; top: auto; right: auto; margin-top: 14px; }

    .bom, .bom tbody, .bom tr, .bom td, .bom tbody th { display: block; }
    .bom thead { display: none; }
    .bom caption { display: flex; }
    .bom tbody tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 4px 12px;
        padding: 16px;
        border-bottom: 1px solid var(--rule);
    }
    .bom tbody td, .bom tbody th { padding: 0; border: 0; }
    .bom tbody td:first-child { grid-column: 1; grid-row: 1; }
    .bom tbody th { grid-column: 2; grid-row: 1; white-space: normal; }
    .bom tbody td.bom__qty { grid-column: 3; grid-row: 1; }
    .bom tbody td:nth-child(3) { grid-column: 1 / -1; font-size: 0.9375rem; }
    .bom tbody td:nth-child(4) { grid-column: 1 / 3; font-size: 0.875rem; color: var(--ink-3); }
    .bom tbody td:nth-child(5) { grid-column: 3; text-align: right; }
    .bom tfoot, .bom tfoot tr { display: block; }
    .bom tfoot tr { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; padding: 16px; }
    .bom tfoot td { display: block; padding: 0; }
    .bom tfoot td:first-child { grid-column: 1 / -1; }

    .fineprint__legal { column-count: 2; font-size: 7px; }
    .opinions__grid { grid-template-columns: minmax(0, 1fr); }
    .report__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .field-grid { grid-template-columns: minmax(0, 1fr); }
    .teardown__steps { grid-template-columns: minmax(0, 1fr); }
    .tstep, .tstep + .tstep, .tstep:nth-child(2n + 1), .tstep:nth-child(4n + 1) { padding: 18px 0 22px; border-left: 0; }
    .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 559.98px) {
    .brand__mark { width: 74px; height: 24px; }
    .xray-toggle { padding: 0 9px 0 8px; gap: 7px; }
    .xray-toggle__state { display: none; }
    .menu-button__label { display: none; }
    .menu-button { width: 44px; justify-content: center; padding: 0; }
    .hero__actions .btn { flex: 1 1 100%; }
    .specimen-data > div,
    .specimen-findings__list li { grid-template-columns: 10ch 1fr; }
    .portal__tab { padding: 0 14px; font-size: 0.875rem; }
    .qdoc { padding: 18px 16px; }
    .qdoc__totals div { gap: 8px; }
    /* no room beside the brand line on a phone: the x-ray suffix would reach the quote number */
    .qdoc__xtra { display: none; }
    .qdoc__no { font-size: 0.9375rem; }
    .quote__scanner { width: 44px; margin-left: -22px; }
    .quote__handle { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .term { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
    .cta__actions .btn, .file-form__submit .btn { flex: 1 1 100%; }
    .fineprint__legal { column-count: 2; column-gap: 12px; font-size: 6.5px; }
    .site-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ------------------------------------------------------------------ 23. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}
