/* ─── tokens ─────────────────────────────────────────── */
:root {
  --bg: #05070a;
  --bg-1: #0a0d12;
  --ink: #fbf5e8;
  --ink-dim: rgba(251, 245, 232, 0.58);
  --ink-faint: rgba(251, 245, 232, 0.28);
  --ink-ghost: rgba(251, 245, 232, 0.10);
  --warm: #ffe9bd;
  --warm-soft: #fff4dc;
  --green: #7fdc8a;
  --line: rgba(251, 245, 232, 0.16);
  --line-strong: rgba(251, 245, 232, 0.34);

  --font-pixel: "VT323", ui-monospace, "SF Mono", Menlo, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(28px, 5vw, 80px);
  --nav-h: 72px;
  --ease-damp: cubic-bezier(.22, .9, .28, 1);
  --ease-page: cubic-bezier(.65, 0, .35, 1);
  --page-duration: 960ms;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  /* Hard snap keeps each wheel / swipe resting on a full-screen scene. */
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
html.is-paging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.page-home {
  height: 100vh;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--warm); color: var(--bg); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  z-index: 1000;
}

/* ─── nav ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.78) 0%, rgba(5, 7, 10, 0) 100%);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }

.brand {
  font-family: var(--font-pixel);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand-dot { color: var(--warm); }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links[hidden] { display: none; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--warm);
  transition: right 0.4s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-num {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink-faint);
}

/* ─── scenes (scroll-snap, one viewport each) ────────── */
.scenes {
  position: relative;
}
.page-home .scenes {
  height: 100vh;
  overflow: hidden;
}
.scene {
  /* Each scene is its own discrete 100vh page. The browser snaps to start
     so the user wheel/swipe = exactly one page transition, with smooth
     easing supplying the damped pull-up feel. */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--pad-x) clamp(40px, 5vh, 60px);
  border-top: 1px solid transparent;
}
.scene[hidden] { display: none !important; }

.page-home .scene {
  position: absolute;
  inset: 0;
  border-top: 0;
  transition: transform var(--page-duration) var(--ease-page);
  will-change: transform;
}
.page-home .scene-hero { transform: translateY(0); }
.page-home .scene-cta { transform: translateY(100%); }
body[data-logical-page="2"] .scene-hero { transform: translateY(-100%); }
body[data-logical-page="2"] .scene-cta { transform: translateY(0); }

/* Subtle hairline between scenes for clear discrete-page feel. */
.scene + .scene {
  border-top-color: var(--line);
}

/* ─── intro animations (IntersectionObserver-triggered) ─

   When a scene scrolls into view, JS adds .is-revealed; that flips the
   transition window on all [data-anim] children. Each child's delay /
   duration is driven by its data-start / data-span (in units of seconds,
   tuned to feel staggered without dragging on too long). */
[data-anim] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--anim-span, 0.7s) var(--ease-damp) var(--anim-delay, 0s),
    transform var(--anim-span, 0.7s) var(--ease-damp) var(--anim-delay, 0s);
  will-change: opacity, transform;
}
.scene.is-revealed [data-anim] {
  opacity: 1;
  transform: none;
}

/* ─── singularity intro flash ────────────────────────── */
.singularity-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 248, 224, 0.92) 0%,
      rgba(255, 226, 168, 0.55) 6%,
      rgba(255, 196, 124, 0.18) 18%,
      rgba(255, 170, 90, 0) 38%);
  mix-blend-mode: screen;
}
.scene-hero.is-intro .lumi-stage { opacity: 0; }

/* ─── symbol field ──────────────────────────────────── */
.symbol-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.55;
}
.symbol-field--fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
}
.sym {
  position: absolute;
  font-family: "JetBrains Mono", "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", monospace;
  color: rgba(255, 233, 189, 0.78);
  text-shadow:
    0 0 10px rgba(255, 215, 140, 0.32),
    0 0 24px rgba(255, 215, 140, 0.14);
  user-select: none;
  will-change: transform, opacity;
  line-height: 1;
  transform: translate3d(0, 0, 0);
}

.scene > .symbol-field { z-index: 0; }
.scene > .halftone { z-index: 0; }
.scene > .hero-grid { z-index: 2; }
.scene > .scroll-hint,
.scene > .cta-stage,
.scene > .footer-stage,
.scene > .fb-stage,
.scene > .fb-bar { position: relative; z-index: 2; }

