/* =============================================================================
   AXIOMATIC SYSTEMS — styles.css
   Design system + sections. Single consolidated stylesheet, no build step.
   Tokens from brand_colors.json · Typography from brand_typography.json
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS custom properties)
   ----------------------------------------------------------------------------- */
:root {
  /* Surface — brand_colors.json v1.1.
     Axiomatic Black canvas + navy Panel/Elevated layers for card depth. */
  --bg-primary: #050505;
  --bg-panel: #121827;
  --bg-elevated: #1B2436;

  /* Accent */
  --accent: #00F3FF;
  --accent-soft: rgba(0, 243, 255, 0.12);
  --accent-line: rgba(0, 243, 255, 0.35);

  /* Platform states (brand + product shared) */
  --state-pass: #00D4AA;
  --state-inconclusive: #F5A524;
  --state-degraded: #B794F4;
  --state-fail: #F43F5E;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9BA3B4;
  --text-muted: rgba(155, 163, 180, 0.55);

  /* Hairlines */
  --hairline: rgba(155, 163, 180, 0.18);
  --hairline-soft: rgba(155, 163, 180, 0.10);

  /* Typography — brand_typography.json */
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Spatial */
  --page-max: 1200px;
  --page-pad: 24px;
  --section-pad-y: 120px;
  --section-pad-y-sm: 80px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Horizon page uses amber as dominant accent — tokens overridden per-page */
.horizon-theme {
  --accent: #F5A524;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --accent-line: rgba(245, 165, 36, 0.35);
}

/* -----------------------------------------------------------------------------
   2. BASE RESET
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 18px; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-primary); font-weight: 600; }
em { font-style: italic; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #FFFFFF; }

ul, ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-secondary); }
li { margin: 4px 0; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Focus — accessible rings using the accent color */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   2.4 SKIP LINK — visible only when focused via keyboard (Tab).
        Standard a11y pattern so keyboard users can bypass the nav.
   ----------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 10001;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  color: var(--bg-primary);
}

/* -----------------------------------------------------------------------------
   2.5 CINEMATIC LOADER
        Full-screen black overlay with the Axiomatic lockup pulsing gently.
        Fades out 800 ms after window.load (handled in scripts.js).
   ----------------------------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.6, 0, 0.4, 1);
  pointer-events: none;
}
#loader.loader--hidden { opacity: 0; }
#loader.loader--gone { display: none; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: loaderPulse 2s infinite ease-in-out;
}
.loader-logo {
  width: 320px;
  max-width: 80vw;
  height: auto;
  display: block;
}
@keyframes loaderPulse {
  0%   { opacity: 0.55; transform: scale(0.98); }
  50%  { opacity: 1;    transform: scale(1.02); }
  100% { opacity: 0.55; transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-inner { animation: none; opacity: 1; }
}

/* -----------------------------------------------------------------------------
   3. CANVAS — scan-line + grid-dot background texture (pure CSS, zero JS)
      Ultra-subtle, under 8% visibility. Sets the instrument-grade atmosphere.
   ----------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    /* horizontal scan lines */
    linear-gradient(to bottom, transparent 0, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 3px),
    /* faint grid dots */
    radial-gradient(rgba(155,163,180,0.05) 1px, transparent 1px);
  background-size: 100% 3px, 32px 32px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Canvas-level corner registration brackets — the brand's signature frame */
.canvas-bracket {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 0 solid var(--accent);
  pointer-events: none;
  z-index: 5;
  opacity: 0.85;
}
.canvas-bracket.tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.canvas-bracket.tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.canvas-bracket.bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.canvas-bracket.br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }

/* -----------------------------------------------------------------------------
   4. LAYOUT CONTAINERS
   ----------------------------------------------------------------------------- */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); position: relative; z-index: 2; }

section { padding: var(--section-pad-y) 0; position: relative; z-index: 2; }
section.tight { padding: var(--section-pad-y-sm) 0; }

/* Small kicker label — appears above most section headers. JetBrains Mono + tracked caps */
.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}
.kicker.muted { color: var(--text-secondary); }
.kicker::before { content: "// "; opacity: 0.7; }

/* -----------------------------------------------------------------------------
   5. TYPOGRAPHY SCALE — from brand_typography.json
   ----------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.055;
  letter-spacing: -0.02em;
}
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5.2vw, 48px); line-height: 1.125; letter-spacing: -0.015em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.167; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.4; }
.lead { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.556; color: var(--text-primary); }
.body { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.625; }
.small { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.43; color: var(--text-secondary); }
.mono { font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 1.57; }
.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* -----------------------------------------------------------------------------
   6. NAVIGATION
   ----------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 14px 0;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background 0.4s var(--ease), border-bottom-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* Past-hero state — becomes a translucent glass bar that lets the content
   breathe through. Triggered by scripts.js when scrollY exceeds the hero
   bottom edge (see .nav--scrolled toggle). */
