/* ═══════════════════════════════════════════════
   Avalear — institutional design system
   Dark navy hero & bands · light document body · one blue
   ═══════════════════════════════════════════════ */
:root {
  /* light document body */
  --paper: #f6f7fa;
  --card: #ffffff;
  --ink: #101828;
  --muted: #475467;
  --faint: #98a2b3;
  --line: #e4e7ee;
  --line-strong: #cfd5e0;
  /* the trust color: ink-indigo on light, periwinkle on dark — same hue */
  --accent: #314882;
  --accent-deep: #243a6b;
  /* dark navy contexts (hero, statement, cta, footer) */
  --navy: #060c1a;
  --navy-2: #0a1426;
  --ink-d: #eaf0fb;
  --dim-d: #9fb0d0;
  --faint-d: #5d6b8c;
  --line-d: rgba(234, 240, 251, 0.1);
  --line-d-strong: rgba(234, 240, 251, 0.18);
  --accent-d: #8fb0ff;
  --cyan-d: #adc8ff;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --sans: "Geist", "Inter", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(49, 72, 130, 0.16); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16, 24, 40, 0.18); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(49, 72, 130, 0.45); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

/* thin brand line at the very top */
.topline {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 200;
  background: var(--accent);
}

/* ── Section rail — fixed document page-rail, adapts over light & dark
      via blend mode ── */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: grid; gap: 20px;
  mix-blend-mode: difference;
}
.rail a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.3s ease;
}
.rail a i {
  display: block; width: 16px; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.rail a:hover { color: rgba(255, 255, 255, 0.75); }
.rail a.active { color: #ffffff; }
.rail a.active i { width: 30px; }
@media (max-width: 1380px) { .rail { display: none; } }

/* ── Type ── */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); line-height: 1.06; color: var(--ink-d); }
h1 em { font-style: normal; color: var(--accent-d); }
/* headline rises word by word out of a blur (skipped under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  html.js h1 .w {
    display: inline-block;
    opacity: 0; transform: translateY(0.45em); filter: blur(10px);
    animation: wordRise 0.85s var(--ease) forwards;
    animation-delay: calc(var(--i) * 110ms + 180ms);
  }
}
@keyframes wordRise {
  to { opacity: 1; transform: none; filter: blur(0); }
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; margin-bottom: 20px; color: var(--ink); }
h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 10px; }
h4 { font-size: 1.04rem; }
p { color: var(--muted); }
.lede { font-size: 1.12rem; max-width: 58ch; }

section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }

/* section label — mono index + hairline, like a numbered document */
.sec-label { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.sec-num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.sec-rule { height: 1px; width: 64px; background: var(--line-strong); }
/* rules draw themselves in as their section reveals */
@media (prefers-reduced-motion: no-preference) {
  html.js .sec-label .sec-rule { width: 0; transition: width 0.9s var(--ease) 0.25s; }
  html.js .sec-label.visible .sec-rule { width: 64px; }
}
.sec-name {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint);
}

/* ── Buttons — rectangular, decisive ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  padding: 14px 30px; border-radius: 8px; text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid { background: #ffffff; color: var(--navy); }
.btn-solid:hover { box-shadow: 0 6px 24px rgba(143, 176, 255, 0.25); }
.btn-line { border: 1px solid var(--line-d-strong); color: var(--ink-d); background: transparent; }
.btn-line:hover { border-color: var(--accent-d); color: var(--accent-d); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ── Nav — dark glass band, constant across the page ── */
.nav { position: fixed; inset: 2px 0 auto; z-index: 100; background: transparent; transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled {
  background: rgba(6, 12, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(234, 240, 251, 0.08);
}
.nav-inner {
  width: min(var(--container), calc(100% - 48px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink-d); }

/* ── Wordmark — pure typography, one ownable glyph: the V is a
      verification check whose right stroke kicks past the cap line ── */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: 700; font-size: 1.06rem; line-height: 1;
  letter-spacing: 0.12em;
  color: inherit;
  white-space: nowrap;
}
.wordmark .vmark {
  height: 0.82em; width: auto;
  margin: 0 0.1em 0 0.02em;
  overflow: visible;
  color: var(--accent-d);
}
.wordmark-sm { font-size: 0.95rem; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  position: relative;
  color: var(--dim-d); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent-d);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink-d); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink-d); }

