/* =========================================================
   Fomo Alpha Labs — public landing page
   Static, dependency-free. No external fonts, images or APIs.
   ========================================================= */

:root {
  --bg:            #05070a;
  --bg-alt:        #070a0e;
  --panel:         #0a0e14;
  --panel-2:       #0d121a;

  --line:          rgba(255, 255, 255, .075);
  --line-2:        rgba(255, 255, 255, .15);

  --ink:           #eaeff6;
  --muted:         #97a3b4;
  --faint:         #7d8b9e;

  --accent:        #57e0bd;
  --accent-soft:   rgba(87, 224, 189, .12);
  --indigo:        #9db2ff;
  --indigo-soft:   rgba(157, 178, 255, .12);
  --warm:          #e5a76b;
  --warm-soft:     rgba(229, 167, 107, .12);
  --rose:          #e0879a;

  --radius:        14px;
  --radius-sm:     9px;
  --shell:         1180px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* global hairline grid — very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
dt, dd { margin: 0; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.032em;
  font-weight: 640;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 6.6vw, 4.5rem);
  letter-spacing: -.048em;
  font-weight: 680;
  line-height: 1.02;
}

h2 { font-size: clamp(1.85rem, 3.7vw, 2.95rem); letter-spacing: -.038em; }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }

strong { color: #fff; font-weight: 620; }
em { font-style: normal; color: var(--accent); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 34px);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04140f;
  padding: 10px 16px;
  font-weight: 640;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 10, .78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-text {
  font-weight: 640;
  font-size: .96rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  font-size: .84rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- shared section furniture ---------------- */

.section {
  padding: clamp(70px, 9vw, 128px) 0;
  position: relative;
  scroll-margin-top: 74px;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-block: 1px solid var(--line);
}

.sec-head { max-width: 800px; margin-bottom: clamp(34px, 5vw, 60px); }

.sec-index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.sec-index span { color: var(--faint); letter-spacing: .16em; }
.sec-index-center { justify-content: center; }

.sec-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.09rem);
  max-width: 70ch;
}

.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow .sep { color: var(--faint); margin-inline: 6px; }
.sep { color: var(--faint); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 560;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #04140f;
  box-shadow: 0 12px 34px -18px rgba(87, 224, 189, .9);
}
.btn-primary:hover { box-shadow: 0 18px 38px -18px rgba(87, 224, 189, 1); }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(87, 224, 189, .5); }

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

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0 clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: -35% -20% auto -20%;
  height: 640px;
  background:
    radial-gradient(42% 60% at 18% 40%, rgba(87, 224, 189, .13), transparent 70%),
    radial-gradient(38% 55% at 82% 22%, rgba(157, 178, 255, .1), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(38px, 6vw, 72px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 24px; }

.hero-lede {
  font-size: clamp(1.22rem, 2.3vw, 1.6rem);
  line-height: 1.34;
  letter-spacing: -.024em;
  font-weight: 520;
  max-width: 20ch;
}

.hero-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(.99rem, 1.3vw, 1.06rem);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-notes li {
  position: relative;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}
.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}

/* ---------------- pipeline visual ---------------- */

.hero-visual { position: relative; }

.pipeline {
  position: relative;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
  overflow: hidden;
}

.pipeline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 40% at 50% 0%, rgba(87, 224, 189, .09), transparent 70%);
  pointer-events: none;
}

.pipe-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pipe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
.pipe-title { color: var(--muted); flex: 1; }
.pipe-mode {
  color: var(--accent);
  border: 1px solid rgba(87, 224, 189, .35);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: .18em;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 7px rgba(87, 224, 189, .05); }
}

.pipe-track {
  position: relative;
  padding: 16px 18px;
}

.pipe-track::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent, rgba(255, 255, 255, .2) 10%, rgba(255, 255, 255, .2) 90%, transparent);
}

.pipe-track::after {
  content: "";
  position: absolute;
  left: 28.5px;
  width: 4px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  filter: blur(1.5px);
  opacity: 0;
  animation: travel 6.5s linear infinite;
}
@keyframes travel {
  0%   { top: 34px; opacity: 0; }
  10%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { top: calc(100% - 98px); opacity: 0; }
}

.pipe-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}

