/* ==========================================================================
   look.css: PC-WWW-LOOK visual layer on top of site.css (layer A). Layout and visuals only.
   Part 1 of 2 (common to D1 and D2): brand type, balanced grids, the record card, the flow
   diagram, stat tiles, line icons, the board-as-code drawing. Colours come from the direction
   part through --c-* variables; every value is a PromptCompany token (ink #111418, paper #f4f3ee,
   green #1e9e64 / text #157a4c / on ink #3ddc84, grey #5d636b) or a straight mix of two of them.
   One semantic colour is added for the red test state (--red), never used as a brand colour.
   ========================================================================== */

/* ---------- brand type: IBM Plex (identity v3 / brand kit 1105), self-hosted, unmodified OFL files.
   Each file covers Latin Extended-A in full (U+0100-017F: ą ć ę ł ń ś ź ż), so no Polish glyph
   falls back to another face. The fallback stack puts metric-safe Latin fonts before system-ui,
   which on some Linux set-ups resolves to a CJK face without Latin Extended-A. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  --sans: "IBM Plex Sans", "Segoe UI", -apple-system, "Helvetica Neue", Arial, "Liberation Sans", system-ui, sans-serif;
  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", "Segoe UI", -apple-system, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --red-on-ink: #ff6b6b;
  --red-on-paper: #c2362f;
}
body { font-family: var(--sans); font-synthesis: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(36px, 3.9vw, 56px); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(32px, 3.9vw, 50px); letter-spacing: -0.015em; line-height: 1.06; }
h3 { font-size: 21px; letter-spacing: -0.005em; }
strong, b, .btn, .nav-cta, .channel, .phase h3, .mail-card a.mail { font-weight: 500; }
.eyebrow, .tag, .mail-card .label, .asof { font-weight: 400; }
.card-label { font-family: var(--mono); font-weight: 400; }
.legal-page .back a, .eu-facts dt { font-weight: 500; }
.nav .lang-switch a[aria-current="true"] { font-weight: 400; }
.mech .key { font-family: var(--mono); font-weight: 400; }
@media (max-width: 360px) { h1 { font-size: 34px; } }

.ico { width: 26px; height: 26px; flex: none; display: block; }
.channel .ic .ico { width: 20px; height: 20px; }

/* ---------- hero: copy left, the record card right ---------- */
.hero-x { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-x .hero-main h1 { max-width: 14em; }
.hero-x .hero-copy { margin-top: 28px; }
.hero-x .claim { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.55; max-width: 38em; }
.hero-x .btn-row { margin-top: 28px; }
.hero h1 .h1-sub { font-family: var(--sans); font-weight: 400; font-size: 0.5em; line-height: 1.32; letter-spacing: -0.005em; margin-top: 18px; max-width: 30em; }
@media (max-width: 1000px) {
  .hero-x { grid-template-columns: minmax(0, 1fr); }
  .hero-x .rec { max-width: 560px; }
}

/* ---------- the record card (an EXAMPLE, aria-hidden: the h1 says the same in words) ---------- */
.rec { position: relative; margin: 0; border-radius: 18px; background: var(--rec-bg); border: 1px solid var(--rec-line);
  box-shadow: var(--rec-shadow); color: var(--rec-text); font-size: 15.5px; }
.rec-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rec-line); }
.rec-dots { display: flex; gap: 6px; }
.rec-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rec-line); }
.rec-ex { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--rec-accent); border: 1px solid currentColor; padding: 3px 9px; border-radius: 4px; }
.rec-body { padding: 20px 22px 22px; }
.rec-h { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.005em; }
.rec-h .ico { color: var(--rec-accent); }
.rec-task { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px;
  background: var(--rec-well); font-family: var(--mono); font-size: 13px; color: var(--rec-muted); }
.rec-task .rv { color: var(--rec-text); text-align: right; }
.rec-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.rec-steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--rec-line-soft); }
.rec-steps .rk { min-width: 0; }
.rec-steps .rk .rs-sub { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--rec-muted); }
.rs { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em; white-space: nowrap; }
.rs::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rs-red { color: var(--red); background: var(--red-bg); }
.rs-green { color: var(--grn); background: var(--grn-bg); }
.rs-ship { color: var(--ship-ink); background: var(--ship-bg); letter-spacing: 0.14em; padding: 5px 14px 5px 12px; }
.rs-ship::before { background: var(--ship-ink); }
.rs-gate { color: var(--rec-accent); border: 1px solid var(--rec-line); }
.rec-human { margin-top: 16px; display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--rec-muted); }
.rec-human .ico { width: 20px; height: 20px; color: var(--rec-accent); }

