/* ================================================================
   The Lattice — near-black + soft white + single electric accent.
   Editorial / computational / ARG-adjacent.
   Headers: Instrument Serif (italic-heavy for manifesto lines).
   UI: Inter. Metadata: JetBrains Mono.
   ================================================================ */

:root {
  --lt-bg: #0A0A0B;           /* near-black, not pure */
  --lt-bg-2: #111114;
  --lt-bg-3: #161619;
  --lt-ink: #EDECEA;          /* soft off-white */
  --lt-ink-2: #BDBBB7;
  --lt-ink-mute: #7A7A80;
  --lt-ink-faint: #4E4E54;
  --lt-accent: #22D3EE;       /* electric cyan */
  --lt-accent-deep: #0BB6D3;
  --lt-accent-glow: rgba(34, 211, 238, 0.35);
  --lt-rule: rgba(237, 236, 234, 0.10);
  --lt-rule-soft: rgba(237, 236, 234, 0.05);
  --lt-rule-strong: rgba(237, 236, 234, 0.22);
}

/* ---------- Base ---------- */
html, body {
  background: var(--lt-bg);
  color: var(--lt-ink);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: clip;
}
html { overflow-x: clip !important; }
body { overflow-x: clip !important; }

#bgCanvas { display: none !important; }

main, nav, footer { position: relative; z-index: 10; background: transparent; }

/* ---------- Nav recolor ---------- */
.nav { background: transparent; }
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--lt-rule);
}
.nav-logo img {
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.22));
  border-radius: 6px;
}
.nav-logo .wordmark {
  color: var(--lt-ink);
  font-family: 'Instrument Serif', 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--lt-ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--lt-ink); }
.nav-links a.cta {
  color: var(--lt-bg);
  background: var(--lt-accent);
  border: 1px solid var(--lt-accent);
  box-shadow: 0 0 0 0 var(--lt-accent-glow);
  transition: box-shadow 200ms ease, background 200ms ease;
}
.nav-links a.cta:hover { box-shadow: 0 0 0 6px var(--lt-accent-glow); }

/* ---------- Shared atoms ---------- */
.lt-wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.lt-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  font-weight: 500;
}
.lt-mono.cyan { color: var(--lt-accent); }
.lt-display {
  font-family: 'Instrument Serif', 'Fraunces', serif;
  font-weight: 400;
  color: var(--lt-ink);
  letter-spacing: -0.005em;
  line-height: 1.02;
}
.lt-display em {
  font-style: italic;
  color: var(--lt-accent);
}

.lt-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lt-reveal.in { opacity: 1; transform: translateY(0); }
.lt-reveal.d1 { transition-delay: 100ms; }
.lt-reveal.d2 { transition-delay: 200ms; }
.lt-reveal.d3 { transition-delay: 300ms; }

/* ================================================================
   HERO — fixed full-viewport scene with node-to-node CAMERA PAN
   Page does not scroll while active. Wheel/key triggers discrete
   camera transitions. Nodes live in absolute world coordinates.
   ================================================================ */

/* Host is a 100vh placeholder so page layout works when released */
.lh-host {
  position: relative;
  height: 100vh;
  background: var(--lt-bg);
  overflow: hidden;
}

/* Scene is the fixed viewport while active.
   Perspective creates the 3D depth for the node chain. The viewer sits
   1800px in front of the z=0 plane; as the camera translates the world
   forward along +Z, nodes recede/advance with natural perspective. */
.lh-scene {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--lt-bg);
  perspective: 1800px;
  perspective-origin: 50% 50%;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lh-scene::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(10,10,11,0.95) 98%);
  pointer-events: none;
  z-index: 6;
}
/* Dismissed state — after sequence ends */
.lh-scene.lh-dismissed {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.lh-host.lh-released {
  height: 0;
  overflow: visible;
}
/* Lock body scroll while active */
body.lh-active { overflow: hidden; }

/* Background grid layer — moves at 0.6x camera */
.lh-bg-grid {
  position: absolute;
  left: -1000px; top: -1000px;
  width: 8800px; height: 5600px;
  z-index: 1;
  background-image:
    linear-gradient(rgba(237,236,234,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,236,234,0.035) 1px, transparent 1px);
  background-size: 100px 100px;
  will-change: transform;
}
/* Parallax dot layer — 0.22x camera */
.lh-bg-parallax {
  position: absolute;
  left: 0; top: 0;
  width: 6800px; height: 3600px;
  z-index: 2;
  will-change: transform;
}
.lh-bg-parallax .bg-dot {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--lt-ink);
  box-shadow: 0 0 8px rgba(237,236,234,0.4);
}