.node-mark {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  margin-left: 6.5px;
  background: var(--panel);
  border: 1.5px solid rgba(255, 255, 255, .35);
  transform: rotate(45deg);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.pipe-node.is-final .node-mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(87, 224, 189, .55);
}
.pipe-node:hover .node-mark { border-color: var(--accent); }

.node-body { display: grid; gap: 2px; min-width: 0; }
.node-label { font-size: .92rem; font-weight: 580; letter-spacing: -.015em; }
.node-meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: lowercase;
}
.node-state {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.pipe-node.is-final .node-state {
  color: var(--accent);
  border-color: rgba(87, 224, 189, .4);
  background: var(--accent-soft);
}

.pipe-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------- problem ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.split-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

.split-lead { display: grid; gap: 18px; font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.split-lead .muted { font-size: 1rem; }

.ledger-list { border-top: 1px solid var(--line); }
.ledger-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ll-key {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  padding-top: 4px;
}
.ledger-list h3 { margin-bottom: 6px; }
.ledger-list p { color: var(--muted); font-size: .93rem; }

.pull {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-2);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -.03em;
  font-weight: 540;
  max-width: 30ch;
}

/* ---------------- flow (how it works) ---------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.flow-step {
  position: relative;
  padding: 34px 20px 26px;
  border-right: 1px solid var(--line);
}
.flow-step:last-child { border-right: 0; }

/* node dot sitting on the top rule */
.flow-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, .32);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.flow-step:last-child::before { border-color: var(--accent); background: var(--accent); }

/* chevron connector on the divider */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -4.5px;
  top: 46%;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transform: rotate(45deg);
}

.flow-step:hover::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.flow-num {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.flow-step h3 { margin-bottom: 9px; }
.flow-step p { color: var(--muted); font-size: .89rem; line-height: 1.6; }

/* ---------------- engine: weights ---------------- */

.ticks { display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 1px solid rgba(87, 224, 189, .55);
}
.ticks-muted li::before {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-2);
}

.note {
  margin-top: 6px;
  padding: 16px 18px;
  border-left: 2px solid var(--indigo);
  background: rgba(157, 178, 255, .06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: .9rem;
}
.note strong { color: var(--indigo); }

.weights {
  margin: 0;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.weights-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.weights-sum { color: var(--faint); letter-spacing: .1em; }

.weights-list { padding: 8px 18px 4px; }
.weights-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 42%) 26px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.weights-list li:last-child { border-bottom: 0; }
.w-name { font-size: .89rem; color: var(--ink); }
.w-name em { color: var(--faint); font-size: .78rem; }
.w-track {
  height: 5px;
  background: rgba(255, 255, 255, .06);
  border-radius: 99px;
  overflow: hidden;
}
.w-track i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, rgba(87, 224, 189, .45), var(--accent));
  border-radius: 99px;
}
.w-track i.w-penalty {
  background: linear-gradient(90deg, rgba(229, 167, 107, .4), var(--warm));
}
.w-val {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}
.weights-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .8rem;
}

/* ---------------- experiment record ---------------- */

.record {
  margin: 0;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 46px 100px -60px rgba(0, 0, 0, .95);
}

