/* ============================================================
   PROJECT::CHIMERA — CYBERPUNK LANDING PAGE
   style.css
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg-deep: #050508;
  --bg-panel: rgba(8, 10, 18, 0.66);
  --bg-panel-solid: #080a12;

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.35);
  --pink: #ff003c;
  --green: #39ff14;
  --yellow: #ffe600;
  --silver: #9aa3b2;
  --white: #e8ecf1;

  --font-display: 'Orbitron', 'Noto Sans JP', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans JP', sans-serif;
  --font-mono: 'Share Tech Mono', 'Noto Sans JP', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --clip-hud: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 240, 255, 0.5) #06070d;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: transparent;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--cyan); color: #02040a; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #06070d; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan), var(--pink)); border-radius: 0; }

:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 3px; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10001;
  padding: 0.7rem 1.2rem;
  background: var(--cyan); color: #02040a;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-decoration: none; transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   GLOBAL CANVAS / CRT OVERLAYS
   ============================================================ */
#particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

.crt-overlay {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}
.crt-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55));
}

.scanline-move {
  position: fixed; left: 0; right: 0; top: -160px; height: 140px; z-index: 9500;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.025) 40%, rgba(0, 240, 255, 0.06) 50%, rgba(0, 240, 255, 0.025) 60%, transparent);
  animation: scanmove 8s linear infinite;
}
@keyframes scanmove { to { top: 110vh; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor-dot, #cursor-ring {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 99999;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
}
body.cursor-on #cursor-dot,
body.cursor-on #cursor-ring { display: block; opacity: 1; }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on input { cursor: none; }

#cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

#cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(0, 240, 255, 0.65);
  border-radius: 2px;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, border-radius 0.25s, opacity 0.3s;
}
#cursor-ring::before, #cursor-ring::after {
  content: ''; position: absolute; background: var(--cyan);
}
#cursor-ring::before { width: 9px; height: 1px; top: 50%; left: -6px; }
#cursor-ring::after { width: 1px; height: 9px; top: -6px; left: 50%; }

#cursor-ring.is-hover {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: var(--pink);
  border-radius: 50%;
}
#cursor-ring.is-hover::before, #cursor-ring.is-hover::after { background: var(--pink); }

/* ============================================================
   BOOT SEQUENCE
   ============================================================ */
#boot {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: #020207;
}
#boot.done { animation: bootOut 0.7s var(--ease) forwards; }
@keyframes bootOut {
  0% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 100% 0); opacity: 0.6; }
}

.boot-inner { width: min(560px, 88vw); }

.boot-logo {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.22em;
  color: var(--white); text-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
  margin-bottom: 1.4rem;
}
.boot-logo span { color: var(--cyan); }

.boot-log {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.9;
  color: #7fe9f5; min-height: 12.5em; white-space: pre-wrap;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
}

.boot-bar {
  height: 4px; margin-top: 1.2rem;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.boot-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.15s linear;
}

.boot-pct {
  margin-top: 0.6rem; text-align: right;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--cyan);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}
.nav.scrolled {
  padding: 0.6rem 0;
  background: rgba(4, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 240, 255, 0.15);
}

.nav-inner {
  width: min(1240px, 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.02rem;
  letter-spacing: 0.18em; text-decoration: none;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
  transition: text-shadow 0.3s;
}
.nav-logo:hover { text-shadow: 0 0 24px rgba(0, 240, 255, 0.95); }
.nav-logo-accent { color: var(--cyan); }

.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
  position: relative; padding: 0.35rem 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--silver); text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-links .nav-idx { color: var(--cyan); margin-right: 0.35em; font-size: 0.6rem; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: 0.9rem; }

