/* =========================================================
   AURA — Genie Accelerator
   Aesthetic: editorial / technical, dark midnight + warm cream
   Display:   Bebas Neue (anchor headlines, mega numerals)
   Editorial: DM Serif Display (italic emphasis, section titles)
   Body:      DM Sans
   ========================================================= */

:root {
  --bg: #0D0A1A;
  --bg-2: #14102a;
  --surface: #1A1430;
  --line: rgba(245, 237, 227, 0.10);
  --line-strong: rgba(245, 237, 227, 0.22);
  --text: #F5EDE3;
  --text-dim: #a09da3;
  --text-mute: #66646b;
  --accent: #F4845F;     /* MathCo × Databricks peach */
  --accent-2: #3D1F6E;   /* refined purple atmospheric */
  --gold: #FF3621;       /* Databricks heat red */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --serif: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'DM Sans', ui-monospace, Menlo, monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #1A1430; }

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------- Atmosphere -------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grid-rule {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), var(--line) 100%) 0 0 / 100% 88px,
    radial-gradient(800px 400px at 80% -10%, rgba(244, 132, 95, 0.10), transparent 70%),
    radial-gradient(1100px 600px at -10% 30%, rgba(61, 31, 110, 0.06), transparent 70%);
}

/* -------- Nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(13, 10, 26,0.7), rgba(13, 10, 26,0.35));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text);
}
.brand svg { color: var(--text); }
.brand-mark { font-weight: 600; letter-spacing: 0.16em; }
.brand-sub { color: var(--text-mute); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-dim);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cta-pill:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cta-pill span { transition: transform .25s ease; display: inline-block; }
.cta-pill:hover span { transform: translateX(3px); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* -------- Layout helpers -------- */
main { position: relative; z-index: 2; }
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}
.section-head .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 8px;
  background: var(--accent); color: var(--bg);
  border-radius: 4px; font-weight: 600;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; letter-spacing: 0;
  margin: 0 0 20px;
  max-width: 16ch;
}
.section-title.huge {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 1; letter-spacing: 4px;
  text-transform: uppercase;
  max-width: 18ch;
}
.section-title em { color: var(--gold); }
.hl {
  background: linear-gradient(120deg, transparent 60%, rgba(244, 132, 95,0.35) 60%);
  padding: 0 .12em;
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 24px 0 56px;
  line-height: 1.55;
}

.punch {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic; color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 40ch;
}
.punch em { color: var(--accent); font-style: italic; }
.punch-mark {
  font-family: var(--mono); font-style: normal;
  color: var(--accent); margin-right: 12px;
}

