/*
 * tcna-solutions.com 2.0 — the design system of 31 "Round trip" (PLAN.md §v3): tokens, type, the frame (header, menu,
 * footer, toasts) and the shared components every public page, the account pages and the home use.
 *
 * The world: a desk, a machine, a request riding a cable through it. Every inner page is a still frame of that film:
 * a still of the part at the top (.still), the route map that says where you are (.route), plates with a printed
 * jacket strip (.plate > .jk + .pb), and silkscreen drawings of the parts (.silk). pages.css lays the pages out.
 *
 * Palette (03): deep teal, laser cream as the only light colour, print red for what you act on (buttons, focus, live
 * dots), steel for labels. Matte and square: no gradients, no glow, no rounded cards, no drop shadows. Text contrast
 * is WCAG AA or better on every surface (figures beside the tokens: on --ground / on --plate).
 * Type: --display (Familjen Grotesk) for headings and text, --mono (Martian Mono at 76 % width) for labels, designators
 * and readouts. Never use the `font` shorthand here: it resets font-stretch, and Martian Mono's width comes from the
 * inherited font-stretch below (Familjen Grotesk has no width axis and ignores it).
 */

:root {
  color-scheme: dark;

  /* ground and surfaces */
  --ground: #041012;          /* the dark around the machine (31's page) */
  --ground-2: #08191C;        /* bands, the footer */
  --teal: #0D2B2F;            /* the world: solder mask, the field behind a still */
  --plate: #071A1D;           /* plates */
  --plate-2: #0A2327;         /* inside a plate: inputs, notes, hover */
  --jacket: #0A0E0F;          /* the printed jacket strip on a plate */

  /* ink */
  --laser: #FFF1D6;           /* the only light colour: headings, the lit route   17.3 / 16.0 */
  --ink: #EDE3CF;             /* body text                                        15.2 / 14.0 */
  --ink-2: #B9BDB8;           /* secondary text                                   10.1 / 9.4  */
  --mute: #8F979C;            /* steel: labels, readouts                          6.5 / 6.0 (5.0 on --teal) */
  --mute-2: #5B6569;          /* dark steel: rules, marks — never text            3.2         */
  --line: rgba(143, 151, 156, .24);
  --line-2: rgba(143, 151, 156, .42);

  /* the one accent: print red */
  --red: #D03A2A;             /* marks, rules, live dots, focus (4.0:1 against the ground: non-text, ≥ 3:1) */
  --red-fill: #C9372A;        /* behind laser text: buttons, the designator chip  4.6:1 */
  --red-press: #B12F23;       /* hover / pressed                                   5.7:1 */
  --red-ink: #F0705F;         /* red as text on dark: designators, errors          6.6 / 6.1 */

  /* type */
  --display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, Menlo, monospace;
  --mono-w: 76%;
  --t-hero: clamp(40px, 5.4vw, 82px);
  --t-h2: clamp(29px, 3.3vw, 48px);
  --t-h3: clamp(20px, 1.6vw, 25px);
  --t-lede: clamp(17px, 1.25vw, 19.5px);
  --t-body: 16.5px;
  --t-small: 14.5px;
  --t-label: 11px;
  --t-micro: 10px;

  /* motion: 31's two curves */
  --e-out: cubic-bezier(.16, .84, .24, 1);
  --e-latch: cubic-bezier(.7, 0, .25, 1);

  /* layout */
  --gut: clamp(16px, 3vw, 40px);
  --top: 60px;
  --top-reserve: 0px;          /* a page can keep room at the header's right edge (the home's route nav) */
  --wrap: 1280px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .5 -.1'/></filter><rect width='100%' height='100%' filter='url%28%23g%29'/></svg>");

  /* names the Guide (agent.css) and older sheets still use — the same palette under the 1.x names */
  --nav-h: var(--top);
  --bg: var(--ground);
  --bg-2: var(--plate);
  --panel: rgba(7, 26, 29, .96);
  --ink2: var(--ink-2);
  --ink3: var(--mute);
  --ink4: rgba(143, 151, 156, .62);
  --cu: var(--red);
  --cu-hi: #E2503E;
  --cu-ink: var(--laser);
  --err: var(--red-ink);
  --sans: var(--display);
  --ease: var(--e-out);
}

/* ---------- layout (C4): text panels, map and locator, set in the admin (Content → Home page → Layout) ----------
   layout/site.php prints site_layout() on <html>: data-text (s · m · l), data-map (s · m · l), data-loc (map · cable ·
   parts · hidden), data-locm (strip · parts · hidden) and the fine-tune as --pw-set (a panel width) and --ts (a text
   scale). The home's plates (home.css) and the inner pages' head plates (pages.css) read the same tokens, so the site
   keeps one scale. Without the attributes a page is M with the map (its strip on phones). */