/* World — the camera-transformed 3D container.
   transform-style: preserve-3d lets nested nodes/edges inherit the
   perspective projection instead of flattening to 2D. */
.lh-world {
  position: absolute;
  left: 0; top: 0;
  width: 6800px; height: 3600px;
  z-index: 3;
  will-change: transform;
  transform-style: preserve-3d;
  transform: translate3d(0,0,0);
}

/* 3D energy edges between consecutive nodes.
   Each edge is a thin DOM rectangle placed at node A's (x,y,z) and
   oriented toward node B via rotateY/Z. The rectangle itself is
   ambient cyan; the ::before pulse sweeps along it on transition. */
.lh-edges {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.lh-edge {
  position: absolute;
  height: 2px;
  transform-origin: 0 50% 0;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0.9;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0)    0%,
    rgba(34, 211, 238, 0.35) 12%,
    rgba(34, 211, 238, 0.55) 50%,
    rgba(34, 211, 238, 0.35) 88%,
    rgba(34, 211, 238, 0)    100%
  );
  box-shadow:
    0 0 6px rgba(34, 211, 238, 0.45),
    0 0 16px rgba(34, 211, 238, 0.22);
}
.lh-edge::before {
  /* Energy pulse whose position is driven continuously by the camera's
     progress along this edge. JS sets --pulse-pos (0%..100%) and
     --pulse-op (0 or 1) every frame; the pulse literally rides the
     edge as the camera traverses it. */
  content: '';
  position: absolute;
  top: -2px;
  left: calc(var(--pulse-pos, 0%) - 11%);
  width: 22%;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0)   0%,
    rgba(180, 244, 255, 1)  50%,
    rgba(34, 211, 238, 0)   100%
  );
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.9), 0 0 40px rgba(34, 211, 238, 0.45);
  opacity: var(--pulse-op, 0);
  filter: blur(0.5px);
  transition: opacity 160ms ease;
}

/* Nodes — absolute in the 3D world. --node-z (set inline per node)
   pushes each node deeper along Z; perspective scales them naturally. */
.lh-node {
  position: absolute;
  width: 64px; height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  z-index: 3;
  cursor: default;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, var(--node-z, 0px));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lh-node-dot {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--lt-ink);
  box-shadow:
    0 0 0 1px rgba(237,236,234,0.2),
    0 0 18px rgba(237,236,234,0.25);
  transition: background 600ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Ambient glow-breathe on dormant nodes — each node gets a unique
     phase offset derived from its Z depth so they pulse out of sync. */
  animation: lh-node-breathe 3.6s ease-in-out infinite;
  animation-delay: calc(var(--node-z, 0px) * -0.00018s);
}
.lh-node-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(237,236,234,0.18);
  opacity: 0;
  transition: opacity 500ms ease;
}
.lh-node-label {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  white-space: nowrap;
  opacity: 0.5;
  transition: all 500ms ease;
}
.lh-node.visited .lh-node-dot {
  background: var(--lt-accent);
  box-shadow: 0 0 0 1px var(--lt-accent), 0 0 14px var(--lt-accent-glow);
}
.lh-node.visited .lh-node-label { opacity: 0.7; color: var(--lt-accent); }
.lh-node.active {
  transform: translate3d(0, 0, var(--node-z, 0px)) scale(1.05);
}
/* Node opacity is driven per-frame by JS (fades nodes the camera has
   passed); keeping a default of 1 so the first paint isn't blank. */