/* ── Hero (dark navy) ── */
.hero {
  background: var(--navy);
  padding: clamp(150px, 18vh, 200px) 0 100px;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow-top {
  position: absolute; inset: 0;
  background: radial-gradient(55% 45% at 50% -5%, rgba(85, 120, 230, 0.18), transparent 70%);
}
.net-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1;
  mask-image: radial-gradient(150% 130% at 50% 35%, black 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(150% 130% at 50% 35%, black 62%, transparent 100%);
}
/* quiet zone: dims the network behind the hero copy so text stays crisp */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(48% 40% at 50% 33%,
    rgba(6, 12, 26, 0.85) 28%,
    rgba(6, 12, 26, 0.5) 62%,
    transparent 100%);
}

.hero-inner { position: relative; }
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--accent-d); margin-bottom: 30px;
}
.verbline {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim-d); margin: 0 0 38px;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--dim-d);
  max-width: 62ch; margin: 22px auto 20px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* hero proof chips — mechanism guarantees, not metrics */
.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 38px;
}
.chips li {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim-d);
  border: 1px solid var(--line-d); border-radius: 4px;
  padding: 8px 14px;
}
.ledger-cap {
  margin-top: 14px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--faint-d);
}

/* Decision Ledger */
.ledger {
  max-width: 760px; margin: 70px auto 0; text-align: left;
  border-radius: 10px; overflow: hidden;
  background: rgba(10, 20, 38, 0.85);
  border: 1px solid var(--line-d);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  position: relative;
}
.ledger::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--accent);
}
.ledger-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px; border-bottom: 1px solid var(--line-d);
  background: rgba(234, 240, 251, 0.02);
}
.ledger-title {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint-d);
}
.ledger-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan-d);
}
.ledger-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-d);
  box-shadow: 0 0 0 0 rgba(143, 176, 255, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 176, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(143, 176, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 176, 255, 0); }
}
.ledger-body {
  padding: 22px 26px 26px; min-height: 218px;
  font-family: var(--mono); font-size: 0.84rem; line-height: 2.1;
}
.ln { white-space: pre-wrap; }
.ln.cmd { color: var(--ink-d); }
.ln.ok { color: var(--ok); }
.ln.warn { color: var(--warn); }
.ln.gold { color: var(--accent-d); }
.ln.dim { color: var(--faint-d); }
.caret {
  display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom;
  background: var(--cyan-d); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Problem (light) ── */
.problem h2 { max-width: 18ch; }
.litany-intro { font-size: 1.12rem; color: var(--ink); max-width: 58ch; margin-top: 26px; }
.litany { list-style: none; margin: 30px 0 40px; }
.litany li {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 400; letter-spacing: -0.015em;
  color: var(--faint);
  padding: 22px 0 22px 42px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color 0.5s ease;
}
.litany li:first-child { border-top: 1px solid var(--line); }
.litany li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 22px; height: 2px; background: var(--accent);
  opacity: 0.45; transition: opacity 0.5s ease, width 0.5s var(--ease);
}
.litany li.lit, .litany li:hover { color: var(--ink); }
.litany li.lit::before, .litany li:hover::before { opacity: 1; width: 30px; }
.problem-close { font-size: 1.15rem; }
.problem-close strong { display: inline-block; margin-top: 6px; font-size: 1.35rem; font-weight: 600; color: var(--ink); }

/* ── Jobs: concrete in → out cards ── */
.job-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.job {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 30px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.job:hover { border-color: var(--accent); box-shadow: 0 12px 36px rgba(16, 24, 40, 0.07); }
.job-num {
  display: block;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 16px;
}
.job-io {
  font-size: 0.92rem; color: var(--ink);
  padding: 10px 14px; margin: 4px 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.job-io strong { color: var(--accent); font-weight: 600; }
.job p:last-child { font-size: 0.95rem; }

/* ── Pipeline: the whole platform on one line ── */
.pipeline-wrap { margin-top: 56px; }
.pipeline { list-style: none; display: flex; align-items: stretch; }
.pipeline li {
  flex: 1 1 0; min-width: 0; position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 18px 16px 16px;
}
.pipeline li + li { margin-left: 30px; }
.pipeline li + li::before {
  content: "→"; position: absolute; left: -25px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.9rem; color: var(--accent);
}
.pipeline li.pp-you { border-color: var(--accent); background: rgba(49, 72, 130, 0.04); }
.pipeline h4 { font-size: 0.88rem; margin-bottom: 8px; }
.pipeline p {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.7; color: var(--muted);
}
.pipeline-cap {
  margin-top: 14px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--faint);
}

/* ── Replay: ledger record card ── */
.replay-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.record {
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 30px;
  border-top: 2px solid var(--accent);
}
.record-title {
  display: block;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint-d); margin-bottom: 18px;
}
.record ul { list-style: none; display: grid; gap: 0; }
.record li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  color: var(--dim-d);
}
.record li:last-child { border-bottom: none; }
.record li span { color: var(--accent-d); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; padding-top: 2px; }
.record-cap {
  margin-top: 12px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--faint);
}

