/* ============================================================
   AICorros - Introduction page · v3 (dark premium)
   Neutral near-black surfaces, hairline borders, soft radius.
   Aligned with the platform's shared dark token sheet.
   Accent: annotation amber #d98e3f · azure #7fb0e8
   ============================================================ */

:root {
  /* chapter surfaces — one neutral family, subtle steps */
  --night: #0f0f11;
  --panel: #131316;
  --deep-blue: #121215;
  --gov: #131316;
  --sec: #101013;
  --sage-ch: #141417;

  /* type */
  --cream: #f4f4f2;
  --cream-dim: rgba(244, 244, 242, 0.74);
  --cream-faint: rgba(244, 244, 242, 0.58);
  --cream-ghost: rgba(244, 244, 242, 0.10);

  /* accents */
  --blue: #0d4a7a;
  --azure: #7fb0e8;
  --amber: #d98e3f;

  /* surfaces & hairlines (cards, inputs) */
  --surface: #17171a;
  --surface-2: #1d1d21;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --sans: "Inter", "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino", "Times New Roman", Georgia, serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --pixel: "Doto", "SF Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* radius system: pills = 999px, small boxes = --r, cards = --r-lg */
  --r: 10px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* free momentum scroll — the terrain flows continuously, no snapping */
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(217, 142, 63, 0.35); color: var(--cream); }

/* ============ Film grain (kills flat-gradient look) ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 96;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ============ Scroll progress hairline ============ */
.progress-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: var(--amber);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* IntersectionObserver target for the nav condensed state (replaces a
   scroll listener). Sits at the top of the document flow. */
.nav-sentinel {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 60px;
  pointer-events: none;
}

/* ============ Loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--night);
  transition: opacity 0.65s var(--ease-io), visibility 0.65s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-stage { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.loader-stage img { width: 66px; opacity: 0; animation: loaderLogo 0.9s var(--ease-out) 0.15s forwards; }
@keyframes loaderLogo { from { opacity: 0; transform: scale(0.92); } to { opacity: 0.94; transform: scale(1); } }
.loader-ring { position: absolute; inset: 0; animation: ringspin 22s linear infinite; }
.loader-ring .dash { stroke-dashoffset: 610; stroke-dasharray: 610; animation: ringdraw 1.1s var(--ease-io) forwards; }
@keyframes ringdraw { to { stroke-dashoffset: 0; stroke-dasharray: 3 5; } }
.loader p {
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.44em;
  color: var(--cream-faint);
  white-space: nowrap;
}
@keyframes ringspin { to { transform: rotate(360deg); } }

/* ============ Blueprint ring ============ */
.bp-ring { display: block; }
.bp-ring .dash { fill: none; stroke: rgba(250, 248, 240, 0.5); stroke-width: 1; stroke-dasharray: 3 5; }
.bp-ring .dash2 { fill: none; stroke: rgba(250, 248, 240, 0.25); stroke-width: 1; stroke-dasharray: 2 7; }
.bp-ring .handle { fill: var(--amber); }
.bp-ring .rule { stroke: var(--amber); stroke-width: 1.1; }
.bp-ring .tick { stroke: rgba(250, 248, 240, 0.35); stroke-width: 1; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 16px clamp(20px, 4vw, 48px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(11, 18, 25, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 248, 240, 0.07);
}

.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-brand img { width: 25px; transition: transform 0.5s var(--ease-out); }
.nav-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-brand span { font-size: 16.5px; font-weight: 600; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-faint);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  border-bottom: 1px dotted var(--amber);
  transition: right 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.on::after { right: 0; }
.nav-links a.on { color: var(--cream); }

.login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--night);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 18px rgba(250, 248, 240, 0.12);
  will-change: transform;
}
.login-btn:hover { background: var(--amber); box-shadow: 0 6px 24px rgba(217, 142, 63, 0.3); }
.login-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============ Chapters ============ */
main { position: relative; z-index: 1; }

.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(120px, 15vh, 168px) clamp(20px, 5vw, 64px) clamp(110px, 14vh, 150px);
  overflow: hidden;
  /* transparent — the fixed terrain runs continuously behind every chapter */
  background: transparent;
  scroll-snap-align: start;
  will-change: transform, opacity;
}

.giant-wrap { will-change: transform; }

/* no per-chapter tints, no hairlines, no vignettes — one continuous scene */
.chapter::before { display: none; }
.chapter::after { display: none; }
.chapter > * { position: relative; z-index: 2; }

