/* ===========================================================================
   ZINEXA — OPERATIONS MANUAL
   A growth operation documented like equipment, not advertised like a service.
   Ground is petrol ink (cold blue-green). Signal is molten orange (warm).
   The tension between the two is the whole design.
   =========================================================================== */

:root {
  /* ground: cold, deep, blue-green biased. never pure black. */
  --ground:    #0A1416;
  --ground-2:  #0E1B1E;
  --ground-3:  #142528;
  --ground-4:  #1B3034;

  /* light ground, used as punctuation not as a theme */
  --bone:      #EFEDE7;
  --bone-2:    #E2E0D8;
  --ink:       #0A1416;
  --ink-2:     #44514F;
  --ink-rule:  rgba(10,20,22,0.15);

  /* type on dark */
  --paper:     #E6EDEB;
  --paper-2:   #A6B8B5;
  --muted:     #7A908D;

  /* ACCENT: two tokens, never one. Amber, locked.
     --signal is tuned for the dark ground, --signal-ink for the light ground.
     A single accent value cannot clear contrast on both. */
  --signal:      #F2A03D;   /* amber, 8.78:1 on --ground */
  --signal-2:    #FFB55C;
  --signal-ink:  #8A4B0A;   /* burnt umber, 5.80:1 on --bone */
  --on-signal:   #17120C;   /* type that sits on a filled accent */

  --rule:      rgba(230,237,235,0.13);
  --rule-2:    rgba(230,237,235,0.07);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --rail: 132px;
}



*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---- shared primitives -------------------------------------------------- */

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--signal);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--paper-2);
  max-width: 62ch;
}

/* ---- document header strip ---------------------------------------------- */

.docbar {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.docbar-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  padding-block: 9px;
  color: var(--muted);
}
.docbar .k { color: var(--paper-2); }
.docbar .live { color: var(--signal); display: inline-flex; align-items: center; gap: 7px; }
.dot {
  width: 5px; height: 5px; background: var(--signal);
  display: inline-block; flex: none;
}

/* ---- nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(10,20,22,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 16px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  flex: none;
}
.brand svg { display: block; }
.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-2);
}
.nav-links a { padding-block: 4px; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
.nav-links a:hover { color: var(--paper); border-color: var(--signal); }
.nav-links a[aria-current="page"] { color: var(--paper); border-color: var(--signal); }
.nav-links a.nav-audit { color: var(--signal); }
.nav-links a.nav-audit:hover { color: var(--signal-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--on-signal);
  transition: background .18s, color .18s, transform .18s;
  flex: none;
}
.btn:hover { background: var(--signal-2); border-color: var(--signal-2); color: var(--on-signal); }
.btn .ar { transition: transform .22s; }
.btn:hover .ar { transform: translateX(4px); }

.btn-ghost {
  background: transparent; color: var(--paper);
  border-color: var(--rule);
}
.btn-ghost:hover { background: transparent; border-color: var(--signal); color: var(--signal); }

.btn-lg { padding: 17px 26px; font-size: 12px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--rule);
  width: 42px; height: 38px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; gap: 4px; flex-direction: column;
}
.nav-toggle i { display: block; width: 17px; height: 1.5px; background: var(--paper); }

/* ---- section scaffolding (the "drawing sheet") -------------------------- */

section { border-top: 1px solid var(--rule); }
/* anchor targets must clear the sticky header, or the heading lands under it */
section[id] { scroll-margin-top: calc(78px + env(safe-area-inset-top, 0px)); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sheet {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 0 40px;
  padding-block: clamp(64px, 8vw, 128px);
}
.sheet-rail {
  border-right: 1px solid var(--rule-2);
  padding-right: 20px;
}
.sheet-rail .code { display: block; margin-bottom: 8px; }
.sheet-rail .rail-name {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}

/* ---- hero --------------------------------------------------------------- */

.hero { border-top: none; }
.hero-in { padding-block: clamp(44px, 5vw, 76px) clamp(48px, 5vw, 80px); }
.hero-copy > h1 { max-width: 15ch; }
.hero-copy { max-width: none; }
.hero-copy .lede, .hero-copy .hero-actions { max-width: 62ch; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 92px);
  margin-bottom: 30px;
}
.hero h1 .burn { color: var(--signal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* readout panel: the equipment face */
.readout { border: 1px solid var(--rule); background: var(--ground-2); }
.readout-hd {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.readout-row {
  display: grid; grid-template-columns: 62px 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule-2);
}
.readout-row:last-child { border-bottom: none; }
.readout-row .nm { font-size: 14px; color: var(--paper); font-weight: 500; }
.readout-row .ct {
  font-family: var(--mono); font-size: 12px; color: var(--paper-2);
  font-variant-numeric: tabular-nums;
}
.readout-foot {
  padding: 15px 18px; border-top: 1px solid var(--rule);
  background: var(--ground-3);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--muted);
}
.readout-foot b { color: var(--signal); font-family: var(--mono); font-size: 12px; font-weight: 600; }

.replaces { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-2); }
.replaces span {
  background: var(--ground-2); padding: 13px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-2);
  text-decoration: line-through;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
}

