/* ============================================================
   ARTHA — Molten Rust aesthetic
   Obsidian + oxidized copper + electric cyan
   ============================================================ */

:root {
  /* Palette */
  --obsidian:       #0a0806;
  --obsidian-warm:  #14100c;
  --paper:          #1a1410;
  --paper-hi:       #231a14;

  --rust-deep:      #7a2d0e;
  --rust:           #c4562a;
  --rust-bright:    #ff6b35;
  --rust-glow:      #ff8c42;

  --cyan:           #3ce8ff;
  --cyan-dim:       #0fb4d0;

  --bone:           #f4ede0;
  --bone-dim:       rgba(244, 237, 224, 0.72);
  --bone-faint:     rgba(244, 237, 224, 0.42);
  --bone-whisper:   rgba(244, 237, 224, 0.16);

  --line:           rgba(244, 237, 224, 0.10);

  /* Type */
  --serif:  'Fraunces', 'Playfair Display', Georgia, serif;
  --mono:   'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Parallax mouse offsets — updated by JS */
  --mx: 0;
  --my: 0;
}

/* ——— Reset & base ——————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 50;
  background: var(--obsidian);
  color: var(--bone);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--rust); color: var(--obsidian); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   ATMOSPHERE — fixed background layers
   ============================================================ */

.atmosphere {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Grain texture via SVG noise */
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: overlay;
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
}

/* Three slow-drifting gradient meshes */
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.mesh-a {
  width: 60vw; height: 60vw;
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--rust-bright) 0%, transparent 60%);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.mesh-b {
  width: 50vw; height: 50vw;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle, var(--rust-deep) 0%, transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.mesh-c {
  width: 40vw; height: 40vw;
  top: 40%; left: 55%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  opacity: 0.28;
  animation: drift-c 28s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(8vw, 12vh, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-10vw, -8vh, 0) scale(0.95); }
}
@keyframes drift-c {
  from { transform: translate3d(0,0,0) scale(0.9); }
  to   { transform: translate3d(-6vw, 10vh, 0) scale(1.25); }
}

/* Subtle grid floor, perspective-tilted */
.grid-floor {
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 140%;
  height: 70%;
  background-image:
    linear-gradient(to right, var(--bone-whisper) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bone-whisper) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(600px) rotateX(68deg);
  transform-origin: 50% 100%;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  opacity: 0.6;
}

/* Floating ledger particles — JS-populated */
.ledger-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-faint);
  white-space: nowrap;
  animation: floatUp linear infinite;
  text-shadow: 0 0 8px currentColor;
}
.particle.rust { color: var(--rust-glow); opacity: 0.35; }
.particle.cyan { color: var(--cyan); opacity: 0.25; }

@keyframes floatUp {
  from { transform: translateY(110vh); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-10vh); opacity: 0; }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,8,6,0.85) 0%, rgba(10,8,6,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.02em;
}
.brand-mark {
  color: var(--rust-bright);
  font-size: 22px;
  text-shadow: 0 0 16px var(--rust-glow);
  animation: brandPulse 3s ease-in-out infinite;
}
@keyframes brandPulse {
  0%,100% { text-shadow: 0 0 16px var(--rust-glow); }
  50%     { text-shadow: 0 0 24px var(--rust-bright); }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--rust-bright); }
.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--rust-bright) !important;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--rust);
  color: var(--obsidian) !important;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

/* ============================================================
   HERO — cinematic, minimal
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

/* Cinematic backdrop with flow lines + aurora washes */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(
    calc(var(--mx, 0) * 20px),
    calc(var(--my, 0) * 20px),
    0
  );
  transition: transform 0.4s var(--ease-out);
}

