/* ============================================================
   AEROCORTEX (ACx) — The Bat Brain Connectome Project
   Dark EM-laboratory theme · zero dependencies
   ============================================================ */

:root {
  --bg: #07090d;
  --bg-2: #0a0d13;
  --panel: #0d1118;
  --panel-2: #121826;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #e6edf3;
  --muted: #8b98a9;
  --faint: #5c6b7d;
  --accent: #43e8b8;
  --accent-dim: #2a9d8f;
  --accent-ink: #04211a;
  --amber: #ffb454;
  --red: #ff6b6b;
  --blue: #6ea8ff;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, ui-monospace, monospace;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle EM-film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: rgba(67, 232, 184, .3); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
code { font-family: var(--mono); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-accent {
  background: linear-gradient(135deg, #4dffcc, #2fbf9c);
  color: var(--accent-ink);
  box-shadow: 0 0 24px rgba(67, 232, 184, .25);
}
.btn-accent:hover { box-shadow: 0 0 36px rgba(67, 232, 184, .45); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(148, 163, 184, .06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------------- topbar ---------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.topbar.scrolled {
  background: rgba(7, 9, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .4px; }
.brand-dot { color: var(--accent); }
.brand-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.social-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.social-x svg { width: 15px; height: 15px; fill: var(--muted); transition: fill .18s ease; }
.social-x:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(67, 232, 184, .3); transform: translateY(-1px); }
.social-x:hover svg { fill: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 12%, rgba(67, 232, 184, .09), transparent 60%),
    radial-gradient(900px 700px at 12% 88%, rgba(110, 168, 255, .06), transparent 60%),
    var(--bg);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 24px 120px;
  width: 100%;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(67, 232, 184, .35);
  background: rgba(67, 232, 184, .07);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 7.2vw, 86px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--blue) 60%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 26px 0 34px;
  font-size: 17.5px;
  color: var(--muted);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- contract address ---------------- */
.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 16px;
  background: rgba(13, 17, 24, .7);
  border: 1px dashed rgba(67, 232, 184, .35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  max-width: 100%;
}
.hero-ca .ca-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-ca .ca-tag { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.hero-ca code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy {
  background: none;
  border: 1px solid rgba(67, 232, 184, .35);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 6px;
  transition: background .18s ease, color .18s ease;
  flex-shrink: 0;
}
.ca-copy:hover { background: rgba(67, 232, 184, .12); }
.ca-copy.copied { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ca-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -8px 0 26px;
  padding: 11px 16px;
  background: var(--bg-2);
  border: 1px dashed rgba(67, 232, 184, .3);
  border-radius: var(--radius-sm);
}
.ca-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
}
.ca-addr { font-family: var(--mono); font-size: 13.5px; color: var(--text); word-break: break-all; }
@media (max-width: 640px) {
  .hero-ca { flex-wrap: wrap; justify-content: center; border-radius: 14px; }
  .hero-ca code { max-width: 100%; }
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 74px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .4px;
}
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll svg { width: 22px; height: 22px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- splash / startup animation ---------------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #020304;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
#splash video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}
.splash-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 85% at 50% 35%, transparent 35%, rgba(2, 3, 4, .9) 100%),
    linear-gradient(to top, rgba(2, 3, 4, .95) 0%, transparent 42%);
}
.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.splash-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  animation: splashIn .8s ease both;
}
.splash-logo {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 60px rgba(67, 232, 184, .35);
  animation: splashIn .9s ease .15s both;
}
.splash-logo span { color: var(--accent); }
.splash-tag {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  animation: splashIn .9s ease .3s both;
}
.splash-bar {
  width: 180px;
  height: 3px;
  margin: 34px auto 0;
  background: rgba(148, 163, 184, .18);
  border-radius: 99px;
  overflow: hidden;
  animation: splashIn .9s ease .4s both;
}
.splash-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  animation: barFill 5.6s linear both;
  transform-origin: left;
}
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splashIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.splash-hint {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  animation: hintPulse 1.6s ease-in-out infinite, splashIn .9s ease .6s both;
  transition: opacity .5s ease;
}
@keyframes hintPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.splash-skip {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 3;
  background: rgba(7, 9, 13, .6);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.splash-skip:hover { color: var(--accent); border-color: var(--accent); }
body.splash-lock { overflow: hidden; }

.sound-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 17, 24, .9);
  border: 1px solid var(--line-strong);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sound-fab:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(67, 232, 184, .35);
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .splash-bar i { animation-duration: 1.4s; }
  .splash-hint { animation: splashIn .9s ease .3s both; }
}