.lh-node.active .lh-node-dot {
  background: var(--lt-accent);
  box-shadow:
    0 0 0 2px var(--lt-accent),
    0 0 28px var(--lt-accent-glow),
    0 0 60px rgba(34, 211, 238, 0.35);
  /* Override the dormant breathe with the stronger active pulse */
  animation: lh-node-pulse 2.4s ease-in-out infinite;
  animation-delay: 0s;
}
.lh-node.active .lh-node-halo {
  opacity: 1;
  border-color: var(--lt-accent);
  animation: lh-halo-pulse 2.4s ease-out infinite;
}
/* Second, slower halo expansion ring for added depth on active node */
.lh-node.active .lh-node-halo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  animation: lh-halo-pulse 2.4s ease-out infinite;
  animation-delay: 0.7s;
}
.lh-node.active .lh-node-label {
  opacity: 1;
  color: var(--lt-accent);
  letter-spacing: 0.24em;
}
@keyframes lh-node-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--lt-accent), 0 0 28px var(--lt-accent-glow); }
  50%      { box-shadow: 0 0 0 2px var(--lt-accent), 0 0 38px var(--lt-accent); }
}
@keyframes lh-halo-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Soft glow breathe — all dormant nodes feel alive, not just active ones */
@keyframes lh-node-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(237,236,234,0.12),
      0 0 8px  rgba(237,236,234,0.10);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(237,236,234,0.38),
      0 0 22px rgba(237,236,234,0.28),
      0 0 46px rgba(237,236,234,0.10);
  }
}

/* Autonomous edge-particle flow — a bright streak that travels the
   full length of every edge on its own loop, independent of the camera.
   JS sets --edge-delay per edge so they're staggered. */
.lh-edge::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -14%;
  width: 14%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.92) 50%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.75),
    0 0 28px rgba(34, 211, 238, 0.35);
  filter: blur(0.4px);
  animation: lh-edge-flow 2.8s linear infinite;
  animation-delay: var(--edge-delay, -0.6s);
}

@keyframes lh-edge-flow {
  0%   { left: -14%; opacity: 0; }
  7%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---- Screen-space overlay ---- */
.lh-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.lh-overlay > * { pointer-events: auto; }

.lh-hud-top {
  position: absolute;
  top: 104px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  pointer-events: none;
}
.lh-hud-top > * { pointer-events: auto; }

.lt-hero-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lt-ink-mute);
  transition: color 200ms ease;
  text-decoration: none;
}
.lt-hero-back:hover { color: var(--lt-ink); }
.lt-hero-sys {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  text-align: right;
  line-height: 1.9;
}
.lt-hero-sys .node-count {
  color: var(--lt-accent);
  font-variant-numeric: tabular-nums;
}
.lt-hero-sys .dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lt-accent);
  box-shadow: 0 0 10px var(--lt-accent-glow);
  margin-right: 6px;
  animation: lt-pulse 1.8s ease-in-out infinite;
}
@keyframes lt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Title — visible only at first node */
.lh-title {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  transform: translate(0, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.lh-title-hidden {
  opacity: 0;
  transform: translate(0, calc(-50% - 20px));
}
.lt-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lt-accent);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.lt-hero-eyebrow .rule {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--lt-accent);
}
.lt-hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(80px, 13vw, 200px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 0;
  text-wrap: balance;
}
.lt-hero-title em {
  font-style: italic;
  color: var(--lt-accent);
}
.lt-hero-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  color: var(--lt-ink-2);
  margin-top: 20px;
  max-width: 680px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lt-hero-scroll-hint {
  margin-top: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
}
.lt-hero-scroll-hint .arrow {
  display: inline-block;
  animation: lt-scroll-arrow 2.2s ease-in-out infinite;
}
@keyframes lt-scroll-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---- Cards — one visible at a time, screen-space ---- */
.lh-cards {
  position: absolute;
  top: 50%;
  right: 56px;
  transform: translateY(-50%);
  width: min(440px, 40vw);
  pointer-events: none;
}
.lh-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 30px 34px;
  background: rgba(14, 14, 16, 0.78);
  border: 1px solid rgba(237, 236, 234, 0.08);
  border-left: 2px solid var(--lt-accent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px -20px rgba(0,0,0,0.7);
  pointer-events: none;
}
.lh-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.lh-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(237, 236, 234, 0.08);
}
.lh-card-meta .num { color: var(--lt-accent); font-weight: 500; }
.lh-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
.lh-card h3 em {
  font-style: italic;
  color: var(--lt-accent);
}
.lh-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lt-ink-2);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.lh-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--lt-accent);
  color: var(--lt-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 6px;
}
.lh-exit-btn:hover {
  background: var(--lt-accent);
  color: var(--lt-bg);
  box-shadow: 0 0 24px var(--lt-accent-glow);
}