.sound-toggle {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  color: var(--silver); padding: 0.45rem 0.8rem;
  border: 1px solid rgba(154, 163, 178, 0.35);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.sound-toggle .sound-state { color: var(--pink); margin-left: 0.45em; }
.sound-toggle:hover { color: var(--white); border-color: var(--cyan); }
.sound-toggle.on { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.35); }
.sound-toggle.on .sound-state { color: var(--green); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; padding: 8px 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.menu-toggle span {
  display: block; height: 2px; background: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- mobile menu --- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 990;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: rgba(2, 3, 8, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu-links { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu-links a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.2em; text-decoration: none; color: var(--white);
  transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
}
.mobile-menu-links a span {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan);
  display: block; margin-bottom: 0.2rem; letter-spacing: 0.3em;
}
.mobile-menu-links a:hover {
  color: var(--cyan); text-shadow: 0 0 18px rgba(0, 240, 255, 0.8);
  transform: translateX(6px);
}

.mobile-menu-foot {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--silver); opacity: 0.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6em; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.4rem;
  clip-path: var(--clip-hud);
  transition: background 0.25s, color 0.25s, box-shadow 0.3s, transform 0.2s;
}
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cyan); color: #02040a;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.45);
}
.btn-primary:hover { background: #7ff7ff; box-shadow: 0 0 46px rgba(0, 240, 255, 0.85); }

.btn-ghost {
  color: var(--cyan);
  border: 1px solid var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}
.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35), inset 0 0 18px rgba(0, 240, 255, 0.12);
}

.btn-pink {
  background: var(--pink); color: #fff;
  box-shadow: 0 0 26px rgba(255, 0, 60, 0.5);
}
.btn-pink:hover { background: #ff4d7a; box-shadow: 0 0 46px rgba(255, 0, 60, 0.9); }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 0 5rem; overflow: hidden;
}

/* orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb-w { position: absolute; }
.orb-wa { top: -8%; left: -6%; width: 44vw; height: 44vw; }
.orb-wb { bottom: -12%; right: -8%; width: 36vw; height: 36vw; }
.orb { width: 100%; height: 100%; border-radius: 50%; filter: blur(80px); animation: orbpulse 7s ease-in-out infinite alternate; }
.orb-a { background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 65%); }
.orb-b { background: radial-gradient(circle, rgba(255, 0, 60, 0.12), transparent 65%); animation-delay: -3.5s; }
@keyframes orbpulse { from { opacity: 0.55; } to { opacity: 1; } }

/* synthwave grid floor */
.grid-floor {
  position: absolute; z-index: 1;
  left: -50%; right: -50%; bottom: -18%; height: 62%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(340px) rotateX(62deg);
  animation: gridmove 2.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent 85%);
}
@keyframes gridmove { to { background-position: 0 44px; } }

.hero-vert {
  position: absolute; z-index: 1; right: clamp(0.8rem, 3vw, 2.4rem); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.65em;
  color: rgba(0, 240, 255, 0.4);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; text-align: center; width: min(900px, 92vw); }

.hero-status {
  font-family: var(--font-mono); font-size: clamp(0.6rem, 1.6vw, 0.74rem);
  letter-spacing: 0.18em; color: var(--silver);
  margin-bottom: 2rem;
}
.dot-live { color: var(--green); animation: blink 1.4s steps(1) infinite; text-shadow: 0 0 8px var(--green); }
@keyframes blink { 50% { opacity: 0.15; } }

.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 7.5vw, 5rem);
  letter-spacing: 0.04em; line-height: 1.18;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-family: var(--font-mono); font-size: clamp(0.66rem, 1.8vw, 0.85rem);
  letter-spacing: 0.32em; color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  margin-bottom: 1.8rem;
}

.hero-lead {
  color: var(--silver); font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500; line-height: 2.1;
  max-width: 620px; margin: 0 auto 2.6rem;
}

.hero-cta { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

.hero-decrypt {
  margin-top: 2.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--silver);
}
#decrypt { color: var(--pink); text-shadow: 0 0 10px rgba(255, 0, 60, 0.7); }