/* chapter index label */
.ch-index {
  position: absolute;
  top: clamp(84px, 11vh, 120px);
  left: clamp(22px, 4.5vw, 56px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--cream-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.ch-index::after { content: ""; width: 38px; border-top: 1px dashed rgba(250, 248, 240, 0.3); }

.overline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: clamp(18px, 3vh, 34px);
}
.overline b { color: var(--amber); font-weight: 500; }
.overline::before, .overline::after {
  content: "";
  width: 0;
  border-top: 1px solid rgba(250, 248, 240, 0.25);
  transition: width 1s var(--ease-out) 0.3s;
}
.chapter.in .overline::before, .chapter.in .overline::after { width: clamp(24px, 4vw, 54px); }

/* Giant display word - char-staggered */
.giant-wrap { overflow: hidden; padding: 0.09em 0.12em; max-width: 100%; }
.giant {
  font-size: clamp(58px, 13.5vw, 218px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--cream);
  white-space: nowrap;
}
.giant .ch {
  display: inline-block;
  transform: translateY(115%) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 24ms);
}
.chapter.in .giant .ch { transform: translateY(0) rotate(0); }

.statement {
  font-size: clamp(30px, 4.3vw, 56px);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.1;
  max-width: 21ch;
}

.chapter-copy {
  max-width: 54ch;
  margin-top: clamp(20px, 3.2vh, 34px);
  font-size: clamp(14.5px, 1.22vw, 17px);
  color: var(--cream-dim);
  text-wrap: balance;
}
.chapter-copy + .chapter-copy { margin-top: 12px; }
.chapter-copy strong { color: var(--cream); font-weight: 600; }

/* ============ Hero ============ */
.ch-hero { z-index: 1; }

.ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(96px, 17vw, 300px);
  font-weight: 800;
  letter-spacing: 0.005em;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-ghost);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 1 !important;
  will-change: transform;
}

.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: min(60vh, 580px);
  transform: translate(-50%, -50%);
  opacity: 0.6;
  z-index: 1 !important;
  will-change: transform;
}
.hero-ring .rot { transform-origin: 120px 120px; animation: ringspin 80s linear infinite; }