/* ---- Bottom rail ---- */
.lh-rail {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 44px;
  pointer-events: none;
}
.lh-rail-dots {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  pointer-events: auto;
}
.lh-rail-dot {
  width: 26px; height: 8px;
  border-radius: 4px;
  background: rgba(237, 236, 234, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lh-rail-dot:hover {
  background: rgba(237, 236, 234, 0.3);
}
.lh-rail-dot.visited {
  background: rgba(34, 211, 238, 0.4);
}
.lh-rail-dot.active {
  background: var(--lt-accent);
  width: 52px;
  box-shadow: 0 0 14px var(--lt-accent-glow);
}
.lh-rail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
}
.lh-rail-meta .val { color: var(--lt-ink); }

/* ================================================================
   PROBLEM — parallax storytelling scene
   isolated → noise → curated → thriving
   ================================================================ */
.lt-problem {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  border-top: 1px solid var(--lt-rule);
}
.lt-problem-head {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.lt-problem-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 20px 0 0;
  text-wrap: balance;
}
.lt-problem-head h2 em {
  font-style: italic;
  color: var(--lt-accent);
}
.lt-problem-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--lt-ink-mute);
  max-width: 480px;
}

/* Horizontal 4-stage scene */
.lt-problem-stages {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--lt-rule);
  border-bottom: 1px solid var(--lt-rule);
}
.lt-stage {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--lt-rule);
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.lt-stage:last-child { border-right: none; }
.lt-stage .step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  margin-bottom: 8px;
}
.lt-stage h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--lt-ink);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.lt-stage .svg-holder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 20px;
  min-height: 200px;
}
.lt-stage .svg-holder svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  overflow: visible;
}
.lt-stage p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lt-ink-mute);
  margin: 0;
}
.lt-stage.live h4 { color: var(--lt-accent); }

/* ================================================================
   SIGNATURE — pinned full-screen graph moment
   ================================================================ */
.lt-sig-stage {
  position: relative;
  height: 300vh;
  background: var(--lt-bg);
}
.lt-sig-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.lt-sig-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* =============================================
   Scroll-reactive backdrop.
   A `--sig-p` CSS custom property (0..1) set on .lt-sig-stage by
   updateSignature() drives every transform/opacity/size below — so
   every layer responds to scroll progress without any per-element JS.
   ============================================= */
.lt-sig-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Perspective floor — cyan grid receding toward vanishing point,
   scrolls toward the camera as progress increases. */
.lt-sig-grid {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  perspective: 900px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 28%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0%, #000 28%, #000 78%, transparent 100%);
}
.lt-sig-grid-inner {
  position: absolute;
  inset: -30% -40%;
  transform-origin: 50% 0%;
  /* Grid tilts into 3D and scrolls forward by up to 240px as p → 1 */
  transform:
    rotateX(66deg)
    translateY(calc(var(--sig-p, 0) * 240px));
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.10) 1px, transparent 1px);
  background-size: 120px 120px;
  /* Brighten with progress */
  opacity: calc(0.55 + var(--sig-p, 0) * 0.45);
}

/* Two ambient nebula orbs drifting with scroll */
.lt-sig-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform, opacity;
}
.lt-sig-orb.a {
  width: 620px; height: 620px;
  background: radial-gradient(circle,
    rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0) 65%);
  top: -8%; left: -6%;
  opacity: calc(0.22 + var(--sig-p, 0) * 0.5);
  transform: translate3d(
    calc(var(--sig-p, 0) * -200px),
    calc(var(--sig-p, 0) * 140px), 0);
}
.lt-sig-orb.b {
  width: 720px; height: 720px;
  background: radial-gradient(circle,
    rgba(120, 60, 220, 0.40), rgba(120, 60, 220, 0) 65%);
  bottom: -14%; right: -10%;
  opacity: calc(0.20 + var(--sig-p, 0) * 0.40);
  transform: translate3d(
    calc(var(--sig-p, 0) * 200px),
    calc(var(--sig-p, 0) * -150px), 0);
}

/* Vanishing-point glow — grows and brightens toward full convergence.
   Gives the "network assembling around / pulling you in" feeling. */