:root { --ts: 1; --tm: 1; --rtw: 300px; --bomw: 340px; --mk: 1; --locw: var(--rtw); }
html[data-map="s"] { --rtw: 240px; --bomw: 300px; --mk: .92; }
html[data-map="l"] { --rtw: clamp(300px, 24vw, 380px); --bomw: clamp(340px, 27vw, 420px); --mk: 1.14; }
html[data-loc="parts"] { --locw: var(--bomw); }
html[data-loc="cable"] { --locw: 200px; }
html[data-loc="hidden"] { --locw: 0px; }
html[data-text="s"] { --tm: .93; }
html[data-text="l"] { --tm: 1.08; }
@media (min-width: 1280px) {
  :root {   /* M: the C3 sizes */
    --pw0: clamp(540px, 37vw, 700px); --cw0: clamp(440px, 30vw, 580px); --pin: clamp(40px, 5vw, 96px);
    --fs-h1: clamp(50px, 4.3vw, 78px); --fs-h2: clamp(44px, 3.8vw, 68px); --fs-p: clamp(18px, 1.3vw, 21px); --fs-mute: clamp(17px, 1.2vw, 19.5px);
    --fs-mono: 12.5px; --fs-li: clamp(17px, 1.2vw, 20px); --prj-w: clamp(100px, 7.4vw, 136px); --fs-prjb: clamp(20px, 1.4vw, 24px);
    --fs-prjs: clamp(16px, 1.12vw, 18.5px); --fs-fact: clamp(36px, 2.7vw, 48px); --fs-nums: clamp(40px, 2.9vw, 52px); --fs-who: clamp(21px, 1.45vw, 25px);
    --fs-btn: clamp(20px, 1.45vw, 25px); --fs-lnk: clamp(18px, 1.3vw, 21px); --fs-opt: clamp(19px, 1.35vw, 23px); --fs-opt1: clamp(25px, 1.85vw, 31px);
    --fs-caph2: clamp(32px, 2.5vw, 42px); --pb-t: clamp(24px, 1.9vw, 34px); --pb-x: clamp(26px, 2.1vw, 38px);
    /* the panel's width: the size's, or the admin's fine-tune — never more than half the screen (the world needs the rest) */
    --pw: min(var(--pw-set, var(--pw0)), 50vw);
  }
  html[data-text="s"] {   /* S: compact, about the old size */
    --pw0: 470px; --cw0: 400px; --pin: clamp(32px, 3.4vw, 64px);
    --fs-h1: 50px; --fs-h2: 39px; --fs-p: 16.5px; --fs-mute: 15.5px; --fs-mono: 11px; --fs-li: 15.5px; --prj-w: 78px; --fs-prjb: 17.5px;
    --fs-prjs: 14.5px; --fs-fact: 31px; --fs-nums: 35px; --fs-who: 19.5px; --fs-btn: 18px; --fs-lnk: 17px; --fs-opt: 17.5px; --fs-opt1: 23.5px;
    --fs-caph2: 27px; --pb-t: 18px; --pb-x: 20px;
  }
  html[data-text="l"] {   /* L: about 760 px wide, the headline up to about 76 px, the body about 22 px */
    --pw0: clamp(600px, 44vw, 760px); --cw0: clamp(480px, 33vw, 620px); --pin: clamp(48px, 5.4vw, 104px);
    --fs-h1: clamp(56px, 4.8vw, 86px); --fs-h2: clamp(50px, 4.2vw, 76px); --fs-p: clamp(19px, 1.45vw, 22px); --fs-mute: clamp(18px, 1.32vw, 20.5px);
    --fs-mono: 13px; --fs-li: clamp(18px, 1.32vw, 21px); --prj-w: clamp(110px, 8vw, 150px); --fs-prjb: clamp(21px, 1.55vw, 26px);
    --fs-prjs: clamp(17px, 1.22vw, 19.5px); --fs-fact: clamp(40px, 3vw, 54px); --fs-nums: clamp(44px, 3.2vw, 58px); --fs-who: clamp(22px, 1.6vw, 27px);
    --fs-btn: clamp(21px, 1.6vw, 27px); --fs-lnk: clamp(19px, 1.42vw, 22px); --fs-opt: clamp(20px, 1.5vw, 25px); --fs-opt1: clamp(27px, 2vw, 34px);
    --fs-caph2: clamp(35px, 2.75vw, 46px); --pb-t: clamp(26px, 2.1vw, 38px); --pb-x: clamp(28px, 2.3vw, 42px);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink); overflow-x: clip;
  font-family: var(--display); font-size: var(--t-body); font-weight: 400; line-height: 1.55; font-stretch: var(--mono-w);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; font-stretch: inherit; color: inherit; }
b, strong { font-weight: 600; }
::selection { background: var(--laser); color: var(--ground); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 14px; background: var(--red-fill); color: var(--laser); font-family: var(--mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.word { display: inline-block; white-space: nowrap; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); }
.disp { font-family: var(--display); font-weight: 600; letter-spacing: -.026em; line-height: .98; color: var(--laser); }
.kick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.kick b { font-weight: 500; color: var(--red-ink); }
.kick a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.kick a:hover { color: var(--laser); border-color: var(--red); }
.ln { display: block; font-family: var(--mono); font-size: var(--t-label); font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink); max-width: 36em; }
.mute { color: var(--ink-2); }
.label { font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.h1 { font-family: var(--display); font-size: var(--t-hero); font-weight: 600; line-height: .97; letter-spacing: -.03em; color: var(--laser); text-wrap: balance; }
.h2 { font-family: var(--display); font-size: var(--t-h2); font-weight: 600; line-height: 1; letter-spacing: -.024em; color: var(--laser); text-wrap: balance; }
.h3 { font-family: var(--display); font-size: var(--t-h3); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--laser); }