/* Flowing vertical lines — abstract data stream */
.flow-lines {
  position: absolute;
  inset: -5% -5%;
  background-image:
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 58px,
      rgba(255, 107, 53, 0.035) 58px,
      rgba(255, 107, 53, 0.035) 60px
    ),
    repeating-linear-gradient(
      88deg,
      transparent 0,
      transparent 139px,
      rgba(60, 232, 255, 0.025) 139px,
      rgba(60, 232, 255, 0.025) 141px
    );
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  animation: flowShift 40s linear infinite;
}
@keyframes flowShift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 140px 0, -140px 0; }
}

/* Aurora wash layers */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-a {
  width: 70vw; height: 70vw;
  top: -20%; left: -15%;
  background: radial-gradient(circle, var(--rust-bright) 0%, transparent 55%);
  opacity: 0.45;
  animation: auroraA 22s ease-in-out infinite alternate;
}
.aurora-b {
  width: 55vw; height: 55vw;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, var(--rust-deep) 0%, transparent 60%);
  opacity: 0.55;
  animation: auroraB 30s ease-in-out infinite alternate;
}
.aurora-c {
  width: 45vw; height: 45vw;
  top: 35%; left: 50%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
  opacity: 0.20;
  animation: auroraC 26s ease-in-out infinite alternate;
}
@keyframes auroraA {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 8vh, 0) scale(1.15); }
}
@keyframes auroraB {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-8vw, -6vh, 0) scale(1.1); }
}
@keyframes auroraC {
  from { transform: translate3d(-50%, 0, 0) scale(0.9); }
  to   { transform: translate3d(-50%, 5vh, 0) scale(1.2); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  text-align: center;
  padding: 40px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust-bright);
  border: 1px solid var(--rust-deep);
  border-radius: 999px;
  background: rgba(196, 86, 42, 0.08);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.1s both;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rust-bright);
  box-shadow: 0 0 10px var(--rust-bright);
  animation: pulseBeat 2s ease-in-out infinite;
}
@keyframes pulseBeat {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.5); opacity: 0.5; }
}

/* CINEMATIC TITLE — massive, centered, serif */
.cinematic-title {
  font-family: var(--serif);
  font-size: clamp(56px, 11.2vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 24px auto 36px;
  max-width: 1180px;
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 400;
  color: var(--bone);
}
.cin-line {
  display: block;
  animation: fadeSlideUp 1.2s var(--ease-out) both;
}
.cin-line:nth-child(1) { animation-delay: 0.15s; }
.cin-line:nth-child(2) { animation-delay: 0.3s;  font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 500; }
.cin-line:nth-child(3) { animation-delay: 0.45s; }
.cin-line em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
}
.cin-line .accent {
  background: linear-gradient(135deg, var(--rust-bright) 0%, var(--rust-glow) 55%, var(--cyan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.cin-line .accent::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust-bright), transparent);
  opacity: 0.5;
  animation: accentLine 3s ease-in-out infinite;
}
@keyframes accentLine {
  0%,100% { opacity: 0.25; transform: scaleX(0.6); }
  50%     { opacity: 0.7;  transform: scaleX(1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lede {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 620px;
  margin: 0 auto 44px;
  animation: fadeSlideUp 1.2s var(--ease-out) 0.6s both;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  animation: fadeSlideUp 1.2s var(--ease-out) 0.75s both;
}

/* ============================================================
   SCROLL-HIGHLIGHT TEXT — progressive word reveal
   JS splits the text into .word spans and sets --progress.
   Words light up as you scroll through the element.
   ============================================================ */
.scroll-text .word {
  opacity: 0.32;
  transition: opacity 0.5s var(--ease-out), color 0.5s var(--ease-out), text-shadow 0.5s var(--ease-out);
  display: inline-block;
}
.scroll-text .word.lit {
  opacity: 1;
}
/* Only headlines get the rust glow on highlighted words */
h2.scroll-text .word.glow {
  color: var(--rust-bright);
  opacity: 1;
  text-shadow: 0 0 22px rgba(255, 107, 53, 0.35);
}
/* In body copy, "glow" words stay opacity-normal (no recolor) */
p.scroll-text .word.glow {
  opacity: 1;
}

/* ============================================================
   TERMINAL-SCENE — its own section, no longer nested in hero
   ============================================================ */
.terminal-scene {
  max-width: 960px;
  padding-top: 100px;
  padding-bottom: 100px;
}
.terminal-scene .terminal {
  max-width: 780px;
  margin: 0 auto;
}
.section-head.centered {
  margin: 0 auto 56px;
  text-align: center;
  max-width: 860px;
}
.section-head.centered .kicker::before { content: '—— '; }
.section-head.centered h2 { margin: 0 auto; }

/* Scoping subtitle under section-00 H2 — separates agent decision SLA from rail settlement SLAs.
   Keeps the punchy headline; adds the truth on the next breath. */
.scroll-sub {
  max-width: 860px;
  margin: 28px auto 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--bone-faint);
  text-align: center;
}
.scroll-sub strong {
  color: var(--bone-dim);
  font-weight: 500;
}
.rail-sla {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 1px;
  border: 1px solid var(--rust-deep);
  border-radius: 999px;
  color: var(--rust-bright);
  background: rgba(255,107,53,0.04);
  white-space: nowrap;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--rust) 0%, var(--rust-bright) 100%);
  color: var(--obsidian);
  box-shadow: 0 4px 30px rgba(255, 107, 53, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 6px 50px rgba(255, 107, 53, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  color: var(--bone);
  border-color: var(--bone-whisper);
  background: rgba(244,237,224,0.03);
}
.btn-ghost:hover {
  border-color: var(--bone-dim);
  background: rgba(244,237,224,0.06);
}

.btn-wide {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 14px;
}

/* Terminal window */
.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--obsidian-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 107, 53, 0.08);
  animation: fadeSlideUp 1.1s var(--ease-out) 0.85s both;
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-faint);
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 20px;
  min-height: 180px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .k { color: var(--rust-bright); }