/* ── Security: deployment diagram + points ── */
.diagram {
  margin-top: 52px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: clamp(16px, 3vw, 36px);
}
.diagram svg { width: 100%; height: auto; display: block; }
.d-box { fill: none; stroke-width: 1.5; }
.d-yours { stroke: var(--accent); fill: rgba(49, 72, 130, 0.04); }
.d-gate { stroke: var(--line-strong); fill: var(--paper); }
.d-them { stroke: var(--line-strong); stroke-dasharray: 5 5; }
.d-title { font-family: var(--mono); font-size: 14px; letter-spacing: 2.5px; fill: var(--ink); font-weight: 500; }
.d-title-sm { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; fill: var(--ink); }
.d-item { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
.d-item-sm { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.d-note { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; fill: var(--accent); }
.d-arrow { stroke: var(--faint); stroke-width: 1.5; }
.d-flow { font-family: var(--mono); font-size: 13px; fill: var(--faint); }

.sec-points {
  list-style: none; margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px;
}
.sec-points li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.sec-points h4 { margin-bottom: 6px; }
.sec-points p { font-size: 0.9rem; }

/* ── Pilot ── */
.pilot-points {
  list-style: none; margin: 52px 0 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.pilot-points li { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.pilot-points li span {
  font-family: var(--mono); font-size: 0.74rem; color: var(--accent);
  letter-spacing: 0.18em; display: block; margin-bottom: 12px;
}
.pilot-points h4 { margin-bottom: 6px; }
.pilot-points p { font-size: 0.93rem; }
.btn-dark { background: var(--navy); color: var(--ink-d); }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 8px 28px rgba(16, 24, 40, 0.2); }

/* ── Pillars (light, document rows) ── */
.group-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  margin-top: 56px;
}
.group-label-sub { margin-top: 64px; }
.pillars { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.pillar {
  display: grid; grid-template-columns: 110px 1fr 200px;
  gap: clamp(24px, 4vw, 64px);
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.pillar:hover { background: linear-gradient(90deg, transparent, rgba(49, 72, 130, 0.03) 20%, rgba(49, 72, 130, 0.03) 80%, transparent); }
.p-num {
  font-family: var(--mono); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1;
  color: var(--line-strong);
  transition: color 0.35s ease;
  padding-top: 8px;
}
.pillar:hover .p-num { color: var(--accent); }
.p-main p { font-size: 1rem; max-width: 62ch; }
.p-main .q { font-style: italic; color: var(--ink); }
.p-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.p-tags li {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 4px;
  background: var(--card);
  padding: 6px 12px;
}
.p-spec {
  font-family: var(--mono); font-size: 0.76rem; line-height: 2;
  color: var(--muted); padding-top: 10px;
  border-left: 2px solid var(--line); padding-left: 24px;
  align-self: start;
}
.p-spec span {
  display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

/* pillar demo — simulated product output, same voice as the hero ledger */
.p-demo {
  margin-top: 24px; max-width: 62ch;
  background: var(--navy);
  border-radius: 8px; border-top: 2px solid var(--accent);
  padding: 18px 22px;
  font-family: var(--mono); font-size: 0.76rem; line-height: 2;
  color: var(--dim-d);
}
.p-demo .t {
  display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint-d); margin-bottom: 6px;
}
.p-demo .t2 { margin-top: 12px; }
.p-demo .hl { color: var(--ink-d); }
.p-demo .ok { color: var(--ok); }
.p-demo .warn { color: var(--warn); }
.p-demo .tok { color: var(--cyan-d); }
.p-demo-cap {
  margin-top: 10px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  color: var(--faint);
}

/* compact pillars — built on the core */
.pillars-compact {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.pillar-c {
  background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 30px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar-c:hover { border-color: var(--accent); box-shadow: 0 12px 36px rgba(16, 24, 40, 0.07); }
.pillar-c .p-num {
  font-size: 0.74rem; letter-spacing: 0.14em; color: var(--accent);
  padding-top: 0; margin-bottom: 14px;
}
.pillar-c h3 { font-size: 1.15rem; }
.pillar-c p { font-size: 0.95rem; }
.pillar-c .p-tags { margin-top: 18px; }
.pc-spec {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted);
}
.pc-spec span {
  display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}

/* ── Statement band (navy) ── */
.mantra { background: var(--navy-2); text-align: center; padding: clamp(90px, 11vw, 150px) 0; }
.mantra-line {
  font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.3;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink-d);
}
.mantra-line em { font-style: normal; color: var(--accent-d); }
.mantra-sub { margin-top: 32px; font-size: 1.05rem; color: var(--dim-d); }
.mantra-cat { margin-top: 16px; font-size: 1.02rem; color: var(--dim-d); }
.mantra-cat span {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-d);
}

/* ── Flow (light) ── */
.steps {
  list-style: none; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px;
}
.steps li { border-top: 1px solid var(--line-strong); padding-top: 24px; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px;
  background: var(--accent); transition: width 0.5s var(--ease);
}
.steps li:hover::before { width: 100%; }
.step-num {
  font-family: var(--mono); font-size: 0.76rem; color: var(--accent);
  letter-spacing: 0.18em; display: block; margin-bottom: 12px;
}
.steps h4 { margin-bottom: 6px; }
.steps p { font-size: 0.93rem; }

/* ── Outcomes (light) ── */
.outcomes-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px); align-items: start;
}
.outcome-list { list-style: none; display: grid; gap: 0; margin-top: 10px; }
.outcome-list li {
  position: relative; padding: 15px 0 15px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem; color: var(--ink);
}
.outcome-list li:first-child { border-top: 1px solid var(--line); }
.outcome-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 15px;
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
}