/* --- glitch text --- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0.85;
  pointer-events: none;
}
.hero-title .glitch {
  color: var(--white);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35), 0 0 46px rgba(0, 240, 255, 0.18);
}
.glitch::before {
  color: var(--cyan);
  animation: glitchA 3.2s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--pink);
  animation: glitchB 2.7s infinite linear alternate-reverse;
}
@keyframes glitchA {
  0%   { clip-path: inset(7%  0 82% 0); transform: translate(-4px, -2px); }
  10%  { clip-path: inset(12% 0 61% 0); transform: translate(3px, 1px); }
  20%  { clip-path: inset(54% 0 8%  0); transform: translate(-3px, 2px); }
  30%  { clip-path: inset(31% 0 45% 0); transform: translate(4px, -1px); }
  40%  { clip-path: inset(66% 0 12% 0); transform: translate(-2px, 2px); }
  50%  { clip-path: inset(18% 0 71% 0); transform: translate(3px, -2px); }
  60%  { clip-path: inset(44% 0 33% 0); transform: translate(-4px, 1px); }
  70%  { clip-path: inset(82% 0 4%  0); transform: translate(2px, 2px); }
  80%  { clip-path: inset(6%  0 88% 0); transform: translate(-3px, -1px); }
  90%  { clip-path: inset(37% 0 41% 0); transform: translate(4px, 2px); }
  100% { clip-path: inset(24% 0 58% 0); transform: translate(-2px, -2px); }
}
@keyframes glitchB {
  0%   { clip-path: inset(62% 0 11% 0); transform: translate(3px, 2px); }
  10%  { clip-path: inset(28% 0 55% 0); transform: translate(-4px, -1px); }
  20%  { clip-path: inset(9%  0 78% 0); transform: translate(2px, -2px); }
  30%  { clip-path: inset(71% 0 6%  0); transform: translate(-3px, 1px); }
  40%  { clip-path: inset(41% 0 39% 0); transform: translate(4px, 2px); }
  50%  { clip-path: inset(16% 0 67% 0); transform: translate(-2px, -2px); }
  60%  { clip-path: inset(85% 0 2%  0); transform: translate(3px, 1px); }
  70%  { clip-path: inset(33% 0 49% 0); transform: translate(-4px, -1px); }
  80%  { clip-path: inset(52% 0 27% 0); transform: translate(2px, 2px); }
  90%  { clip-path: inset(4%  0 84% 0); transform: translate(-3px, -2px); }
  100% { clip-path: inset(47% 0 35% 0); transform: translate(4px, 1px); }
}

/* --- HUD frame --- */
.hud-frame { position: absolute; inset: clamp(4.4rem, 8vh, 6rem) clamp(0.9rem, 3vw, 2.2rem) clamp(1.2rem, 4vh, 2.4rem); z-index: 1; pointer-events: none; }
.hud-c { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(0, 240, 255, 0.55); }
.hud-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hud-tag {
  position: absolute;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em;
  color: rgba(0, 240, 255, 0.5);
}
.hud-tag-l { bottom: 0.4rem; left: 2.4rem; }
.hud-tag-r { top: 0.4rem; right: 2.4rem; }

/* --- scroll hint --- */
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.4em;
  color: var(--cyan); text-decoration: none;
  transition: color 0.3s;
}
.scroll-hint:hover { color: var(--white); }
.scroll-hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  animation: hintdrop 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hintdrop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* --- boot entrance animations (JS gated) --- */
html.js .boot-anim {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js body.booted .boot-anim { opacity: 1; transform: none; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(4, 7, 13, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: tick 30s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.ticker-item {
  display: inline-block; padding: 0.85rem 0 0.85rem 2rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--silver);
}
.ticker-item::after { content: '▮'; color: var(--cyan); margin-left: 2rem; opacity: 0.7; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  position: relative; z-index: 1;
  padding: clamp(5rem, 12vh, 8.5rem) 0;
  background: rgba(4, 6, 11, 0.72);
  border-bottom: 1px solid rgba(0, 240, 255, 0.07);
}

.section-inner { width: min(1160px, 92%); margin-inline: auto; }
.section-inner--narrow { width: min(760px, 92%); text-align: center; }

.section-head { margin-bottom: clamp(2.6rem, 6vh, 4rem); }

.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em;
  color: var(--cyan); margin-bottom: 0.9rem;
}
.section-no { color: var(--pink); margin-right: 0.6em; }

.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  letter-spacing: 0.05em; line-height: 1.3;
}
.accent-pink { color: var(--pink); text-shadow: 0 0 22px rgba(255, 0, 60, 0.55); }
.accent-dim { color: rgba(154, 163, 178, 0.55); font-weight: 500; margin: 0 0.15em; }