/* ---- stat strip --------------------------------------------------------- */

.stats { border-top: 1px solid var(--rule); background: var(--ground-2); }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(24px, 3vw, 38px) clamp(16px, 2.4vw, 32px);
  border-right: 1px solid var(--rule-2);
}
.stat:last-child { border-right: none; }
.stat .v {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 10px;
}
.stat .v span { color: var(--signal); }
.stat .l { color: var(--muted); }

/* ---- the stack ---------------------------------------------------------- */

.stage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule-2);
  border: 1px solid var(--rule); margin-top: 48px;
}
.stage { background: var(--ground); padding: 0; display: flex; flex-direction: column; }
.stage-hd { padding: 22px 24px 20px; border-bottom: 1px solid var(--rule); min-height: 166px; }
.stage-hd .sc {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.stage-hd h3 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 9px; }
.stage-hd p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.stage-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.stage-list li { border-bottom: 1px solid var(--rule-2); }
.stage-list li:last-child { border-bottom: none; }
.stage-list a {
  display: grid; grid-template-columns: 62px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 24px;
  transition: background .16s;
}
.stage-list a:hover { background: var(--ground-3); }
.stage-list .nm { font-size: 14.5px; font-weight: 500; }
.stage-list .ar { color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .16s, transform .16s; }
.stage-list a:hover .ar { opacity: 1; transform: translateX(3px); color: var(--signal); }
.stage-flow {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding: 16px 24px; border-top: 1px solid var(--rule);
  background: var(--ground-2); color: var(--muted);
}
.stage-flow .bar { flex: 1; height: 1px; background: var(--rule); position: relative; }
.stage-flow .bar::after {
  content: ''; position: absolute; right: 0; top: -2px;
  width: 5px; height: 5px; background: var(--signal);
}

/* ---- fault list --------------------------------------------------------- */

.faults { list-style: none; margin: 40px 0 0; padding: 0; }
.faults li {
  display: grid; grid-template-columns: 78px 1fr;
  gap: 20px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--rule-2);
}
.faults li:last-child { border-bottom: 1px solid var(--rule-2); }
.faults .t { font-size: clamp(15px, 1.6vw, 17.5px); color: var(--paper); line-height: 1.5; max-width: 70ch; }

/* ---- process ------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule); margin-top: 44px; }
.step { background: var(--ground); padding: 26px 24px 30px; }
.step .n {
  font-family: var(--display); font-weight: 800; font-size: 46px;
  letter-spacing: -0.05em; line-height: 1; color: var(--ground-4);
  display: block; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step .when { display: block; margin-bottom: 10px; color: var(--signal); }
.step h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---- metrics ------------------------------------------------------------ */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule); margin-top: 44px; }
.metric { background: var(--ground); padding: 24px; }
.metric .code { display: block; margin-bottom: 16px; }
.metric h3 { font-size: 17.5px; letter-spacing: -0.02em; margin-bottom: 9px; }
.metric p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.antimetrics {
  margin-top: 28px; padding: 18px 22px;
  border: 1px solid var(--rule); background: var(--ground-2);
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  color: var(--muted);
}
.antimetrics s { color: var(--muted); opacity: .75; }

/* ---- evidence ----------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule); margin-top: 44px; }
.quote { background: var(--ground); padding: 28px 26px; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.58; color: var(--paper); }
.quote .who { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.quote .who b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }

/* ---- terms -------------------------------------------------------------- */

.terms { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule); }
.terms li { background: var(--ground); padding: 24px; display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: start; }
.terms h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 7px; }
.terms p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---- close -------------------------------------------------------------- */

