/* =========================================================================
   STARKTRONIX — interior pages. Mobile first; desktop is the adaptation.
   Ground #08090C, gold #D4A843, motto "Engineering & Magic" (inventory tab 00).
   ========================================================================= */
/* ---- self-hosted type: variable woff2 files from Google Fonts (Inter v20, Space Grotesk v22; SIL Open Font License),
   latin + greek for Inter, latin for Space Grotesk. No request leaves the site for a font. ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* ---- ground & elevation ---- */
  --void: #050609; --ground: #08090C; --surface: #0E1015; --surface-2: #14171E; --surface-3: #1B1F28; --surface-inset: #0B0D12;
  /* ---- edges (edge-interactive is 3.09:1 on ground — meets WCAG 1.4.11) ---- */
  --line: #262B35; --line-strong: #39404D; --edge: #565F6E;
  /* ---- text ---- */
  --ink: #F4F6F9; --ink-2: #C3CAD4; --ink-3: #949DA9; --ink-4: #78818D; --ink-disabled: #6B7480;
  /* ---- gold ---- */
  --gold: #D4A843; --gold-bright: #E8C267; --gold-deep: #A8842F; --gold-ink: #08090C;
  --gold-soft: rgba(212,168,67,.12); --gold-a24: rgba(212,168,67,.24);
  --accent: var(--gold);
  /* ---- semantic ---- */
  --ok: #4ADE80; --warn: #FBBF24; --error: #FF8080; --info: #7DD3FC;
  /* ---- division signals (content, not decoration) ---- */
  --sig-atlas: #d4a843; --sig-vanta: #5eead4; --sig-concord: #60a5fa; --sig-meridian: #34d399;
  --sig-prism: #f472b6; --sig-aegis: #a78bfa; --sig-forge: #fb923c; --sig-chiron: #f87171; --sig-robotronix: #38bdf8;
  /* ---- fluid type, solved for 390px → 1440px ---- */
  --t-display: clamp(2.125rem, 1.243rem + 3.62vw, 4.50rem);
  --t-h1:      clamp(1.875rem, 1.271rem + 2.48vw, 3.50rem);
  --t-h2:      clamp(1.500rem, 1.129rem + 1.52vw, 2.50rem);
  --t-h3:      clamp(1.1875rem, 1.025rem + 0.67vw, 1.625rem);
  --t-lede:    clamp(1.1875rem, 1.118rem + 0.29vw, 1.375rem);
  --t-body:    clamp(1.0625rem, 1.039rem + 0.10vw, 1.125rem);
  --t-body-sm: clamp(0.9375rem, 0.914rem + 0.10vw, 1.000rem);
  --t-micro:   clamp(0.6875rem, 0.664rem + 0.10vw, 0.750rem);
  --t-stat:    clamp(2.000rem, 1.443rem + 2.29vw, 3.50rem);
  --t-quote:   clamp(1.375rem, 1.143rem + 0.95vw, 2.00rem);
  --lh-h1: 1.06; --lh-h2: 1.12; --lh-h3: 1.25; --lh-lede: 1.50; --lh-body: 1.65; --lh-read: 1.70; --lh-micro: 1.45;
  --ls-h1: -.028em; --ls-h2: -.024em; --ls-h3: -.015em;
  --m-lede: 42ch; --m-body: 68ch; --m-read: 66ch; --m-card: 46ch; --m-quote: 34ch;
  /* ---- space, radius, motion, layers ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --bar-h: 82px; --pad: 20px;
  --shadow: 0 10px 34px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.7,.2,1); --dur: .35s;
  --z-bar: 60; --z-sheet: 70; --z-modal: 80; --z-wa: 55;
  --font-h: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-b: Inter, -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --font-m: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
html, body { max-width: 100%; overflow-x: clip; }
body { font-family: var(--font-b); color: var(--ink); background: var(--ground); line-height: var(--lh-body);
  font-size: var(--t-body); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; padding-top: var(--bar-h);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 0 0 var(--r) 0; font-weight: 600; }
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
#bar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  background: rgba(8,9,12,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#bar .logo { grid-column: 2; justify-self: center; display: flex; align-items: center; min-height: 44px; }
#bar .logo img { height: 52px; width: auto; }
#burger { grid-column: 3; justify-self: end; width: 44px; height: 44px; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
#burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
body.menu-open #burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open #burger span:nth-child(2) { opacity: 0; }
body.menu-open #burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- menu sheet ---------- */
#sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }
#sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(4,5,8,.72); opacity: 0; transition: opacity var(--dur) var(--ease); }
.sheet-panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 90vw); padding: calc(var(--bar-h) + 24px) 28px 40px;
  background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto;
  transform: translateX(100%); transition: transform var(--dur) var(--ease); display: flex; flex-direction: column; }
