/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ground: #0B0B0F;
  --surface: #111116;
  --fg: #F5F2EB;
  --dim: rgba(245, 242, 235, .54);
  --faint: rgba(245, 242, 235, .32);
  --wire: rgba(245, 242, 235, .20);
  --wire-strong: rgba(245, 242, 235, .44);
  --hover: rgba(245, 242, 235, .07);
  --amber: #E8B33A;
  --pass: #6FA88C;
  --fail: #E5006E;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Outfit', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-height: 76px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ground);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Eyebrow / section label ===== */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.eyebrow.center {
  text-align: center;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(11, 11, 15, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wire);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--body);
  font-size: 14px;
  color: var(--dim);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-btn-secondary {
  padding: 9px 18px;
  border: 1px solid var(--wire);
  border-radius: 4px;
  color: var(--fg) !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-btn-secondary:hover {
  border-color: var(--wire-strong);
  background: var(--hover);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ground) !important;
  font-weight: 500;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  overflow: hidden;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,15,20,0.7) 0%, rgba(11,11,15,0.4) 45%, rgba(0,0,0,0.5) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.35) 0%, rgba(11, 11, 15, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 24px;
  text-align: center;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.2rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--fg);
}

.hero-headline em {
  font-style: italic;
  color: var(--dim);
}

.hero-sub {
  margin-top: 28px;
  font-family: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--dim);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--amber);
  color: var(--ground);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--wire);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: var(--wire-strong);
  background: var(--hover);
}

/* ===== Fade-in on load ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-headline.fade-in { transition-delay: 0.05s; }
.hero-sub.fade-in { transition-delay: 0.25s; }
.hero-ctas.fade-in { transition-delay: 0.45s; }

/* ===== Reveal (for later sections, IntersectionObserver-driven) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section heading shared styles ===== */
.split-copy p,
.thesis-content p,
.pipeline-step div,
.scrubber-content p,
.scrubber-footnote,
.hardcases-intro,
.artifact-content p,
.datagraph-content > p,
.domains-intro,
.proof-content p,
.final-content p,
.cta-content p {
  font-family: var(--body);
  color: var(--dim);
}

/* ===== Reality / Belief split (Section 2) ===== */
.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.split-panel {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  overflow: hidden;
}

.split-reality {
  background:
    linear-gradient(to bottom, rgba(11, 11, 15, 0.1), rgba(11, 11, 15, 0.8)),
    linear-gradient(135deg, #4a3520 0%, #6b4a28 35%, #3a2814 70%, #1c130a 100%);
}

.split-belief {
  background:
    linear-gradient(to bottom, rgba(11, 11, 15, 0.1), rgba(11, 11, 15, 0.85)),
    repeating-linear-gradient(0deg, rgba(111, 168, 140, 0.16) 0px, rgba(111, 168, 140, 0.16) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(111, 168, 140, 0.16) 0px, rgba(111, 168, 140, 0.16) 1px, transparent 1px, transparent 28px),
    linear-gradient(135deg, #0a1410 0%, #081c14 45%, #030a07 100%);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.split-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.split-belief .split-label {
  color: var(--pass);
}

.split-caption {
  margin-top: 8px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--dim);
  max-width: 320px;
  line-height: 1.5;
}

.split-copy {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.split-copy p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

/* ===== Failure sequence (Section 3) ===== */
.failure {
  position: relative;
  height: 300vh;
}

.failure-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.failure-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.failure-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.6) 0%, rgba(11, 11, 15, 0.86) 100%);
}

.failure-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  text-align: center;
}

.failure-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 28px;
}

.failure-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.failure-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 14px;
  border: 1px solid var(--wire);
  border-radius: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.failure-label.is-active {
  color: var(--fg);
  border-color: var(--amber);
}

.failure-arrow {
  color: var(--faint);
}

