:root {
  --void: #030508;
  --void-2: #070c14;
  --panel: rgba(8, 16, 28, 0.72);
  --cyan: #00e5ff;
  --cyan-2: #7af6ff;
  --red: #ff2d55;
  --amber: #ffb020;
  --chymera: #ff6a12;
  --chymera-steel: #c8d0d6;
  --text: #d8ecf7;
  --muted: #7b93a8;
  --line: rgba(0, 229, 255, 0.22);
  --font-d: "Orbitron", sans-serif;
  --font-b: "Rajdhani", sans-serif;
  --font-m: "Share Tech Mono", monospace;
  --hud-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 45, 85, 0.08), transparent 50%),
    var(--void);
  overflow-x: hidden;
  cursor: crosshair;
}

body.booting { overflow: hidden; }
body.offline-mode { overflow: hidden; }

[hidden] { display: none !important; }

img, svg, canvas { display: block; max-width: 100%; }
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
button, a { font-family: inherit; }
button { cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--cyan);
  color: #001018;
  padding: 8px 12px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.layer-hex, .layer-fog, .scanbeam, .pointer, .rail,
.hero__watermark, .hero__stamp, .orbit, .core__ticks, .section__ghost, .card__ghost {
  display: none;
}

.vignette,
.scanlines,
.noise,
.frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55) 100%);
  z-index: 18;
}

.scanlines {
  z-index: 19;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.noise {
  z-index: 19;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.frame { z-index: 21; }
.frame__corner {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--cyan);
  opacity: 0.55;
}
.frame__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* BOOT */
.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #010204 0%, #071018 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot__inner { width: min(560px, 88vw); text-align: left; }
.boot__mark {
  font-family: var(--font-m);
  color: var(--cyan);
  letter-spacing: 0.28em;
  font-size: 11px;
}
.boot__title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  margin: 8px 0 22px;
  letter-spacing: 0.12em;
}
.boot__bar {
  height: 3px;
  background: rgba(0,229,255,0.15);
  margin-bottom: 22px;
  overflow: hidden;
}
.boot__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), #fff);
  box-shadow: 0 0 16px var(--cyan);
  animation: fill 3.4s ease forwards;
}
@keyframes fill { to { width: 100%; } }
.boot__log {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--muted);
  min-height: 120px;
}
.boot__log li { margin: 6px 0; }
.boot__log .ok { color: var(--cyan); }
.boot__skip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.boot__skip:hover { border-color: var(--cyan); color: var(--cyan); }

/* HUD */
.hud {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 28px 12px;
  min-height: var(--hud-h);
  background: linear-gradient(180deg, rgba(3,5,8,0.92), rgba(3,5,8,0.55) 80%, transparent);
  backdrop-filter: blur(10px);
}
.hud__left, .hud__right { display: flex; align-items: center; gap: 14px; }
.hud__right { justify-content: flex-end; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 13px;
}
.brand__text {
  font-size: 8px;
  letter-spacing: 0.12em;
  max-width: 118px;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}
.brand__stack { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand__chymera { display: none; }
.chymera-link { display: inline-flex; align-items: center; text-decoration: none; }
.chymera-word {
  display: block;
  height: auto;
  object-fit: contain;
}
.chymera-word--hud {
  width: 92px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.12) drop-shadow(0 0 0.6px rgba(255,255,255,0.7));
}
.chymera-word--nav {
  width: 76px;
  height: auto;
  object-fit: contain;
}
.chymera-word--rail {
  width: 72px;
  height: auto;
  object-fit: contain;
}
.chymera-lockup {
  display: block;
  width: min(640px, 72vw);
  margin: 0 auto 18px;
}
.chymera-lockup img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 0.55px #fff)
    drop-shadow(0 0 1.2px rgba(255, 214, 186, 0.85))
    drop-shadow(0 0 12px rgba(255, 106, 18, 0.28));
}
.chymera-lockup--footer {
  width: 140px;
  margin: 0 0 12px;
}
.chymera-url {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--chymera);
  text-decoration: none;
}
.chymera-url:hover { color: #fff; }

.coming {
  margin: 56px 0 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.coming img {
  width: min(420px, 72vw);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,0.72));
}
.coming__soon {
  margin: 0;
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--chymera);
}
.coming__name {
  margin: 6px 0 0;
  font-family: var(--font-b);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.footer a { color: var(--chymera); }

.sim-tag {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-decoration: none;
  padding: 8px 12px;
  background: rgba(3,5,8,0.78);
  border: 1px solid rgba(255,106,18,0.5);
  backdrop-filter: blur(8px);
}
.sim-tag__name,
.sim-tag__sub {
  font-family: var(--font-b);
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 0 8px rgba(0,0,0,0.85);
}
.sim-tag__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.sim-tag__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
}
.sim-kicker {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--chymera);
  margin: 0 0 8px;
}
.sim-banner {
  margin: 4px 0 22px;
  font-family: var(--font-d);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.22em;
  color: var(--chymera);
}