.section-line {
  width: 88px; height: 3px; margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.section-line--pink { background: linear-gradient(90deg, var(--pink), transparent); box-shadow: 0 0 10px rgba(255, 0, 60, 0.5); margin-inline: auto; }

/* --- scroll reveal (JS gated) --- */
html.js .reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.18s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.28s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.38s; }

/* ============================================================
   SEC.02 GENESIS
   ============================================================ */
.genesis-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

.genesis-text p {
  color: var(--silver); font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  font-weight: 500; line-height: 2.15; margin-bottom: 1.6rem;
}
.hl-cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.45); }
.hl-pink { color: var(--pink); text-shadow: 0 0 10px rgba(255, 0, 60, 0.45); }

.genesis-final {
  font-family: var(--font-mono); font-size: 0.82rem !important; letter-spacing: 0.12em;
  color: var(--yellow) !important;
  border-left: 3px solid var(--yellow);
  padding: 0.7rem 1.1rem;
  background: rgba(255, 230, 0, 0.05);
}

/* --- terminal --- */
.terminal {
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(2, 4, 10, 0.88);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), inset 0 0 60px rgba(0, 240, 255, 0.03);
  clip-path: var(--clip-hud);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.04);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #ff5f56; box-shadow: 0 0 6px #ff5f56; }
.t-yellow { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e; }
.t-green { background: #27c93f; box-shadow: 0 0 6px #27c93f; }
.terminal-title {
  margin-left: 0.7rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--silver);
}
.terminal-body {
  min-height: 16.5rem;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 2;
  color: #8fe8f5; white-space: pre-wrap;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}
.terminal-body .tl { display: block; }
.terminal-body .tl-pink { color: var(--pink); text-shadow: 0 0 8px rgba(255, 0, 60, 0.5); }
.terminal-body .tl-green { color: var(--green); }
.t-cursor { animation: blink 1s steps(1) infinite; color: var(--cyan); }

/* --- stats --- */
.stats {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.stat {
  position: relative;
  padding: 1.6rem 1.2rem; text-align: center;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: var(--bg-panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: var(--clip-hud);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.stat:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.18);
  transform: translateY(-4px);
}
.stat-value {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: var(--white);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}
.stat-unit { font-size: 0.55em; color: var(--cyan); margin-left: 0.3em; letter-spacing: 0.1em; }
.stat-label {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--silver);
}

/* ============================================================
   SEC.03 MODULES
   ============================================================ */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.module-card {
  position: relative;
  padding: 2.2rem 1.7rem 1.6rem;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: var(--bg-panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.module-card::before, .module-card::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  opacity: 0; transition: opacity 0.35s;
}
.module-card::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.module-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.module-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 240, 255, 0.16);
  background: rgba(8, 12, 22, 0.85);
}
.module-card:hover::before, .module-card:hover::after { opacity: 1; }

.module-card > * { position: relative; z-index: 1; }

.module-id {
  position: absolute; top: 1rem; right: 1.1rem; z-index: 1;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  color: rgba(0, 240, 255, 0.55);
}

.module-icon {
  width: 52px; height: 52px; margin-bottom: 1.3rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
  transition: color 0.3s, transform 0.35s var(--ease), filter 0.3s;
}
.module-card:hover .module-icon {
  color: var(--pink);
  filter: drop-shadow(0 0 10px rgba(255, 0, 60, 0.6));
  transform: rotate(-6deg) scale(1.08);
}

.module-title {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.18rem; letter-spacing: 0.04em; line-height: 1.5;
  margin-bottom: 0.8rem;
}
.module-title span {
  display: block;
  font-family: var(--font-mono); font-weight: 400; font-size: 0.66rem;
  letter-spacing: 0.18em; color: var(--cyan); margin-top: 0.25rem;
}