body.menu-open { position: fixed; inset: 0; width: 100%; overflow: hidden; }
body.menu-open .sheet-scrim { opacity: 1; }
body.menu-open .sheet-panel { transform: none; }
.sheet-h { font: 500 11px/1 var(--font-m); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); margin: 20px 0 10px; }
.sheet-h:first-child { margin-top: 0; }
.sheet-link { font-family: var(--font-h); font-weight: 500; font-size: 26px; letter-spacing: -.02em; color: var(--ink);
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); display: block; min-height: 44px; }
.sheet-link.small { font-size: 17px; color: var(--ink-2); font-family: var(--font-b); }
.sheet-link:hover { color: var(--gold); }
button.sheet-link { background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; cursor: pointer; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin-bottom: var(--sp-4); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; }
.eyebrow { font: 500 var(--t-micro)/var(--lh-micro) var(--font-m); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-4); }
.lead { font-size: var(--t-lede); line-height: var(--lh-lede); color: var(--ink-2); max-width: var(--m-lede); margin-top: var(--sp-4); }
.body { font-size: var(--t-body); color: var(--ink-2); max-width: var(--m-body); margin-bottom: var(--sp-4); }
.section-intro { color: var(--ink-3); max-width: 62ch; margin-bottom: var(--sp-5); }
.signal { font-family: var(--font-h); font-size: var(--t-quote); font-weight: 500; line-height: 1.3; color: var(--ink);
  border-left: 3px solid var(--accent); padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); margin: 0 var(--pad) var(--sp-6); max-width: 54ch; }
.proof { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline; margin: 0 var(--pad) var(--sp-5);
  padding: var(--sp-4); background: var(--gold-soft); border-radius: var(--r); color: var(--ink-2); font-size: 15px; }
.proof-label { font: 500 10px/1 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.sys-role { font-family: var(--font-h); font-size: clamp(17px, 4.4vw, 22px); color: var(--accent); margin: 0 var(--pad) var(--sp-4); }
.sol-code-big { font: 500 12px/1 var(--font-m); letter-spacing: .2em; color: var(--accent); margin-bottom: var(--sp-5); }

/* ---------- layout ---------- */
#main { display: block; }
.section { padding: var(--sp-7) var(--pad); }
.section.band { background: var(--surface); border-block: 1px solid var(--line); }
.page-hero { padding: var(--sp-7) var(--pad) var(--sp-5); }
.crumbs { padding: var(--sp-4) var(--pad) 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-2); font: 500 11px/1.6 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--ink-4); }
.crumbs a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; margin-left: -6px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--ink-2); }
.grid { display: grid; gap: var(--sp-4); }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: 1fr; }

/* ---------- cards ---------- */
.card { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-5); text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.card:hover, a.card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .85; }
.card.num-card::before, .card.role-card::before, .card.article-card::before { opacity: 0; }
.card-code { font: 500 11px/1 var(--font-m); letter-spacing: .18em; color: var(--accent); margin-bottom: var(--sp-3); }
.card-num { font: 500 12px/1 var(--font-m); letter-spacing: .16em; color: var(--gold); margin-bottom: var(--sp-3); }
.card-title { margin-bottom: var(--sp-2); }
.card-tagline { color: var(--accent); font-size: 15px; margin-bottom: var(--sp-2); }
.card-desc { color: var(--ink-2); font-size: var(--t-body-sm); max-width: var(--m-card); }
.card-signal { color: var(--ink-2); font-size: 15px; margin-bottom: var(--sp-3); }
.card-meta { font: 500 11px/1.7 var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-top: var(--sp-3); }
.card-meta a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; margin: 0 -4px; }
.card-meta a:hover { color: var(--gold); }
.industry-card .card-title { font-family: var(--font-h); font-weight: 700; font-size: clamp(21px, 5.4vw, 27px); }
.tag { display: inline-block; background: var(--gold-soft); color: var(--gold); padding: 3px 9px; border-radius: var(--r-pill); font-size: 10px; letter-spacing: .14em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.chips li { font: 500 11px/1 var(--font-m); letter-spacing: .1em; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 10px; }

/* ---------- stats, lists, quotes ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
.stat-value { font-family: var(--font-h); font-weight: 700; font-size: var(--t-stat); color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.stat-label { font: 500 11px/1.5 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-top: var(--sp-2); }
.ticks { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pull { border-left: 3px solid var(--gold); padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); margin: var(--sp-6) 0; }
.prose .pull p, .pull p { font-family: var(--font-h); font-size: var(--t-quote); font-weight: 500; line-height: 1.32;
  color: var(--ink); max-width: var(--m-quote); margin-bottom: 0; }

/* ---------- solutions index ---------- */
.sol-index { display: grid; gap: var(--sp-6); }
.sol-group-h { font-size: 15px; font-family: var(--font-m); font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-3); }
.sol-group-h a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sol-list { list-style: none; display: grid; gap: var(--sp-1); }
.sol-list a { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); align-items: center; padding: 12px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05); min-height: 44px; }
.sol-list a:hover .sol-title { color: var(--gold); }
.sol-code { font: 500 11px/1.4 var(--font-m); letter-spacing: .14em; color: var(--ink-4); min-width: 128px; }
.sol-title { color: var(--ink-2); font-size: 15px; }