.nav.nav--scrolled {
  background: rgba(5, 5, 5, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.045);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo:hover { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav-menu a:hover { color: var(--text-primary); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 9px 16px;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--bg-primary) !important; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--text-primary);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--hairline-soft);
    padding: 12px 24px 24px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-menu.open { transform: scaleY(1); opacity: 1; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
}

/* -----------------------------------------------------------------------------
   7. HERO
   ----------------------------------------------------------------------------- */
.hero { padding-top: 140px; padding-bottom: 80px; position: relative; }
.hero-inner { max-width: 880px; }
.hero .kicker { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; color: var(--text-primary); }
.hero .lead { margin-bottom: 16px; color: var(--text-primary); }
.hero .bridge {
  border-left: 2px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 12px 18px;
  margin: 20px 0 28px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
}
.hero .bridge strong { color: var(--accent); }

/* Staggered reveal animation on first paint — the one high-impact moment */
.hero-inner > * { opacity: 0; transform: translateY(14px); animation: heroRise 0.9s var(--ease-out) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.30s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.42s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.54s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.66s; }
.hero-inner > *:nth-child(7) { animation-delay: 0.78s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
   8. AUDIENCE CARDS (three paths — amber / cyan / violet)
   ----------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 1024px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  --card-accent: var(--accent);
  --card-accent-soft: rgba(0, 243, 255, 0.06);
  position: relative;
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid var(--card-accent);
  padding: 26px 26px 28px;
  color: var(--text-primary);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  overflow: hidden;
}
.audience-card::before {
  /* subtle ambient wash so the card doesn't look like a plain rectangle */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--card-accent-soft) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}
.audience-card:hover { border-color: var(--card-accent); background: var(--bg-elevated); transform: translateY(-2px); }
.audience-card:hover::before { opacity: 1; }

/* Corner tick — a small "bracket" in the top-right that aligns visually with the canvas brackets */
.audience-card::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--card-accent);
  border-right: 1px solid var(--card-accent);
  opacity: 0.7;
}

.audience-card .a-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-accent);
  margin-bottom: 10px;
  display: block;
}
.audience-card .a-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.audience-card .a-desc { font-size: 14px; color: var(--text-secondary); margin: 0; }
.audience-card .a-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--card-accent);
  margin-top: 16px;
  display: inline-block;
  letter-spacing: 0.1em;
}

/* Per-audience color mapping */
.audience-card.vehicle   { --card-accent: var(--state-inconclusive); --card-accent-soft: rgba(245,165,36,0.06); }
.audience-card.fleet     { --card-accent: var(--accent);              --card-accent-soft: rgba(0,243,255,0.06); }
.audience-card.platform  { --card-accent: var(--state-degraded);      --card-accent-soft: rgba(183,148,244,0.06); }

/* -----------------------------------------------------------------------------
   9. TRACTION BAR
   ----------------------------------------------------------------------------- */
.traction-bar {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 18px 0;
  background: rgba(18, 24, 39, 0.4);
  position: relative; z-index: 2;
}
.traction-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.traction-inner .pipe { color: var(--accent); opacity: 0.55; }
.traction-inner .n { color: var(--text-primary); margin-right: 4px; }

/* -----------------------------------------------------------------------------
   10. SECTION TITLE
   ----------------------------------------------------------------------------- */
.section-title {
  max-width: 780px;
  margin-bottom: 40px;
}
.section-title .h2 { margin: 0 0 14px; color: var(--text-primary); }
.section-title .lede { color: var(--text-secondary); font-size: 17px; line-height: 1.55; max-width: 640px; }

/* -----------------------------------------------------------------------------
   11. PHYSICAL HALLUCINATION PROBLEM
        Uses FAIL rose (semantic — this is the problem frame)
   ----------------------------------------------------------------------------- */
.php {
  position: relative;
}
.php-panel {
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid var(--state-fail);
  background: linear-gradient(180deg, rgba(244,63,94,0.04) 0%, transparent 40%), var(--bg-panel);
  padding: 40px 40px 44px;
  max-width: 980px;
}
.php-panel .kicker { color: var(--state-fail); }
.php-panel .kicker::before { content: "// "; opacity: 0.7; }
.php .named {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--state-fail);
  padding-bottom: 1px;
}
.php-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 26px;
}
@media (max-width: 820px) { .php-grid { grid-template-columns: 1fr; } }
.php-grid h4 { color: var(--text-primary); margin-bottom: 10px; font-size: 16px; }
.php-grid p { margin: 0 0 12px; font-size: 15px; }