.record-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.rec-id {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rec-sep { color: var(--faint); margin-inline: 6px; }

.tag {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.tag-sim {
  color: var(--warm);
  background: var(--warm-soft);
  border: 1px solid rgba(229, 167, 107, .4);
}

.record-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 0;
}

.rec-metrics { padding: 8px 20px 16px; border-right: 1px solid var(--line); }

.rec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rec-row:last-child { border-bottom: 0; }
.rec-row dt { color: var(--muted); font-size: .92rem; }
.rec-row dt .rec-sub {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}
.rec-row dd {
  font-family: var(--mono);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.rec-row dd span { color: var(--faint); font-size: .74rem; margin-left: 4px; }
.rec-total { border-bottom-color: var(--line-2); }
.rec-total dt, .rec-total dd { color: var(--ink); font-weight: 600; }

.rec-summary { padding: 18px 20px 20px; }

.rec-label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.rec-label-spaced { margin-top: 24px; }

.split-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.seg { display: block; height: 100%; }
.seg-cost { background: linear-gradient(90deg, rgba(229, 167, 107, .55), var(--warm)); }
.seg-net  { background: linear-gradient(90deg, rgba(87, 224, 189, .55), var(--accent)); }

.split-key {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.split-key span { display: inline-flex; align-items: center; gap: 7px; }
.split-key i { width: 9px; height: 9px; border-radius: 2px; }
.k-cost { background: var(--warm); }
.k-net  { background: var(--accent); }

.rec-net {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -.02em;
}
.rec-net span { font-size: .78rem; color: var(--faint); margin-left: 5px; }
.rec-roi { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.rec-roi strong { color: var(--accent); font-family: var(--mono); }

.rec-verdict { display: flex; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid transparent;
}
.badge-keep {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(87, 224, 189, .45);
}
.badge-abandon {
  color: var(--rose);
  background: rgba(224, 135, 154, .11);
  border-color: rgba(224, 135, 154, .42);
}

.rec-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.record-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  color: var(--faint);
  font-size: .8rem;
}

/* ---------------- statement (why paper first) ---------------- */

.statement {
  position: relative;
  padding: clamp(84px, 12vw, 156px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

.statement-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 50% 50%, rgba(87, 224, 189, .1), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 10%, transparent 78%);
  pointer-events: none;
}

.statement-inner { max-width: 900px; }

.statement-line {
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  letter-spacing: -.04em;
  font-weight: 660;
  line-height: 1.14;
}
.statement-accent { color: var(--accent); }

.statement-body {
  margin: 30px auto 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

.statement-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.statement-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.statement-steps span { color: var(--accent); }

/* ---------------- decision ---------------- */

.verdict-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: stretch;
}

.verdict {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
}
.verdict-keep { border-top: 2px solid rgba(87, 224, 189, .55); }
.verdict-abandon { border-top: 2px solid rgba(224, 135, 154, .5); }

.verdict header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.verdict header p { color: var(--muted); font-size: .92rem; }

.verdict ul { display: grid; gap: 11px; }
.verdict li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .94rem;
}
.verdict li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.verdict-keep li::before { background: var(--accent); }
.verdict-abandon li::before { background: var(--rose); }

.verdict-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .86rem;
  font-style: italic;
}

.verdict-axis {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 74px;
}
.verdict-axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent);
}
.verdict-axis span {
  position: relative;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg);
  padding: 12px 4px;
  writing-mode: vertical-rl;
}

.guardrail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid rgba(157, 178, 255, .28);
  background: rgba(157, 178, 255, .06);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .93rem;
}
.guardrail-warm {
  border-color: rgba(229, 167, 107, .3);
  background: var(--warm-soft);
}
.guardrail-mark {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  color: var(--indigo);
  position: relative;
}
.guardrail-warm .guardrail-mark { color: var(--warm); }
.guardrail-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  border-radius: 1px;
  opacity: .55;
}

/* ---------------- readiness gate ---------------- */

.gate-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 38px;
}
.gate-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 15px 18px;
  min-height: 66px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: .92rem;
  font-weight: 550;
  position: relative;
  flex: 1 1 168px;
}
.gate-node span {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.gate-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-family: var(--mono);
  font-size: .9rem;
  z-index: 2;
}
.gate-strong {
  border-color: rgba(87, 224, 189, .45);
  background: linear-gradient(170deg, rgba(87, 224, 189, .09), var(--panel));
}
.gate-strong span { color: var(--accent); }
.gate-blocked {
  border-style: dashed;
  border-color: rgba(224, 135, 154, .45);
  color: var(--faint);
}
.gate-blocked span { color: var(--rose); }

/* ---------------- gate status + readiness checklist ---------------- */

[hidden] { display: none !important; }

.gate-status {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(229, 167, 107, .32);
  background: var(--warm-soft);
  border-radius: var(--radius-sm);
}
.gs-badge {
  flex: none;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--warm);
  border: 1px solid rgba(229, 167, 107, .45);
  background: rgba(0, 0, 0, .28);
  padding: 6px 11px;
  border-radius: 5px;
}
.gs-lead {
  font-size: 1rem;
  font-weight: 540;
  letter-spacing: -.012em;
  color: var(--ink);
}
.gs-sub { margin-top: 7px; color: var(--muted); font-size: .88rem; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.cl-col {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  align-self: start;
}
.cl-ready { border-top: 2px solid rgba(87, 224, 189, .55); }
.cl-blocked { border-top: 2px solid rgba(229, 167, 107, .55); }

.cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cl-ready .cl-head { color: var(--accent); }
.cl-blocked .cl-head { color: var(--warm); }
.cl-head b {
  margin-left: auto;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink);
}
.cl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.cl-ready .cl-dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.cl-blocked .cl-dot { box-shadow: 0 0 0 4px var(--warm-soft); }