/* ---------- prose (articles) ---------- */
.prose { padding: 0 var(--pad) var(--sp-8); max-width: var(--m-read); margin: 0 auto; }
.prose .page-hero { padding-inline: 0; }
.prose h2 { margin-top: var(--sp-7); }
.prose p { color: var(--ink-2); margin-bottom: var(--sp-4); font-size: var(--t-body); line-height: var(--lh-read); }
.prose .ticks { margin-bottom: var(--sp-5); }
.article-foot { border-top: 1px solid var(--line); margin-top: var(--sp-7); padding-top: var(--sp-5); color: var(--ink-4); font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: var(--r-pill); border: 1px solid var(--edge); background: rgba(255,255,255,.04); color: var(--ink);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: all var(--dur) var(--ease); }
.btn:hover { border-color: var(--ink-3); background: rgba(255,255,255,.08); }
.btn.primary { background: var(--ink); color: #0A0D14; border-color: var(--ink); }
.btn.primary:hover { background: #fff; }
.btn.small { min-height: 44px; padding: 11px 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.cta-section { text-align: left; }

/* ---------- forms ---------- */
.contact-form, .signin-form { display: grid; gap: var(--sp-4); max-width: 34rem; }
.contact-form label, .signin-form label { display: grid; gap: var(--sp-2); font: 500 11px/1 var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
input, select, textarea { font-family: var(--font-b); font-size: 16px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--edge); border-radius: var(--r-sm); padding: 13px 14px; width: 100%; min-height: 46px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.err { color: #FF8A7A; font: 500 11px/1.4 var(--font-b); letter-spacing: 0; text-transform: none; min-height: 1em; }
.form-note { color: var(--ink-4); font-size: 14px; }
.form-note a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
/* contact form states (site.js sets data-state): idle → sending → sent | ready (mail client) | failed.
   The honeypot is placed off-screen — never display:none — so a real browser keeps it invisible while a crawler fills it. */
.contact-form { position: relative; }
.form-fields { display: grid; gap: var(--sp-4); }
.contact-form [hidden] { display: none !important; }
.contact-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form[aria-busy="true"] [data-submit] { opacity: .6; cursor: progress; }
.form-panel { display: grid; gap: var(--sp-3); justify-items: start; }
.form-panel .cta-row { margin-top: 0; }
.contact-form[data-state="sent"] .form-status, .contact-form[data-state="ready"] .form-status, .contact-form[data-state="failed"] .form-status {
  font: 600 var(--t-h3)/var(--lh-h3) var(--font-h); letter-spacing: var(--ls-h3); color: var(--ink); max-width: var(--m-lede); }

/* ---------- demo container ---------- */
.demo { border: 1px dashed var(--line-strong); border-radius: var(--r); min-height: 180px; display: grid; place-items: center; background: var(--surface-2); }
.demo-note { font: 500 11px/1 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- sign-in modal ---------- */
#signin { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--pad); }
#signin[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(4,5,8,.76); }
.modal-panel { position: relative; width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow); display: grid; gap: var(--sp-4); }
.modal-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--ink-3); font-size: 26px; cursor: pointer; width: 44px; height: 44px; }
.modal-note { color: var(--ink-3); font-size: 14px; }

/* ---------- footer ---------- */
#site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: var(--sp-7) var(--pad) calc(var(--sp-6) + env(safe-area-inset-bottom)); margin-top: var(--sp-8); }
.foot-top { display: grid; gap: var(--sp-6); }
.foot-wordmark { font-family: var(--font-h); font-weight: 700; letter-spacing: .14em; font-size: 18px; }
.foot-motto { color: var(--gold); font-size: 14px; margin-top: 2px; }
.foot-line { color: var(--ink-4); font-size: 14px; margin-top: var(--sp-3); max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); }
.foot-h { font: 500 11px/1 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--sp-3); }
.foot-col a { display: flex; align-items: center; color: var(--ink-3); text-decoration: none; font-size: 14px; padding: 11px 0; min-height: 44px; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; border-top: 1px solid var(--line);
  margin-top: var(--sp-6); padding-top: var(--sp-4); color: var(--ink-4); font-size: 13px; }
.foot-bottom a { color: var(--ink-3); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- floating WhatsApp ---------- */
#wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-wa);
  width: 56px; height: 56px; border-radius: 50%; background: #0A0D14; border: 1px solid var(--edge);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease); }
#wa:hover { transform: translateY(-2px); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* =================== DESKTOP =================== */
@media (min-width: 700px) {
  :root { --pad: 40px; --bar-h: 102px; }
  #bar .logo img { height: 76px; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .section, .page-hero { padding-inline: var(--pad); }
  .foot-cols { grid-template-columns: repeat(4, 1fr); }
  .foot-top { grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: var(--sp-8); }
  #wa { right: 24px; bottom: 24px; width: 56px; height: 56px; }
}
@media (min-width: 1024px) {
  :root { --pad: 64px; }
  .page-hero, .section { max-width: 1240px; margin-inline: auto; }
  #site-footer > * { max-width: 1240px; margin-inline: auto; }
  .cards-1.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cards-2 { grid-template-columns: repeat(3, 1fr); }
  .sol-index { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-8); }
  .signal, .proof, .sys-role { margin-inline: auto; max-width: 1240px; padding-inline: var(--pad); }
}

/* ---------- bar right cluster ---------- */
.bar-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--sp-2); }
.bar-cta { display: none; font: 500 13px/1 var(--font-b); color: var(--ink); text-decoration: none;
  padding: 13px 17px; border: 1px solid var(--edge); border-radius: var(--r-pill); min-height: 44px; align-items: center; }