/* -----------------------------------------------------------------------------
   12. WHY-AXIOMATIC (pain / solution)
   ----------------------------------------------------------------------------- */
.why-panel {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 40px 40px 44px;
}
.why-panel > .kicker { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline-soft); display: block; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; gap: 30px; } }
.why-col h4 { color: var(--text-primary); margin-bottom: 14px; font-size: 18px; }
.why-col.solution { border-left: 2px solid var(--accent); padding-left: 28px; }
@media (max-width: 820px) {
  .why-col.solution { border-left: none; border-top: 2px solid var(--accent); padding: 24px 0 0; }
}
.bridge {
  border-left: 2px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 10px 14px;
  margin: 12px 0;
  color: var(--text-primary);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.55;
}
.bridge strong { color: var(--accent); font-style: normal; }

/* -----------------------------------------------------------------------------
   13. TECH STACK STRIP
   ----------------------------------------------------------------------------- */
.tech-strip {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 32px 0;
  background: rgba(18, 24, 39, 0.45);
  position: relative; z-index: 2;
}
.tech-strip .kicker { margin-bottom: 10px; }
.tech-strip .lede {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 560px;
}
.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  align-items: center;
}
.tech-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-left: 16px;
  position: relative;
}
.tech-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 6px var(--accent);
}

/* -----------------------------------------------------------------------------
   14. PIPELINE ANIMATION — Propose → Verify → Observe → Decide
        Pure CSS. A packet travels through 4 stages. Each stage lights up
        when the packet is there. 8-second cycle, with a 1-second rest.
   ----------------------------------------------------------------------------- */
.pipeline-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 30px 28px 26px;
  position: relative;
  overflow: hidden;
}
.pipeline-wrap .kicker { margin-bottom: 20px; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: stretch;
  position: relative;
}
@media (max-width: 720px) { .pipeline { grid-template-columns: 1fr; gap: 10px; } }

.pipe-step {
  position: relative;
  padding: 18px 16px 20px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.pipe-step .pipe-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pipe-step .pipe-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.pipe-step .pipe-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.pipe-step::before {
  /* cyan glow bar — activates in sync with the packet */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.pipe-step.s1 { animation: pipeActive 8s var(--ease) infinite; animation-delay: 0s; }
.pipe-step.s2 { animation: pipeActive 8s var(--ease) infinite; animation-delay: 2s; }
.pipe-step.s3 { animation: pipeActive 8s var(--ease) infinite; animation-delay: 4s; }
.pipe-step.s4 { animation: pipeActive 8s var(--ease) infinite; animation-delay: 6s; }

@keyframes pipeActive {
  0%, 18% { border-color: var(--hairline); background: var(--bg-elevated); }
  22%, 33% { border-color: var(--accent); background: rgba(0,243,255,0.04); }
  38%, 100% { border-color: var(--hairline); background: var(--bg-elevated); }
}

/* Arrow between steps — hidden on mobile */
.pipe-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 720px) { .pipe-arrow { display: none; } }

/* Packet — a small cyan dot that travels across the pipeline */
.pipe-rail {
  position: relative;
  margin-top: 22px;
  height: 2px;
  background: var(--hairline-soft);
  overflow: visible;
}
.pipe-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: translate(-50%, -50%);
  animation: pipePacket 8s var(--ease) infinite;
}
@keyframes pipePacket {
  0%   { left: 0%;    opacity: 0; }
  4%   { opacity: 1; }
  25%  { left: 25%; }
  50%  { left: 50%; }
  75%  { left: 75%; }
  96%  { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Evidence bundle receipt — appears at the end of each cycle */
.pipe-receipt {
  margin-top: 18px;
  border-top: 1px dashed var(--hairline);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex; flex-wrap: wrap; gap: 14px 22px;
}
.pipe-receipt .r-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text-primary);
}
.pipe-receipt .r-chip .r-val { color: var(--accent); }

/* -----------------------------------------------------------------------------
   15. STATE BADGE — cycles through PASS / INCONCLUSIVE / DEGRADED / FAIL
        4 absolutely-stacked badges fade in/out with staggered delays.
        No JS timer. 16-second cycle total.
   ----------------------------------------------------------------------------- */
.state-cycle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.state-cycle .sc-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  opacity: 0;
  transition: none;
}
.state-cycle .sc-slot .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.state-cycle .sc-slot .lbl { color: var(--text-primary); }