.terminal-body .v { color: var(--cyan); }
.terminal-body .ok { color: #7fe3a2; }
.terminal-body .cmd { color: var(--bone); }
.terminal-body .cur::after {
  content: '▊';
  color: var(--rust-bright);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  animation: scrollNudge 3s ease-in-out infinite;
}
.scroll-dot {
  animation: scrollDot 2s var(--ease-in-out) infinite;
}
@keyframes scrollNudge {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 8px); }
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(8px); opacity: 0; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */

.section {
  position: relative;
  padding: 160px 48px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 2;
}

.section-head { margin-bottom: 96px; max-width: 900px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-bright);
  margin-bottom: 24px;
}
.kicker::before {
  content: '—— ';
  color: var(--rust-deep);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "wght" 400;
  color: var(--bone);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   THESIS
   ============================================================ */

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.thesis-lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 350;
  color: var(--bone-dim);
}
.thesis-lead:first-child {
  font-style: italic;
  color: var(--bone);
}

/* ============================================================
   CAPABILITIES — 3D tilt cards
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tilt-card {
  position: relative;
  perspective: 1000px;
  min-height: 280px;
}
.tilt-card .card-inner {
  position: relative;
  padding: 32px 28px;
  height: 100%;
  background: linear-gradient(145deg, var(--paper-hi) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
}
.tilt-card .card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 107, 53, 0.12) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.tilt-card:hover .card-inner {
  border-color: var(--rust);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255, 107, 53, 0.2);
}
.tilt-card:hover .card-inner::before { opacity: 1; }

.card-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--rust-bright);
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.tilt-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--bone);
}
.tilt-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-dim);
  margin-bottom: 20px;
}
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(60, 232, 255, 0.08);
  border: 1px solid rgba(60, 232, 255, 0.2);
  border-radius: 999px;
  position: absolute;
  bottom: 24px;
  left: 28px;
}

/* ============================================================
   SHAPES — business scenario cards with SVG flow
   ============================================================ */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.shape-card .card-inner { padding: 24px 26px 28px; }