.lt-sig-vp-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%)
             scale(calc(0.55 + var(--sig-p, 0) * 0.95));
  background: radial-gradient(circle,
    rgba(34, 211, 238, 0.40) 0%,
    rgba(34, 211, 238, 0.10) 35%,
    rgba(34, 211, 238, 0) 70%);
  filter: blur(45px);
  opacity: calc(var(--sig-p, 0) * 0.95);
  will-change: transform, opacity;
}

/* Corner vignette that tightens as the scene converges */
.lt-sig-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 42%,
    rgba(10, 10, 11, calc(0.5 + var(--sig-p, 0) * 0.3)) 100%);
}
.lt-sig-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lt-sig-top {
  max-width: 1220px;
}
.lt-sig-top h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 16px 0 0;
  max-width: 900px;
  text-wrap: balance;
}
.lt-sig-top h3 em { font-style: italic; color: var(--lt-accent); }

.lt-sig-phases {
  align-self: flex-start;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 280px));
  gap: 18px;
}
.lt-sig-phase {
  border: 1px solid var(--lt-rule);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(8px);
  padding: 18px 20px;
  transition: all 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0.35;
}
.lt-sig-phase.active {
  opacity: 1;
  border-color: var(--lt-accent);
  box-shadow: 0 0 0 1px var(--lt-accent), 0 0 32px var(--lt-accent-glow);
}
.lt-sig-phase .ph-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-accent);
}
.lt-sig-phase h5 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--lt-ink);
  margin: 8px 0 6px;
  letter-spacing: -0.005em;
}
.lt-sig-phase p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lt-ink-mute);
  margin: 0;
}

/* Depth readout HUD */
.lt-hud {
  position: absolute;
  top: 80px; right: 48px;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  text-align: right;
  line-height: 1.9;
  z-index: 5;
  pointer-events: none;
}
.lt-hud .row span.v { color: var(--lt-accent); font-variant-numeric: tabular-nums; }

/* ================================================================
   HOW MATCHING WORKS
   ================================================================ */
.lt-how {
  padding: 160px 0;
  border-top: 1px solid var(--lt-rule);
}
.lt-how-head {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.lt-how-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 18px 0 24px;
  max-width: 1000px;
  text-wrap: balance;
}
.lt-how-head h2 em { font-style: italic; color: var(--lt-accent); }
.lt-how-head p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--lt-ink-mute);
  max-width: 620px;
}

.lt-axes {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--lt-rule);
}
.lt-axis {
  padding: 32px 28px;
  border-right: 1px solid var(--lt-rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.lt-axis:last-child { border-right: none; }
.lt-axis .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-accent);
}
.lt-axis h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  color: var(--lt-ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.lt-axis .scale {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--lt-rule);
}
.lt-axis .scale-rail {
  position: relative;
  height: 2px;
  background: var(--lt-rule-strong);
  margin: 14px 0 8px;
}
.lt-axis .scale-rail::before {
  content: '';
  position: absolute;
  left: var(--pos, 30%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--lt-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--lt-accent-glow);
}
.lt-axis .scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lt-ink-faint);
}
.lt-axis p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--lt-ink-mute);
  margin: 0;
}

/* ================================================================
   COMPARISON TABLE
   ================================================================ */
.lt-compare {
  padding: 160px 0;
  background: var(--lt-bg-2);
  border-top: 1px solid var(--lt-rule);
  border-bottom: 1px solid var(--lt-rule);
}
.lt-compare-head {
  max-width: 1320px;
  margin: 0 auto 60px;
  padding: 0 48px;
}
.lt-compare-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 18px 0 0;
  max-width: 820px;
}
.lt-compare-head h2 em { font-style: italic; color: var(--lt-accent); }