.failure-content p {
  font-family: var(--body);
  color: var(--dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  margin-top: 16px;
}

/* ===== Thesis (Section 4) ===== */
.thesis {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thesis-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 179, 58, 0.08) 0%, rgba(11, 11, 15, 0) 55%),
    radial-gradient(ellipse at 80% 70%, rgba(111, 168, 140, 0.08) 0%, rgba(11, 11, 15, 0) 60%),
    linear-gradient(160deg, #0f0f14 0%, var(--ground) 45%, #000000 100%);
  will-change: transform;
}

.thesis-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 24px;
  text-align: center;
}

.thesis-statement {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 32px;
}

.thesis-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.thesis-close {
  margin-top: 20px;
  color: var(--fg) !important;
  font-weight: 500;
}

/* ===== Pipeline (Section 5) ===== */
.pipeline {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
}

.pipeline-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
}

.pipeline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.82) 0%, rgba(11, 11, 15, 0.95) 100%);
}

.pipeline-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.pipeline-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  margin-bottom: 56px;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 72px;
  text-align: center;
}

.pipeline-flow span:not(.pipeline-flow-arrow) {
  padding: 10px 14px;
  border: 1px solid var(--wire);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
}

.pipeline-flow-arrow {
  color: var(--faint);
}

.pipeline-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}

.pipeline-step-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--amber);
  opacity: 0.7;
  line-height: 1;
}

.pipeline-step div {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.pipeline-step strong {
  color: var(--fg);
  font-weight: 600;
}

/* ===== Scrubber (Section 6) ===== */
.scrubber {
  padding: 140px 24px;
  text-align: center;
}

.scrubber-content {
  max-width: 700px;
  margin: 0 auto 48px;
}

.scrubber-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}

.scrubber-content p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.scrubber-frame {
  position: relative;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--wire);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.scrubber-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.scrubber-reality {
  background:
    linear-gradient(to bottom, rgba(11, 11, 15, 0.1), rgba(11, 11, 15, 0.8)),
    linear-gradient(135deg, #4a3520 0%, #6b4a28 35%, #3a2814 70%, #1c130a 100%);
}

.scrubber-belief {
  background:
    linear-gradient(to bottom, rgba(11, 11, 15, 0.1), rgba(11, 11, 15, 0.85)),
    repeating-linear-gradient(0deg, rgba(111, 168, 140, 0.16) 0px, rgba(111, 168, 140, 0.16) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(111, 168, 140, 0.16) 0px, rgba(111, 168, 140, 0.16) 1px, transparent 1px, transparent 28px),
    linear-gradient(135deg, #0a1410 0%, #081c14 45%, #030a07 100%);
  clip-path: inset(0 0 0 50%);
}

.scrubber-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.scrubber-tag-belief {
  color: var(--pass);
}

.scrubber-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scrubber-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--fg);
  transform: translateX(-50%);
}