/* -------- HERO -------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(140px, 16vw, 200px) var(--gutter) clamp(60px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "meta    visual"
    "head    visual"
    "grid    visual"
    "footer  footer";
  gap: 24px 64px;
  align-items: start;
}

.hero-meta {
  grid-area: meta;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  animation: fadeUp .9s ease both .05s;
}
.kbd {
  padding: 4px 8px; border: 1px solid var(--line-strong);
  border-radius: 4px; color: var(--text);
}
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(244, 132, 95, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-headline {
  grid-area: head;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9.5vw, 128px);
  line-height: 0.95; letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  animation: fadeUp 1s ease both .15s;
}
.hero-headline em { color: var(--gold); }

.hero-grid {
  grid-area: grid;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 12px;
  animation: fadeUp 1s ease both .3s;
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-dim); line-height: 1.55;
  max-width: 38ch;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary { background: var(--accent); color: #1A1430; }
.btn.primary:hover { transform: translateY(-1px); background: #F69A78; }
.btn.ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn.big { padding: 18px 22px; font-size: 13px; }

/* Hero visual orbit */
.hero-visual {
  grid-area: visual;
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  align-self: center;
  animation: fadeIn 1.4s ease both .5s;
}
.orbit {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.ring.r1 { width: 36%; height: 36%; animation: spin 22s linear infinite; }
.ring.r2 { width: 64%; height: 64%; border-style: solid; border-color: var(--line); animation: spin 40s linear infinite reverse; }
.ring.r3 { width: 96%; height: 96%; animation: spin 60s linear infinite; }
.core {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFA48A, #F4845F 60%, #3D1F6E 100%);
  box-shadow: 0 0 80px 10px rgba(244, 132, 95, 0.35), inset -8px -8px 16px rgba(0,0,0,0.4);
}
.node {
  position: absolute;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: 6px 10px; border-radius: 999px;
  white-space: nowrap;
}
.node::before {
  content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.n1 { top: 8%;   left: 12%; }
.n2 { top: 18%;  right: 6%; }
.n3 { bottom: 24%; left: 4%; }
.n4 { bottom: 8%; right: 14%; }
.n5 { top: 50%; left: 88%; transform: translate(-50%,-50%); }

/* Hero ticker */
.hero-footer {
  grid-area: footer;
  margin-top: 56px;
  display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  overflow: hidden;
}
.ticker-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute);
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ticker-label::before {
  content:""; width: 6px; height:6px; border-radius:50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
.ticker {
  display: flex; gap: 56px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker span::before { content: "› "; color: var(--accent); }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "head"
      "visual"
      "grid"
      "footer";
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; max-width: 460px; margin: 8px auto 0; }
}

/* -------- 02 Challenge -------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.challenge-card {
  grid-column: span 3;
  position: relative;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, rgba(245, 237, 227,0.02), rgba(245, 237, 227,0.005));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.challenge-card.span { grid-column: span 3; }
.challenge-card:nth-child(1) { grid-column: span 4; }
.challenge-card:nth-child(2) { grid-column: span 2; }
.challenge-card:nth-child(3) { grid-column: span 2; }
.challenge-card:nth-child(4) { grid-column: span 4; }
.challenge-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.challenge-card .card-num {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--accent);
  margin-bottom: 14px;
}
.challenge-card h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 10px; line-height: 1.15; color: var(--text);
}
.challenge-card p { color: var(--text-dim); margin: 0; max-width: 50ch; }

@media (max-width: 820px) {
  .challenge-grid { grid-template-columns: 1fr; }
  .challenge-card,
  .challenge-card:nth-child(1),
  .challenge-card:nth-child(2),
  .challenge-card:nth-child(3),
  .challenge-card:nth-child(4) { grid-column: span 1; }
}

/* -------- 03 Paradox -------- */
.paradox-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.section-title .strike {
  position: relative; color: var(--text);
}
.section-title .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 6px; background: var(--accent);
  transform: skewY(-3deg);
}
.paradox-stack { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.stack-row {
  display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.stack-row:last-child { border-bottom: 1px solid var(--line); }
.stack-tag {
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.stack-row.dim .stack-tag { color: var(--text-mute); border-color: var(--line-strong); }
.stack-row p { margin: 0; font-size: clamp(15px, 1.2vw, 17px); color: var(--text-dim); }
.stack-row:not(.dim) p { color: var(--text); }

@media (max-width: 820px) {
  .paradox-grid { grid-template-columns: 1fr; }
}

/* -------- 04 Capabilities -------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  grid-column: span 6;
  transition: transform .3s ease, border-color .3s ease;
  overflow: hidden;
}
.cap:nth-child(1) { grid-column: span 7; }
.cap:nth-child(2) { grid-column: span 5; }
.cap:nth-child(3) { grid-column: span 5; }
.cap:nth-child(4) { grid-column: span 7; }

.cap::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(400px 200px at 90% -10%, rgba(244, 132, 95, 0.18), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events:none;
}
.cap:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cap:hover::before { opacity: 1; }
.cap.accent { background: linear-gradient(180deg, rgba(244, 132, 95, 0.10), rgba(244, 132, 95, 0.02)); border-color: rgba(244, 132, 95, 0.35); }

.cap header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cap-num {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--gold);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
}
.cap h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  margin: 0; letter-spacing: -0.01em;
}
.cap p { color: var(--text-dim); margin: 0; max-width: 48ch; }

@media (max-width: 820px) {
  .cap, .cap:nth-child(n) { grid-column: span 12; }
}

/* -------- 05 Flow -------- */
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 36px 0; border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-rail {
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative;
}
.step-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 500;
}
.step-line {
  flex: 1; width: 1px; background: var(--line-strong);
  margin-top: 12px; min-height: 60px;
}
.step-line.last { background: linear-gradient(180deg, var(--line-strong), transparent); }
.step-body h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 12px; line-height: 1.05;
}
.step-body p { color: var(--text-dim); margin: 0 0 18px; max-width: 56ch; font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
}

@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-rail { flex-direction: row; align-items: center; gap: 12px; }
  .step-line { display: none; }
}

/* -------- 04b Capabilities — 5-up variant -------- */
.capabilities.five .cap:nth-child(1) { grid-column: span 7; }
.capabilities.five .cap:nth-child(2) { grid-column: span 5; }
.capabilities.five .cap:nth-child(3) { grid-column: span 4; }
.capabilities.five .cap:nth-child(4) { grid-column: span 4; }
.capabilities.five .cap:nth-child(5) { grid-column: span 4; }
@media (max-width: 820px) {
  .capabilities.five .cap, .capabilities.five .cap:nth-child(n) { grid-column: span 12; }
}