.lt-table {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.lt-table .row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 1fr;
  border-top: 1px solid var(--lt-rule);
  align-items: stretch;
}
.lt-table .row.header {
  border-top: 1px solid var(--lt-rule-strong);
  border-bottom: 1px solid var(--lt-rule-strong);
}
.lt-table .row:last-child { border-bottom: 1px solid var(--lt-rule); }
.lt-table .cell {
  padding: 20px 22px;
  border-right: 1px solid var(--lt-rule);
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--lt-ink-2);
  line-height: 1.45;
}
.lt-table .cell:last-child { border-right: none; }
.lt-table .cell.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
  align-items: center;
}
.lt-table .cell.platform {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--lt-ink);
  letter-spacing: -0.01em;
}
.lt-table .cell.lattice {
  background: rgba(34, 211, 238, 0.05);
  color: var(--lt-ink);
}
.lt-table .cell.platform.lattice {
  color: var(--lt-accent);
  font-style: normal;
  font-weight: 400;
}
.lt-table .cell .dim {
  color: var(--lt-ink-faint);
  font-style: italic;
}

/* ================================================================
   PRINCIPLES — big type statements
   ================================================================ */
.lt-principles {
  padding: 180px 0;
  position: relative;
}
.lt-principles-head {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.lt-principles-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 18px 0 0;
  max-width: 920px;
}
.lt-principles-head h2 em { font-style: italic; color: var(--lt-accent); }

.lt-principle-list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.lt-principle {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--lt-rule);
  align-items: baseline;
  transition: background 300ms ease;
}
.lt-principle:last-child { border-bottom: 1px solid var(--lt-rule); }
.lt-principle:hover {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.04), transparent);
}
.lt-principle .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lt-accent);
}
.lt-principle .big {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  color: var(--lt-ink);
  letter-spacing: -0.015em;
}
.lt-principle .big em { font-style: italic; color: var(--lt-accent); }
.lt-principle .big .slash {
  color: var(--lt-ink-faint);
  font-style: normal;
  margin: 0 8px;
}
.lt-principle .gloss {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lt-ink-mute);
  padding-top: 6px;
  max-width: 520px;
}

/* ================================================================
   GROWTH LOOP — circular diagram
   ================================================================ */
.lt-loop {
  padding: 160px 0;
  background: var(--lt-bg-2);
  border-top: 1px solid var(--lt-rule);
  border-bottom: 1px solid var(--lt-rule);
}
.lt-loop-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.lt-loop-grid h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 20px 0 28px;
  max-width: 520px;
}
.lt-loop-grid h2 em { font-style: italic; color: var(--lt-accent); }
.lt-loop-grid p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--lt-ink-mute);
  max-width: 480px;
  margin: 0 0 14px;
}

.lt-loop-diagram {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.lt-loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lt-loop-node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 130px;
}
.lt-loop-node .n-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--lt-accent);
}
.lt-loop-node .n-label {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--lt-ink);
  margin-top: 4px;
  line-height: 1.2;
}

/* ================================================================
   ROADMAP
   ================================================================ */
.lt-roadmap {
  padding: 160px 0;
}
.lt-roadmap-head {
  max-width: 1320px;
  margin: 0 auto 60px;
  padding: 0 48px;
}
.lt-roadmap-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 18px 0 0;
  max-width: 820px;
}
.lt-roadmap-head h2 em { font-style: italic; color: var(--lt-accent); }

.lt-rm-list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  border-top: 1px solid var(--lt-rule);
}
.lt-rm-item {
  display: grid;
  grid-template-columns: 120px 1fr 1.5fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--lt-rule);
  align-items: baseline;
}
.lt-rm-item .stage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lt-ink-mute);
}
.lt-rm-item .title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--lt-ink);
  letter-spacing: -0.005em;
}
.lt-rm-item .desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lt-ink-mute);
}
.lt-rm-item .state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
}
.lt-rm-item .state.done { color: var(--lt-accent); }
.lt-rm-item .state.active { color: var(--lt-bg); background: var(--lt-accent); border-color: var(--lt-accent); }
.lt-rm-item .state.next { color: var(--lt-ink-mute); }
.lt-rm-item .state.later { color: var(--lt-ink-faint); }

/* ================================================================
   RESERVE CTA
   ================================================================ */
.lt-cta {
  padding: 140px 0 180px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--lt-rule);
}
.lt-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(34, 211, 238, 0.09), transparent 70%);
  pointer-events: none;
}
.lt-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.lt-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--lt-ink);
  margin: 20px 0 28px;
  text-wrap: balance;
}
.lt-cta h2 em { font-style: italic; color: var(--lt-accent); }
.lt-cta p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--lt-ink-mute);
  max-width: 580px;
  margin: 0 auto 40px;
}