.prose { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 40em; }
.prose > * + * { margin-top: 1.05em; }
/* the site's Markdown sets "##" as h3 and "###" as h4 (h1 and h2 belong to the page) */
.prose h2, .prose h3, .prose h4 { color: var(--laser); font-weight: 600; letter-spacing: -.016em; line-height: 1.12; margin-top: 1.9em; }
.prose h2 { font-size: clamp(26px, 2.3vw, 34px); }
.prose h3 { font-size: clamp(22px, 1.9vw, 28px); }
.prose h4 { font-size: 19px; letter-spacing: -.008em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--laser); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--laser); }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; }
.prose ul li + li, .prose ol li + li { margin-top: .4em; }
.prose ul li::before { content: '+'; position: absolute; left: 2px; top: 0; font-family: var(--mono); font-size: 13px; color: var(--mute); }
.prose ol { counter-reset: pr; }
.prose ol li { counter-increment: pr; }
.prose ol li::before { content: counter(pr, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--mute); }
.prose blockquote { border-left: 2px solid var(--laser); padding: 2px 0 2px 18px; color: var(--laser); }
.prose code { font-family: var(--mono); font-size: .86em; color: var(--laser); background: var(--plate-2); padding: 2px 6px; }
.prose pre { overflow-x: auto; padding: 14px 16px; background: var(--plate-2); font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose img { border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- buttons and links ---------- */
/* The button: print red with laser type and a dash that runs on toward where it leads (31). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 13px 16px 12px;
  background: var(--red-fill); color: var(--laser); border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-size: 16.5px; font-weight: 600; line-height: 1; letter-spacing: .005em;
  transition: background-color .25s var(--e-latch), transform .2s var(--e-latch), box-shadow .25s var(--e-latch);
}
.btn::after { content: ''; flex: none; width: 16px; height: 2px; background: currentColor; transition: width .3s var(--e-latch); }
.btn:hover { background: var(--red-press); }
.btn:hover::after { width: 24px; }
.btn:active { transform: translateY(2px); }
.btn > i { display: none; }   /* 1.x markup put an arrow glyph here; the dash replaces it */
.btn--line { background: transparent; color: var(--laser); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: var(--plate-2); box-shadow: inset 0 0 0 1px var(--laser); }
.btn--big { min-height: 54px; padding: 17px 20px 16px; font-size: 19.5px; }
.btn--small { min-height: 38px; padding: 10px 13px 9px; font-size: 14.5px; gap: 11px; }
.btn--small::after { width: 12px; }
.btn--small:hover::after { width: 18px; }
.btn--quiet::after { display: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* a link in running text or under a plate: laser type over a steel rule that turns red */
.lnk { display: inline-block; color: var(--laser); text-decoration: none; font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.25; border-bottom: 2px solid var(--mute-2); padding-bottom: 2px; transition: border-color .25s; }
.lnk:hover { border-color: var(--red); }
/* a small mono link (1.x: a.link) */
.link { display: inline-block; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--red); padding-bottom: 4px; transition: color .25s; }
.link:hover { color: var(--laser); }

/* ---------- status, stamps, tags ---------- */
/* a live dot: print red; a hollow ring while testing; a dashed ring while it is still being made */
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.status--testing::before, .status--beta::before, .status--test::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red-ink); }
.status--development::before, .status--soon::before, .status--concept::before { background: transparent; box-shadow: none; outline: 1px dashed var(--mute); outline-offset: -1px; }
.status--archived::before { background: var(--mute-2); }
/* a stamp printed on a plate (31): what something is not yet */
.stamp { display: inline-block; padding: 5px 7px 4px; border: 1px solid currentColor; color: var(--red-ink); font-family: var(--mono); font-size: var(--t-micro); font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; transform: rotate(-2deg); }
.stamp--plain { color: var(--mute); transform: none; }
/* a tag: a designator printed beside a part (silkscreen) */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 4px; background: var(--jacket); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: var(--t-micro); font-weight: 500; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag b { font-weight: 500; color: var(--red-ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 4px; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.pill--new::before, .pill--live::before, .pill--active::before, .pill--ok::before { background: var(--red); }
.pill--replied::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red-ink); }
.pill--closed::before { background: var(--mute-2); }
.pill--spam::before, .pill--error::before { background: var(--red-ink); }