.hero-kicker {
  margin-top: clamp(22px, 3.6vh, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.hero-kicker span { display: flex; align-items: center; gap: 8px; }
.hero-kicker .k-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

/* ============ Problem chain ============ */
.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  margin-top: clamp(22px, 3.2vh, 34px);
  font-family: var(--mono);
  font-size: clamp(10.5px, 1vw, 12.5px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.chain .link-step {
  padding: 8px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chain .arrow { color: var(--amber); padding: 0 12px; }

/* ============ Marquee (workflow) ============ */
.marquee {
  position: relative;
  width: 100vw;
  margin: clamp(22px, 3.6vh, 40px) 0 0;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0 26px;
}
.marquee-track b { color: var(--amber); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

.roadmap-note {
  margin-top: clamp(18px, 2.6vh, 28px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.roadmap-note b { color: var(--cream-dim); font-weight: 500; }

/* ============ Chips ============ */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(22px, 3.2vh, 36px); }
.chip-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 16px;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.chip-pill:hover { border-color: var(--amber); color: var(--cream); transform: translateY(-2px); }
.chip-pill b { color: var(--amber); font-weight: 500; margin-right: 7px; }

/* ============ Editorial cover (pack) ============ */
.cover-scene { perspective: 1100px; }

.cover {
  position: relative;
  width: min(440px, 86vw);
  padding: 34px 34px 30px;
  border: 1px dashed rgba(250, 248, 240, 0.55);
  background: rgba(23, 23, 26, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.cover .corner { position: absolute; width: 7px; height: 7px; background: var(--amber); }
.cover .corner.tl { top: -4px; left: -4px; }
.cover .corner.tr { top: -4px; right: -4px; }
.cover .corner.bl { bottom: -4px; left: -4px; }
.cover .corner.br { bottom: -4px; right: -4px; }

.cover-masthead {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cover h3 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
}
.cover h3 em { font-style: italic; color: var(--azure); }

.cover .cover-sub { font-size: 13.5px; color: var(--cream-dim); max-width: 34ch; }

.cover-rows { margin-top: 24px; border-top: 1px dashed rgba(250, 248, 240, 0.3); }
.cover-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px dashed rgba(250, 248, 240, 0.3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.cover-row span:first-child { color: var(--cream-faint); }
.cover-row span:last-child { color: var(--cream); }
.cover-row .ok { color: #9fd6b3; }
.cover-row .blocked { color: #e8a48f; }

.cover-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; }
.barcode {
  width: 108px; height: 26px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 5px, var(--cream) 5px 6px, transparent 6px 9px);
  opacity: 0.85;
}
.cover-no { font-family: var(--serif); font-size: 20px; color: var(--cream-dim); }

.pack-caption {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ============ Regulation tiles ============ */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1100px, 94vw);
  margin-top: clamp(26px, 4vh, 44px);
}
.wedge-grid { width: min(980px, 94vw); }

/* Security controls: dot-separated mono ledger - a different layout
   family from the governance pill row (breaks section repetition). */
.ctrl-ledger {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  margin-top: clamp(24px, 3.4vh, 40px);
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.ctrl-ledger span { position: relative; padding: 0 clamp(12px, 1.6vw, 22px); }
.ctrl-ledger span + span::before {
  content: "";
  position: absolute;
  left: -2px; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--amber);
}

.reg-tile {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 22px 20px 20px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
}
.reg-tile:hover { border-color: var(--hairline-strong); background: rgba(29, 29, 33, 0.65); transform: translateY(-3px); }

.reg-tile .r-ref {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.reg-tile .r-fact {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.reg-tile .r-fact strong { color: var(--cream); font-weight: 600; }

.reg-caption {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-faint);
  max-width: 74ch;
  line-height: 2;
}

/* ============ Stats (ROI) ============ */
/* ---- ROI simulator inputs ---- */
.sim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 14px 22px;
  width: min(1060px, 92vw);
  margin-top: clamp(22px, 3.6vh, 38px);
  padding: 16px 22px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.sim-title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--amber);
  align-self: center;
  white-space: nowrap;
}

.sim-field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.sim-field span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
  white-space: nowrap;
}
.sim-field input {
  width: 110px;
  padding: 7px 9px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -moz-appearance: textfield;
}
.sim-field input::-webkit-outer-spin-button, .sim-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-field input:focus { border-color: var(--amber); background: rgba(250, 248, 240, 0.08); }

.stat .v { transition: color 0.25s ease; }
.stat.pulse .v { color: var(--amber); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1060px, 92vw);
  margin-top: clamp(20px, 3vh, 32px);
}

.stat {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 28px 18px 22px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
}
.stat:hover { border-color: var(--hairline-strong); background: rgba(29, 29, 33, 0.65); transform: translateY(-3px); }

.stat .v {
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 0.55em; font-weight: 600; color: var(--cream-dim); }
.stat .l {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.roi-foot {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.roi-foot-2 { margin-top: 10px; }
.roi-foot-2 b { color: var(--cream-dim); font-weight: 500; }

/* ============ CTA & footer ============ */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(26px, 4vh, 44px); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn-pill.solid { background: var(--cream); color: var(--night); box-shadow: 0 12px 40px rgba(250, 248, 240, 0.16); }
.btn-pill.solid:hover { background: var(--amber); box-shadow: 0 12px 44px rgba(217, 142, 63, 0.32); }
.btn-pill.line { border: 1px solid rgba(250, 248, 240, 0.38); color: var(--cream-dim); }
.btn-pill.line:hover { border-color: var(--cream); color: var(--cream); }

.founder-strip {
  margin-top: clamp(40px, 7vh, 70px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 46px;
}
.founder { text-align: center; }
.founder .f-name { font-size: 14px; font-weight: 650; }
.founder .f-role {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.site-foot {
  margin-top: clamp(40px, 7vh, 70px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.site-foot a { border-bottom: 1px dotted rgba(250, 248, 240, 0.35); padding-bottom: 2px; transition: color 0.25s ease, border-color 0.25s ease; }
.site-foot a:hover { color: var(--cream); border-color: var(--amber); }

/* ============ Fixed UI: hint, dots, counter ============ */
.scroll-hint {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--cream-faint);
  transition: opacity 0.4s ease;
}
.scroll-hint.hide { opacity: 0; }
.hint-circle {
  width: 26px; height: 26px;
  border: 1px dashed rgba(250, 248, 240, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: bob 2.2s var(--ease-io) infinite;
}
.hint-circle svg { width: 10px; height: 10px; stroke: var(--cream-dim); fill: none; stroke-width: 1.6; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.progress-dots {
  position: fixed;
  left: clamp(14px, 2.4vw, 30px);
  bottom: 24px;
  z-index: 90;
  display: flex;
  gap: 7px;
}
.progress-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(250, 248, 240, 0.26);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.progress-dots i.on { background: var(--amber); transform: scale(1.4); }

.ch-counter {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: 22px;
  z-index: 90;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--cream-faint);
  font-variant-numeric: tabular-nums;
}
.ch-counter b { color: var(--cream); font-weight: 500; }

/* ============ Reveal primitives ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.chapter.in [data-reveal] { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giant { white-space: normal; line-height: 1.02; }
  .ghost { font-size: 27vw; }
  .ch-index { display: none; }
}
@media (max-width: 560px) {
  .stat-grid, .reg-grid { grid-template-columns: 1fr; }
  .cover { padding: 26px 22px 22px; }
  .progress-dots, .ch-counter { display: none; }
  .chain .arrow { padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .chapter { transform: none !important; opacity: 1 !important; }
  .giant-wrap { transform: none !important; }
  [data-reveal], .giant .ch { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chapter.in .overline::before, .chapter.in .overline::after, .overline::before, .overline::after { width: clamp(24px, 4vw, 54px); transition: none; }
  .hero-ring .rot, .loader-ring, .hint-circle, .grain, .marquee-track { animation: none !important; }
  .loader { display: none !important; }
}

/* ============================================================
   VEX-STYLE HERO - video background, liquid glass, Inter
   (implements the user's provided spec in vanilla CSS)
   ============================================================ */

.liquid-glass {
  background: rgba(18, 18, 21, 0.62);
  background-blend-mode: luminosity;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- Navbar (px-6 md:px-12 lg:px-16, pt-6) ---- */
.vex-nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  padding: 24px 24px 0;
}
@media (min-width: 768px)  { .vex-nav-wrap { padding: 24px 48px 0; } }
@media (min-width: 1024px) { .vex-nav-wrap { padding: 24px 64px 0; } }

.vex-nav {
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vex-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}
.vex-logo img { width: 24px; }

.vex-links { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .vex-links { display: flex; } }
.vex-links a {
  position: relative;
  font-size: 14px;
  color: #fff;
  padding: 4px 0;
  transition: color 0.2s ease;
}
/* signature: amber dotted underline sweeps in on hover / active */
.vex-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  border-bottom: 1px dotted var(--amber);
  transition: right 0.35s var(--ease-out);
}
.vex-links a:hover { color: #d1d5db; }
.vex-links a:hover::after,
.vex-links a.on::after { right: 0; }
.vex-links a.on { color: #fff; }

.vex-cta {
  background: var(--cream);
  color: #111;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
  will-change: transform;
}
.vex-cta:hover { background: #ffffff; }

/* ---- Hero (wireframe terrain) ---- */
.vex-hero {
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  text-align: left;
}

/* The terrain is the page's persistent backdrop — every chapter floats over it */
.vex-terrain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* vertical outlined wordmark on the right edge */
.vex-edge {
  position: absolute;
  top: 50%;
  right: clamp(6px, 2vw, 28px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(60px, 11vh, 120px);
  letter-spacing: 0.22em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 242, 0.13);
  user-select: none;
  pointer-events: none;
  z-index: 1 !important;
}

.vex-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.vex-kicker .k-star { color: var(--amber); font-size: 13px; letter-spacing: 0; }

.vex-status {
  margin-top: clamp(20px, 3.4vh, 34px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--cream-faint);
}

.vex-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 24px 48px;
}
@media (min-width: 768px)  { .vex-hero-content { padding: 120px 48px 48px; } }
@media (min-width: 1024px) { .vex-hero-content { padding: 120px 64px 64px; } }

/* Heading: dot-matrix display type (Doto), Foxtrove-style */
.vex-heading {
  font-family: var(--pixel);
  font-weight: 900;
  font-size: clamp(46px, 9.2vw, 128px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 12ch;
}

.vex-heading .vx-line { display: block; }
.vex-heading .vx-ch {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.vex-heading .vx-ch.vx-in { opacity: 1; transform: translateX(0); }

.vex-sub {
  font-size: 16px;
  color: var(--cream-dim);
  margin-bottom: 26px;
  max-width: 52ch;
}
@media (min-width: 768px) { .vex-sub { font-size: 18px; } }

.vex-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.vex-btn-solid {
  background: var(--cream);
  color: #111;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease;
  will-change: transform;
}
.vex-btn-solid:hover { background: #ffffff; }

.vex-btn-glass {
  border: 1px solid var(--hairline-strong);
  background: var(--surface-2);
  color: var(--cream);
  padding: 14px 34px;
  border-radius: 999px;
  will-change: transform;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.vex-btn-glass:hover { background: #26262b; border-color: rgba(255, 255, 255, 0.28); }

/* FadeIn utility */
[data-fade] {
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease;
}
[data-fade].vx-faded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .vex-heading .vx-ch { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-fade] { opacity: 1 !important; transition: none !important; }
}

.vex-heading .vx-word { display: inline-block; white-space: nowrap; }

/* ============ Demo video frame (see-it-work chapter) ============ */
.demo-frame {
  position: relative;
  width: min(880px, 88vw);
  margin-top: clamp(22px, 3.4vh, 36px);
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.demo-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: calc(var(--r-lg) - 8px);
}
.demo-cap {
  margin: 10px 2px 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-align: center;
}