.page-sub > .symbol-field { z-index: 0; }
.page-sub > .site-nav,
.page-sub > .sub-hero,
.page-sub > .sub-body,
.page-sub > .site-footer { position: relative; z-index: 1; }

/* ─── scene 1 · HERO ─────────────────────────────────── */
.scene-hero {
  padding-bottom: 0;
  padding-top: 0;
}
.halftone {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(251, 245, 232, 0.18) 1px, transparent 1.4px),
    radial-gradient(rgba(251, 245, 232, 0.08) 1px, transparent 1.4px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3.5px 6.5px;
  opacity: 0.65;
  -webkit-mask: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 0%, transparent 32%, #000 80%);
          mask: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 0%, transparent 32%, #000 80%);
  pointer-events: none;
}

/* ─── single morphing orb ─────────────────────────────

   One <canvas> lives in a body-level .orb-anchor. Its size, position
   and rotation are determined by body[data-active-scene]; CSS transitions
   handle the morph between scenes so the orb appears to glide from the
   hero center → the CTA's bottom-left corner → off-screen by the footer. */
.orb-anchor {
  position: fixed;
  /* default: scene 1 (hero) — centered, full size */
  left: 50vw;
  top: 50vh;
  width: clamp(280px, 36vw, 480px);
  height: clamp(280px, 36vw, 480px);
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 1;
  pointer-events: none;
  filter:
    drop-shadow(0 0 80px rgba(255, 233, 189, 0.32))
    drop-shadow(0 0 200px rgba(255, 215, 140, 0.18));
  transition:
    width  var(--page-duration) var(--ease-page),
    height var(--page-duration) var(--ease-page),
    left   var(--page-duration) var(--ease-page),
    top    var(--page-duration) var(--ease-page),
    transform var(--page-duration) var(--ease-page),
    opacity var(--page-duration) var(--ease-page);
  will-change: left, top, width, height, transform, opacity;
  contain: layout paint;
  -webkit-mask: radial-gradient(circle at center,
    #000 0%, #000 49%, transparent 51%);
          mask: radial-gradient(circle at center,
    #000 0%, #000 49%, transparent 51%);
}
.orb-anchor .pixel-orb {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pixel-orb {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* While the singularity intro is playing the orb is hidden — the JS
   intro orchestrator then fades it back in at the FLASH moment. */
body.is-intro .orb-anchor { opacity: 0; }

/* Scene 2 (CTA): bottom-left corner, slightly tilted, smaller. */
body[data-active-scene="2"] .orb-anchor {
  left: clamp(2vw, 4vw, 6vw);
  top: 92vh;
  width: clamp(240px, 30vw, 400px);
  height: clamp(240px, 30vw, 400px);
  transform: translate(-50%, -50%) rotate(-12deg);
}

body[data-active-scene="3"] .orb-anchor {
  left: 106vw;
  top: 50vh;
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
  transform: translate(-50%, -50%) rotate(18deg);
  opacity: 0;
}


.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: calc(var(--nav-h) + 36px) var(--pad-x) clamp(72px, 10vh, 110px);
  pointer-events: none;
}
.hero-cell { display: flex; flex-direction: column; justify-content: flex-start; }
.hero-cell--tl { grid-column: 1; grid-row: 1; align-items: flex-start; justify-content: flex-start; }
.hero-cell--br { grid-column: 2; grid-row: 2; align-items: flex-end;   justify-content: flex-end;   text-align: right; }

.wordmark { margin: 0; font-weight: 400; display: flex; flex-direction: column; gap: 6px; }
.wm-en {
  font-family: var(--font-pixel);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
  min-height: 1em;
}
.wm-tag {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--warm);
  min-height: 1em;
}

.slogan { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 400; }
.sl-en {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  min-height: 1em;
}
.sl-en--2 { color: var(--warm); }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 36px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  pointer-events: none;
}
.sh-glyph { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.sh-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ─── scene 2 · CTA (corner orb + 3 buttons) ─────────── */
.scene-cta {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vh, 36px);
  padding: 0 var(--pad-x);
  max-width: 1280px;
}

.cta-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--warm);
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 14px);
}