.shape-viz {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,107,53,0.04), transparent 70%),
    rgba(10,8,6,0.45);
  border: 1px solid var(--line);
  padding: 12px;
  transition: border-color 0.4s var(--ease-out);
}
.shape-card:hover .shape-viz { border-color: var(--rust); }
.shape-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 500;
  margin-bottom: 8px;
  color: var(--bone);
}
.shape-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone-dim);
}

/* ============================================================
   CORRIDORS — world map + rail strip
   ============================================================ */
.corridors { max-width: 1200px; }
.corridor-stage {
  position: relative;
  padding: 40px;
  background: linear-gradient(145deg, var(--paper-hi) 0%, var(--obsidian-warm) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.corridor-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,107,53,0.06), transparent 60%);
  pointer-events: none;
}
.world-map {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.world-map .node text { pointer-events: none; }

.rails-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  background: rgba(10,8,6,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
}
.rail-chip:hover { color: var(--rust-bright); border-color: var(--rust); }
.rail-chip.rail-stable { color: var(--cyan); border-color: rgba(60,232,255,0.25); }
.rail-chip.rail-stable:hover { color: var(--cyan); border-color: var(--cyan); }
.rail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ============================================================
   KYC — three identity layer cards
   ============================================================ */
.kyc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kyc-card .card-inner { padding: 28px; }
.kyc-viz {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(10,8,6,0.45);
  border: 1px solid var(--line);
  padding: 12px;
}
.kyc-label {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(60,232,255,0.08);
  border: 1px solid rgba(60,232,255,0.25);
  border-radius: 4px;
  margin-bottom: 14px;
}
.kyc-label.kyc-agent {
  color: var(--rust-bright);
  background: rgba(255,107,53,0.08);
  border-color: var(--rust-deep);
}
.kyc-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 500;
  margin-bottom: 10px;
  color: var(--bone);
}
.kyc-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone-dim);
}
.kyc-card code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(60,232,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ============================================================
   JURISDICTIONS
   ============================================================ */
.juris-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.juris-card .card-inner { padding: 32px 28px; text-align: left; }
.juris-flag {
  font-size: 40px;
  margin-bottom: 16px;
  filter: saturate(1.1);
}
.juris-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--bone);
}
.juris-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rust-bright);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.juris-card p:not(.juris-meta) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone-dim);
}
.juris-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--bone-faint);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive: collapse grids */
@media (max-width: 960px) {
  .shape-grid, .kyc-grid, .juris-grid { grid-template-columns: 1fr; }
  .corridor-stage { padding: 20px; }
  .rails-strip { gap: 6px; }
  .rail-chip { padding: 6px 12px; font-size: 11px; }
}

/* ============================================================
   ARCHITECTURE — layered diagram
   ============================================================ */

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}
.arch-layer {
  width: 100%;
  padding: 24px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.arch-layer:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.arch-agent  { border-color: rgba(60, 232, 255, 0.25); }
.arch-policy { border-color: rgba(244, 237, 224, 0.15); }
.arch-engine {
  background: linear-gradient(135deg, var(--rust-deep) 0%, var(--paper-hi) 100%);
  border-color: var(--rust);
  box-shadow: 0 8px 30px rgba(196, 86, 42, 0.2);
}
.arch-rails  { border-color: var(--line); }

.arch-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust-bright);
  margin-bottom: 14px;
}
.arch-engine .arch-label { color: var(--bone); }

.arch-nodes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.arch-nodes span {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-dim);
  background: rgba(244,237,224,0.04);
  border: 1px solid var(--bone-whisper);
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
}
.arch-nodes span:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--rust);
  color: var(--rust-bright);
}
.arch-engine .arch-nodes span {
  background: rgba(10,8,6,0.4);
  border-color: rgba(255,255,255,0.15);
  color: var(--bone);
}