.beasts { pointer-events: none; }
.beast-arm {
  position: fixed;
  top: -4vh;
  z-index: 4;
  width: min(22vw, 280px);
  opacity: 0.78;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7));
}
.beast-arm--left { left: -6vw; }
.beast-arm--right {
  right: -6vw;
  transform: scaleX(-1);
}
.beast-pack {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 42vh;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
  opacity: 0.28;
  mask-image: linear-gradient(to top, black, transparent 75%);
}

.story {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.story__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: contrast(1.12) saturate(1.08);
}
.helis {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.heli {
  position: absolute;
  left: 0;
  top: 14%;
  width: min(28vw, 380px);
  height: auto;
  max-width: none;
  will-change: transform;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.85));
  animation: heli-pass 6.8s linear infinite;
}
.heli--2 {
  top: 6%;
  width: min(18vw, 240px);
  animation-duration: 9.2s;
  animation-delay: 2.2s;
  opacity: 0.88;
}
.heli--3 {
  top: 28%;
  width: min(22vw, 300px);
  animation-name: heli-pass-rev;
  animation-duration: 8.1s;
  animation-delay: 4.6s;
  opacity: 0.92;
}
@keyframes heli-pass {
  0% { transform: translate3d(-48vw, 6vh, 0) scale(0.7); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(118vw, -4vh, 0) scale(1.18); opacity: 0; }
}
@keyframes heli-pass-rev {
  0% { transform: translate3d(118vw, -2vh, 0) scale(-0.75, 0.75); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(-48vw, 10vh, 0) scale(-1.12, 1.12); opacity: 0; }
}
.falls {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.fall {
  position: absolute;
  top: -12%;
  width: 3px;
  height: 18vh;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(255,220,160,0), rgba(255,140,40,0.95) 55%, #fff);
  box-shadow: 0 0 16px rgba(255, 90, 20, 0.85);
  filter: blur(0.2px);
  animation: fall-streak 3.4s linear infinite;
}
.fall--1 { left: 22%; animation-duration: 2.8s; }
.fall--2 { left: 58%; width: 4px; height: 24vh; animation-duration: 3.9s; animation-delay: 1.1s; }
.fall--3 { left: 81%; height: 14vh; animation-duration: 2.4s; animation-delay: 2s; }
@keyframes fall-streak {
  0% { transform: translate3d(8vw, -20vh, 0) rotate(18deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(-18vw, 120vh, 0) rotate(18deg); opacity: 0; }
}
.swarm {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.drone {
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: auto;
  max-width: none;
  will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.7));
}
.story__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}
.story__fx--neon {
  z-index: 1;
  mix-blend-mode: normal;
  animation: neon-flicker 3.78s steps(1, jump-end) infinite;
}
@keyframes neon-flicker {
  0%, 7% { opacity: 1; }
  8% { opacity: 0; }
  9%, 11% { opacity: 1; }
  12% { opacity: 0.12; }
  13% { opacity: 1; }
  27% { opacity: 1; }
  28%, 30% { opacity: 0; }
  31% { opacity: 0.55; }
  32% { opacity: 0; }
  35% { opacity: 1; }
  50% { opacity: 1; }
  51% { opacity: 0.08; }
  52% { opacity: 1; }
  53% { opacity: 0; }
  57% { opacity: 1; }
  71% { opacity: 1; }
  72% { opacity: 0; }
  73% { opacity: 1; }
  74% { opacity: 0.18; }
  76% { opacity: 1; }
  89% { opacity: 1; }
  90%, 93% { opacity: 0; }
  94% { opacity: 1; }
  100% { opacity: 1; }
}
.story__fx--pulse {
  mix-blend-mode: screen;
  animation: orange-pulse 1.65s ease-in-out infinite;
}
.story__fx--lava {
  mix-blend-mode: screen;
  animation: lava-pulse 4.2s ease-in-out infinite;
}
@keyframes orange-pulse {
  0%, 100% { opacity: 0.32; filter: brightness(0.75); }
  50% { opacity: 1; filter: brightness(1.5); }
}
@keyframes lava-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.92; }
}
.ekg,
.tickers {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tickers { mix-blend-mode: screen; }
.story__float--glow {
  mix-blend-mode: screen;
  filter: none;
  animation: orange-pulse 1.65s ease-in-out infinite;
}
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,5,8,0.55) 0%, rgba(3,5,8,0.18) 48%, rgba(3,5,8,0.04) 75%),
    linear-gradient(180deg, rgba(3,5,8,0.08) 0%, rgba(3,5,8,0.55) 100%);
  pointer-events: none;
}
.story--flip::after {
  background:
    linear-gradient(-90deg, rgba(3,5,8,0.55) 0%, rgba(3,5,8,0.18) 48%, rgba(3,5,8,0.04) 75%),
    linear-gradient(180deg, rgba(3,5,8,0.08) 0%, rgba(3,5,8,0.55) 100%);
}
.story--end::after {
  background:
    linear-gradient(90deg, rgba(20,0,4,0.55) 0%, rgba(3,5,8,0.18) 50%, transparent 80%),
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.62) 100%);
}
.story__float {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8));
}
.story__float--robot {
  right: 4%;
  bottom: 0;
  width: min(38%, 380px);
}
.story__float--mean {
  right: 4%;
  bottom: 0;
  width: min(52%, 620px);
}
#ghost .story__bg,
#ghost .story__fx {
  object-position: 50% 12%;
}
.story__copy {
  position: relative;
  z-index: 4;
  width: min(720px, 92vw);
  padding: 64px 48px 88px;
  box-sizing: border-box;
}
.story--flip .story__copy {
  margin-left: auto;
  text-align: right;
}
.story--flip .story__copy p { margin-left: auto; }
.story__stamp {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  border: 1px solid rgba(255,45,85,0.45);
  padding: 6px 10px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.45);
  white-space: nowrap;
}
.story__copy h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  margin: 8px 0 18px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.7);
}
.story--end .story__copy h2 {
  color: var(--red);
  text-shadow: 0 0 28px rgba(255,45,85,0.4);
}
.story__copy p {
  color: #c9d8e4;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 46ch;
}
.story__copy p + p { margin-top: 14px; }
.brand__reticle {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,45,85,0.15), inset 0 0 0 2px rgba(0,229,255,0.5);
}
.hud__class {
  margin: 0;
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.hud__class span { color: var(--red); }
.hud__nav { display: flex; gap: 18px; }
.hud__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.hud__nav a:hover,
.hud__nav a.is-active { color: var(--cyan); }
.hud__nav--quiet {
  font-size: 9px !important;
  letter-spacing: 0.28em !important;
  opacity: 0.55;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.8s infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.clock {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn[aria-pressed="true"] { color: var(--cyan); border-color: var(--cyan); }
.hud__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(0,229,255,0.08);
}
.hud__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--red));
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--hud-h));
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  padding: 40px 7vw 80px;
  gap: 24px;
}
.hero__grid {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    linear-gradient(rgba(0,229,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg) scale(1.4);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent 80%);
  opacity: 0.45;
}
.hero__copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  font-family: var(--font-m);
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: blink 1.2s infinite;
}
.sep { opacity: 0.4; }
.hero__title {
  margin: 10px 0 8px;
  line-height: 0.88;
}
.hero__line,
.hero__kill {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.hero__line { font-size: clamp(48px, 9vw, 108px); }
.hero__kill {
  font-size: clamp(48px, 9vw, 108px);
  color: var(--red);
  text-shadow: 0 0 24px rgba(255,45,85,0.45);
  width: fit-content;
}
.hero__sub {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 14px;
  color: var(--cyan-2);
}
.hero__lede {
  min-height: 4.5em;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.hero__lede::after {
  content: "▍";
  color: var(--cyan);
  animation: blink 1s infinite;
}
.hero__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 12px 18px;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn--primary {
  background: var(--cyan);
  color: #021016;
  box-shadow: 0 0 24px rgba(0,229,255,0.25);
}
.btn--ghost { border-color: var(--red); color: var(--red); }
.btn--reboot {
  margin-top: 18px;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn:hover { filter: brightness(1.12); }

.hero__stage {
  position: relative;
  height: min(520px, 70vh);
  display: grid;
  place-items: center;
}
.core { position: relative; width: 280px; height: 280px; }
.core__nucleus {
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.35), 0 0 120px rgba(0, 229, 255, 0.18);
  display: grid;
  place-items: center;
}
.core__nucleus::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleY(0);
  transform-origin: 50% 0%;
  pointer-events: none;
  z-index: 2;
  animation: jarvis-blink 4.8s ease-in-out 0.6s 1 both;
}
@keyframes jarvis-blink {
  0%, 10%, 18%, 32%, 40%, 100% { transform: scaleY(0); }
  14%, 36% { transform: scaleY(1); }
}
.core__nucleus video,
#jarvis-talk {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.core__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,229,255,0.35);
  border-radius: 50%;
  border-top-color: var(--cyan);
  border-bottom-color: transparent;
}
.core__ring--1 { animation: spin 8s linear infinite; }
.core__ring--2 { inset: 28px; border-color: rgba(255,45,85,0.35); border-left-color: var(--red); animation: spin 12s linear infinite reverse; }
.core__ring--3 { inset: 56px; animation: spin 6s linear infinite; border-right-color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }

.radar {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(0,229,255,0.18);
  border-radius: 50%;
}
.radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(0,229,255,0.28) 100%);
  animation: spin 4.5s linear infinite;
}

.telemetry {
  position: relative;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  z-index: 2;
  margin-top: 28px;
}
.telemetry__item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}
.telemetry__k {
  display: block;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.telemetry__v { font-family: var(--font-d); font-size: 16px; }
.telemetry__v--warn { color: var(--amber); }
.meter {
  display: block;
  height: 3px;
  margin-top: 6px;
  background: rgba(0,229,255,0.12);
}
.meter i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cyan);
}

.scroll-hint {
  position: absolute;
  left: 7vw;
  bottom: 28px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drip 1.6s infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.band {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: rgba(0,229,255,0.04);
  overflow: hidden;
}
.band__inner {
  white-space: nowrap;
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 0.38em;
  color: var(--cyan);
  padding: 12px 0;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.section {
  position: relative;
  z-index: 1;
  padding: 92px 7vw;
  margin: 0 auto;
  width: 100%;
}
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--font-m);
  color: var(--amber);
  letter-spacing: 0.22em;
  font-size: 12px;
}
.section h2 {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 8px 0 14px;
}
.section__lede { color: var(--muted); font-size: 20px; line-height: 1.5; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 24px rgba(0,229,255,0.08);
}
.card:hover::before { animation: sweep 0.8s ease; }
@keyframes sweep { to { transform: translateX(100%); } }
.card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
}
.card__icon { width: 64px; height: 64px; color: var(--cyan); margin: 16px 0 8px; }
.card h3 {
  font-family: var(--font-d);
  font-size: 20px;
  margin: 0 0 8px;
}
.card p { color: var(--muted); margin: 0 0 18px; font-size: 17px; line-height: 1.4; }
.card__more {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: var(--cyan);
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}
.card__more:hover { color: #fff; }
.card--featured {
  background:
    linear-gradient(180deg, rgba(255,45,85,0.12), transparent 40%),
    var(--panel);
  border-color: rgba(255,45,85,0.4);
}

.tag {
  padding: 2px 8px;
  border: 1px solid currentColor;
  letter-spacing: 0.12em;
}
.tag--red { color: var(--red); }
.tag--cyan { color: var(--cyan); }
.tag--amber { color: var(--amber); }

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}
.mesh {
  width: 100%;
  height: 420px;
  background: rgba(0, 10, 18, 0.6);
  border: 1px solid var(--line);
}
.legend {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}
.legend__title {
  font-family: var(--font-d);
  letter-spacing: 0.18em;
  font-size: 12px;
}
.legend ul { list-style: none; padding: 0; }
.legend li { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot--red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot--amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.legend__note { color: var(--muted); line-height: 1.5; }

.section--switch {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.switch { display: grid; place-items: center; gap: 18px; }
.scram {
  position: relative;
  z-index: 2;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.scram::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(var(--red) calc(var(--charge, 0) * 360deg), transparent 0);
  mask: radial-gradient(circle, transparent 70%, black 71% 78%, transparent 79%);
  -webkit-mask: radial-gradient(circle, transparent 70%, black 71% 78%, transparent 79%);
  opacity: 0;
}
.scram.is-charging::after { opacity: 1; }
.scram__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,45,85,0.0) 0 8deg, rgba(255,45,85,0.35) 8deg 9deg);
  animation: spin 16s linear infinite;
  mask: radial-gradient(circle, transparent 62%, black 63% 72%, transparent 73%);
}
.scram__core {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #ff6a7d, var(--red) 45%, #4a0010 78%);
  box-shadow:
    0 0 0 6px #1a0508,
    0 0 0 8px rgba(255,45,85,0.5),
    0 20px 50px rgba(255,45,85,0.35),
    inset 0 8px 16px rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
  pointer-events: none;
}
.scram:active .scram__core,
.scram.is-charging .scram__core { transform: scale(0.96); filter: brightness(1.15); }
.scram__glyph {
  font-family: var(--font-d);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.scram__label {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.switch__help { color: var(--muted); font-size: 14px; }
.charge {
  width: min(280px, 70vw);
  height: 8px;
  background: rgba(255,45,85,0.15);
}
.charge span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.section--chymera {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 106, 18, 0.16), transparent 58%);
}
.chymera-mark {
  margin: 0 0 22px;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.62em;
  color: var(--cyan);
  opacity: 0.55;
}
.chymera-mark--footer {
  display: block;
  margin: 0 0 10px;
  text-align: left;
  opacity: 0.45;
}
.chymera-line {
  margin: 0 0 16px;
  max-width: 48ch;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  border: 0;
  padding: 0;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 7vw 60px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.footer__brand strong {
  font-family: var(--font-d);
  letter-spacing: 0.16em;
}
.footer p { color: var(--muted); margin: 0; max-width: 70ch; }
.footer__sign {
  font-family: var(--font-m);
  color: var(--cyan) !important;
  letter-spacing: 0.24em;
}

.dossier {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.62);
  display: grid;
  place-items: center;
  padding: 24px;
}
.dossier__panel {
  width: min(680px, 94vw);
  background: #070d16;
  border: 1px solid var(--cyan);
  padding: 28px 28px 32px;
  position: relative;
  box-shadow: 0 0 40px rgba(0,229,255,0.12);
}
.dossier__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
}
.dossier__id {
  font-family: var(--font-m);
  color: var(--amber);
  letter-spacing: 0.2em;
  font-size: 12px;
}
.dossier__panel h2 {
  font-family: var(--font-d);
  margin: 4px 0 8px;
}
.dossier__tagline { color: var(--cyan); margin-top: 0; }
.dossier__schematic {
  height: 90px;
  margin: 16px 0;
  border: 1px dashed var(--line);
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(0,229,255,0.12) 50%, transparent 80%),
    repeating-linear-gradient(90deg, rgba(0,229,255,0.15) 0 1px, transparent 1px 24px);
  animation: scan 2.4s linear infinite;
}
@keyframes scan {
  from { background-position: -200px 0, 0 0; }
  to { background-position: 200px 0, 0 0; }
}
.dossier__body { font-size: 18px; line-height: 1.55; color: var(--text); }