.pixel-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.6vw, 12px);
  padding: clamp(14px, 1.8vh, 22px) clamp(20px, 2.4vw, 36px);
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(4px);
  font-family: var(--font-pixel);
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.pixel-btn::before,
.pixel-btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink-faint);
  transition: border-color 0.3s ease;
}
.pixel-btn::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.pixel-btn::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.pixel-btn:hover {
  background: var(--warm);
  color: var(--bg);
  border-color: var(--warm);
  transform: translateY(-2px);
}
.pixel-btn:hover::before,
.pixel-btn:hover::after { border-color: var(--bg); }

.pb-pre,
.pb-post,
.pb-bracket { color: var(--ink-faint); transition: color 0.3s ease; }
.pixel-btn:hover .pb-pre,
.pixel-btn:hover .pb-post,
.pixel-btn:hover .pb-bracket { color: var(--bg); }

.pixel-btn--featured {
  color: var(--warm);
  border-color: var(--warm);
  background: rgba(255, 233, 189, 0.06);
}
.pixel-btn--featured::before,
.pixel-btn--featured::after { border-color: var(--warm); }
.pixel-btn--featured .pb-bracket { color: var(--warm); }
.pixel-btn--featured:hover {
  background: var(--warm);
  color: var(--bg);
  border-color: var(--warm);
}

.live-build-popover {
  position: relative;
  z-index: 40;
  width: auto;
  display: flex;
  justify-content: center;
}

.live-build-trigger {
  width: auto;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: color 0.28s ease, transform 0.28s ease;
}
.live-build-trigger:hover {
  color: var(--warm);
  transform: translateY(-1px);
}
.live-build-trigger:focus-visible {
  outline: 1px solid var(--warm);
  outline-offset: 5px;
}
.live-build-trigger__label {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 189, 0.025);
  transition: border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}
.live-build-trigger:hover .live-build-trigger__label,
.live-build-trigger:focus-visible .live-build-trigger__label {
  border-color: rgba(255, 233, 189, 0.52);
  background: rgba(255, 233, 189, 0.06);
  color: var(--warm);
}
.live-build-trigger__arrow {
  color: var(--warm);
  font-size: 12px;
  line-height: 0;
}

.live-build-card[hidden] { display: none !important; }
.live-build-card {
  position: fixed;
  top: 44%;
  left: 50%;
  z-index: 220;
  width: min(460px, 88vw);
  padding: 0;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 233, 189, 0.07), rgba(255, 233, 189, 0.015) 44%, transparent),
    rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(10px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 233, 189, 0.08);
  opacity: 0;
  transform: translate(-50%, calc(-50% - 10px)) scale(0.985);
  text-align: left;
  transition: opacity 0.24s ease, transform 0.24s var(--ease-damp);
}
.live-build-card.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.live-build-card::before,
.live-build-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--warm);
  pointer-events: none;
}
.live-build-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.live-build-card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.live-build-card__top {
  min-height: 46px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.live-build-card__close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 233, 189, 0.04);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.live-build-card__close:hover,
.live-build-card__close:focus-visible {
  color: var(--bg);
  border-color: var(--warm);
  background: var(--warm);
}
.live-build-card__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.30em;
  color: var(--warm);
}
.live-build-card__body {
  padding: 20px 24px 0;
}
.live-build-card__copy {
  margin: 0;
  max-width: 360px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink);
}
.live-build-card__copy + .live-build-card__copy { margin-top: 6px; }
.live-build-card__copy--dim { color: var(--ink-dim); }
.live-build-card__action {
  margin: 22px 24px 24px;
  width: calc(100% - 48px);
  min-height: 42px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--warm);
  background: rgba(255, 233, 189, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-pixel);
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--warm);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.live-build-card__action:hover,
.live-build-card__action:focus-visible {
  background: var(--warm);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ─── scene 3 · footer ───────────────────────────────── */
.scene-footer {
  justify-content: center;
  background: var(--bg);
}
.footer-stage {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(34px, 6vh, 64px);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
}
.footer-kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--warm);
}
.footer-mark h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}
.footer-mark p {
  margin: 20px 0 0;
  max-width: 42ch;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  color: var(--ink-dim);
}
.footer-panel {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover {
  color: var(--warm);
  border-color: var(--line-strong);
}
.footer-link span {
  color: var(--ink-dim);
}
.footer-link strong {
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.dot--green {
  color: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-dim);
}
.footer-bottom .dot {
  margin-right: 8px;
  vertical-align: 1px;
}

/* ─── sub pages (unchanged scroll docs) ──────────────── */
.page-sub {
  padding-top: 84px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
.page-sub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(251, 245, 232, 0.07) 1px, transparent 1.2px);
  background-size: 9px 9px;
  opacity: 0.5;
  -webkit-mask: radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0%, #000 80%);
          mask: radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0%, #000 80%);
  pointer-events: none;
}
.page-sub > * { position: relative; z-index: 1; }