/* -------- 00 Demo video -------- */
.section.demo { padding-top: 80px; }
.video-frame {
  margin: 40px 0 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(244, 132, 95, 0.06) inset;
}
.video-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 100% -10%, rgba(244, 132, 95, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.video-frame video,
.video-frame iframe,
.video-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
  position: relative;
  z-index: 0;
  border: 0;
}
a.video-frame { display: block; text-decoration: none; cursor: pointer; }
.video-frame-thumb { display: block; text-decoration: none; cursor: pointer; }
.video-frame-link {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 237, 227, 0.35);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.video-frame-link:hover {
  background: rgba(244, 132, 95, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}
.demo-hint {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.demo-hint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 160ms ease;
}
.demo-hint a:hover {
  opacity: 0.75;
}
.video-frame figcaption {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  background: linear-gradient(180deg, rgba(245, 237, 227,0.02), transparent);
}
.vc-tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}

/* -------- 07 Differentiation -------- */
.vs-table {
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}
.vs-head, .vs-row {
  display: grid; grid-template-columns: 1fr 1fr;
}
.vs-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(245, 237, 227,0.02);
}
.vs-head > div, .vs-row > div {
  padding: 22px 28px;
}
.vs-row { border-top: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 19px); }
.vs-head > div + div, .vs-row > div + div {
  border-left: 1px solid var(--line);
}
.vs-row > div.ours, .vs-head > div.ours {
  background: linear-gradient(90deg, rgba(244, 132, 95,0.06), rgba(244, 132, 95,0));
  color: var(--text);
}
.vs-x { font-family: var(--mono); color: var(--text-mute); margin-right: 12px; }
.vs-c { color: var(--accent); margin-right: 12px; }

@media (max-width: 720px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* -------- 08 Impact metrics -------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.metric {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}
.metric-num {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 1px;
  display: flex; align-items: baseline; gap: 4px;
}
.metric-num .suffix { color: var(--accent); font-style: italic; font-size: 0.6em; }
.metric-label {
  margin-top: 12px;
  font-size: 16px; color: var(--text);
  max-width: 22ch;
}
.metric-foot {
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--text-mute); text-transform: uppercase;
}

@media (max-width: 820px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }

/* -------- 09 Phases -------- */
.phase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.phase {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .25s ease;
}
.phase:last-child { border-right: 0; }
.phase:hover { background: rgba(245, 237, 227,0.02); }
.phase::before {
  content:""; position: absolute; top: -1px; left: 0; width: 24px; height: 2px;
  background: var(--accent);
}
.phase-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-mute);
  margin-bottom: 18px;
}
.phase-time { color: var(--accent); }
.phase h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 10px; line-height: 1.15;
}
.phase p { color: var(--text-dim); margin: 0; font-size: 15px; }

@media (max-width: 820px) {
  .phase-track { grid-template-columns: 1fr; }
  .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .phase:last-child { border-bottom: 0; }
}

/* -------- 10 Closing -------- */
.section.close { border-top: 1px solid var(--line); }
.close-inner {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0;
  text-align: center;
}
.close-inner::before, .close-inner::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.close-inner::before { top: 0; }
.close-inner::after { bottom: 0; }

.close-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.close-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(70px, 12vw, 160px);
  line-height: 1; letter-spacing: 6px;
  text-transform: uppercase;
  margin: 22px auto 18px; max-width: 14ch;
}
.close-title em { color: var(--gold); }
.close-sub {
  color: var(--text-dim); max-width: 52ch; margin: 0 auto 36px;
  font-size: clamp(15px, 1.2vw, 18px);
}

.close-form {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}
.close-form input {
  flex: 1; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 16px 18px;
  color: var(--text); font-family: var(--sans); font-size: 15px;
  transition: border-color .2s ease;
}
.close-form input:focus { outline: 0; border-color: var(--accent); }
.close-form input::placeholder { color: var(--text-mute); }

.close-resources {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.close-resources a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}
.close-resources a:hover { color: var(--accent); border-color: var(--accent); }

.close-tagline {
  margin-top: 56px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--gold);
}

/* -------- Footer -------- */
.foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  background: var(--bg-2);
}
.foot-row {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--text); }
.foot-meta { display: inline-flex; align-items: center; gap: 12px; }

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* -------- Animations -------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244, 132, 95,0.20); }
  50%      { box-shadow: 0 0 0 10px rgba(244, 132, 95,0.0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