/* 4 slots × 16s cycle = 4s each; 0.4s cross-fade */
.state-cycle .sc-pass        { animation: scFade 16s var(--ease) infinite;  animation-delay:  0s; }
.state-cycle .sc-inconclusive { animation: scFade 16s var(--ease) infinite;  animation-delay:  4s; }
.state-cycle .sc-degraded     { animation: scFade 16s var(--ease) infinite;  animation-delay:  8s; }
.state-cycle .sc-fail         { animation: scFade 16s var(--ease) infinite;  animation-delay: 12s; }

@keyframes scFade {
  0%, 2.5%   { opacity: 0; }
  5%, 22.5%  { opacity: 1; }
  25%, 100%  { opacity: 0; }
}

.state-cycle .sc-pass .dot         { background: var(--state-pass);         box-shadow: 0 0 10px var(--state-pass); }
.state-cycle .sc-inconclusive .dot { background: var(--state-inconclusive); box-shadow: 0 0 10px var(--state-inconclusive); }
.state-cycle .sc-degraded .dot     { background: var(--state-degraded);     box-shadow: 0 0 10px var(--state-degraded); }
.state-cycle .sc-fail .dot         { background: var(--state-fail);         box-shadow: 0 0 10px var(--state-fail); }

.state-cycle .sc-pass .txt         { color: var(--state-pass); }
.state-cycle .sc-inconclusive .txt { color: var(--state-inconclusive); }
.state-cycle .sc-degraded .txt     { color: var(--state-degraded); }
.state-cycle .sc-fail .txt         { color: var(--state-fail); }

/* Border color animation — matches the active state */
.state-cycle::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  pointer-events: none;
  animation: scBorder 16s var(--ease) infinite;
}
@keyframes scBorder {
  0%, 1%   { border-color: var(--hairline); }
  5%, 22%  { border-color: var(--state-pass); }
  25%, 28% { border-color: var(--hairline); }
  29%, 46% { border-color: var(--state-inconclusive); }
  50%, 53% { border-color: var(--hairline); }
  54%, 71% { border-color: var(--state-degraded); }
  75%, 78% { border-color: var(--hairline); }
  79%, 96% { border-color: var(--state-fail); }
  100%     { border-color: var(--hairline); }
}

.state-demo {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid var(--accent);
  margin-top: 20px;
}
.state-demo .sd-caption {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
}

/* Static state chips (non-cycling) — used in tables and explainers */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  border: 1px solid;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
}
.chip .cd { width: 6px; height: 6px; border-radius: 50%; }
.chip.pass { color: var(--state-pass); border-color: rgba(0,212,170,0.55); }
.chip.pass .cd { background: var(--state-pass); }
.chip.incon { color: var(--state-inconclusive); border-color: rgba(245,165,36,0.55); }
.chip.incon .cd { background: var(--state-inconclusive); }
.chip.deg { color: var(--state-degraded); border-color: rgba(183,148,244,0.55); }
.chip.deg .cd { background: var(--state-degraded); }
.chip.fail { color: var(--state-fail); border-color: rgba(244,63,94,0.55); }
.chip.fail .cd { background: var(--state-fail); }

/* -----------------------------------------------------------------------------
   16. SYSTEM / FEATURE CARDS (the 7 Vantage systems, expandable)
   ----------------------------------------------------------------------------- */
.sys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 860px) { .sys-grid { grid-template-columns: 1fr; } }

.sys-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 26px 28px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}
.sys-card:hover, .sys-card.open { border-color: var(--accent); background: var(--bg-elevated); }
.sys-card .sys-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.sys-card .sys-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sys-card .sys-toggle {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sys-card.open .sys-toggle { transform: rotate(45deg); color: var(--accent); }
.sys-card .sys-summary { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.sys-card .sys-summary strong { color: var(--text-primary); }
.sys-card .sys-bridge {
  margin-top: 10px;
  border-left: 2px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 8px 12px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-primary);
}
.sys-card .sys-bridge strong { color: var(--accent); font-style: normal; }
.sys-card .sys-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 14px;
}
.sys-card.open .sys-hint { display: none; }
.sys-card .sys-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.sys-card.open .sys-body { max-height: 1400px; }
.sys-card .sys-body ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 4px;
  color: var(--text-secondary);
}
.sys-card .sys-body li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.55;
}
.sys-card .sys-body li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}
.sys-card .sys-body strong { color: var(--text-primary); }