.sub-hero {
  padding: clamp(44px, 7vh, 88px) var(--pad-x) clamp(36px, 5vh, 64px);
  border-bottom: 1px solid var(--line);
}
.sub-crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.sub-crumb a { color: var(--ink-dim); transition: color 0.3s ease; }
.sub-crumb a:hover { color: var(--warm); }
.sub-crumb .crumb-sep { margin: 0 10px; color: var(--ink-faint); }

.sub-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--warm);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sub-title {
  margin: 0 0 18px;
  font-family: var(--font-pixel);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.sub-lead {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--ink-dim);
}
.sub-lead strong { color: var(--ink); font-weight: 700; }

.sub-body {
  padding: clamp(40px, 6vh, 80px) var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}

.sub-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid var(--line);
}
.sub-section:first-child { border-top: 0; padding-top: 0; }

.sub-section-head { position: sticky; top: 104px; align-self: start; }
.sub-section-num {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--ink-faint);
  line-height: 1;
}
.sub-section-key {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--warm);
  text-transform: uppercase;
}

.sub-section-body h3 {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.sub-section-body p {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  max-width: 64ch;
}
.sub-section-body p strong { color: var(--ink); font-weight: 700; }

.sub-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sub-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-dim);
}
.sub-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--warm);
  font-family: var(--font-pixel);
  font-size: 18px;
}
.sub-list li strong { color: var(--ink); font-weight: 700; }

.sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.sub-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(251, 245, 232, 0.015) 0%, transparent 100%);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.sub-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 233, 189, 0.04) 0%, transparent 100%);
  transform: translateY(-2px);
}
.sub-card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sub-card-title {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.sub-card-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.kv-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 24px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.kv-grid dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 4px;
}
.kv-grid dd {
  margin: 0;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-ghost);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.cta:hover { background: var(--warm); border-color: var(--warm); color: var(--bg); }
.cta--ghost { border-color: var(--line); color: var(--ink-dim); }
.cta--ghost:hover { background: transparent; border-color: var(--warm); color: var(--warm); }

.site-footer {
  padding: clamp(40px, 6vh, 64px) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot-row + .foot-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.foot-link { color: var(--ink-dim); transition: color 0.3s ease; }
.foot-link:hover { color: var(--warm); }
.foot-meta { letter-spacing: 0.24em; }
.foot-copy { letter-spacing: 0.16em; }
.foot-mark {
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
}

/* ─── responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { gap: 14px; }
  .nav-num { display: none; }
  .nav-links a { font-size: 11px; }
  .cta-row { flex-direction: column; gap: 12px; }
  .pixel-btn { font-size: 28px; padding: 18px 26px; }
  body[data-active-scene="2"] .orb-anchor {
    left: 2vw;
    top: 96vh;
    width: 56vw;
    height: 56vw;
  }
  body[data-active-scene="3"] .orb-anchor {
    left: 116vw;
    top: 60vh;
    width: 54vw;
    height: 54vw;
  }
  .footer-main { grid-template-columns: 1fr; align-items: start; }
  .footer-panel { max-width: 620px; }
  .sub-section { grid-template-columns: 1fr; gap: 18px; }
  .sub-section-head { position: static; }
  .kv-grid { grid-template-columns: 1fr; gap: 4px; }
  .kv-grid dd { padding-bottom: 12px; margin-bottom: 4px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .site-nav { padding: 14px 22px; }
  .brand { font-size: 20px; }

  html { scroll-snap-type: y mandatory; }

  .scene { min-height: 100svh; padding: 84px 22px 60px; }
  .scene-hero { padding: 0; }
  .hero-grid {
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    padding: 84px 22px 60px;
    gap: 16px;
  }
  .hero-cell--tl { grid-column: 1; grid-row: 1; }
  .hero-cell--br { grid-column: 1; grid-row: 3; }
  .orb-anchor { width: 70vw; height: 70vw; }
  .footer-stage { gap: 32px; }
  .footer-mark h2 { font-size: clamp(36px, 11vw, 48px); }
  .footer-mark p { font-size: 13px; }
  .footer-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .footer-link strong { text-align: left; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}

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