.lt-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--lt-rule-strong);
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(10px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.lt-form:focus-within {
  border-color: var(--lt-accent);
  box-shadow: 0 0 32px var(--lt-accent-glow);
}
.lt-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  color: var(--lt-ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.lt-form input::placeholder { color: var(--lt-ink-faint); }
.lt-form button {
  background: var(--lt-accent);
  color: var(--lt-bg);
  border: none;
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease;
}
.lt-form button:hover { background: var(--lt-ink); }

.lt-cta-meta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lt-ink-faint);
}
.lt-cta-meta .val { color: var(--lt-accent); }

/* ================================================================
   FOOTER recolor
   ================================================================ */
footer {
  background: var(--lt-bg);
  border-top: 1px solid var(--lt-rule);
  color: var(--lt-ink-mute);
}
footer .foot-brand img { filter: invert(0.95) brightness(1.1) contrast(0.9); }
footer .foot-brand .wordmark { color: var(--lt-ink); font-family: 'Instrument Serif', serif; font-weight: 400; }
footer .foot-brand p { color: var(--lt-ink-mute); }
footer .foot-col h4 { color: var(--lt-ink); font-family: 'Instrument Serif', serif; font-weight: 400; font-style: italic; }
footer .foot-col a { color: var(--lt-ink-mute); }
footer .foot-col a:hover { color: var(--lt-accent); }
footer .foot-bottom { border-top: 1px solid var(--lt-rule); color: var(--lt-ink-faint); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .lt-problem-head { grid-template-columns: 1fr; gap: 24px; }
  .lt-problem-stages { grid-template-columns: 1fr 1fr; }
  .lt-stage:nth-child(2) { border-right: none; }
  .lt-stage:nth-child(1), .lt-stage:nth-child(2) { border-bottom: 1px solid var(--lt-rule); }
  .lt-axes { grid-template-columns: 1fr 1fr; }
  .lt-axis { border-bottom: 1px solid var(--lt-rule); }
  .lt-axis:nth-child(2) { border-right: none; }
  .lt-table .row { grid-template-columns: 140px 1fr 1fr 1fr 1fr; }
  .lt-loop-grid { grid-template-columns: 1fr; gap: 48px; }
  .lt-principle { grid-template-columns: 60px 1fr; }
  .lt-principle .gloss { grid-column: 2; }
  .lt-rm-item { grid-template-columns: 100px 1fr auto; }
  .lt-rm-item .desc { grid-column: 1 / -1; }
  .lt-sig-phases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lt-wrap { padding: 0 24px; }
  .lt-problem-stages { grid-template-columns: 1fr; }
  .lt-stage { border-right: none !important; border-bottom: 1px solid var(--lt-rule); }
  .lt-stage:last-child { border-bottom: none; }
  .lt-axes { grid-template-columns: 1fr; }
  .lt-axis { border-right: none; }
  .lt-table { overflow-x: auto; }
  .lt-table .row { grid-template-columns: 120px repeat(4, minmax(160px, 1fr)); min-width: 720px; }
  .lt-hero-hud-top { left: 24px; right: 24px; top: 90px; flex-direction: column; gap: 14px; }
  .lt-hero-sys { text-align: left; }
  .lt-hero-title-block { left: 24px; right: 24px; top: 42%; }
  .lt-hero-cards { left: 24px; right: 24px; width: auto; top: auto; bottom: 180px; transform: none; }
  .ls-card { padding: 22px 24px; }
  .ls-card h3 { font-size: 26px; }
  .lt-hero-rail { left: 24px; right: 24px; bottom: 28px; }
  .lt-sig-overlay { padding: 80px 24px; }
  .lt-hud { right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-reveal { opacity: 1; transform: none; transition: none; }
  .lt-sig-stage { height: auto; }
  .lt-sig-pin { position: static; height: auto; min-height: 100vh; }
  .lt-hero-eyebrow .rule { animation: none; }
  .lt-hero-track { height: auto; }
  .lt-hero-pin { position: static; height: 100vh; }
  .ls-card { opacity: 1 !important; transform: none !important; position: relative; margin-bottom: 20px; }
  .lt-hero-cards { position: static; transform: none; width: 100%; padding: 40px 24px; }
}