.arch-flow {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--bone-faint);
  text-transform: uppercase;
}

/* ============================================================
   SCENARIOS
   ============================================================ */

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scenario {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}
.scenario:last-child { border-bottom: 1px solid var(--line); }
.scenario:hover {
  padding-left: 16px;
}
.scenario:hover .scenario-index { color: var(--rust-bright); }
.scenario:hover h3 { color: var(--rust-glow); }

.scenario-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  color: var(--bone-faint);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  transition: color 0.4s var(--ease-out);
  line-height: 1;
}
.scenario h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 500;
  color: var(--bone);
  margin-bottom: 14px;
  transition: color 0.4s var(--ease-out);
}
.scenario p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 720px;
}

/* ============================================================
   BETA
   ============================================================ */

.beta { max-width: 980px; }

.beta-card {
  padding: 72px 60px;
  background: linear-gradient(145deg, var(--paper-hi) 0%, var(--obsidian-warm) 100%);
  border: 1px solid var(--rust-deep);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.beta-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 80%; height: 160%;
  background: radial-gradient(circle, var(--rust-bright) 0%, transparent 60%);
  opacity: 0.10;
  filter: blur(60px);
  pointer-events: none;
}
.beta-card::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 60%);
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
}

.beta-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
  font-style: italic;
  margin: 16px 0 20px;
  color: var(--bone);
  position: relative;
}
.beta-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 640px;
  margin-bottom: 48px;
  position: relative;
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.field input, .field textarea {
  padding: 14px 16px;
  font: inherit;
  font-family: var(--serif);
  font-size: 16px;
  font-variation-settings: "opsz" 14, "SOFT" 100, "wght" 400;
  color: var(--bone);
  background: rgba(10,8,6,0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--rust);
  background: rgba(10,8,6,0.7);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}
.field textarea { resize: vertical; font-family: var(--mono); font-size: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-dim);
  background: rgba(10,8,6,0.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  user-select: none;
}
.chip input { display: none; }
.chip:hover {
  border-color: var(--bone-whisper);
  color: var(--bone);
}
.chip:has(input:checked) {
  background: rgba(255, 107, 53, 0.12);
  border-color: var(--rust);
  color: var(--rust-bright);
}
.chip:has(input:checked)::before {
  content: '✓';
  font-weight: 700;
}

.form-note {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
  text-align: center;
  margin-top: -8px;
}
.form-success {
  grid-column: 1 / -1;
  padding: 18px 22px;
  margin-top: 16px;
  background: rgba(127, 227, 162, 0.08);
  border: 1px solid rgba(127, 227, 162, 0.3);
  border-radius: 10px;
  color: #9fecbb;
  font-size: 14px;
  line-height: 1.5;
}
.form-success code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 80px 48px 100px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.footer-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust-bright);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--bone-dim);
  transition: color 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--rust-glow); }

.footer-base {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
}
.footer-meta { color: var(--cyan-dim); }

/* ============================================================
   Status bar (GOLDEN-047)
   ============================================================ */

#lg-status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 10px 24px;
  background: rgba(10,8,6,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244,237,224,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
}
.lg-dot-wrap { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: lgPulse 2s ease-in-out infinite;
}
@keyframes lgPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}
.lg-sep { opacity: 0.3; }
#lg-status-bar a { color: var(--cyan); }
#lg-status-bar a:hover { color: var(--rust-bright); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 100px 20px 40px; }
  .section { padding: 80px 24px; }
  .thesis-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 60px 1fr; gap: 20px; padding: 28px 0; }
  .scenario-index { font-size: 36px; }
  .beta-card { padding: 40px 28px; }
  .waitlist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .orbit-1 { width: 380px; height: 380px; }
  .orbit-2 { width: 500px; height: 500px; }
  .orbit-3 { width: 620px; height: 620px; }
  #lg-status-bar {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }
  .lg-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .layer { transform: none !important; }
}