.close { background: var(--paper); color: #0A1416; border-top: 1px solid var(--rule); }
.close-in {
  padding-block: clamp(60px, 8vw, 116px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.close h2 { font-size: clamp(34px, 5vw, 66px); color: #0A1416; margin-bottom: 22px; }
.close p { color: #3C4C4E; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; max-width: 54ch; }
.close .mono { color: #5B6E70; }
.close .btn { border-color: #0A1416; background: #0A1416; color: var(--paper); }
.close .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.close-meta { display: grid; gap: 1px; background: rgba(10,20,22,0.13); border: 1px solid rgba(10,20,22,0.13); }
.close-meta div { background: var(--paper); padding: 15px 18px; display: flex; justify-content: space-between; gap: 14px; }
.close-meta .mono { color: #5B6E70; }
.close-meta b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #0A1416; font-weight: 600; }

/* ---- footer ------------------------------------------------------------- */

footer { border-top: 1px solid var(--rule); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 60px 40px; }
.foot-brand p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 36ch; margin-top: 16px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--muted); transition: color .16s; }
.foot-col a:hover { color: var(--signal); }
.foot-bar { border-top: 1px solid var(--rule); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; color: var(--muted); }


/* ---- FIG 01: the seam diagram -------------------------------------------- */

.seam { margin: clamp(34px,3.5vw,52px) 0 0; border: 1px solid var(--rule); background: var(--ground-2); }
.seam-cap {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--rule); color: var(--muted);
}
.seam-body { padding: clamp(24px,3vw,38px) clamp(18px,2.4vw,30px); display: grid; gap: 30px; }
.seam-row { display: grid; gap: 12px; }
.seam-lbl { display: flex; align-items: center; gap: 10px; color: var(--paper-2); }
.seam-lbl b { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--paper); }

.track { position: relative; display: flex; align-items: stretch; min-height: 54px; }

/* broken track: six separate boxes with a visible gap at every handoff */
.track.broken .node {
  flex: 1; min-width: 0;
  border: 1px solid var(--rule);
  background: var(--ground-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-2);
  padding: 8px 4px; text-align: center;
}
.track.broken .gap { width: clamp(14px,2vw,26px); flex: none; position: relative; }
.track.broken .gap::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 1px; height: 22px; background: var(--signal);
  transform: translate(-50%, -2px);
}
.track.broken .gap::after {
  content: ''; position: absolute; left: 50%; top: calc(50% + 22px);
  width: 4px; height: 4px; background: var(--signal);
  transform: translateX(-50%);
}

/* whole track: one continuous bar, no seams */
.track.whole { border: 1px solid var(--signal); }
.track.whole .seg {
  flex: 1; min-width: 0;
  border-right: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper);
  padding: 8px 4px; text-align: center;
}
.track.whole .seg:last-of-type { border-right: none; }
.track.whole .out {
  flex: none; background: var(--signal); color: var(--on-signal);
  display: flex; align-items: center; padding: 0 clamp(10px,1.6vw,20px);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.seam-note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.seam-note b { color: var(--signal); font-weight: 500; }

/* the one orchestrated motion: a lead travelling each track */
.pip {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px;
  background: var(--paper); transform: translate(-50%,-50%);
  pointer-events: none;
}
.track.broken .pip { animation: leak 5.5s linear infinite; }
.track.whole  .pip { animation: through 5.5s linear infinite; }
@keyframes leak {
  0%   { left: 2%;  opacity: 0; }
  8%   { left: 8%;  opacity: 1; background: var(--paper); }
  44%  { left: 44%; opacity: 1; }
  52%  { left: 48%; opacity: 1; background: var(--signal); }
  62%  { left: 49%; opacity: 0; transform: translate(-50%, 14px); }
  100% { left: 49%; opacity: 0; transform: translate(-50%, 14px); }
}
@keyframes through {
  0%   { left: 2%;  opacity: 0; }
  8%   { left: 8%;  opacity: 1; }
  88%  { left: 78%; opacity: 1; }
  96%  { left: 82%; opacity: 0; }
  100% { left: 82%; opacity: 0; }
}

/* ---- trust band (social proof, static, below the hero) ------------------- */

.trustband { border-top: 1px solid var(--rule); background: var(--ground); }
.trustband-in {
  display: flex; flex-wrap: wrap; gap: 14px clamp(20px,3vw,44px);
  padding-block: 18px; color: var(--paper-2);
}
.trustband span { display: inline-flex; align-items: center; gap: 9px; }
.tick { width: 9px; height: 9px; border-left: 1.5px solid var(--signal); border-bottom: 1.5px solid var(--signal); transform: rotate(-45deg) translateY(-1px); flex: none; }

/* ---- light section: punctuation, not a theme ----------------------------
   Remaps the token set rather than overriding properties one by one, so
   anything styled through a var (including inline styles) follows the ground. */

section.light {
  --ground:   var(--bone);
  --ground-2: var(--bone-2);
  --ground-3: var(--bone-2);
  --ground-4: #C9C6BC;
  --paper:    var(--ink);
  --paper-2:  var(--ink-2);
  --muted:    #5A6462;
  --rule:     var(--ink-rule);
  --rule-2:   rgba(10,20,22,0.08);
  --signal:   var(--signal-ink);
  --signal-2: var(--signal-ink);
  --on-signal: var(--bone);

  background: var(--bone);
  color: var(--ink);
  border-top-color: var(--ink-rule);
}
section.light .antimetrics s { opacity: .65; }



/* ---- portfolio grid -----------------------------------------------------
   Rendered at build time from whatever is in assets/portfolio. An empty
   portfolio produces no markup at all, so there is never a grid of holes. */

.pf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px; background: var(--rule-2);
  border: 1px solid var(--rule); margin-top: 40px;
}
.pf {
  background: var(--ground); display: flex; flex-direction: column;
  transition: background .16s;
}
.pf:hover { background: var(--ground-3); }
.pf-shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--rule-2); background: var(--ground-2);
}
.pf-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.pf:hover .pf-shot img { transform: scale(1.03); }
.pf-meta { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px 24px; }
.pf-cat { color: var(--signal); }
.pf-meta b {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; color: var(--paper);
}
.pf-sector { color: var(--muted); }
.pf-blurb { font-size: 13.5px; line-height: 1.55; color: var(--paper-2); }