.bar-cta:hover { color: var(--ink); border-color: var(--ink-3); }
@media (min-width: 560px) { .bar-cta { display: inline-flex; } }
.sheet-actions { display: grid; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-6); }
.sheet-actions .btn { width: 100%; }

/* ---------- solutions: full anchored blocks on the industry page ---------- */
.solutions { display: grid; gap: var(--sp-5); }
.solutions > * { min-width: 0; }
.grid > * { min-width: 0; }
.demo { min-width: 0; }
.solution:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.solution { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: var(--sp-5); scroll-margin-top: calc(var(--bar-h) + 16px); }
.solution .sol-code { font: 500 11px/1 var(--font-m); letter-spacing: .2em; color: var(--accent); margin-bottom: var(--sp-3); min-width: 0; }
.sol-h { font-family: var(--font-h); font-weight: 700; font-size: clamp(20px, 5.2vw, 26px); letter-spacing: -.02em; margin-bottom: var(--sp-3); }
.sol-desc { color: var(--ink-2); font-size: var(--t-body); line-height: var(--lh-body); max-width: var(--m-body); }
.built-from { margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.built-h { font: 500 10px/1 var(--font-m); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--sp-3); }
.built-list { list-style: none; display: grid; gap: var(--sp-2); }
.built-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3);
  text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.03);
  border: 1px solid transparent; min-height: 44px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.built-list a:hover { background: rgba(255,255,255,.06); border-color: var(--line-strong); }
.built-code { font: 500 12px/1.4 var(--font-m); letter-spacing: .14em; color: var(--ink); }
.built-div .built-code { color: var(--accent); }
.built-name { font-size: 13.5px; color: var(--ink-4); }
.built-note { color: var(--ink-4); font-size: 13.5px; margin-top: var(--sp-3); }

/* ---------- applied-in list on a system page ---------- */
.applied-list { list-style: none; display: grid; gap: var(--sp-2); }
.applied-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3);
  text-decoration: none; padding: 13px 14px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); min-height: 44px; }
.applied-list a:hover { border-color: var(--line-strong); }
.applied-ind { font-family: var(--font-h); font-weight: 500; font-size: 16px; color: var(--ink); }
.applied-sol { font: 500 11px/1.5 var(--font-m); letter-spacing: .12em; color: var(--ink-4); }

/* ---------- standalone sign-in ---------- */
.signin-form.standalone { max-width: 26rem; }