/* ---------- 'how it works': the flow diagram (two drawings: wide and phone) ---------- */
.flow { margin: 8px 0 44px; padding: clamp(18px, 2.5vw, 32px); border-radius: 18px; background: var(--fl-bg); border: 1px solid var(--fl-frame); }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-v { display: none; max-width: 380px; margin: 0 auto; }
@media (max-width: 760px) {
  .flow-h { display: none; }
  .flow-v { display: block; }
}
.fl-box { fill: var(--fl-card); stroke: var(--fl-line); stroke-width: 1.5; }
.fl-end .fl-box { stroke: var(--grn); stroke-width: 2; }
.fl-t { font-family: var(--display); font-weight: 600; font-size: 23px; fill: var(--fl-text); }
.fl-s { font-family: var(--sans); font-size: 15px; fill: var(--fl-muted); }
.fl-pill rect { fill: var(--fl-well); }
.fl-pill text { font-family: var(--sans); font-size: 13px; }
.fl-ico { stroke: var(--grn); opacity: 0.9; }
.fl-pill.red rect { fill: var(--red-bg); }
.fl-pill.red circle, .fl-pill.red text { fill: var(--red); }
.fl-pill.green rect { fill: var(--grn-bg); }
.fl-pill.green circle, .fl-pill.green text { fill: var(--grn); }
.fl-wire { fill: none; stroke: var(--fl-wire); stroke-width: 2; }
.fl-loop { stroke: var(--red); stroke-dasharray: 6 5; opacity: 0.8; }
.fl-hum { stroke: var(--grn); }
.fl-head { fill: var(--fl-wire); }
.fl-lbl { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.fl-lbl.ship { fill: var(--grn); }
.fl-lbl.noship { fill: var(--red); }
.fl-verdict { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; fill: var(--grn); }
.fl-human rect { fill: var(--fl-card); stroke: var(--grn); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fl-s2 { font-family: var(--mono); font-size: 12.5px; fill: var(--fl-muted); }
.fl-t2 { font-family: var(--sans); font-weight: 500; font-size: 16px; fill: var(--fl-text); }

/* ---------- balanced grids ---------- */
.mech-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.li-top { display: flex; justify-content: space-between; align-items: center; }
.li-top .ico { color: var(--c-accent); }
@media (max-width: 1100px) { .mech-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mech-6 { grid-template-columns: minmax(0, 1fr); } }

/* products: one card, four items with icons */
.prod-card { padding: clamp(24px, 3vw, 40px); }
.prod-card h3 { font-size: clamp(24px, 2.4vw, 30px); }
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.prod-item { padding: 22px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-well); }
.prod-ico { color: var(--c-accent); margin-bottom: 14px; }
.ico-set { display: flex; gap: 12px; }
.spec-card .prod-item p { margin: 0; }
@media (max-width: 760px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }

/* hardware: board-as-code drawing + four lines; then three cards */
.hw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.pcb { margin: 0; border-radius: 16px; background: var(--pcb-bg); border: 1px solid var(--pcb-frame); padding: clamp(18px, 2.5vw, 32px); display: grid; place-items: center; }
.pcb-svg { width: 100%; height: auto; max-width: 560px; }
.hw-main { display: grid; gap: 20px; align-content: center; }
.hw-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.hw-item .ico { color: var(--c-accent); margin-top: 1px; }
.spec-card .hw-item p, .spec-card.hw-card p { margin: 0; }
.hw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.hw-card .ico { color: var(--c-accent); margin-bottom: 14px; }
.hw-card.spec-ink .ico { color: var(--green-on-ink); }
@media (max-width: 900px) {
  .hw { grid-template-columns: minmax(0, 1fr); }
  .hw-row { grid-template-columns: minmax(0, 1fr); }
}
.pc-panel { fill: var(--pcb-panel); }
.pc-dot { fill: var(--pcb-muted); opacity: 0.6; }
.pc-num { fill: var(--pcb-muted); opacity: 0.35; }
.pc-ln { fill: var(--pcb-muted); opacity: 0.55; }
.pc-ln.k { fill: var(--pcb-text); opacity: 0.8; }
.pc-ln.g { fill: var(--grn); opacity: 0.55; }
.pc-ln.hl { fill: var(--grn); opacity: 1; }
.pc-cur { fill: var(--grn); }
.pc-arrow { stroke: var(--pcb-muted); stroke-width: 2; fill: none; }
.pc-arrowhead { stroke: var(--pcb-muted); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pc-pcb { fill: var(--pcb-board); stroke: var(--pcb-edge); stroke-width: 1.5; }
.pc-hole { fill: var(--pcb-bg); stroke: var(--pcb-edge); stroke-width: 1.5; }
.pc-chip { fill: var(--pcb-chip); stroke: var(--pcb-edge); stroke-width: 1.2; }
.pc-pad { fill: var(--pcb-pad); }
.pc-tr { fill: none; stroke: var(--pcb-trace); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pc-tr.hl { stroke: var(--grn); }
.pc-via { fill: var(--pcb-board); stroke: var(--pcb-pad); stroke-width: 2.5; }
.pc-dim { stroke: var(--pcb-muted); stroke-width: 1; fill: none; opacity: 0.7; }

/* pilot: what you bring + note and button */
.pilot-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: center; }
.pilot-foot .give-get { display: block; margin: 0; }
.pilot-side .note { margin-top: 0; }
@media (max-width: 900px) { .pilot-foot { grid-template-columns: minmax(0, 1fr); } }

/* data: text and the key-to-provider drawing */
.data-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.data-text .section-head { margin-bottom: 24px; }
.data-text .lead + .lead { margin-top: 14px; }
.data-vis { margin: 0; }
.dv-svg { width: 100%; height: auto; }
.dv-card { fill: var(--c-card); stroke: var(--c-line); stroke-width: 1.5; }
.dv-ico { stroke: var(--c-accent); }
.dv-wire { stroke: var(--c-muted); stroke-width: 2; fill: none; stroke-dasharray: 6 6; }
.dv-head { stroke: var(--c-muted); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dv-layer { fill: var(--c-well); stroke: var(--c-line); }
.dv-layer.hl { fill: var(--grn); stroke: none; opacity: 0.85; }
@media (max-width: 900px) {
  .data-grid { grid-template-columns: minmax(0, 1fr); }
  .data-vis { max-width: 380px; }
}

/* reference: three stat tiles (the number is repeated big, aria-hidden; the sentence is unchanged) */
.ref-text { padding: clamp(26px, 3.4vw, 44px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.tile { border-radius: 14px; padding: 22px 20px; background: var(--tile-bg); border: 1px solid var(--tile-line); }
.tile-n { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 3.8vw, 54px); line-height: 1;
  letter-spacing: -0.01em; color: var(--green-on-ink); margin-bottom: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-text .tile p { font-size: 15px; line-height: 1.5; }
.ref-text .tile p + p { margin-top: 10px; }
@media (max-width: 800px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* security and data page: each rule on its own row with the green marker */
.sec-page .wrap > p { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--sec-line); }
.sec-page .wrap > p::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; background: var(--grn); }
.legal-page.sec-page p + p { margin-top: 0; }
.sec-page h1 { margin-bottom: 24px; }

#content section.about { padding: clamp(48px, 6vw, 80px) 0; }
/* about: one line, so heading and line share the row */
#about .section-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; align-items: baseline; margin-bottom: 0; }
#about .section-head h2 + .lead { margin-top: 0; max-width: none; }
@media (max-width: 760px) { #about .section-head { grid-template-columns: minmax(0, 1fr); } }


/* ==========================================================================
   Part 2, direction D2: dark engineering. Ink bands with the brand's 40 px drawing grid, layered
   cards, a green glow drawn from #3ddc84, and motion: the record card plays red -> green -> red ->
   SHIP once on load, the flow diagram carries a moving signal, sections rise in on scroll.
   CSS only (the CSP has no script-src). prefers-reduced-motion: every element shows its final state.
   ========================================================================== */
:root {
  --ink-4: #161a1f;              /* ink mixed 3% toward paper */
  --ink-5: #1d2228;
  --line-d: rgba(244, 243, 238, 0.09);
  --line-d2: rgba(244, 243, 238, 0.14);
  --glow: rgba(61, 220, 132, 0.22);
  --red: var(--red-on-ink);
  --red-bg: rgba(255, 107, 107, 0.12);
  --grn: var(--green-on-ink);
  --grn-bg: rgba(61, 220, 132, 0.13);
  --c-accent: var(--green-on-ink);
  --c-line: var(--line-d);
  --c-card: var(--ink-4);
  --c-well: rgba(244, 243, 238, 0.03);
  --c-muted: var(--on-ink-faint);
  --sec-line: var(--ink-line);
  --grid: linear-gradient(rgba(244, 243, 238, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 243, 238, 0.035) 1px, transparent 1px);
}
body { background: var(--ink-3); }
#content section { padding: clamp(76px, 9vw, 132px) 0; position: relative; }

/* every band dark: ink and deeper ink alternate, each on the drawing grid */
#content section, #content section.on-paper { background-color: var(--ink); color: var(--on-ink); }
#record, #products, #pilot, #about, #reference { background-color: var(--ink-3) !important; }
#content section { background-image: var(--grid); background-size: 40px 40px; background-position: -1px -1px; }
#content section + section { border-top: 1px solid var(--ink-line); }
/* drawing-sheet registration marks at the band's top corners */
#content section::before, #content section::after { content: ""; position: absolute; top: -1px; width: 22px; height: 22px; pointer-events: none;
  border-top: 2px solid var(--green-on-ink); opacity: 0.55; }
#content section::before { left: max(20px, calc(50% - 580px)); border-left: 2px solid var(--green-on-ink); }
#content section::after { right: max(20px, calc(50% - 580px)); border-right: 2px solid var(--green-on-ink); }
#content section.hero::before, #content section.hero::after { display: none; }

#content h2, #content h3, #content .on-paper h2 { color: var(--paper); }
#content .lead, #content .on-paper .lead { color: var(--on-ink-muted); }
#content .note { color: var(--on-ink-muted); }
#content .eyebrow, #content .on-paper .eyebrow { color: var(--green-on-ink); }
#content a:focus-visible, #content .btn:focus-visible { outline-color: var(--green-on-ink); }

/* hero: large glow behind the card, grid fading toward the bottom */
.hero { overflow: hidden; }
#content section.hero {
  background-color: var(--ink-3);
  background-image:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(61, 220, 132, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(30, 158, 100, 0.12), transparent 70%),
    var(--grid);
  background-size: auto, auto, 40px 40px, 40px 40px;
}
.hero h1 { color: var(--paper); text-wrap: balance; }
.hero h1 .h1-sub { color: var(--green-on-ink); }
.hero .claim { color: var(--on-ink-muted); }
.btn-primary { box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.4), 0 10px 30px -10px rgba(61, 220, 132, 0.55); }

/* the record card: layered glass with two sheets behind it */
.rec { --rec-bg: linear-gradient(180deg, #1b2027, #14181d); --rec-line: rgba(244, 243, 238, 0.11); --rec-line-soft: rgba(244, 243, 238, 0.06);
  --rec-well: rgba(244, 243, 238, 0.04); --rec-text: var(--paper); --rec-muted: var(--on-ink-faint); --rec-accent: var(--green-on-ink);
  --rec-shadow: 0 0 0 1px rgba(61, 220, 132, 0.08), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px var(--glow);
  --ship-bg: var(--green-on-ink); --ship-ink: var(--ink);
  background: var(--rec-bg); }
.rec::before, .rec::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 1px solid rgba(244, 243, 238, 0.07); z-index: -1; }
.rec::before { transform: translate(18px, 18px); background: rgba(29, 34, 40, 0.75); }
.rec::after { transform: translate(36px, 36px); background: rgba(29, 34, 40, 0.4); }
.hero-x { isolation: isolate; }
.rs-ship { box-shadow: 0 0 24px -2px rgba(61, 220, 132, 0.65); }

/* cards: layered dark panels with a top highlight */
.mech li, .spec-card, .phase, .give-get .box, .prod-item {
  background: linear-gradient(180deg, rgba(244, 243, 238, 0.045), rgba(244, 243, 238, 0.015)), var(--ink-4);
  border: 1px solid var(--line-d); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(244, 243, 238, 0.06), 0 24px 48px -32px rgba(0, 0, 0, 0.9);
  color: var(--on-ink);
}
.prod-card { background: linear-gradient(180deg, rgba(244, 243, 238, 0.03), rgba(244, 243, 238, 0.01)), var(--ink); }
.mech p, .spec-card p, .phase p, .give-get .box p, .prod-item p, .hw-item p { color: var(--on-ink-muted); }
.mech .key { background: var(--green-on-ink); color: var(--ink); border-radius: 4px; box-shadow: 0 0 18px -4px var(--glow); }
.phase.main { border-color: var(--green-on-ink); box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.35), 0 0 60px -20px var(--glow); }
.spec-ink.hw-card { background: linear-gradient(180deg, rgba(61, 220, 132, 0.10), rgba(61, 220, 132, 0.03)), var(--ink-4); border-color: rgba(61, 220, 132, 0.35); }
.spec-ink.hw-card p { color: var(--on-ink); }

/* flow diagram, dark */
.flow { --fl-bg: linear-gradient(180deg, rgba(244, 243, 238, 0.03), rgba(244, 243, 238, 0.008)); --fl-frame: var(--line-d); --fl-card: #171b21;
  --fl-line: rgba(244, 243, 238, 0.16); --fl-text: var(--paper); --fl-muted: var(--on-ink-faint); --fl-wire: #6b737d; --fl-well: rgba(244, 243, 238, 0.05); }
.fl-end .fl-box { filter: drop-shadow(0 0 14px rgba(61, 220, 132, 0.35)); }

/* board-as-code, dark: a drawing sheet */
.pcb { --pcb-bg: #0e1114; --pcb-frame: var(--line-d); --pcb-panel: #171b21; --pcb-muted: #8f97a1; --pcb-text: var(--paper);
  --pcb-board: #0f2a1d; --pcb-edge: #2b8c59; --pcb-chip: #0b0d10; --pcb-pad: #c9a25a; --pcb-trace: #34b46e;
  background-image: var(--grid); background-size: 20px 20px; }
.pc-tr.hl { filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.8)); }