/* -----------------------------------------------------------------------------
   17. DOMAIN ROADMAP (accordion list)
   ----------------------------------------------------------------------------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) { .roadmap-grid { grid-template-columns: 1fr; } }
.roadmap-intro, .roadmap-list {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 28px 30px;
}
.roadmap-intro p { margin-bottom: 12px; }
.status-callout {
  margin-top: 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.status-callout .sc-body {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
  line-height: 1.5;
}
.roadmap-list .kicker { margin-bottom: 8px; }

.accordion-item {
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 0;
  min-height: 52px;
}
.accordion-head h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0;
}
.accordion-icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-secondary);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.accordion-item.open .accordion-head h4 { color: var(--accent); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); color: var(--accent); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  padding-left: 14px;
  border-left: 2px solid var(--hairline-soft);
  margin-left: 2px;
}
.accordion-item.open .accordion-body { max-height: 800px; padding-bottom: 18px; }
.accordion-body p { font-size: 14px; margin: 8px 0; line-height: 1.55; }
.accordion-body strong { color: var(--text-primary); }

.status-live { color: var(--state-pass); font-weight: 600; }
.status-training { color: var(--state-inconclusive); font-weight: 600; }
.status-target { color: var(--state-degraded); font-weight: 600; }

/* -----------------------------------------------------------------------------
   18. THESIS / AXIOMS
   ----------------------------------------------------------------------------- */
.thesis-quote {
  background: var(--bg-panel);
  border-left: 2px solid var(--accent);
  padding: 36px 40px;
  margin-bottom: 40px;
  max-width: 880px;
}
.thesis-quote .q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.thesis-quote p { font-size: 15px; line-height: 1.7; }
.thesis-bridge {
  text-align: center;
  max-width: 640px;
  margin: -16px auto 44px;
  font-size: 15px;
  color: var(--text-primary);
  font-style: italic;
}

.axiom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .axiom-grid { grid-template-columns: 1fr; } }

.axiom {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--hairline);
  padding: 26px 26px 28px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.axiom.a1 { border-left-color: var(--state-inconclusive); }
.axiom.a2 { border-left-color: var(--accent); }
.axiom.a3 { border-left-color: var(--text-primary); }
.axiom:hover { border-top-color: var(--accent); border-right-color: var(--accent); border-bottom-color: var(--accent); }
.axiom h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.axiom .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.axiom p { font-size: 14.5px; margin: 0 0 12px; }
.axiom ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; }
.axiom ul li { margin: 6px 0; }
.axiom .sys-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.axiom.open .sys-body { max-height: 600px; }

/* -----------------------------------------------------------------------------
   19. ABOUT
   ----------------------------------------------------------------------------- */
.about-panel {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--accent);
  padding: 42px 44px;
}
.about-panel .strapline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 22px;
  letter-spacing: -0.005em;
}
.about-panel p { font-size: 15.5px; line-height: 1.7; }
.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 820px) { .about-meta { grid-template-columns: 1fr; } }
.meta-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-soft);
  padding: 16px 18px;
}
.meta-cell .mk { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.meta-cell .mv { color: var(--text-primary); font-size: 15px; margin-top: 6px; line-height: 1.4; }
.about-panel .hq {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 15px; color: var(--text-primary);
}

/* -----------------------------------------------------------------------------
   19.5  FOUNDER CARD — named-author byline for E-E-A-T
         Sits under the About panel. Avatar badge on the left (text initials
         for now; can be swapped for a photo by replacing the .founder-card__avatar
         inner <span> with an <img>). Right side carries the bio + verifiable
         credentials.
   ----------------------------------------------------------------------------- */
.founder-card {
  margin-top: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid var(--accent);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .founder-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }
}
.founder-card__avatar {
  width: 96px;
  height: 96px;
  border: 1px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(0,243,255,0.08) 0%, transparent 70%),
    var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.founder-card__avatar span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
/* Corner tick on the avatar — matches the audience-card bracket language */
.founder-card__avatar::before,
.founder-card__avatar::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.7;
}
.founder-card__avatar::before {
  top: 4px; left: 4px;
  border-top-width: 1px; border-left-width: 1px;
}
.founder-card__avatar::after {
  bottom: 4px; right: 4px;
  border-bottom-width: 1px; border-right-width: 1px;
}
.founder-card__body { min-width: 0; }
.founder-card__body .kicker { display: inline-block; margin-bottom: 8px; }
.founder-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.founder-card__title {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 16px;
}
.founder-card__bio {
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.founder-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 16px;
}
.founder-card__meta li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 8px 0;
  padding-left: 16px;
  position: relative;
}
.founder-card__meta li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}
.founder-card__meta strong { color: var(--text-primary); }
.founder-card__meta a { color: var(--accent); }

/* -----------------------------------------------------------------------------
   20. FAQ
   ----------------------------------------------------------------------------- */