.module-desc {
  color: var(--silver); font-size: 0.92rem; font-weight: 500;
  line-height: 1.95; margin-bottom: 1.4rem; min-height: 5.5em;
}

.module-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--silver);
}
.module-status { color: var(--green); text-shadow: 0 0 8px rgba(57, 255, 20, 0.5); animation: blink 2.2s steps(1) infinite; }

/* ============================================================
   SEC.04 DEEP_LOG
   ============================================================ */
.deeplog-grid {
  display: grid; grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.4rem, 6vw, 4.5rem); align-items: center;
}

.core-viz {
  position: relative; aspect-ratio: 1;
  display: grid; place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.12);
  background:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  clip-path: var(--clip-hud);
}

.core-cam, .core-coord {
  position: absolute;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em;
  color: rgba(0, 240, 255, 0.65);
}
.core-cam { top: 0.9rem; left: 1.1rem; }
.core-coord { bottom: 0.9rem; right: 1.1rem; color: rgba(255, 0, 60, 0.6); }
.rec {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px var(--pink);
  margin-left: 0.4em; animation: blink 1.2s steps(1) infinite;
}

.ring { position: absolute; border-radius: 50%; }
.ring-1 { width: 84%; aspect-ratio: 1; border: 1px dashed rgba(0, 240, 255, 0.35); animation: spin 26s linear infinite; }
.ring-2 { width: 62%; aspect-ratio: 1; border: 1px solid rgba(255, 0, 60, 0.3); animation: spin 17s linear infinite reverse; }
.ring-3 { width: 42%; aspect-ratio: 1; border: 1px dashed rgba(57, 255, 20, 0.3); animation: spin 11s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
}
.od-cyan { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.od-pink { background: var(--pink); box-shadow: 0 0 12px var(--pink); width: 6px; height: 6px; top: -3px; }
.od-green { background: var(--green); box-shadow: 0 0 12px var(--green); width: 5px; height: 5px; top: -2.5px; }

.core-cross { position: absolute; inset: 0; }
.core-cross::before, .core-cross::after {
  content: ''; position: absolute; background: rgba(0, 240, 255, 0.1);
}
.core-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.core-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.core-center {
  width: 21%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #cffaff, var(--cyan) 38%, rgba(0, 240, 255, 0) 72%);
  box-shadow: 0 0 70px rgba(0, 240, 255, 0.6);
  animation: corepulse 2.6s ease-in-out infinite;
}
@keyframes corepulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.14); opacity: 0.75; }
}

/* --- spec panel --- */
.spec-panel {
  padding: 1.8rem 1.8rem 1.5rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--bg-panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: var(--clip-hud);
}
.spec-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.spec-panel-title {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--cyan); text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.spec-panel-tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--pink); border: 1px solid rgba(255, 0, 60, 0.4);
  padding: 0.2rem 0.55rem;
}

.spec-row {
  display: grid; grid-template-columns: 150px 1fr 86px;
  gap: 1.1rem; align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.1);
}
.spec-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--silver); }
.spec-value { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--white); text-align: right; }

.spec-bar { height: 6px; background: rgba(0, 240, 255, 0.1); overflow: hidden; }
.spec-bar i {
  display: block; height: 100%; width: 0;
  transition: width 1.6s var(--ease) 0.25s;
}
html.js .reveal.is-visible .spec-bar i { width: var(--w, 0%); }
.st-cyan { background: linear-gradient(90deg, rgba(0, 240, 255, 0.4), var(--cyan)); box-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
.st-green { background: linear-gradient(90deg, rgba(57, 255, 20, 0.4), var(--green)); box-shadow: 0 0 10px rgba(57, 255, 20, 0.6); }
.st-pink { background: linear-gradient(90deg, rgba(255, 0, 60, 0.4), var(--pink)); box-shadow: 0 0 10px rgba(255, 0, 60, 0.6); }

.spec-readout { margin-top: 1.5rem; }
.spec-readout p {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--silver); line-height: 2.1;
}
.rd { color: var(--green); margin-right: 0.5em; text-shadow: 0 0 6px rgba(57, 255, 20, 0.5); }