/* sector grid — sober, bordered, numbered */
.sectors { margin-top: clamp(70px, 9vw, 110px); }
.sectors-title {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  margin-bottom: 20px;
}
.sector-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.sector-grid li {
  background: var(--card);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 20px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: background 0.25s ease;
}
.sector-grid li:hover { background: #eff2fa; }
.sector-grid li span {
  display: block;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 8px;
}

/* ── Principles (light) ── */
.principle-rows { margin-top: 54px; }
.principle {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.principle:first-child { border-top: 1px solid var(--line); }
.principle h4 { color: var(--ink); }
.principle p { font-size: 0.97rem; }
.principle-close { margin-top: 44px; font-size: 1.12rem; max-width: 58ch; }
.principle-close strong { color: var(--ink); font-weight: 600; }

/* ── CTA (navy band) ── */
.cta { background: var(--navy); text-align: center; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; }
.cta .container { position: relative; }
.band-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.55; pointer-events: none;
  mask-image: radial-gradient(110% 120% at 50% 55%, black 45%, transparent 98%);
  -webkit-mask-image: radial-gradient(110% 120% at 50% 55%, black 45%, transparent 98%);
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 52% at 50% 100%, rgba(85, 120, 230, 0.2), transparent 70%);
}
.cta-title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.025em; margin-bottom: 18px; color: var(--ink-d); }
.cta-title em { font-style: normal; color: var(--accent-d); }
.cta-sub { font-size: 1.08rem; color: var(--dim-d); max-width: 52ch; margin: 0 auto 40px; }
.cta-note { margin-top: 20px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--faint-d); }

/* qualification form — swap the mailto handler in main.js for your
   form/scheduling backend when one exists */
.cta-form { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form input, .cta-form select {
  width: 100%;
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink-d);
  background: rgba(234, 240, 251, 0.05);
  border: 1px solid var(--line-d-strong);
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-form input::placeholder { color: var(--faint-d); }
.cta-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.cta-form select option { color: var(--ink); background: #ffffff; }
.cta-form input:focus, .cta-form select:focus {
  border-color: var(--accent-d);
  background: rgba(234, 240, 251, 0.08);
}
.cta-form button { width: 100%; margin-top: 6px; }

/* ── Footer (navy, darker) ── */
.footer { background: #040910; border-top: 1px solid rgba(234, 240, 251, 0.06); padding: 48px 0 0; overflow: hidden; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; color: var(--ink-d); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--dim-d); text-decoration: none;
  font-size: 0.86rem; transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink-d); }
.footer-legal { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--faint-d); }

/* ── Reveal (gated behind html.js so no-JS visitors see everything) ── */
html.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .pipeline { flex-direction: column; max-width: 460px; }
  .pipeline li + li { margin-left: 0; margin-top: 30px; }
  .pipeline li + li::before { content: "↓"; left: 50%; top: -27px; transform: translateX(-50%); }
  .pillars-compact { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 80px 1fr; }
  .p-spec { grid-column: 2; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .replay-grid { grid-template-columns: 1fr; }
  .sec-points { grid-template-columns: 1fr 1fr; }
  .pilot-points { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .p-spec { grid-column: 1; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .sector-grid { grid-template-columns: 1fr; }
  .ledger-body { font-size: 0.72rem; padding: 18px 16px 22px; }
  .hero { padding-top: 130px; }
  .sec-points { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .record li { grid-template-columns: 1fr; gap: 4px; }
}