/* ---------------- animated bats ---------------- */
.hero-bat-wrap, .cta-bat-wrap {
  position: absolute;
  left: 0;
  top: 13%;
  width: 130px;
  z-index: 1;
  pointer-events: none;
  opacity: .92;
  animation: batFly 26s linear infinite;
}
.hero-bat-wrap.far {
  top: 38%;
  width: 72px;
  opacity: .4;
  animation-duration: 37s;
  animation-delay: -19s;
}
.hero-bat, .cta-bat { display: block; width: 100%; height: auto; }
.cta-bat-wrap { top: 24%; width: 96px; opacity: .8; animation-duration: 31s; animation-delay: -9s; }
.cta-banner { position: relative; overflow: hidden; }

.hero-bat .wing, .cta-bat .wing {
  fill: rgba(230, 237, 243, .92);
  transform-origin: 60px 28px;
  transform-box: view-box;
}
.hero-bat .wing-r, .cta-bat .wing-r { animation: flapR .36s ease-in-out infinite alternate; }
.hero-bat .wing-l, .cta-bat .wing-l { animation: flapL .36s ease-in-out infinite alternate; }
.hero-bat .bone, .cta-bat .bone {
  fill: none;
  stroke: rgba(7, 9, 13, .35);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.hero-bat .bat-body, .cta-bat .bat-body {
  fill: rgba(230, 237, 243, .92);
  animation: batBob .36s ease-in-out infinite alternate;
}
.hero-bat .bat-body circle, .cta-bat .bat-body circle { fill: #ffb454; }
.hero-bat.far .wing { fill: rgba(230, 237, 243, .5); }
.hero-bat.far .bat-body { fill: rgba(230, 237, 243, .5); }

@keyframes batFly {
  0%   { transform: translateX(-180px) translateY(0); }
  25%  { transform: translateX(28vw) translateY(46px); }
  50%  { transform: translateX(55vw) translateY(-24px); }
  75%  { transform: translateX(82vw) translateY(38px); }
  100% { transform: translateX(105vw) translateY(-6px); }
}
@keyframes flapR { from { transform: rotate(4deg); } to { transform: rotate(-16deg); } }
@keyframes flapL { from { transform: rotate(-4deg); } to { transform: rotate(16deg); } }
@keyframes batBob { from { transform: translateY(-1px); } to { transform: translateY(2px); } }

@media (max-width: 640px) {
  .hero-bat-wrap { width: 84px; animation-duration: 20s; }
  .hero-bat-wrap.far { display: none; }
  .cta-bat-wrap { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bat-wrap, .cta-bat-wrap, .hero-bat .wing, .cta-bat .wing, .hero-bat .bat-body, .cta-bat .bat-body {
    animation: none;
  }
}

/* ---------------- marquee ---------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: scrollx 46s linear infinite;
}
.marquee span {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--faint);
  letter-spacing: .6px;
  white-space: nowrap;
}
.marquee i { color: var(--accent-dim); font-style: normal; font-size: 9px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { padding: 110px 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.section-lede {
  max-width: 720px;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 54px;
}

/* ---------------- cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 232, 184, .4);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45);
}
.card-ico { color: var(--accent); margin-bottom: 18px; }
.card-ico svg { width: 30px; height: 30px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, .3);
  background: rgba(255, 180, 84, .06);
  border-radius: 999px;
  padding: 3px 11px;
}
.card.danger { border-color: rgba(255, 107, 107, .25); }
.card.danger:hover { border-color: rgba(255, 107, 107, .55); }

/* ---------------- pipeline steps ---------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr 84px;
  align-items: center;
  gap: 28px;
  padding: 34px 10px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}
.step:hover .step-num { -webkit-text-stroke: 1px var(--accent); }
.step-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.step-body p { font-size: 15px; color: var(--muted); max-width: 700px; }
.step-ico { color: var(--faint); justify-self: end; transition: color .2s ease, transform .2s ease; }
.step:hover .step-ico { color: var(--accent); transform: translateX(4px); }
.step-ico svg { width: 44px; height: 44px; }
.ai-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--amber);
  background: rgba(255, 180, 84, .1);
  border: 1px solid rgba(255, 180, 84, .35);
  border-radius: 6px;
  padding: 2px 7px;
  vertical-align: middle;
}

/* ---------------- atlas viewer ---------------- */
.atlas-shell {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.atlas-viewer {
  position: relative;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 520px;
  cursor: grab;
}
.atlas-viewer.dragging { cursor: grabbing; }
#atlasCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-hud {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 3;
}
.hud-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  background: rgba(7, 9, 13, .78);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}
.hud-layers { display: flex; gap: 6px; pointer-events: auto; }
.layer-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(7, 9, 13, .78);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color .15s ease, border-color .15s ease;
}
.layer-btn.active { color: var(--accent); border-color: rgba(67, 232, 184, .5); }
.atlas-scalebar {
  position: absolute;
  left: 14px; bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}
.atlas-scalebar span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.atlas-scalebar i {
  display: block;
  height: 6px;
  width: 80px;
  border-left: 1.5px solid var(--text);
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
}
.atlas-coords {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(7, 9, 13, .78);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 10px;
  pointer-events: none;
}
.atlas-zoom {
  position: absolute;
  right: 14px; top: 62px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.atlas-zoom button {
  width: 34px; height: 34px;
  font-size: 17px;
  font-family: var(--mono);
  color: var(--text);
  background: rgba(7, 9, 13, .78);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color .15s ease, border-color .15s ease;
}
.atlas-zoom button:hover { color: var(--accent); border-color: rgba(67, 232, 184, .5); }

.atlas-info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.info-status {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.info-id code { font-size: 14px; color: var(--text); }
.atlas-info dl { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.atlas-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.atlas-info dt { color: var(--muted); }
.atlas-info dd { font-family: var(--mono); color: var(--text); text-align: right; }
.info-note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--accent-dim);
  padding-left: 14px;
}
.info-caption { font-size: 12px; color: var(--faint); }

/* ---------------- circuits ---------------- */
.echo-flow {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 8px;
  margin-bottom: 30px;
}
.echo-flow svg { width: 100%; height: auto; }
.fig-label { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.fig-sub { font-size: 11px; fill: var(--faint); font-family: var(--mono); }
figure figcaption {
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  padding: 14px 0 18px;
}
.delay-chart, .fovea-viz {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 14px 0 16px;
  overflow: hidden;
}
.delay-chart svg, .fovea-viz svg { width: 100%; height: auto; display: block; }
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  margin-top: 60px;
  padding: 34px 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------------- navigation ---------------- */
.nav-viz {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 0;
  margin-bottom: 34px;
}
.nav-viz svg { width: 100%; height: auto; display: block; }
.flight-dot { display: none; }
.offset-ok .flight-dot { display: block; offset-path: path("M180 300 C260 330 300 260 330 240 C360 220 400 190 470 170 C540 150 560 250 600 280 C640 310 700 240 740 200 C780 160 820 190 850 210"); animation: fly 7s linear infinite; opacity: 0; }
@keyframes fly {
  0% { opacity: 0; offset-distance: 0%; }
  3% { opacity: 1; }
  97% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
.papers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.paper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.paper:hover { border-color: rgba(67, 232, 184, .45); transform: translateY(-3px); }
.paper-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--amber); }
.paper strong { font-size: 15px; }
.paper p { font-size: 13px; color: var(--muted); }

/* ---------------- dataset ---------------- */
.data-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  padding: 20px 24px 14px;
  color: var(--text);
}
.spec-table td, .spec-table th {
  text-align: left;
  padding: 13px 24px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.spec-table th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  width: 30%;
  background: rgba(148, 163, 184, .04);
}
.spec-table td { color: var(--text); }
.spec-table tr:last-child td, .spec-table tr:last-child th { padding-bottom: 22px; }
.spec-table em { color: var(--muted); }

.releases { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.releases li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.releases li.current { border-color: rgba(67, 232, 184, .5); box-shadow: 0 0 22px rgba(67, 232, 184, .08); }
.rel-ver {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  min-width: 40px;
}
.releases li div { display: flex; flex-direction: column; flex: 1; }
.releases strong { font-size: 14.5px; }
.releases em { font-style: normal; font-size: 12.5px; color: var(--faint); }
.rel-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.rel-status.done { color: var(--muted); border: 1px solid var(--line-strong); }
.rel-status.now { color: var(--accent-ink); background: var(--accent); }
.rel-status.next { color: var(--amber); border: 1px dashed rgba(255, 180, 84, .5); }

.code-block {
  margin-top: 20px;
  background: #05070b;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-title {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.code-block pre { padding: 16px 18px; overflow-x: auto; }
.code-block code { font-size: 12.5px; line-height: 1.75; color: #a9c2d9; }

.pub-list {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.pub-list h3 { font-size: 16px; margin-bottom: 14px; }
.pub-list ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pub-list li { font-size: 14px; color: var(--muted); }
.pub-list strong { color: var(--amber); font-family: var(--mono); font-weight: 600; }

/* ---------------- conservation ---------------- */
.consv-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 28px 32px;
  background: linear-gradient(100deg, rgba(67, 232, 184, .07), rgba(110, 168, 255, .05));
  border: 1px solid rgba(67, 232, 184, .25);
  border-radius: var(--radius);
}
.consv-strip p { max-width: 640px; font-size: 14.5px; color: var(--muted); }
.consv-strip strong { color: var(--text); }

/* ---------------- fund ---------------- */
.fund-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}
.fund-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fund-head strong { font-size: 18px; }
.fund-goal { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.fund-bar {
  height: 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  margin-bottom: 26px;
}
.fund-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(67, 232, 184, .5);
  animation: fillbar 1.4s cubic-bezier(.2,.7,.3,1) both;
  transform-origin: left;
}
@keyframes fillbar { from { transform: scaleX(0); } }
.fund-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.tier.hot { border-color: rgba(67, 232, 184, .5); background: rgba(67, 232, 184, .05); }
.tier-price { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); }
.tier strong { font-size: 15px; }
.tier p { font-size: 13px; color: var(--muted); flex: 1; }
.tier .btn { margin-top: 10px; }
.fund-note { margin-top: 22px; font-size: 12.5px; color: var(--faint); }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: rgba(67, 232, 184, .45); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
}
.faq-chev {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 20px;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { padding: 0 24px 22px; font-size: 14.5px; color: var(--muted); max-width: 760px; }

/* ---------------- CTA + footer ---------------- */
.cta-banner {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(67, 232, 184, .12), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-banner h2 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.cta-banner p { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0 auto 30px; }
.cta-banner .hero-cta { justify-content: center; }

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 70px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 12px;
  color: var(--faint);
}
.footer-species { font-family: var(--mono); letter-spacing: .5px; }

/* ---------------- literature figures ---------------- */
.lit-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 56px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.lit-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lit-body h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.lit-body > p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.lit-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.lit-facts li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.lit-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-dim);
}
.lit-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  aspect-ratio: var(--ratio, 16/10);
  background: #000;
}
.lit-media.paper { background: #f4f6f9; }
.lit-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.15s cubic-bezier(.2, .7, .25, 1);
}
.lit-panel.in .lit-media img {
  clip-path: inset(0 0 0 0);
  animation: kenburns 18s ease-in-out 1.2s infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.045); } }