.pf-empty {
  border: 1px solid var(--rule); border-left: 2px solid var(--signal);
  background: var(--ground-2); padding: 26px 28px; margin-top: 40px;
}
.pf-empty .code { display: block; margin-bottom: 12px; }
.pf-empty p { font-size: 15px; line-height: 1.62; color: var(--paper-2); max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { .pf-shot img { transition: none; } }

/* ---- FAQ ---------------------------------------------------------------- */

.faq { margin-top: 44px; border: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: grid; grid-template-columns: 62px 1fr 24px;
  gap: 14px; align-items: center;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(15.5px, 1.6vw, 18px); letter-spacing: -0.015em;
  color: var(--paper); transition: background .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--ground-3); }
.faq summary .sign { position: relative; width: 13px; height: 13px; justify-self: end; }
.faq summary .sign::before,
.faq summary .sign::after {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 13px; height: 1.5px; background: var(--signal);
  transition: transform .2s;
}
.faq summary .sign::after { transform: rotate(90deg); }
.faq details[open] summary .sign::after { transform: rotate(0deg); }
.faq .ans {
  padding: 0 24px 24px calc(62px + 24px + 14px);
  font-size: 15px; line-height: 1.62; color: var(--paper-2); max-width: 78ch;
}
@media (max-width: 560px) {
  .faq summary { grid-template-columns: 1fr 24px; }
  .faq summary .code { display: none; }
  .faq .ans { padding-left: 24px; }
}

/* ---- motion ------------------------------------------------------------- */
/* Everything is visible at rest. The hero simply settles on load. */

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.settle { animation: settle .7s cubic-bezier(.2,.7,.3,1) both; }
.settle-1 { animation-delay: .06s; }
.settle-2 { animation-delay: .14s; }
.settle-3 { animation-delay: .22s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .stage-grid, .steps, .metrics, .quotes { grid-template-columns: 1fr; }
  .stage-hd { min-height: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .close-in { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 880px) {
  :root { --rail: 0px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav .btn { display: none; }
  .nav.open .nav-links {
    display: grid; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ground-2); border-bottom: 1px solid var(--rule);
    padding: 6px var(--gut) 18px;
  }
  .nav.open .nav-links a { padding-block: 13px; border-bottom: 1px solid var(--rule-2); }
  .sheet { grid-template-columns: 1fr; gap: 26px; }
  .sheet-rail { border-right: none; border-left: 2px solid var(--signal); padding-right: 0; padding-left: 14px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--rule-2); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule-2); }
  .terms { grid-template-columns: 1fr; }
  .faults li { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .docbar-wide { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 34px; }
  .readout-row, .stage-list a { grid-template-columns: 56px 1fr; }
  .readout-row .ct { grid-column: 2; }
  .stage-list .ar { display: none; }
}


/* ---- forms --------------------------------------------------------------
   Ported from the previous stylesheet, retokenised onto the ground/signal set
   so the block follows a light section automatically like everything else. */

.form-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.form-block .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .18s, background .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--ground-3);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A03D' stroke-width='1.6'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 44px;
}
.form-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

/* Honeypot for Netlify Forms. Visually hidden, but NOT display:none, so the
   field is still submitted. Off-screen so a real person never focuses it. */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

@media (max-width: 680px) {
  .form-block { grid-template-columns: 1fr; }
}

/* ---- long-form reference copy (legal pages) ------------------------------ */

.longform { max-width: 78ch; margin-top: 40px; }
.longform > * + * { margin-top: 18px; }
.longform h3 {
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.02em;
  margin-top: 46px;
}
.longform h3:first-child { margin-top: 0; }
.longform p, .longform li {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--paper-2);
}
.longform ul, .longform ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.longform a { color: var(--signal); border-bottom: 1px solid currentColor; }
.longform .code { display: inline-block; margin-bottom: 10px; }