/* ============================================================
   SEC.05 PROTOCOL / TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
  content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.6) 15%, rgba(255, 0, 60, 0.6) 85%, transparent);
}

.phase {
  display: grid; grid-template-columns: 40px 1fr; gap: 1.3rem;
  padding-bottom: 2rem;
}
.phase:last-child { padding-bottom: 0; }

.phase-marker { display: flex; justify-content: center; }
.phase-dot {
  width: 12px; height: 12px; margin-top: 1.5rem;
  background: var(--bg-deep);
  border: 2px solid var(--cyan); border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}
.pd-active { animation: dotpulse 1.6s ease-in-out infinite; }
@keyframes dotpulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 240, 255, 0.6); }
  50% { box-shadow: 0 0 22px rgba(0, 240, 255, 1); }
}
.pd-queued { border-color: var(--silver); box-shadow: none; }
.pd-redacted { border-color: var(--pink); border-radius: 0; transform: rotate(45deg); box-shadow: 0 0 12px rgba(255, 0, 60, 0.7); }

.phase-card {
  position: relative;
  padding: 1.5rem 1.7rem 1.3rem;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: var(--bg-panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: var(--clip-hud);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.phase-card:hover {
  transform: translateX(8px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: -8px 0 30px rgba(0, 240, 255, 0.12);
}

.phase-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.9rem;
}
.phase-id {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.24em; color: var(--cyan);
}
.phase-status {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  padding: 0.28rem 0.6rem; border: 1px solid;
}
.st-complete { color: var(--green); border-color: rgba(57, 255, 20, 0.5); text-shadow: 0 0 8px rgba(57, 255, 20, 0.5); }
.st-active { color: var(--cyan); border-color: rgba(0, 240, 255, 0.5); animation: blink 1.8s steps(1) infinite; }
.st-queued { color: var(--silver); border-color: rgba(154, 163, 178, 0.4); }
.st-redacted { color: var(--pink); border-color: rgba(255, 0, 60, 0.5); animation: blink 1.1s steps(1) infinite; }

.phase-title {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.phase-desc {
  color: var(--silver); font-size: 0.92rem; font-weight: 500;
  line-height: 2; margin-bottom: 1rem;
}
.phase-desc--blur { filter: blur(3px); user-select: none; -webkit-user-select: none; }
.phase-card--redacted:hover .phase-desc--blur { filter: blur(5px); }

.phase-date {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  color: rgba(0, 240, 255, 0.6);
}

/* ============================================================
   SEC.06 ACCESS / FINAL CTA
   ============================================================ */
.section-access {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 0, 60, 0.14), transparent 55%),
    rgba(4, 6, 11, 0.85);
  border-bottom: 1px solid rgba(255, 0, 60, 0.15);
}

.section-title--pink {
  color: var(--white);
}
.section-title--pink .glitch {
  text-shadow: 0 0 20px rgba(255, 0, 60, 0.4), 0 0 50px rgba(255, 0, 60, 0.2);
}

.access-lead {
  color: var(--silver); font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 500; line-height: 2.1;
}

.countdown {
  display: flex; justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin: 2.8rem 0;
}
.cd-block {
  min-width: clamp(70px, 13vw, 118px);
  padding: 1.1rem 0.6rem 0.9rem;
  text-align: center;
  background: rgba(10, 8, 18, 0.7);
  border: 1px solid rgba(255, 0, 60, 0.3);
  clip-path: var(--clip-hud);
}
.cd-num {
  display: block;
  font-family: var(--font-mono); font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--white); line-height: 1.1;
  text-shadow: 0 0 18px rgba(255, 0, 60, 0.75);
}
.cd-label {
  display: block; margin-top: 0.5rem;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.32em;
  color: var(--pink);
}