/* reference: tiles glow */
.ref { background: linear-gradient(180deg, #161a1f, #111418); border: 1px solid var(--line-d); border-left: 0; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.ref .tile { --tile-bg: rgba(244, 243, 238, 0.03); --tile-line: var(--line-d); }
.tile-n { text-shadow: 0 0 28px rgba(61, 220, 132, 0.35); }
.ref .tile p { color: var(--on-ink-muted); }

/* about, contact */
#about .lead { color: var(--on-ink-muted); }
.contact { background-color: var(--ink) !important; }
.mail-card { background: linear-gradient(180deg, rgba(61, 220, 132, 0.12), rgba(61, 220, 132, 0.03)), var(--ink-4); color: var(--paper);
  border: 1px solid rgba(61, 220, 132, 0.35); box-shadow: 0 0 60px -24px var(--glow); }
.mail-card .label, .mail-card a.mail { color: var(--green-on-ink); }
.mail-card .who { color: var(--on-ink-faint); }
.mail-card a.mail:focus-visible { outline-color: var(--green-on-ink); }

/* legal and security pages, dark */
main.legal-page { background-color: var(--ink); color: var(--on-ink); background-image: var(--grid); background-size: 40px 40px; }
.legal-page h1, .legal-page h2 { color: var(--paper); }
.legal-page p, .legal-page li, .eu-facts dt, .eu-facts dd { color: #cfd3d8; }
.legal-page .updated { color: var(--on-ink-faint); }
.legal-page a { color: var(--green-on-ink); }
.eu-facts, .eu-facts dt, .eu-facts dd { border-color: var(--ink-line); }

/* ---------------- motion (CSS only) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  /* the record card plays once: the task arrives, red, green, red on revert, SHIP, the gate */
  .rec { animation: lk-rise 700ms cubic-bezier(0, 0, 0.2, 1) both; }
  .rec-steps li { animation: lk-in 420ms cubic-bezier(0, 0, 0.2, 1) both; }
  .rec-steps .rs { animation: lk-stamp 380ms cubic-bezier(0, 0, 0.2, 1) both; }
  .rec-steps .r1 { animation-delay: 500ms; }  .rec-steps .r1 .rs { animation-delay: 900ms; }
  .rec-steps .r2 { animation-delay: 1200ms; } .rec-steps .r2 .rs { animation-delay: 1600ms; }
  .rec-steps .r3 { animation-delay: 1900ms; } .rec-steps .r3 .rs { animation-delay: 2300ms; }
  .rec-steps .r4 { animation-delay: 2600ms; } .rec-steps .r4 .rs { animation: lk-ship 600ms cubic-bezier(0, 0, 0.2, 1) 3000ms both; }
  .rec-steps .r5 { animation-delay: 3500ms; } .rec-steps .r5 .rs { animation-delay: 3900ms; }
  .rec-human { animation: lk-in 420ms ease 4200ms both; }
  .rec-steps .rs-red { --pulse: rgba(255, 107, 107, 0.55); }
  .rec-steps .rs-green { --pulse: rgba(61, 220, 132, 0.55); }

  /* flow: a signal runs along the wires; the NO-SHIP loop runs backwards; nodes light in turn */
  .flow .fl-wire { stroke-dasharray: 7 7; animation: lk-dash 1.2s linear infinite; }
  .flow .fl-loop { animation-direction: reverse; animation-duration: 1.8s; }
  .flow .fl-node .fl-box { animation: lk-node 6s ease-in-out infinite; }
  .flow .n1 .fl-box { animation-delay: 0s; }
  .flow .n2 .fl-box { animation-delay: 1s; }
  .flow .n3 .fl-box { animation-delay: 2s; }
  .flow .n4 .fl-box { animation-delay: 3s; }
  .flow .n5 .fl-box { animation-delay: 4s; }
  .fl-pill { animation: lk-blink 6s ease-in-out infinite; }
  .fl-pill.p1 { animation-delay: 2.1s; } .fl-pill.p2 { animation-delay: 2.4s; } .fl-pill.p3 { animation-delay: 2.7s; }

  /* board-as-code: the highlighted line and its trace pulse together; the cursor blinks */
  .pc-cur { animation: lk-cursor 1.1s steps(1) infinite; }
  .pc-ln.hl, .pc-tr.hl { animation: lk-glow 2.4s ease-in-out infinite; }

  /* hover depth */
  .mech li, .prod-item, .hw-card, .tile, .phase { transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
  .mech li:hover, .prod-item:hover, .hw-card:hover, .tile:hover, .phase:hover {
    transform: translateY(-3px); border-color: rgba(61, 220, 132, 0.4);
    box-shadow: inset 0 1px 0 rgba(244, 243, 238, 0.08), 0 0 0 1px rgba(61, 220, 132, 0.15), 0 24px 50px -24px rgba(61, 220, 132, 0.3);
  }
  .flow .fl-node:hover .fl-box { stroke: var(--green-on-ink); }

  /* rise on scroll, where the browser has scroll-driven animations; elsewhere everything is simply shown */
  @supports (animation-timeline: view()) {
    #content section:not(.hero) .section-head, .mech li, .prod-item, .hw-item, .hw-card, .tile, .phase, .flow, .pcb, .data-vis, .pilot-foot {
      animation: lk-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes lk-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes lk-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes lk-stamp { 0% { opacity: 0; transform: scale(1.5); } 60% { opacity: 1; transform: scale(0.94); box-shadow: 0 0 0 8px var(--pulse, transparent); } 100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 transparent; } }
@keyframes lk-ship { 0% { opacity: 0; transform: scale(1.8); } 55% { opacity: 1; transform: scale(0.92); box-shadow: 0 0 0 14px rgba(61, 220, 132, 0.35); } 100% { opacity: 1; transform: none; } }
@keyframes lk-dash { to { stroke-dashoffset: -28; } }
@keyframes lk-node { 0%, 12%, 100% { stroke: var(--fl-line); } 4% { stroke: var(--green-on-ink); } }
@keyframes lk-blink { 0%, 20%, 100% { opacity: 1; } 5% { opacity: 0.45; } }
@keyframes lk-cursor { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes lk-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes lk-reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