/* ---------- arrival: the landing's jump ends in a white-out, so the destination fades in from white ---------- */
#arrive { position: fixed; inset: 0; background: #fff; z-index: 90; pointer-events: none; opacity: 0; }
body.arriving #arrive { opacity: 1; animation: arrive .62s var(--ease) forwards; }
@keyframes arrive { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.arriving #arrive { animation: none; opacity: 0; } }

/* ---------- sticky jump nav: reach any solution on a long industry page ---------- */
.jump { position: sticky; top: var(--bar-h); z-index: 40; margin: 0 0 var(--sp-5);
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: var(--sp-3) var(--pad); background: rgba(8,9,12,.94); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line); }
.jump::-webkit-scrollbar { display: none; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); width: auto; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--edge); background: var(--surface-2); color: var(--ink-2); text-decoration: none;
  font: 500 var(--t-micro)/1 var(--font-m); letter-spacing: .12em; white-space: nowrap; }
.jump a:hover { border-color: var(--edge); color: var(--ink); }

[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
[id]:focus { outline: none; }
[id]:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

/* ---------- demonstrations ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-inset);
  padding: var(--sp-4); display: block; min-height: 0; overflow: hidden; }
.demo-cap { font: 500 var(--t-micro)/1 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--sp-3); }
.demo-canvas { display: block; width: 100%; max-width: 100%; border-radius: var(--r-sm); background: #06070A; }
.d-chat { display: grid; gap: var(--sp-2); max-height: 230px; overflow: hidden; }
.d-msg { display: flex; }
.d-msg.d-us { justify-content: flex-end; }
.d-msg.d-act { justify-content: center; }
.d-bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: var(--t-body-sm); line-height: 1.45; }
.d-them .d-bubble { background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 3px; }
.d-us .d-bubble { background: var(--gold-soft); color: var(--ink); border: 1px solid var(--gold-a24); border-bottom-right-radius: 3px; }
.d-act .d-bubble { background: transparent; color: var(--ink-4); font-family: var(--font-m); font-size: var(--t-micro); letter-spacing: .08em; }
.d-queue { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.d-col-h { font: 500 9px/1.3 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--sp-2); min-height: 2.4em; }
.d-col-body { display: grid; gap: 6px; align-content: start; min-height: 132px; }
.d-card { background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 6px; padding: 8px 9px; font-size: 12px; color: var(--ink-2); }
.d-trace { display: grid; gap: 3px; font-family: var(--font-m); font-size: 11.5px; min-height: 150px; align-content: start; }
.d-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.d-ts { color: var(--ink-4); } .d-ev { color: var(--gold); } .d-d { color: var(--ink-2); }
@media (max-width: 420px) { .d-row { grid-template-columns: auto 1fr; } .d-ts { grid-column: 1 / -1; } .d-queue { gap: 5px; } .d-card { font-size: 11px; padding: 6px 7px; } }

.form-status { color: var(--ink-2); font-size: var(--t-body-sm); min-height: 1.4em; }
.form-status:empty { min-height: 0; }

.built-group + .built-group { margin-top: var(--sp-4); }
.built-kind { font: 500 var(--t-micro)/1.4 var(--font-m); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--sp-2); display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.built-kind span { text-transform: none; letter-spacing: 0; font-family: var(--font-b); font-size: 12.5px; color: var(--ink-4); }
.built-div a { border-left: 3px solid var(--accent); }
.built-sys a { border-left: 3px solid var(--edge); }
.built-sys .built-code { color: var(--ink); }
.built-sys a::after { content: "→"; margin-left: auto; color: var(--ink-4); font-size: 13px; }
.cap-card { border-left: 3px solid var(--accent); }

/* =========================================================================
   Company page — the live copy on the new design, with the practice drawn from the site's own counts.
   Mobile first; the ≥880px rules widen it.
   ========================================================================= */
.co-h2-quiet { font: 500 var(--t-micro)/var(--lh-micro) var(--font-m); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-5); }
.struct { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.struct-node, .struct-programs { position: relative; display: block; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); }
.struct-node:hover, .struct-programs:hover { border-color: var(--edge); }
.struct-num { display: block; font-family: var(--font-h); font-weight: 700; font-size: var(--t-stat); color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.struct-label { display: block; font: 500 11px/1.5 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: var(--sp-2); }
.struct-sub { display: block; font-size: var(--t-body-sm); color: var(--ink-3); margin-top: 2px; }
.struct-cells { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--sp-4); }
.struct-cells i { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--edge)); opacity: .9; }
.struct-programs { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-5); align-items: center; }
.struct-programs .struct-cells { grid-column: 1 / -1; margin-top: var(--sp-3); }
.struct-programs .struct-label { margin-top: 0; }
.co-split { display: grid; gap: var(--sp-6); }
.co-mission .lead, .co-forward .lead { font-size: var(--t-lede); line-height: var(--lh-lede); color: var(--ink); max-width: var(--m-lede); margin-bottom: var(--sp-4); }
.co-gap { margin: 0; background: var(--surface-inset); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.gap-svg { display: block; width: 100%; height: auto; }
.co-gap figcaption { font-size: var(--t-body-sm); color: var(--ink-3); margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.co-est { display: inline-block; font: 500 11px/1 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
/* the four stages as a rail: a line with a stop for each, vertical on phones, horizontal on wide screens */
.rail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--sp-5); }
.rail::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.rail-step { position: relative; padding-left: var(--sp-6); min-width: 0; }
.rail-step::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(212,168,67,.12); }
.rail-num { display: block; font: 500 12px/1 var(--font-m); letter-spacing: .16em; color: var(--gold); margin-bottom: var(--sp-2); }
.rail-title { margin-bottom: var(--sp-2); }
.rail-desc { color: var(--ink-2); font-size: var(--t-body-sm); max-width: var(--m-card); }
.rail-loop { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); color: var(--ink-3); font-size: var(--t-body-sm); }
.rail-loop svg { flex: 0 0 auto; color: var(--gold); }
.values { display: grid; gap: var(--sp-4); }
.value { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); min-width: 0; }
.value-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); margin-bottom: var(--sp-4); }
.value-title { margin-bottom: var(--sp-2); }
.value-desc { color: var(--ink-2); font-size: var(--t-body-sm); }
.horizon { margin-top: var(--sp-6); border-top: 1px solid var(--line); padding-top: var(--sp-6); }
.horizon-head h3 { margin-bottom: var(--sp-2); }
.convictions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.conviction { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-4); align-items: start; }
.conv-num { font: 500 12px/1 var(--font-m); letter-spacing: .16em; color: var(--gold); }
.conv-glyph { width: 64px; height: 24px; grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.conv-title { grid-column: 1; margin: 0 0 var(--sp-2); font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.conv-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--t-body-sm); max-width: var(--m-card); }
.fine-note { margin-top: var(--sp-6); color: var(--ink-4); font-size: var(--t-body-sm); line-height: var(--lh-body); max-width: 70ch; }
.founder-label { font: 500 var(--t-micro)/var(--lh-micro) var(--font-m); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-5); }
.founder { display: grid; gap: var(--sp-5); max-width: 72ch; }
.founder-q { border-left: 2px solid var(--gold); padding-left: var(--sp-5); display: grid; gap: var(--sp-4); }
.founder-q p { font-size: var(--t-lede); line-height: var(--lh-lede); color: var(--ink); }
.founder-sig { display: flex; align-items: center; gap: var(--sp-4); color: var(--ink-2); font-size: var(--t-body-sm); line-height: 1.45; }
.founder-sig b { color: var(--ink); font-weight: 600; }
.founder-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold); font: 600 13px/1 var(--font-m); letter-spacing: .12em; }
@media (min-width: 880px) {
  .struct { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
  .struct-node:not(:nth-child(4))::after { content: ""; position: absolute; right: calc(-1 * var(--sp-4)); top: 50%; width: var(--sp-4); height: 1px; background: var(--edge); }
  .struct-programs { grid-template-columns: auto 1fr auto; }
  .struct-programs .struct-cells { grid-column: 3; margin-top: 0; }
  .co-split { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .rail { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .rail::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .rail-step { padding-left: 0; padding-top: var(--sp-6); }
  .rail-step::before { top: 0; left: 0; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .convictions { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Industry pictures — the owner's illustrations behind each industry card and each industry hero.
   ========================================================================= */
.industry-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; min-height: 220px; padding: 0; background: var(--surface-inset); }
.industry-card .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .95; transition: transform .7s var(--ease); }
a.industry-card:hover .card-img, a.industry-card:focus-visible .card-img { transform: scale(1.04); }
.industry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,.02) 0%, rgba(8,9,12,.42) 45%, rgba(8,9,12,.94) 100%); }
.industry-card::before { z-index: 2; }
.industry-card .card-body { position: relative; z-index: 1; padding: var(--sp-5); }
.industry-card .card-title, .industry-card .card-signal { text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.industry-card .card-signal { color: var(--ink); }
.page-hero.has-image { position: relative; overflow: hidden; min-height: min(64svh, 600px); display: flex; flex-direction: column; justify-content: flex-end; padding: 36svh 0 var(--sp-6); }
.page-hero.has-image .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,.28) 0%, rgba(8,9,12,.3) 35%, rgba(8,9,12,.95) 100%); }
.page-hero.has-image .hero-inner { position: relative; z-index: 1; padding-inline: var(--pad); }
.page-hero.has-image h1, .page-hero.has-image .lead { text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.page-hero.has-image .lead { color: var(--ink); }
@media (min-width: 1024px) {
  .page-hero.has-image { max-width: none; padding-inline: 0; }
  .page-hero.has-image .hero-inner { max-width: 1240px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .industry-card .card-img { transition: none; } }

/* =========================================================================
   Careers page — the live copy on the new design.
   ========================================================================= */
.roles-summary { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-5); font: 500 11px/1.6 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.roles-summary span::before { content: "●"; color: var(--gold); margin-right: 8px; font-size: 8px; vertical-align: 2px; }
.roles { display: grid; gap: var(--sp-4); }
.role { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: var(--sp-5); min-width: 0; }
.role-div { font: 500 11px/1.5 var(--font-m); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3); }
.role-div-name { color: var(--ink-4); letter-spacing: .1em; text-transform: none; margin-left: 6px; }
.role-title { margin-bottom: var(--sp-3); }
.role-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) 0; font: 500 12px/1.6 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.role-meta span + span::before { content: "·"; margin: 0 10px; color: var(--ink-4); }
.role .cta-row { margin-top: var(--sp-4); }
@media (min-width: 880px) { .roles { grid-template-columns: 1fr 1fr; } }