/* ---------- the plate (31): a printed jacket strip over a solid deep-teal panel ---------- */
.plate { position: relative; background: var(--plate); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .2); }
.plate::after { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .06; pointer-events: none; }
.jk {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 34px; padding: 0 14px 0 0;
  background: var(--jacket); border-bottom: 1px solid #1a2123;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink);
}
.jk .des { align-self: stretch; display: flex; align-items: center; padding: 0 12px; background: var(--red-fill); color: var(--laser); letter-spacing: .08em; white-space: nowrap; }
.jk .job { min-width: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jk .job b { font-weight: 500; color: var(--ink); }
.jk .st { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); white-space: nowrap; }
.jk .st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2b3638; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.jk .st.run { color: var(--laser); }
.jk .st.run::before { background: var(--laser); }
.jk .st.ok { color: var(--ink-2); }
.jk .st.ok::before { background: var(--red); }
.jk .st.idle::before { background: transparent; box-shadow: inset 0 0 0 1px var(--mute); }
.pb { position: relative; padding: 20px 22px 22px; }
.pb > * + * { margin-top: 12px; }
.plate h1, .plate h2, .plate h3 { color: var(--laser); }
/* 1.x fact plates (plate__top / plate__kind / plate__line / plate__num), restyled */
.plate__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.plate__top b { font-weight: 500; color: var(--red-ink); }
.plate__title { font-family: var(--display); font-size: var(--t-h3); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; }
.plate__kind { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.plate__line { font-size: 16px; line-height: 1.45; color: var(--ink); }

/* ---------- facts and readouts ---------- */
/* a definition list of facts: mono label, text value (projects, tools, contact) */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(84px, 7.5em) minmax(0, 1fr); gap: 14px; padding: 9px 0 8px; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 3px; font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.facts dd { font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: var(--laser); text-decoration-color: var(--red); text-underline-offset: 3px; }
/* one real figure, large, with what it counts (31 .fact) */
.fig { display: grid; gap: 6px; }
.fig b { font-family: var(--display); font-size: clamp(30px, 2.8vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--laser); font-variant-numeric: tabular-nums; }
.fig span { font-family: var(--mono); font-size: var(--t-micro); line-height: 1.45; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
/* a row of figures (31 .nums) */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 22px; }
.nums > div { display: grid; align-content: start; gap: 8px; padding: 14px 0 12px; border-top: 1px solid var(--line); }
.nums dt { order: 2; font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.nums dd { order: 1; font-family: var(--display); font-size: clamp(34px, 3.4vw, 50px); font-weight: 600; line-height: 1; letter-spacing: -.025em; color: var(--laser); font-variant-numeric: tabular-nums; }
/* what you get: a list counted +01, +02 … (31 .inc) */
.inc { counter-reset: i; border-bottom: 1px solid var(--line); }
.inc li { counter-increment: i; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 0 8px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.42; color: var(--ink); }
.inc li::before { content: '+' counter(i, decimal-leading-zero); padding-top: 3px; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .06em; color: var(--mute); }
/* a reserved place: dashed, with what will go there */
.res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 20px 22px; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.res b { font-weight: 500; color: var(--red-ink); }

/* ---------- surfaces ---------- */
.panel { position: relative; padding: 24px; background: var(--plate); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .2); }
.panel + .panel { margin-top: 16px; }
.panel__title { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--laser); margin-bottom: 14px; }
.panel__text { max-width: 44em; font-size: var(--t-small); line-height: 1.6; color: var(--ink-2); }
.empty { padding: 30px 24px; border: 1px dashed var(--line-2); }
.empty__title { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--laser); margin-bottom: 8px; }
.empty__text { font-size: var(--t-small); color: var(--ink-2); max-width: 34em; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.table th { text-align: left; padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.table td a { color: var(--laser); }
.table tbody tr:hover td { background: rgba(143, 151, 156, .05); }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 32px; font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pager__step { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.pager__step:hover { color: var(--laser); border-color: var(--red); }
.pager__count { font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field__label { font-family: var(--mono); font-size: var(--t-label); font-weight: 400; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--plate-2); color: var(--laser);
  box-shadow: inset 0 0 0 1px var(--line-2); caret-color: var(--red); font-family: var(--display); font-size: 16px; line-height: 1.4;
  transition: box-shadow .2s, background-color .2s;
}
.field__input::placeholder { color: rgba(143, 151, 156, .78); }
.field__input:hover { box-shadow: inset 0 0 0 1px var(--mute); }
.field__input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--laser), 0 0 0 1px var(--laser); }
.field__input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field__input[readonly] { color: var(--ink-2); background: transparent; }
textarea.field__input { min-height: 170px; resize: vertical; line-height: 1.55; }
select.field__input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23FFF1D6' stroke-width='1.4'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 15px) 50%; }
select.field__input option { background: var(--plate); color: var(--ink); }
.field__hint { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.field__error { display: flex; gap: 8px; align-items: baseline; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: .02em; color: var(--red-ink); }
.field__error::before { content: '!'; flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; background: var(--red-fill); color: var(--laser); font-size: 10px; line-height: 1; }
.field--error .field__input, .field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red-ink); }
.field--error .field__label { color: var(--red-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); line-height: 1.45; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red-fill); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 4px; }
.form__small { font-family: var(--mono); font-size: var(--t-micro); line-height: 1.55; letter-spacing: .06em; color: var(--mute); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

/* ---------- notices and toasts ---------- */
.notice { position: relative; padding: 14px 16px 14px 18px; background: var(--plate-2); box-shadow: inset 2px 0 0 var(--mute); font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.notice p + p { margin-top: 6px; }
.notice a { color: var(--laser); text-decoration-color: var(--red); text-underline-offset: 3px; }
.notice--ok { box-shadow: inset 2px 0 0 var(--laser); }
.notice--warn { box-shadow: inset 2px 0 0 var(--laser), inset 0 0 0 1px var(--line); background: transparent; }
.notice--error { box-shadow: inset 2px 0 0 var(--red); color: var(--laser); }
.toasts { position: fixed; z-index: 45; right: var(--gut); bottom: 22px; display: grid; gap: 10px; width: min(420px, calc(100vw - 2 * var(--gut))); }
.toast { padding: 14px 16px 14px 18px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line-2), inset 3px 0 0 var(--laser); font-size: var(--t-small); line-height: 1.45; color: var(--laser); animation: toast-in .45s var(--e-out) both; }
.toast--warn { box-shadow: inset 0 0 0 1px var(--line-2), inset 3px 0 0 var(--mute); }
.toast--error { box-shadow: inset 0 0 0 1px var(--line-2), inset 3px 0 0 var(--red); }
.toast.is-gone { animation: toast-out .4s var(--e-latch) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ---------- the header: printed like a cable jacket (31 .top) ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; min-height: var(--top);
  padding: 0 calc(var(--gut) + var(--top-reserve)) 0 var(--gut); background: var(--ground); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s;
}
.top.is-scrolled, html.no-js .top { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; margin-right: auto; color: var(--laser); text-decoration: none; }
.brand b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.brand span { font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.site { display: flex; gap: 24px; }
.site a, .top__acct { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; line-height: 1; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); box-shadow: inset 0 -1px 0 transparent; transition: color .25s, box-shadow .25s; }
.site a:hover, .top__acct:hover { color: var(--laser); box-shadow: inset 0 -1px 0 var(--red); }
.site a[aria-current], .top__acct[aria-current] { color: var(--laser); box-shadow: inset 0 -2px 0 var(--red); }
.top__acct i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mute); }
.top__acct.is-on i { background: var(--red); box-shadow: none; }        /* signed in: the power ring is lit */
.top__cta { margin-left: 4px; }
.top__menu { display: none; align-items: center; gap: 10px; min-height: 44px; margin-right: -6px; padding: 0 6px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--laser); }
.top__menu i { position: relative; width: 20px; height: 2px; background: currentColor; transition: background-color .2s; }
.top__menu i::before, .top__menu i::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .3s var(--e-latch); }
.top__menu i::before { top: -6px; }
.top__menu i::after { top: 6px; }
.top__menu[aria-expanded="true"] i { background: transparent; }
.top__menu[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.top__menu[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

/* the menu on narrow screens: every page by its place in the machine */
.menu { position: fixed; z-index: 29; inset: var(--top) 0 0; display: flex; flex-direction: column; gap: 28px; padding: 18px var(--gut) calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--ground); overflow-y: auto; overscroll-behavior: contain; }
.menu__nav { border-top: 1px solid var(--line); }
.menu__link { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 15px 0 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu__des { font-family: var(--mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .1em; color: var(--red-ink); }
.menu__label { font-family: var(--display); font-size: clamp(30px, 8.6vw, 46px); font-weight: 600; line-height: 1; letter-spacing: -.025em; color: var(--laser); }
.menu__link[aria-current] .menu__label { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

/* ---------- the route map (31's route nav): a plan of the desk with the board as a detail ---------- */
.route { position: relative; background: #051315; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .24); }
.route__h span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px 7px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: calc(var(--t-micro) * var(--mk)); line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.route__h b { flex: none; white-space: nowrap; font-weight: 500; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.route__map { display: block; width: 100%; height: auto; }
.route__map .ds { fill: #071a1d; stroke: #2c4447; stroke-width: .7; }
.route__map .dl { fill: none; stroke: #2c4447; stroke-width: .7; stroke-dasharray: 2 1.6; }
.route__map .mc { fill: #08201f; stroke: var(--mute-2); stroke-width: .8; }
.route__map .pt { fill: none; stroke: #3f585b; stroke-width: .6; }
.route__map .ky { fill: var(--red); }
.route__map .rp { fill: none; stroke: #1d4a4f; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.route__map .rl { fill: none; stroke: var(--laser); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.route__map text { font-family: var(--mono); font-size: 5.6px; font-weight: 500; letter-spacing: .08em; fill: var(--mute); }
.route__map a { cursor: pointer; outline: none; }
.route__map a circle { fill: #051315; stroke: var(--mute); stroke-width: .9; transition: fill .25s var(--e-latch), stroke .25s; }
.route__map a.done circle { stroke: var(--laser); }
.route__map a:hover circle, .route__map a:focus-visible circle { fill: #183a3e; stroke: var(--laser); }
.route__map a:focus-visible circle { stroke: var(--red); stroke-width: 1.4; }
.route__map a[aria-current] circle { fill: var(--red); stroke: var(--red); }
.route__map .node { fill: #051315; stroke: var(--laser); stroke-width: .9; }
.silk--desk .ds, .silk--desk .dl, .silk--desk .mc, .silk--desk .pt, .silk--desk .node { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.silk--desk .rp { vector-effect: non-scaling-stroke; stroke-width: 6px; }
.silk--desk .rl { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.route__map .here { fill: none; stroke: var(--laser); stroke-width: .7; }
.route__map .here-dot { fill: var(--laser); }
.route__map .mark { font-size: 5px; fill: var(--laser); }
.route__f { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: baseline; padding: 9px 12px 10px; border-top: 1px solid var(--line); }
.route__n { grid-row: 1 / 3; white-space: nowrap; font-family: var(--mono); font-size: calc(22px * var(--mk)); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--laser); font-variant-numeric: tabular-nums; }
.route__n small { margin-left: 2px; font-size: 10px; letter-spacing: .06em; color: var(--mute); }
.route__d { font-family: var(--mono); font-size: calc(var(--t-micro) * var(--mk)); line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route__t { font-family: var(--display); font-size: calc(16px * var(--mk)); font-weight: 600; line-height: 1.15; color: var(--laser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route__seg { display: none; }
/* ---------- the cable (C4 locator): the round trip as one slim cable, a connector per stop ---------- */
/* partials/cable.php. The light of the request stands at --p (0…1 from the first connector to the last; the home's
   module moves it). The stop in view is lit, with its number, designator and name beside it (.is-named); hover or focus shows
   another's. The rail is 30 px wide: the names stand to its left, over the free area, only while they are needed. */
.cbl { --kh: 26px; position: relative; width: 30px; min-height: calc(13 * var(--kh)); font-family: var(--mono); }
.cbl__c { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: inherit; }
.cbl__c li { height: var(--kh); }
.cbl__k { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: var(--kh); text-decoration: none; }
.cbl__k:focus-visible { outline: 2px solid var(--red); outline-offset: 0; }
.cbl__plug { position: relative; width: 14px; height: 9px; background: #071a1d; box-shadow: inset 0 0 0 1px var(--mute-2); transition: background-color .25s var(--e-latch), box-shadow .25s; }
.cbl__plug::after { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; height: 1px; background: var(--mute-2); }
.cbl__k.done .cbl__plug { box-shadow: inset 0 0 0 1px var(--laser); }
.cbl__k.done .cbl__plug::after { background: var(--laser); }
.cbl__k[aria-current] .cbl__plug { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cbl__k[aria-current] .cbl__plug::after { background: var(--laser); }
.cbl__k:hover .cbl__plug, .cbl__k:focus-visible .cbl__plug { background: #183a3e; box-shadow: inset 0 0 0 1px var(--laser); }
.cbl__w, .cbl__lit { position: absolute; left: 50%; width: 3px; margin-left: -1.5px; top: calc(var(--kh) / 2); }
.cbl__w { bottom: calc(var(--kh) / 2); background: #0b1618; box-shadow: inset 1px 0 0 #1f3437; }
.cbl__lit { height: calc((100% - var(--kh)) * var(--p, 0)); background: var(--laser); }
.cbl__pulse { position: absolute; left: 50%; top: calc(var(--kh) / 2 + (100% - var(--kh)) * var(--p, 0)); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--laser); box-shadow: 0 0 0 3px rgba(255, 241, 214, .18); pointer-events: none; }
.cbl__l {
  position: absolute; right: calc(100% + 4px); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 8px; align-items: baseline;
  padding: 6px 10px 7px; background: rgba(5, 19, 21, .92); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .24); border-right: 2px solid var(--red);
  font-size: 10.5px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; pointer-events: none;
}
.cbl__l b { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--laser); font-variant-numeric: tabular-nums; }
.cbl__l em { font-style: normal; color: var(--red-ink); }
.cbl__l span { grid-column: 1 / -1; font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; text-transform: none; color: var(--laser); }
.cbl__k.is-named .cbl__l, .cbl__k:hover .cbl__l, .cbl__k:focus-visible .cbl__l { opacity: 1; visibility: visible; transition: opacity .2s; }
.cbl__k:hover .cbl__l, .cbl__k:focus-visible .cbl__l { z-index: 2; }

/* ---------- the parts list (C4 locator): every stop as a row of a bill of materials ---------- */
/* partials/parts.php: # · REF · NAME · STATUS; the status is R-0's job state (done · now · queued), the row in view is
   lit. A <details>: it folds to its header line. Sized by the map size (--bomw, --mk); on phones a drawer (below). */
.bom { width: var(--bomw); max-width: 100%; background: #051315; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .24); font-family: var(--mono); }
.bom__h { display: flex; align-items: center; gap: 10px; min-height: calc(32px * var(--mk)); padding: 6px 12px; cursor: pointer; list-style: none; font-size: calc(10px * var(--mk)); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bom__h::-webkit-details-marker { display: none; }
.bom__h::marker { content: ''; }
.bom__h::after { content: ''; flex: none; width: 7px; height: 7px; margin: 0 2px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform .25s var(--e-latch); }
.bom__d:not([open]) .bom__h::after { transform: translateY(-2px) rotate(45deg); }
.bom__h:hover { color: var(--ink); }
.bom__h:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.bom__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bom__c { flex: none; font-weight: 500; color: var(--red-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bom__now { display: none; }
.bom__d[open] .bom__h { box-shadow: inset 0 -1px 0 var(--line); }
.bom__cols, .bom__r { display: grid; grid-template-columns: 2.3em 6.4em minmax(0, 1fr) 6.6em; gap: 0 8px; align-items: baseline; }
.bom__cols { padding: 6px 12px 5px; font-size: calc(9px * var(--mk)); line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); box-shadow: inset 0 -1px 0 var(--line); }
.bom__rows { padding: 3px 0 5px; }
.bom__r { position: relative; padding: calc(4px * var(--mk)) 12px; text-decoration: none; font-size: calc(10.5px * var(--mk)); line-height: 1.5; letter-spacing: .07em; color: var(--mute); }
.bom__r::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--laser); transform: scaleY(0); transition: transform .3s var(--e-latch); }
.bom__n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bom__ref { color: var(--red-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bom__name { font-family: var(--display); font-size: calc(13.5px * var(--mk)); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bom__st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bom__st::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mute); }
.bom__r.is-done { color: var(--ink-2); }
.bom__r.is-done .bom__st::before { background: var(--red); box-shadow: none; }
.bom__r.is-now { background: rgba(255, 241, 214, .07); color: var(--laser); }
.bom__r.is-now::before { transform: scaleY(1); }
.bom__r.is-now .bom__name { color: var(--laser); }
.bom__r.is-now .bom__st::before { background: var(--laser); box-shadow: 0 0 0 3px rgba(255, 241, 214, .16); }
.bom__r:hover { background: rgba(255, 241, 214, .045); }
.bom__r:hover .bom__name { color: var(--laser); }
.bom__r:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* the breadcrumb in words: where you are on the desk or in the machine */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-family: var(--mono); font-size: var(--t-micro); line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.crumbs li { display: inline-flex; align-items: baseline; }
.crumbs li + li::before { content: '›'; margin: 0 9px; color: var(--mute-2); }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.crumbs a:hover { color: var(--laser); border-color: var(--red); }
.crumbs [aria-current] { color: var(--laser); }
.crumbs b { font-weight: 500; color: var(--red-ink); margin-right: 7px; }

/* ---------- the still: one frame of the round trip, rendered in the 3D world ---------- */
.still { position: relative; margin: 0; background: var(--teal); overflow: hidden; }
.still img, .still picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.still__ph { position: absolute; inset: 0; display: grid; }
.still__ph .silk { position: absolute; right: 6%; top: 50%; width: min(46%, 640px); transform: translateY(-58%); }
.still__cap { position: absolute; left: var(--gut); top: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: calc(100% - 2 * var(--gut)); font-family: var(--mono); font-size: var(--t-micro); line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.still__cap b { font-weight: 500; color: var(--red-ink); }
.still__cap span { padding: 4px 7px 3px; background: rgba(4, 16, 18, .82); }
.still__cap i { font-style: normal; }
/* E · the live head (page-live.js): the world's canvas in the still's own box, over the still (its poster), faded in on
   its first frame — nothing moves; the caption stays above it; no pointer (the page's plate and links sit over it) */
.still__live { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .9s cubic-bezier(.2, .7, .2, 1); }
.still.is-live .still__live { opacity: 1; }

/* ---------- silkscreen drawings of the parts (partials/emblem.php) ---------- */
.silk { display: block; width: 100%; height: auto; overflow: visible; color: var(--laser); }
.silk .s { fill: none; stroke: currentColor; stroke-width: 1.15; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.silk .f { fill: none; stroke: rgba(255, 241, 214, .42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.silk .d { fill: none; stroke: rgba(255, 241, 214, .55); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.silk .r { fill: none; stroke: var(--red); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.silk .rf { fill: var(--red); }
.silk .lf { fill: currentColor; }
.silk .pad { fill: rgba(200, 168, 90, .55); }          /* gold: material truth on the board (31) */
.silk .cu { fill: none; stroke: rgba(180, 112, 63, .8); stroke-width: 1; vector-effect: non-scaling-stroke; }
.silk text { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; fill: currentColor; font-stretch: 76%; font-variation-settings: 'wdth' 76; }
.silk .tm { fill: var(--mute); }
.silk .tr { fill: var(--red-ink); }

/* ---------- the footer ---------- */
.foot { position: relative; z-index: 7; margin-top: clamp(80px, 12vw, 160px); background: var(--ground-2); box-shadow: inset 0 1px 0 var(--line); }
.foot__band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(24px, 4vw, 64px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: 40px; }
.foot__h { margin-bottom: 14px; font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.foot__brand b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--laser); }
.foot__brand span { display: block; margin-top: 8px; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.foot__cta { margin-top: 22px; }
.foot__line { max-width: 26em; margin-top: 16px; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }
.foot__made { display: inline-flex; align-items: center; gap: 12px; }
.foot__sign { display: inline-block; width: 150px; color: var(--ink-2); }
.foot__sign svg { fill: currentColor; }
.foot__mail { display: inline-block; font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; line-height: 1.2; color: var(--laser); text-decoration: none; border-bottom: 2px solid var(--red); overflow-wrap: anywhere; }
.foot__mail:hover { border-bottom-width: 3px; }
.foot__note { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.foot__list { display: grid; gap: 2px; }
.foot__list a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15.5px; color: var(--ink); text-decoration: none; }
.foot__list a:hover { color: var(--laser); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.foot__list b { width: 64px; flex: none; font-family: var(--mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; color: var(--red-ink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 26px; padding-top: 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-micro); line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.foot__base a { color: var(--ink); text-decoration: none; }
.foot__base a:hover { color: var(--laser); }
.foot__base p { margin: 0; }
.foot__ai { display: inline-flex; align-items: center; gap: 8px; }
.foot__ai i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- a picture that arrives: one laser line reads it down from the top, once (site.js) ---------- */
[data-scan] { position: relative; overflow: hidden; }
html.scan-ready .scan-wait:not(.is-in) > img, html.scan-ready .scan-wait:not(.is-in) > picture { clip-path: inset(0 0 100% 0); }
html.scan-ready .scan-wait.is-in > img, html.scan-ready .scan-wait.is-in > picture { animation: scan-in .8s var(--e-latch) both; }
html.scan-ready .scan-wait.is-in::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--laser); pointer-events: none; animation: scan-line .8s var(--e-latch) both; }
@keyframes scan-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan-line { from { top: 0; opacity: 1; } 90% { opacity: 1; } to { top: calc(100% - 2px); opacity: 0; } }

/* ---------- changing page: a laser line wipes the next page down over this one (no script; never waits) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: vt-wipe .26s var(--e-latch) both; }
  ::view-transition-group(vt-laser) { animation: vt-laser .26s var(--e-latch) both; }
  ::view-transition-old(vt-laser) { display: none; }
  ::view-transition-new(vt-laser) { animation: none; }
  .top { view-transition-name: vt-top; }
  ::view-transition-group(vt-top) { animation-duration: .2s; }
}
.vt-laser { position: fixed; z-index: 99; left: 0; right: 0; top: -4px; height: 2px; background: var(--laser); pointer-events: none; view-transition-name: vt-laser; }
@keyframes vt-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-laser { from { transform: translateY(4px); } to { transform: translateY(calc(100vh + 2px)); } }

/* ---------- narrow screens and phones ---------- */
@media (max-width: 1100px) {
  .site, .top__acct { display: none; }
  .top__menu { display: inline-flex; }
  .foot__band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  :root { --top: 54px; --t-body: 16px; }
  .top { gap: 12px; }
  .brand span { display: none; }
  .top__menu span { display: none; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .pb { padding: 16px 16px 18px; }
  .jk { font-size: 10px; gap: 10px; padding-right: 12px; }
  .jk .des { padding: 0 10px; }
  .foot__band { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .table { font-size: 14px; }
  .still__cap { top: 10px; }
  .still__what { display: none; }
  .route__map, .route__h { display: none; }
  .route__seg { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; padding: 0 12px 10px; }
  .route__seg a, .route__seg span { display: block; height: 22px; overflow: hidden; background: #0a2023; color: var(--mute); font-family: var(--mono); font-size: 9px; font-weight: 500; line-height: 22px; letter-spacing: 0; text-align: center; text-decoration: none; white-space: nowrap; }
  .route__seg .done { background: #1d3a3d; color: var(--ink); }
  .route__seg [aria-current] { background: var(--red-fill); color: var(--laser); }
  .route__f { border-top: 0; }
  .cbl { display: none; }   /* the cable is a desktop locator */
  /* the parts list as a drawer: its header line along the bottom of the screen, the rows open above it */
  .bom { position: fixed; z-index: 32; left: 0; right: 0; bottom: 0; width: auto; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: inset 0 1px 0 rgba(143, 151, 156, .3); }
  .bom__h { min-height: 48px; padding: 4px 16px; gap: 12px; font-size: 9.5px; }
  .bom__t { flex: none; max-width: 38%; }
  .bom__t2 { display: none; }
  .bom__now { display: block; flex: 1; min-width: 0; font-family: var(--display); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--laser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bom__h::after { transform: translateY(-2px) rotate(45deg); }
  .bom__d:not([open]) .bom__h::after { transform: translateY(2px) rotate(-135deg); }
  .bom__d[open] .bom__rows { max-height: 52vh; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; }
  .bom__cols { padding: 6px 16px 5px; }
  .bom__r { padding: 8px 16px; font-size: 10.5px; }
  .bom__name { font-size: 15px; }
  .bom__cols, .bom__r { grid-template-columns: 2.2em 6.2em minmax(0, 1fr) 6.3em; }
  html.no-js .bom { position: static; padding-bottom: 0; }   /* without a script the list stays open: it stands in the page, under the plate */
  html[data-locm="parts"]:not(.no-js) body { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  html[data-locm="parts"] .toasts { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  html[data-locm="parts"] .gd-launch { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