.scrubber-handle-grip {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.scrubber-footnote {
  max-width: 700px;
  margin: 40px auto 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

/* ===== Hard cases (Section 7) ===== */
.hardcases {
  padding: 140px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.hardcases-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  margin-bottom: 20px;
}

.hardcases-intro {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.hardcases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.hardcase-card {
  position: relative;
  height: 320px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--wire);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hardcase-card:hover {
  border-color: var(--wire-strong);
  box-shadow: 0 0 32px rgba(232, 179, 58, 0.12);
}

.hardcase-thumb {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease);
}

.hardcase-card:hover .hardcase-thumb {
  transform: scale(1.08);
}

.hardcase-thumb-1 { background: linear-gradient(140deg, #3a2f4a 0%, #17141e 100%); }
.hardcase-thumb-2 { background: linear-gradient(140deg, #4a2a2a 0%, #1c1414 100%); }
.hardcase-thumb-3 { background: linear-gradient(140deg, #2a3f4a 0%, #101a20 100%); }
.hardcase-thumb-4 { background: linear-gradient(140deg, #4a3f2a 0%, #201b10 100%); }
.hardcase-thumb-5 { background: linear-gradient(140deg, #2a4a38 0%, #102018 100%); }

.hardcase-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0) 100%);
  transform: translateY(28%);
  transition: transform 0.35s var(--ease);
}

.hardcase-card:hover .hardcase-body {
  transform: translateY(0);
}

.hardcase-body h3 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.hardcase-body p {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ===== Data artifact (Section 8) ===== */
.artifact {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
}

.artifact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.artifact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.9) 0%, rgba(11, 11, 15, 0.97) 100%);
}

.artifact-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.artifact-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 48px;
}

.artifact-visual {
  perspective: 900px;
  width: 160px;
  height: 160px;
  margin: 0 auto 48px;
}

.artifact-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-rotate 18s linear infinite;
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid var(--wire);
  background:
    repeating-linear-gradient(0deg, rgba(245, 242, 235, 0.04) 0px, rgba(245, 242, 235, 0.04) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(245, 242, 235, 0.04) 0px, rgba(245, 242, 235, 0.04) 1px, transparent 1px, transparent 20px),
    var(--surface);
}

.cube-front  { transform: translateZ(80px); }
.cube-back   { transform: rotateY(180deg) translateZ(80px); }
.cube-right  { transform: rotateY(90deg) translateZ(80px); }
.cube-left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-top    { transform: rotateX(90deg) translateZ(80px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(80px); }

@keyframes cube-rotate {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}

.artifact-code {
  text-align: left;
  max-width: 460px;
  margin: 0 auto 48px;
  padding: 22px;
  border: 1px solid var(--wire);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pass);
  white-space: pre-wrap;
  min-height: 210px;
}

.artifact-code::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--pass);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

.artifact-code.is-done::after {
  display: none;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.artifact-content p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.artifact-close {
  margin-top: 18px;
  color: var(--fg) !important;
  font-weight: 500;
}

/* ===== Growing data graph (Section 9) ===== */
.datagraph {
  padding: 140px 24px;
}

.datagraph-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.datagraph-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 56px;
}

.datagraph-visual {
  margin: 0 auto 64px;
  max-width: 700px;
}

.graph-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.graph-edge {
  stroke: var(--wire);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.graph-node {
  fill: var(--amber);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.datagraph-visual.is-visible .graph-edge {
  stroke-dashoffset: 0;
}

.datagraph-visual.is-visible .graph-node {
  opacity: 1;
  transform: scale(1);
}

.graph-node:nth-of-type(1) { transition-delay: 0.1s; }
.graph-node:nth-of-type(2) { transition-delay: 0.25s; }
.graph-node:nth-of-type(3) { transition-delay: 0.4s; }
.graph-node:nth-of-type(4) { transition-delay: 0.55s; }
.graph-node:nth-of-type(5) { transition-delay: 0.7s; }
.graph-node:nth-of-type(6) { transition-delay: 0.85s; }
.graph-node:nth-of-type(7) { transition-delay: 1s; }
.graph-node:nth-of-type(8) { transition-delay: 1.15s; }

.datagraph-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.stat {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--wire);
  border-radius: 6px;
}

.stat-number,
.stat-number-static {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.5;
}

.datagraph-content > p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

/* ===== Domains (Section 10) ===== */
.domains {
  padding: 140px 24px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.domains-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}

.domains-intro {
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.domain-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  background: var(--surface);
  border: 1px solid var(--wire);
  border-radius: 6px;
  color: var(--dim);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: domain-float 6s ease-in-out infinite;
}

.domain-icon:nth-of-type(2) { animation-delay: -1.2s; }
.domain-icon:nth-of-type(3) { animation-delay: -2.4s; }
.domain-icon:nth-of-type(4) { animation-delay: -3.6s; }
.domain-icon:nth-of-type(5) { animation-delay: -4.8s; }

.domain-icon:hover {
  transform: scale(1.06);
  color: var(--fg);
  border-color: var(--amber);
}

.domain-svg {
  width: 44px;
  height: 44px;
}

.domain-icon span {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes domain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Technical proof (Section 11) ===== */
.proof {
  position: relative;
  padding: 160px 24px;
  overflow: hidden;
  text-align: center;
}

.proof-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.proof-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.86) 0%, rgba(11, 11, 15, 0.96) 100%);
}

.proof-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.proof-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}

.proof-content p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ===== Final sequence (Section 12) ===== */
.final {
  position: relative;
  height: 260vh;
}

.final-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.final-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.55) 0%, rgba(11, 11, 15, 0.88) 100%);
}