/* Solutions: the one-line problem above the description; the hotel demos' DOM parts */
.sol-problem { font-size: var(--t-body); line-height: var(--lh-lede); color: var(--ink-2); font-style: italic; max-width: var(--m-lede); margin: 0 0 var(--sp-3); }
.d-offers { display: grid; gap: 8px; min-height: 150px; align-content: start; }
.d-offer { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: var(--ink-2); }
.d-offer b { color: var(--ink); font-weight: 600; }
.d-offer .d-check { grid-column: 1 / -1; font: 500 10px/1.4 var(--font-m); letter-spacing: .08em; color: var(--ink-4); }
.d-offer .d-state { font: 500 10px/1 var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.d-offer.d-withdrawn { border-left-color: var(--line-strong); opacity: .6; } .d-offer.d-withdrawn b { text-decoration: line-through; } .d-offer.d-withdrawn .d-state { color: var(--ink-4); }
.d-offer.d-accepted { border-left-color: var(--ok); } .d-offer.d-accepted .d-state { color: var(--ok); }
.d-reply { justify-self: end; max-width: 82%; padding: 8px 11px; border-radius: 12px; border-bottom-right-radius: 3px; background: var(--gold-soft); border: 1px solid var(--gold-a24); color: var(--ink); font-size: 12px; }
.d-review { display: grid; gap: 4px; }
.d-review .d-sent { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.d-review .d-fault { font: 500 9px/1.3 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.d-maint { margin-top: 8px; font: 500 10px/1.5 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); min-height: 1.5em; }
.d-maint.on { color: var(--gold); }
/* ---------- legal pages (/privacy, /terms) + footer legal links ---------- */
.foot-legal { display: flex; gap: var(--sp-5); }
.legal-updated { color: var(--ink-4); font-size: var(--t-body-sm); margin-top: calc(-1 * var(--sp-3)); }
.legal-toc { margin: var(--sp-5) 0 var(--sp-6); padding: var(--sp-3) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.legal-toc ol { list-style: none; }
.legal-toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink-3); text-decoration: none; font-size: var(--t-body-sm); }
.legal-toc a:hover { color: var(--gold); }
.legal section { scroll-margin-top: calc(var(--bar-h) + var(--sp-4)); }
.legal h2 { font-size: var(--t-h3); margin-top: var(--sp-7); }
.legal p a { color: var(--ink); text-decoration-color: var(--edge); text-underline-offset: 3px; }
.legal p a:hover { color: var(--gold); }
.legal-quote { border-left: 2px solid var(--gold); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); margin: var(--sp-4) 0 var(--sp-5); }
.legal-quote p { margin: 0; color: var(--ink-2); }
.legal-dl { display: grid; margin: var(--sp-4) 0 var(--sp-5); border-top: 1px solid var(--line); }
.legal-dl div { display: grid; gap: var(--sp-1); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .legal-dl div { grid-template-columns: minmax(88px, 8.5em) 1fr; gap: var(--sp-3); } }
.legal-dl dt { color: var(--ink-4); font: 500 var(--t-micro)/var(--lh-micro) var(--font-m); letter-spacing: .18em; text-transform: uppercase; padding-top: .45em; }
.legal-dl dd { color: var(--ink-2); overflow-wrap: anywhere; }
/* Blog images — the owner's pictures, once `articles[].image` names them (public/img/blog/README.md).
   Card: a 16:9 thumbnail bleeding to the card's edges. Article: the same picture under the dek, the title left on plain ground. */