.lit-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(67, 232, 184, .16) 50%, transparent 68%);
  transform: translateX(-110%);
}
.lit-panel.in .lit-scan { animation: litScan 6.5s linear 1.2s infinite; }
@keyframes litScan { 0% { transform: translateX(-110%); } 50% { transform: translateX(110%); } 100% { transform: translateX(110%); } }
.lit-media::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  pointer-events: none;
}
.lit-media:hover::after { animation: litPing .8s ease-out; }
@keyframes litPing {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(16); }
}
.lit-chip {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 9, 13, .72);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lit-chip.fig { left: 12px; color: var(--amber); border-color: rgba(255, 180, 84, .4); }
.lit-chip.journal { right: 12px; color: var(--accent); border-color: rgba(67, 232, 184, .35); }
.lit-link {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(135deg, #4dffcc, #2fbf9c);
  border-radius: 999px;
  padding: 7px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.lit-media:hover .lit-link { opacity: 1; transform: none; }
.lit-cap {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.55;
}
.lit-cap strong { color: var(--text); display: block; font-size: 13.5px; margin-bottom: 4px; }
.lit-cap em { color: var(--muted); }
@media (max-width: 1024px) {
  .lit-panel { grid-template-columns: 1fr; padding: 26px; gap: 26px; }
}

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .papers { grid-template-columns: 1fr 1fr; }
  .fund-tiers { grid-template-columns: 1fr 1fr; }
  .atlas-shell { grid-template-columns: 1fr; }
  .atlas-viewer { min-height: 420px; }
  .data-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 9, 13, .97);
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 28px 20px;
  }
  .nav.open a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .grid-3, .grid-2, .papers, .fund-tiers { grid-template-columns: 1fr; }
  .step { grid-template-columns: 54px 1fr; gap: 16px; }
  .step-ico { display: none; }
  .step-num { font-size: 24px; }
  .hero-stats { gap: 26px; }
  .mini-stats { gap: 24px; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 120px 20px 90px; }
  .nav-right .btn { display: none; }
  .hud-layers { display: none; }
}