.access-form {
  display: flex; justify-content: center; align-items: stretch;
  gap: 0.9rem; flex-wrap: wrap;
}
.access-form input {
  flex: 1 1 280px;
  padding: 1rem 1.3rem;
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid rgba(255, 0, 60, 0.35);
  color: var(--white);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em;
  clip-path: var(--clip-hud);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.access-form input::placeholder { color: #565e6e; }
.access-form input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.35);
}
.access-form input[disabled] { opacity: 0.5; }

.access-note {
  margin-top: 1.6rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  color: #6b7382;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  padding: 2.6rem 0;
  background: rgba(2, 3, 7, 0.92);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}
.footer-inner {
  width: min(1160px, 92%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.6rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.footer-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem;
  letter-spacing: 0.18em; text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.footer-logo span { color: var(--cyan); }
.footer-copy {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--silver);
}
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  color: var(--silver); text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.footer-links a:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.7); }
.footer-meta {
  display: flex; align-items: center; gap: 1.4rem;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em;
  color: #565e6e;
}
.barcode {
  width: 110px; height: 24px;
  background: repeating-linear-gradient(90deg,
    var(--white) 0 2px, transparent 2px 4px,
    var(--white) 4px 5px, transparent 5px 9px,
    var(--white) 9px 12px, transparent 12px 14px,
    var(--white) 14px 15px, transparent 15px 18px);
  opacity: 0.45;
}

/* ============================================================
   TOASTS
   ============================================================ */
.toasts {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 9600;
  display: flex; flex-direction: column; gap: 0.7rem;
  pointer-events: none;
}
.toast {
  max-width: min(360px, 84vw);
  padding: 0.85rem 1.2rem;
  background: rgba(3, 5, 10, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.18);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--white); line-height: 1.8;
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: rgba(57, 255, 20, 0.5); border-left-color: var(--green); box-shadow: 0 0 24px rgba(57, 255, 20, 0.18); }
.toast-error { border-color: rgba(255, 0, 60, 0.55); border-left-color: var(--pink); box-shadow: 0 0 24px rgba(255, 0, 60, 0.22); }

/* ============================================================
   OVERDRIVE (EASTER EGG)
   ============================================================ */
body.overdrive { animation: huerotate 2.8s linear infinite; }
@keyframes huerotate { to { filter: hue-rotate(360deg); } }
body.overdrive .glitch::before { animation-duration: 0.45s; }
body.overdrive .glitch::after { animation-duration: 0.38s; }
body.overdrive .grid-floor { animation-duration: 0.7s; }

/* ============================================================
   PER-SECTION ACCENTS
   ============================================================ */
.section-genesis {
  background: radial-gradient(ellipse at 80% 0%, rgba(0, 240, 255, 0.05), transparent 50%), rgba(4, 6, 11, 0.72);
}
.section-modules {
  background: radial-gradient(ellipse at 15% 20%, rgba(255, 0, 60, 0.04), transparent 45%), rgba(4, 6, 11, 0.72);
}
.section-deeplog {
  background: radial-gradient(ellipse at 85% 80%, rgba(57, 255, 20, 0.035), transparent 45%), rgba(4, 6, 11, 0.72);
}
.section-protocol {
  background: radial-gradient(ellipse at 20% 90%, rgba(0, 240, 255, 0.05), transparent 50%), rgba(4, 6, 11, 0.72);
}

/* pink glitch variant (final CTA) */
.glitch-pink::before { color: var(--pink); }
.glitch-pink::after { color: var(--cyan); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .genesis-grid, .deeplog-grid { grid-template-columns: 1fr; }
  .core-viz { max-width: 400px; margin-inline: auto; width: 100%; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-vert { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: min(320px, 82vw); }
  .spec-row { grid-template-columns: 110px 1fr; }
  .spec-value { grid-column: 2; text-align: left; }
  .phase { grid-template-columns: 26px 1fr; gap: 0.8rem; }
  .timeline::before { left: 12px; }
  .phase-card { padding: 1.2rem 1.1rem 1rem; }
  .terminal-body { min-height: 14rem; font-size: 0.68rem; }
  .hud-tag { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none !important; }
  #particles { display: none; }
}