.faq-panel {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 30px 36px 34px;
}
.faq-panel .accordion-item { padding: 0; }
.faq-hidden { display: none; }
.faq-toggle-btn {
  margin-top: 22px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-toggle-btn:hover { background: var(--accent); color: var(--bg-primary); }

/* -----------------------------------------------------------------------------
   21. CONTACT / DEPLOY PILOT
   ----------------------------------------------------------------------------- */
.contact-panel {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 34px 38px 38px;
}
.contact-note {
  border-left: 2px solid var(--state-inconclusive);
  background: rgba(245,165,36,0.04);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.55;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-grid h3 { color: var(--text-primary); font-size: 22px; margin: 0 0 14px; }
.contact-meta p { font-size: 15px; margin: 6px 0; color: var(--text-secondary); }
.contact-meta strong { color: var(--text-primary); }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 22px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 20px;
  display: inline-block;
  transition: all 0.2s var(--ease);
}
.btn-ghost:hover { background: var(--accent); color: var(--bg-primary); }

/* -----------------------------------------------------------------------------
   22. FOOTER
   ----------------------------------------------------------------------------- */
footer.site-footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--bg-primary);
  padding: 60px 0 90px;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); max-width: 320px; line-height: 1.55; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 6px 0 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--page-max);
  margin: 50px auto 0;
  padding: 22px var(--page-pad) 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.footer-bottom .fb-legal a { color: var(--text-muted); cursor: pointer; }
.footer-bottom .fb-legal a:hover { color: var(--accent); }
.footer-bottom .fb-legal .sep { color: var(--hairline); margin: 0 10px; }

/* -----------------------------------------------------------------------------
   23. MODALS
   ----------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  justify-content: center; align-items: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-body {
  background: var(--bg-panel);
  border: 1px solid var(--accent);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 42px 46px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  transition: color 0.2s var(--ease);
}
.modal-close:hover { color: var(--accent); }
.modal-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.modal-body h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
}
.modal-body p, .modal-body li { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.modal-body strong { color: var(--text-primary); }
.modal-body a { color: var(--accent); }

/* -----------------------------------------------------------------------------
   24. STICKY MOBILE CTA
   ----------------------------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: 12px 16px;
  background: rgba(11, 15, 26, 0.95);
  border-top: 1px solid var(--hairline-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sticky-cta a {
  display: block;
  text-align: center;
  padding: 13px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sticky-cta a:hover { background: var(--text-primary); color: var(--bg-primary); }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  footer.site-footer { padding-bottom: 110px; }
}

/* Back to top */
.back-top {
  display: none;
  position: fixed; bottom: 82px; right: 16px;
  z-index: 40;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  background: rgba(11, 15, 26, 0.92);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s var(--ease);
}
.back-top:hover { border-color: var(--accent); }
.back-top.show { display: flex; }
@media (max-width: 768px) { .back-top { bottom: 78px; } }

/* -----------------------------------------------------------------------------
   25. REVEAL ANIMATION (for IntersectionObserver)
   ----------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* -----------------------------------------------------------------------------
   26. HORIZON-SPECIFIC SECTIONS
   ----------------------------------------------------------------------------- */

/* Mission grid (What is it / Why created / Aims / Why use) */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 26px 28px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.mission-card:hover { border-color: var(--accent); background: var(--bg-elevated); }
.mission-card .mx-glyph {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.mission-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.mission-card p { font-size: 14.5px; margin-bottom: 10px; }

.scenario-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  margin-top: 36px;
  max-width: 860px;
}
.scenario-card .kicker { margin-bottom: 10px; }
.scenario-card p { color: var(--text-primary); font-size: 14.5px; margin: 6px 0; line-height: 1.6; }
.scenario-card p.dim { color: var(--text-secondary); }

/* Price anchor strip (horizon) */
.price-anchor {
  text-align: center;
  padding: 22px var(--page-pad);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(18, 24, 39, 0.5);
}
.price-anchor p {
  color: var(--text-primary);
  font-size: 16px;
  margin: 0;
  line-height: 1.55;
}
.price-anchor .price-accent { color: var(--accent); font-weight: 600; }
.price-anchor .price-warn { color: var(--state-inconclusive); font-weight: 600; }

/* Simulation card (horizon) — Three.js launcher removed; kept as descriptive card */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 32px auto 0;
}
.sim-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 30px 32px;
  transition: border-color 0.25s var(--ease);
}
.sim-card:hover { border-color: var(--accent); }
.sim-card h3 { color: var(--accent); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; margin: 0 0 12px; text-transform: uppercase; }
.sim-card p { font-size: 14.5px; }
.sim-card ul { list-style: none; padding: 0; margin-top: 14px; }
.sim-card ul li {
  position: relative; padding-left: 18px; margin: 8px 0;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.55;
}
.sim-card ul li::before {
  content: ">"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono);
}