.offline {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: grid;
  place-items: center;
  text-align: center;
}
.offline__tag { font-family: var(--font-m); letter-spacing: 0.3em; color: var(--red); }
.offline__title {
  font-family: var(--font-d);
  font-size: clamp(32px, 8vw, 72px);
  color: var(--red);
  margin: 8px 0 18px;
}
.offline__flatline { width: min(400px, 80vw); height: 80px; margin: 0 auto 10px; }
.offline__pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 80 400;
  animation: flat 1.8s ease-in forwards;
}
@keyframes flat { to { stroke-dasharray: 0 400; stroke: #3a1018; } }
.offline__copy { color: #9aa; }

.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before { color: var(--cyan); clip-path: inset(0 0 55% 0); transform: translate(-2px, -1px); opacity: 0.7; }
.glitch::after { color: var(--red); clip-path: inset(55% 0 0 0); transform: translate(2px, 1px); opacity: 0.7; }

body.is-killing {
  animation: killflash 0.45s steps(2) 4;
  filter: grayscale(0.4) contrast(1.3);
}
@keyframes killflash {
  50% { filter: invert(1) hue-rotate(180deg); }
}

@media (max-width: 980px) {
  .hud { grid-template-columns: 1fr auto; height: auto; row-gap: 8px; }
  .hud__nav { grid-column: 1 / -1; justify-content: space-between; overflow-x: auto; }
  .hud__class { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .telemetry { width: 100%; }
  .cards, .split { grid-template-columns: 1fr; }
  .beast-arm, .beast-pack { display: none; }
  .sim-tag { display: none; }
  .story { min-height: 88vh; }
  .story__copy, .story--flip .story__copy { text-align: left; margin: 0; }
  .story__stamp { white-space: normal; }
  .story__float { display: none; }
  .heli { width: min(54vw, 280px); }
  .hero__stage { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .swarm { display: none; }
  .ekg, .tickers { display: none; }
  .story__fx--neon { opacity: 1; }
  .story__fx--pulse, .story__fx--lava, .story__float--glow { opacity: 0.8; }
}