.article-card .card-img { display: block; width: calc(100% + 2 * var(--sp-5)); max-width: none; margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4);
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-inset); }
.article-img { margin: var(--sp-5) 0 var(--sp-6); }
.article-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--surface-inset); }

/* 404 — one line and the ways onward: every top-level section as a full-width button, then back to the start. */
.nf-h { font: 500 var(--t-micro)/var(--lh-micro) var(--font-m); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-4); }
.nf-ways { display: grid; gap: var(--sp-3); max-width: 34rem; }
.nf-ways .btn { width: 100%; }
@media (min-width: 560px) {
  .nf-ways { grid-template-columns: 1fr 1fr; }
  .nf-ways .nf-home { grid-column: 1 / -1; }
}

/* Technology: the capability-line pictures on the division and system cards */
.card.has-img { padding-top: 0; }
.card.has-img .card-media { margin: 0 calc(-1 * var(--sp-5)) var(--sp-4); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--surface-inset); position: relative; }
.card.has-img .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,0) 55%, rgba(14,16,21,.9) 100%); }
.card.has-img .card-media .card-img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .95; transition: transform .7s var(--ease); }
a.card.has-img:hover .card-media .card-img, a.card.has-img:focus-visible .card-media .card-img { transform: scale(1.04); }
.division-card.has-img::before { z-index: 2; }
@media (min-width: 880px) { .division-card.has-img { display: grid; grid-template-columns: 2fr 3fr; column-gap: var(--sp-6); padding-top: var(--sp-5); } .division-card.has-img .card-media { grid-row: 1 / span 6; margin: calc(-1 * var(--sp-5)) 0 calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)); aspect-ratio: auto; border-radius: var(--r) 0 0 var(--r); min-height: 100%; } .division-card.has-img .card-media::after { background: linear-gradient(90deg, rgba(8,9,12,0) 60%, rgba(14,16,21,.9) 100%); } }
@media (prefers-reduced-motion: reduce) { .card.has-img .card-media .card-img { transition: none; } }
/* Field work */
/* =========================================================================
   Field work — case studies drawn only from the inventory. Picture cards on the index (the
   industry's picture, a bottom scrim, the title, the proof line, industry + system as mono meta),
   the industry picture as each case's hero, then problem / built / runs / built-from.
   New rules only; the shared card, hero, ticks and button rules above are reused as they are.
   ========================================================================= */