/* Injected by v6-simulation.js into the value-prop column when the sim is
   launched. Keep in sync with the innerHTML template in that file. */
.sim-bullets { list-style: none; padding: 0; margin: 0; }
.sim-bullets li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.sim-bullets li strong { color: var(--text-primary); }
.sim-bullets li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.sim-disclaimer {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-left: 2px solid var(--hairline);
  background: var(--bg-panel);
  padding: 12px 16px;
  margin-bottom: 18px;
  line-height: 1.55;
}

/* Pricing comparison */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 32px auto 0;
}
@media (max-width: 820px) { .plans-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  padding: 26px 26px 28px;
}
.plan.featured { border-color: var(--accent); }
.plan h3 { color: var(--accent); font-size: 18px; margin: 0 0 6px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.plan .price { font-family: var(--font-display); color: var(--text-primary); font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.plan .price span { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-secondary); margin-left: 4px; }
.plan .plan-body { font-size: 13.5px; color: var(--text-secondary); }
.plan .plan-bridge {
  margin-top: 10px;
  border-left: 2px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 8px 12px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}
.plans-note { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 18px; }

.pricing-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 36px auto 0;
  max-width: 960px;
  border: 1px solid var(--hairline-soft);
  background: var(--bg-panel);
}
.pricing-compare th, .pricing-compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.pricing-compare thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pricing-compare td:first-child { color: var(--text-primary); }
.pricing-compare td { color: var(--text-secondary); }
.pricing-check { color: var(--state-pass); }
.pricing-dash { color: var(--text-muted); }

/* Locked / waitlist status card */
.waitlist-status {
  margin-top: 44px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--accent);
  padding: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.waitlist-status .ws-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.waitlist-status .ws-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.waitlist-status p { font-size: 14.5px; line-height: 1.6; }
.waitlist-status .ws-highlight { color: var(--accent); font-size: 15px; margin: 10px 0 4px; }
.waitlist-status .ws-small { color: var(--accent); font-size: 13px; margin: 0 0 22px; }

.register-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: all 0.2s var(--ease);
}
.register-btn:hover { background: transparent; color: var(--accent); }

/* Interest form modal specifics */
.modal-body .interest-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.modal-body .interest-form input[type="text"], .modal-body .interest-form input[type="email"], .modal-body .interest-form input[type="tel"] {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 15px;
}
.modal-body .interest-form input:focus { outline: none; border-color: var(--accent); }
.modal-body .interest-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .modal-body .interest-form .row { grid-template-columns: 1fr; } }
.interest-checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
}
.interest-checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.interest-fineprint { font-size: 12px; color: var(--text-muted); margin: -4px 0 6px; line-height: 1.5; }

.success-msg { display: none; text-align: center; padding: 40px 0 20px; }
.success-msg.show { display: block; }
.success-msg h2 { color: var(--accent); margin-bottom: 12px; }
.success-msg p { color: var(--text-primary); font-size: 15px; }

/* -----------------------------------------------------------------------------
   26.5  3D BACKGROUND CANVAS
        Sits behind all content, above the scan-line texture.
        z-index layering: body::before (0, textures) → #bg-3d (1, WebGL) → .wrap/sections (2)
   ----------------------------------------------------------------------------- */
#bg-3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
#bg-3d canvas { display: block; }
@media (prefers-reduced-motion: reduce) {
  #bg-3d { opacity: 0.4; }
}

/* -----------------------------------------------------------------------------
   26.6  V6 NEURAL TWIN — SIMULATION OVERLAY
        Fullscreen HUD takeover. Instrument-grade aesthetic, brand state chips.
   ----------------------------------------------------------------------------- */
body.sim-active { overflow: hidden; }

#simulation-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
#simulation-overlay.active { opacity: 1; pointer-events: auto; }