.cl-note {
  padding: 13px 18px 0;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.cl-col ul { padding: 6px 18px 14px; }
.cl-blocked ul { padding-top: 14px; }

.cl-col li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cl-col li:last-child { border-bottom: 0; }

.cl-mark {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 4px;
  border: 1px solid;
  flex: none;
}
.cl-ready .cl-mark { border-color: rgba(87, 224, 189, .5); background: var(--accent-soft); }
.cl-ready .cl-mark::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(42deg);
}
.cl-blocked .cl-mark { border-color: rgba(229, 167, 107, .5); background: var(--warm-soft); }
.cl-blocked .cl-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6.5px;
  width: 8px;
  height: 1.7px;
  background: var(--warm);
  border-radius: 1px;
}

.cl-col strong { display: block; font-size: .93rem; font-weight: 580; color: var(--ink); }
.cl-col em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------------- next milestone ---------------- */

.milestone {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.ms-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.ms-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ms-flow li {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: -.01em;
}
.ms-flow li span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--accent);
}
.ms-flow li:last-child {
  border-color: rgba(229, 167, 107, .45);
  background: linear-gradient(170deg, rgba(229, 167, 107, .08), var(--panel));
}
.ms-flow li:last-child span { color: var(--warm); }

@media (min-width: 1081px) {
  .ms-flow li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-family: var(--mono);
    font-size: .9rem;
  }
}

.ms-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------------- end-to-end example ---------------- */

.example {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.ex-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.ex-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.ex-flow li { display: flex; align-items: center; }
.ex-flow li span {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 9px 15px;
  border-radius: 99px;
  white-space: nowrap;
}
.ex-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .82rem;
}
.ex-flow .ex-pass span {
  color: var(--accent);
  border-color: rgba(87, 224, 189, .45);
  background: var(--accent-soft);
}
.ex-flow .ex-final span {
  color: var(--accent);
  border-color: rgba(87, 224, 189, .6);
}
.ex-foot {
  margin-top: 15px;
  color: var(--faint);
  font-size: .85rem;
}

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

.evidence {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.ev-loading,
.ev-empty,
.ev-error {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 32px);
  text-align: center;
}
.ev-loading {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ev-empty-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 9px;
}
.ev-empty-body {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
  max-width: 58ch;
  margin-inline: auto;
}
.ev-error .ev-empty-title { color: var(--warm); }
.ev-error code {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--warm);
  background: var(--warm-soft);
  border: 1px solid rgba(229, 167, 107, .3);
  padding: 1px 6px;
  border-radius: 4px;
}

.ev-list { display: grid; }
.ev-record {
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
}
.ev-record:last-child { border-bottom: 0; }

.ev-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ev-id {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--ink);
  word-break: break-all;
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 15px 20px;
}
.ev-grid dt {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.ev-grid dd {
  font-family: var(--mono);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  word-break: break-word;
}
.ev-grid dd small { color: var(--faint); font-size: .72rem; margin-left: 4px; }
.ev-reason { grid-column: 1 / -1; padding-top: 4px; border-top: 1px dashed var(--line); }
.ev-reason dd { font-size: .78rem; letter-spacing: .06em; color: var(--warm); }
.ev-pos { color: var(--accent); }
.ev-neg { color: var(--rose); }

.ev-foot {
  margin-top: 16px;
  color: var(--faint);
  font-size: .8rem;
  line-height: 1.65;
}

/* ---------------- status ---------------- */

.status-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 60px);
}
.status-col {
  padding-top: 22px;
  border-top: 2px solid rgba(87, 224, 189, .5);
}
.status-col + .status-col { border-top-color: rgba(229, 167, 107, .5); }

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dot-wip  { background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); }