.final-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  text-align: center;
}

.final-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 28px;
}

.final-content p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  margin-top: 16px;
}

/* ===== CTA (Section 13) ===== */
.cta {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, #0f0f14 0%, var(--ground) 30%, #16151c 55%, var(--ground) 80%, #000000 100%);
  background-size: 200% 200%;
  animation: cta-drift 22s ease-in-out infinite;
}

@keyframes cta-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.cta-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin-bottom: 24px;
}

.cta-content p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

.cta-ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-footer {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a:not(.nav-cta):not(.nav-btn-secondary) {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-panel {
    min-height: 40vh;
    padding: 28px;
  }

  .failure-labels {
    flex-direction: column;
    align-items: flex-start;
  }

  .failure-arrow {
    display: none;
  }

  .pipeline-flow {
    flex-direction: column;
  }

  .pipeline-flow-arrow {
    transform: rotate(90deg);
  }

  .pipeline-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scrubber-frame {
    aspect-ratio: 4 / 5;
  }

  .hardcases-grid {
    grid-template-columns: 1fr;
  }

  .hardcase-card {
    height: 240px;
  }

  .hardcase-body {
    transform: translateY(0);
  }

  .artifact-code {
    font-size: 0.78rem;
  }

  .datagraph-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-ctas {
    flex-direction: column;
    width: 100%;
  }

  .cta-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-bg,
  .thesis-bg {
    transform: none !important;
  }

  .failure {
    height: auto;
  }

  .failure-pin {
    position: relative;
    height: auto;
    min-height: 70vh;
    padding: 80px 0;
  }

  .artifact-cube {
    animation: none;
    transform: rotateX(-18deg) rotateY(-30deg);
  }

  .hardcase-thumb,
  .hardcase-body {
    transition: none;
  }

  .graph-edge {
    stroke-dashoffset: 0;
  }

  .graph-node {
    opacity: 1;
    transform: scale(1);
    transition: none;
  }

  .domain-icon {
    animation: none;
  }

  .cta-bg {
    animation: none;
  }

  .final {
    height: auto;
  }

  .final-pin {
    position: relative;
    height: auto;
    min-height: 70vh;
    padding: 80px 0;
  }
}

/* ===== Demo page ===== */
.page-hero {
  padding: calc(var(--nav-height) + 100px) 24px 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 179, 58, 0.08) 0%, rgba(11, 11, 15, 0) 55%),
    linear-gradient(160deg, #0f0f14 0%, var(--ground) 45%, #000000 100%);
}

.page-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.page-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.page-sub {
  margin-top: 24px;
  font-family: var(--body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--dim);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.demo-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.demo-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
}

.demo-item-number {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--amber);
  opacity: 0.7;
  line-height: 1;
}

.demo-item-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--fg);
}

.demo-item-body p {
  font-family: var(--body);
  color: var(--dim);
  margin-bottom: 14px;
  line-height: 1.7;
}

.demo-item-body p:last-child {
  margin-bottom: 0;
}

.demo-item-body strong {
  color: var(--fg);
  font-weight: 600;
}

.honest-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  border-top: 1px solid var(--wire);
}

.honest-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--fg);
}

.honest-section p {
  font-family: var(--body);
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.quote-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--fg);
  line-height: 1.4;
}

.demo-cta-section {
  padding: 60px 24px 140px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .demo-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