/* Corner brackets on the overlay so it reads as a canvas takeover */
#simulation-overlay::before,
#simulation-overlay::after,
.sim-details::before,
.sim-details::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  opacity: 0.85;
}
#simulation-overlay::before { top: 14px; left: 14px;  border-top-width: 2px; border-left-width: 2px; }
#simulation-overlay::after  { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.sim-details::before        { bottom: 14px; left: 14px;  border-bottom-width: 2px; border-left-width: 2px; }
.sim-details::after         { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

/* 3D canvas area */
.sim-canvas {
  position: relative;
  width: 100%;
  height: 48vh;
  flex-shrink: 0;
  background:
    radial-gradient(circle at center, rgba(0,243,255,0.04) 0%, transparent 60%),
    var(--bg-primary);
  border-bottom: 1px solid var(--hairline);
  cursor: grab;
  overflow: hidden;
}
.sim-canvas:active { cursor: grabbing; }
.sim-canvas canvas { display: block; }
.sim-hint {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  background: rgba(11,15,26,0.8);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* Details panel */
.sim-details {
  flex: 1;
  overflow-y: auto;
  padding: 22px 32px 32px;
  background: var(--bg-primary);
  position: relative;
}
.sim-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sim-head-left .sim-kicker {
  color: var(--accent);
  margin-bottom: 4px;
}
.sim-head-left .sim-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.sim-mode { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-mode-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sim-mode-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.sim-mode-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.sim-mode-btn.fault-active { color: var(--state-fail); border-color: var(--state-fail); background: rgba(244,63,94,0.08); }
.sim-mode-btn.sim-close-btn { margin-left: 6px; }

/* Toolbar */
.sim-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.sim-toolbar button {
  background: transparent;
  border: 1px solid var(--hairline-soft);
  color: var(--text-muted);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sim-toolbar button:hover { color: var(--text-primary); border-color: var(--hairline); }
.sim-toolbar button.tb-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
#sim-component-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Dynamic analysis panel */
.sim-analysis {
  background: var(--bg-panel);
  border: 1px solid var(--hairline-soft);
  border-left: 2px solid var(--accent);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.sim-analysis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sim-analysis-head strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.sim-analysis-status {
  font-size: 14px;
  color: var(--text-primary);
  margin: 6px 0;
}
.sim-analysis-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
}
.sim-analysis-detail strong { color: var(--text-primary); }
.sim-analysis-detail br { display: block; content: ""; margin: 4px 0; }

/* Content grid: value prop + cross-interaction */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-col h5 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
}
.sim-col p, .sim-col li { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.sim-col strong { color: var(--text-primary); }
#sim-cross h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--state-inconclusive);
  margin: 14px 0 8px;
}
#sim-cascade { margin-top: 14px; display: none; }
#sim-cascade-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sim-cascade-list li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  font-size: 13.5px;
  color: var(--state-inconclusive);
}
#sim-cascade-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--state-inconclusive);
  font-family: var(--font-mono);
}

/* State utility text colors used in the sim */
.t-fail   { color: var(--state-fail); }
.t-incon  { color: var(--state-inconclusive); }
.t-accent { color: var(--accent); }

/* Simulation launcher button (used on horizon.html) */
.sim-launch {
  display: block;
  margin: 18px -32px -32px;
  padding: 18px 32px;
  background: rgba(0,243,255,0.08);
  border: none;
  border-top: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  width: calc(100% + 64px);
  transition: all 0.2s var(--ease);
}
.sim-launch:hover { background: var(--accent); color: var(--bg-primary); }

@media (max-width: 820px) {
  .sim-canvas { height: 42vh; }
  .sim-details { padding: 18px 20px 24px; }
  .sim-head { flex-direction: column; align-items: flex-start; }
  .sim-mode { width: 100%; }
  .sim-launch { margin: 14px -20px -28px; width: calc(100% + 40px); padding: 16px 20px; }
}

/* -----------------------------------------------------------------------------
   27. REDUCED MOTION
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  body::before { display: none; }
  .pipe-rail::before { display: none; }
  .state-cycle .sc-pass { opacity: 1; }
  .state-cycle .sc-inconclusive, .state-cycle .sc-degraded, .state-cycle .sc-fail { opacity: 0; }
}

/* -----------------------------------------------------------------------------
   28. RESPONSIVE TWEAKS (375 / 768 / 1024 / 1440)
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-pad-y: 90px; --section-pad-y-sm: 70px; }
}
@media (max-width: 768px) {
  :root { --section-pad-y: 72px; --section-pad-y-sm: 56px; --page-pad: 20px; }
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .canvas-bracket { width: 18px; height: 18px; }
  .canvas-bracket.tl, .canvas-bracket.tr { top: 10px; }
  .canvas-bracket.bl, .canvas-bracket.br { bottom: 10px; }
  .canvas-bracket.tl, .canvas-bracket.bl { left: 10px; }
  .canvas-bracket.tr, .canvas-bracket.br { right: 10px; }
  .php-panel, .why-panel, .about-panel, .faq-panel, .contact-panel,
  .pipeline-wrap, .roadmap-intro, .roadmap-list, .thesis-quote, .waitlist-status,
  .mission-card, .sys-card, .plan, .sim-card {
    padding-left: 22px; padding-right: 22px;
  }
}
@media (max-width: 480px) {
  :root { --section-pad-y: 60px; --section-pad-y-sm: 46px; }
  .hero { padding-top: 96px; padding-bottom: 48px; }
  .traction-inner { font-size: 11px; gap: 12px; }
}