.status-note {
  margin-top: 34px;
  padding: 18px 22px;
  border-left: 2px solid var(--warm);
  background: var(--warm-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: .93rem;
}

/* ---------------- architecture layers ---------------- */

.layers {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.layers::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18) 8%, rgba(255, 255, 255, .18) 92%, transparent);
  z-index: 1;
}

.layer {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
.layer:last-child { border-bottom: 0; }
.layer:hover { background: rgba(255, 255, 255, .025); }

.layer::before {
  content: "";
  position: absolute;
  left: 32.5px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--panel);
  border: 1.5px solid rgba(255, 255, 255, .35);
  z-index: 2;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.layer:hover::before { border-color: var(--accent); }
.layer.is-terminal::before { background: var(--accent); border-color: var(--accent); }

.layer-idx {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  padding-left: 46px;
}
.layer-body h3 { margin-bottom: 5px; }
.layer-body p { color: var(--muted); font-size: .9rem; max-width: 74ch; }

.layer-tag {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.layer.is-terminal .layer-tag {
  color: var(--accent);
  border-color: rgba(87, 224, 189, .4);
  background: var(--accent-soft);
}

.arch-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 40px);
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.arch-notes h3 { font-size: .95rem; margin-bottom: 8px; }
.arch-notes p { color: var(--muted); font-size: .89rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-top: 40px;
  padding-bottom: 28px;
}
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.footer-brand .brand-text { font-size: .95rem; }
.footer-brand p {
  grid-column: 2;
  color: var(--faint);
  font-size: .85rem;
  max-width: 46ch;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a {
  color: var(--muted);
  font-size: .85rem;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-legal {
  margin-top: 16px;
  color: var(--faint);
  font-size: .79rem;
  line-height: 1.7;
  max-width: 92ch;
}

/* ---------------- reveal ---------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-step:nth-child(3) { border-right: 0; }
  .flow-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .flow-step:nth-child(3)::after { display: none; }
  .record-body { grid-template-columns: minmax(0, 1fr); }
  .rec-metrics { border-right: 0; border-bottom: 1px solid var(--line); }
  .ms-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }

  html.js .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px clamp(20px, 5vw, 34px) 18px;
    background: rgba(5, 7, 10, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  html.js .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  html.js .nav a { padding: 12px 10px; font-size: .95rem; }

  /* without JS the nav stays a usable wrapping row */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .nav { flex-wrap: wrap; }

  .verdict-split { grid-template-columns: minmax(0, 1fr); }
  .verdict-axis { min-width: 0; }
  .verdict-axis::before {
    top: -14px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  }
  .verdict-axis span {
    writing-mode: horizontal-tb;
    padding: 4px 14px;
  }
  .status-cols { grid-template-columns: minmax(0, 1fr); }
  .arch-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-2); }
  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 20px 22px 26px;
  }
  .flow-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .flow-step::before {
    top: 30px;
    left: -5.5px;
    border-radius: 50%;
  }
  .flow-step:last-child::before { left: -5.5px; }
  .flow-step:not(:last-child)::after { display: none; }

  .gate-flow { flex-direction: column; }
  .gate-node { flex: 1 1 auto; }
  .gate-node:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
  }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .ms-flow { grid-template-columns: minmax(0, 1fr); }
  .ms-flow li:not(:last-child)::after { display: none; }

  .layer { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 18px 18px; }
  .layer-idx { padding-left: 44px; font-size: .68rem; }
  .layer::before { left: 24.5px; }
  .layers::before { left: 29.5px; }
  .layer-tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3rem); }

  .gate-status { flex-direction: column; gap: 12px; }
  .ex-flow li:not(:last-child)::after { content: "→"; margin-left: 7px; font-size: .75rem; }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .record-bar, .record-body, .record-foot { padding-inline: 16px; }
  .rec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rec-row dd { font-size: 1.02rem; }
  .weights-list li { grid-template-columns: minmax(0, 1fr) minmax(60px, 34%) 24px; gap: 10px; }
  .statement-line { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero-notes { gap: 8px 18px; }
  .footer-top { flex-direction: column; }
  .footer-brand p { grid-column: 1 / -1; }
  .footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .pipe-track::after { display: none; }
  .pipe-dot { animation: none; }
}