.cases { align-items: stretch; }
.case-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 0; background: var(--surface-inset); }
.case-card .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .95; transition: transform .7s var(--ease); }
a.case-card:hover .card-img, a.case-card:focus-visible .card-img { transform: scale(1.04); }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,.04) 0%, rgba(8,9,12,.46) 38%, rgba(8,9,12,.96) 100%); }
.case-card::before { z-index: 2; }
.case-card .card-body { position: relative; z-index: 1; padding: var(--sp-5); }
.case-card .card-title { font-family: var(--font-h); font-weight: 700; font-size: clamp(19px, 4.8vw, 23px); line-height: 1.22; letter-spacing: -.02em; text-shadow: 0 1px 14px rgba(0,0,0,.7); margin-bottom: var(--sp-3); }
.case-card .card-line { color: var(--ink-2); font-size: 15px; line-height: 1.45; text-shadow: 0 1px 12px rgba(0,0,0,.7); margin-bottom: var(--sp-3); max-width: var(--m-card); }
.case-card .case-meta { display: flex; flex-wrap: wrap; gap: 4px var(--sp-3); margin-top: 0; color: var(--ink-3); }
.case-card .case-meta span:first-child { color: var(--accent); }
.case-meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0 var(--pad) var(--sp-4); font: 500 11px/1.5 var(--font-m); letter-spacing: .12em; text-transform: uppercase; }
.case-meta-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.case-meta-row a:hover { color: var(--gold); }
.case-meta-k { color: var(--ink-4); }
.case-lead { color: var(--ink); margin: 0 0 var(--sp-4); max-width: var(--m-body); }
.case-proof { font-family: var(--font-h); font-size: var(--t-quote); font-weight: 500; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--accent); padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-5); max-width: 54ch; }
.case-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.case-chain li { min-width: 0; }
.chain-kind { font: 500 var(--t-micro)/1.4 var(--font-m); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-2); }
.case-chain .card { height: calc(100% - var(--sp-2) - 1.4 * var(--t-micro)); }
.case-chain .card-title { font-size: var(--t-h3); }
.case-sources { margin-top: var(--sp-6); color: var(--ink-4); font-size: 14px; line-height: 1.55; max-width: 70ch; }
@media (min-width: 880px) {
  .case-chain { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .case-meta-row { max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
}
@media (prefers-reduced-motion: reduce) { .case-card .card-img { transition: none; } }
.field-work-links { margin-top: var(--sp-4); }
