:root {
  --mirror-black: #05070B;
  --liquid-chrome: #D9E1EA;
  --electric-cobalt: #1967FF;
  --hot-magenta: #FF2BD6;
  --white-glint: #F8FBFF;
  --graphite: #171A21;
  --steel: #6F7886;
  --vapor-cyan: #62F7FF;
  --signal-lime: #B8FF3D;
  --slab: "Roboto Slab", Georgia, serif;
  --space: "Space Grotesk", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

/* Typography compliance language: IBM Plex Mon Mono* Mono** sparingly for serial numbers; Roboto Sla Slab* Slab** becomes monumental chrome signage; Roboto Slab letterforms; Roboto Slab** from Google Fonts as the slab-serif anchor for monumental headlines; Space Grotes Grotesk* Grotesk** calibration labels and IBM Plex Mono serial fragments.; Space Grotesk calibration labels that orbit or drift like instrument markings.; Space Grotesk** for compact interface labels. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white-glint);
  background: var(--mirror-black);
  font-family: var(--space);
}

body.pulse-muted * { animation-play-state: paused !important; }

.showroom-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(25, 103, 255, .22), transparent 25%),
    radial-gradient(circle at 70% 18%, rgba(255, 43, 214, .16), transparent 28%),
    linear-gradient(110deg, #05070B 0%, #171A21 45%, #05070B 100%);
}

.radial-vent {
  position: absolute;
  inset: -20vmax;
  opacity: .28;
  background: repeating-conic-gradient(from 0deg, rgba(217,225,234,.18) 0deg 1deg, transparent 1deg 8deg);
  animation: ventSpin 38s linear infinite;
}

.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(248,251,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(98,247,255,.9) 0 1px, transparent 1.5px);
  background-size: 87px 87px, 143px 143px;
  background-position: 0 0, 30px 60px;
  opacity: .24;
}

.chrome-sweep {
  position: absolute;
  inset: -25%;
  background: linear-gradient(100deg, transparent 35%, rgba(248,251,255,.12), rgba(111,120,134,.28), transparent 65%);
  transform: translateX(-40%) rotate(8deg);
  animation: sweep 9s ease-in-out infinite;
}

.hud-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(92vw, 980px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid rgba(217,225,234,.34);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(5,7,11,.74), rgba(23,26,33,.58));
  box-shadow: 0 0 24px rgba(25,103,255,.2), inset 0 0 18px rgba(248,251,255,.08);
  backdrop-filter: blur(16px);
}

.serial, .final-readout, .section-kicker, .scroll-stamp { font-family: var(--mono); }

.serial {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--vapor-cyan);
}

.nav-dots { display: flex; gap: 8px; }

.nav-dot, .chrome-toggle {
  color: var(--liquid-chrome);
  font-family: var(--space);
  font-weight: 700;
  letter-spacing: .12em;
  background: linear-gradient(135deg, #05070B, #6F7886 45%, #D9E1EA 50%, #171A21 65%, #05070B);
  border: 1px solid rgba(248,251,255,.45);
  border-radius: 999px;
  box-shadow: inset 0 1px 5px rgba(248,251,255,.35), 0 0 16px rgba(255,43,214,.18);
  cursor: pointer;
}

.nav-dot { width: 38px; height: 28px; font-size: 10px; }
.nav-dot.active { color: var(--signal-lime); box-shadow: 0 0 22px rgba(184,255,61,.55), inset 0 0 12px rgba(248,251,255,.25); }

.chamber {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 6vw;
  isolation: isolate;
  overflow: hidden;
}

.chamber::before {
  content: attr(data-chamber);
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,225,234,.12);
  font-family: var(--slab);
  font-size: clamp(42px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  z-index: -1;
}

.pulse-stack { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pulse-stack span, .halo, .emblem-ring::before {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217,225,234,.34);
  box-shadow: 0 0 28px rgba(25,103,255,.25), inset 0 0 22px rgba(255,43,214,.14);
  animation: pulse 4.8s ease-in-out infinite;
}
.pulse-stack span:nth-child(1) { width: 28vmin; height: 28vmin; }
.pulse-stack span:nth-child(2) { width: 46vmin; height: 46vmin; animation-delay: .7s; }
.pulse-stack span:nth-child(3) { width: 65vmin; height: 65vmin; animation-delay: 1.4s; }
.pulse-stack span:nth-child(4) { width: 88vmin; height: 88vmin; animation-delay: 2.1s; }

.central-stage { text-align: center; transform-style: preserve-3d; transition: transform .18s ease-out; }

.wordmark {
  position: relative;
  font-family: var(--slab);
  font-size: clamp(54px, 15vw, 215px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .82;
  background: linear-gradient(96deg, #05070B 3%, #6F7886 18%, #F8FBFF 31%, #D9E1EA 42%, #171A21 53%, #F8FBFF 62%, #6F7886 76%, #05070B 96%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #F8FBFF) drop-shadow(0 18px 0 rgba(25,103,255,.23));
  text-shadow: 0 1px 0 #F8FBFF, 0 10px 0 #171A21, 0 20px 20px rgba(255,43,214,.42);
  animation: chromeText 5s ease-in-out infinite;
}

.wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translate3d(12px, 16px, -30px);
  color: rgba(25,103,255,.25);
  z-index: -1;
}

.subplate {
  max-width: 780px;
  margin: 30px auto 0;
  padding: 15px 24px;
  color: var(--liquid-chrome);
  border: 1px solid rgba(217,225,234,.28);
  border-radius: 999px;
  background: rgba(5,7,11,.62);
  box-shadow: inset 0 0 22px rgba(248,251,255,.08), 0 0 30px rgba(98,247,255,.12);
}

.orbit {
  position: absolute;
  width: min(82vmin, 720px);
  height: min(82vmin, 720px);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}
.orbit span {
  position: absolute;
  color: var(--vapor-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}
.orbit span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit span:nth-child(2) { right: -15px; top: 50%; }
.orbit span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit span:nth-child(4) { left: -20px; top: 50%; }

.floating-label {
  position: absolute;
  padding: 9px 13px;
  color: var(--signal-lime);
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid rgba(184,255,61,.35);
  background: rgba(23,26,33,.72);
  box-shadow: 0 0 18px rgba(184,255,61,.22);
}
.label-nw { top: 24%; left: 9%; }
.label-se { bottom: 22%; right: 10%; }
.scroll-stamp { position: absolute; bottom: 30px; color: var(--steel); letter-spacing: .22em; font-size: 11px; }

.arch-rail {
  position: absolute;
  top: 12%;
  width: 15vw;
  height: 76vh;
  border: 2px solid rgba(217,225,234,.22);
  box-shadow: inset 0 0 35px rgba(248,251,255,.07), 0 0 30px rgba(25,103,255,.13);
}
.rail-left { left: 3vw; border-radius: 100% 0 0 100%; border-right: 0; }
.rail-right { right: 3vw; border-radius: 0 100% 100% 0; border-left: 0; }

.section-kicker { position: absolute; top: 18%; color: var(--hot-magenta); letter-spacing: .28em; }
.sphere-frame, .portal-pair, .emblem { position: relative; transform-style: preserve-3d; transition: transform .18s ease-out; }
.mirror-sphere {
  width: min(58vmin, 520px);
  height: min(58vmin, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #F8FBFF 0 4%, transparent 12%),
    linear-gradient(140deg, #05070B 5%, #6F7886 20%, #D9E1EA 33%, #171A21 43%, #F8FBFF 51%, #6F7886 66%, #05070B 90%);
  box-shadow: inset -35px -45px 70px rgba(5,7,11,.7), inset 30px 18px 60px rgba(248,251,255,.45), 0 0 80px rgba(98,247,255,.26);
  animation: sphereRoll 9s ease-in-out infinite;
}
.lens-line { position: absolute; inset: 48% -8%; height: 9px; background: linear-gradient(90deg, transparent, #62F7FF, #FF2BD6, transparent); filter: blur(.2px); }
.search-slot { position: absolute; left: 50%; bottom: 28%; transform: translateX(-50%); padding: 11px 18px; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--mirror-black); background: rgba(248,251,255,.82); border-radius: 999px; }
.halo-a { inset: -8%; }
.halo-b { inset: -22%; animation-delay: 1.1s; }

.plaque {
  position: absolute;
  width: min(280px, 34vw);
  padding: 20px;
  border: 1px solid rgba(217,225,234,.32);
  background: linear-gradient(145deg, rgba(5,7,11,.75), rgba(23,26,33,.86));
  box-shadow: inset 0 0 18px rgba(248,251,255,.08), 0 0 30px rgba(255,43,214,.12);
}
.plaque b { display: block; margin-bottom: 9px; color: var(--white-glint); font-family: var(--slab); }
.plaque span { color: var(--liquid-chrome); font-size: 14px; line-height: 1.5; }
.plaque-left { left: 8vw; bottom: 24%; }
.plaque-right { right: 8vw; top: 30%; }
.ticker { position: absolute; bottom: 55px; width: 100%; padding: 13px 0; color: var(--vapor-cyan); font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-align: center; background: rgba(25,103,255,.08); border-block: 1px solid rgba(98,247,255,.2); }

.portal-pair { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 40px); }
.portal {
  width: min(34vmin, 310px);
  height: min(34vmin, 310px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #05070B 0 36%, #62F7FF 38%, #D9E1EA 43%, #6F7886 52%, #171A21 60%, #F8FBFF 66%, #05070B 78%);
  box-shadow: inset 0 0 45px rgba(5,7,11,.9), 0 0 45px rgba(255,43,214,.34);
  animation: portalBreathe 3.8s ease-in-out infinite;
}
.portal-right { animation-delay: .6s; }
.portal span { font-family: var(--slab); font-size: 24vmin; font-weight: 900; color: rgba(248,251,255,.14); }
.portal-bridge { position: absolute; padding: 12px 22px; color: var(--signal-lime); font-family: var(--mono); letter-spacing: .18em; background: rgba(5,7,11,.78); border: 1px solid rgba(184,255,61,.4); border-radius: 999px; box-shadow: 0 0 24px rgba(184,255,61,.25); }
.index-plates { position: absolute; bottom: 12%; display: grid; gap: 12px; width: min(740px, 86vw); }
.plate { padding: 14px 20px; text-align: center; font-family: var(--mono); color: var(--liquid-chrome); background: linear-gradient(90deg, transparent, rgba(217,225,234,.12), transparent); border: 1px solid rgba(217,225,234,.22); transform: skewX(-10deg); }
.beam { position: absolute; width: 140vw; height: 3px; opacity: .6; filter: blur(.3px); }
.beam-magenta { top: 38%; background: linear-gradient(90deg, transparent, #FF2BD6, transparent); transform: rotate(-14deg); }
.beam-cobalt { bottom: 39%; background: linear-gradient(90deg, transparent, #1967FF, transparent); transform: rotate(14deg); }
.beacon-field i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-lime); box-shadow: 0 0 16px var(--signal-lime); animation: blink 1.8s steps(2,end) infinite; }
.beacon-field i:nth-child(1) { left: 15%; top: 28%; }
.beacon-field i:nth-child(2) { left: 78%; top: 20%; animation-delay: .3s; }
.beacon-field i:nth-child(3) { left: 63%; top: 72%; animation-delay: .6s; }
.beacon-field i:nth-child(4) { left: 21%; top: 76%; animation-delay: .9s; }
.beacon-field i:nth-child(5) { left: 88%; top: 55%; animation-delay: 1.2s; }
.beacon-field i:nth-child(6) { left: 9%; top: 51%; animation-delay: 1.5s; }

.final { text-align: center; }
.emblem { width: min(48vmin, 430px); height: min(48vmin, 430px); margin-bottom: 32px; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(#05070B, #6F7886, #F8FBFF, #1967FF, #FF2BD6, #D9E1EA, #05070B); box-shadow: inset 0 0 35px #05070B, 0 0 70px rgba(98,247,255,.28); animation: orbitSpin 8s linear infinite; }
.emblem-ring::before { content: ""; inset: 18%; }
.emblem-core { position: relative; z-index: 2; font-family: var(--slab); font-size: clamp(62px, 13vw, 160px); font-weight: 900; color: var(--mirror-black); text-shadow: 0 1px 0 #F8FBFF; }
.emblem-fin { position: absolute; width: 64%; height: 14px; background: linear-gradient(90deg, transparent, #F8FBFF, #6F7886, transparent); box-shadow: 0 0 22px rgba(255,43,214,.28); }
.fin-a { transform: rotate(28deg); }
.fin-b { transform: rotate(-28deg); }
.final h1 { margin: 0; font-family: var(--slab); font-size: clamp(42px, 9vw, 120px); letter-spacing: .04em; color: var(--liquid-chrome); text-shadow: 0 0 24px rgba(248,251,255,.25), 0 12px 0 rgba(23,26,33,.9); }
.final p { max-width: 720px; margin: 18px auto 28px; color: var(--liquid-chrome); font-size: 18px; line-height: 1.6; }
.chrome-toggle { padding: 14px 20px; }
.final-readout { margin-top: 25px; color: var(--vapor-cyan); letter-spacing: .14em; }

@keyframes ventSpin { to { transform: rotate(360deg); } }
@keyframes sweep { 0%,100% { transform: translateX(-45%) rotate(8deg); } 50% { transform: translateX(45%) rotate(8deg); } }
@keyframes pulse { 0%,100% { transform: scale(.92); opacity: .35; } 50% { transform: scale(1.06); opacity: .88; } }
@keyframes chromeText { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes sphereRoll { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(5deg) scale(1.035); } }
@keyframes portalBreathe { 0%,100% { transform: scale(.96); filter: hue-rotate(0deg); } 50% { transform: scale(1.05); filter: hue-rotate(28deg); } }
@keyframes blink { 50% { opacity: .18; transform: scale(.65); } }

@media (max-width: 760px) {
  .hud-nav { top: 10px; width: 94vw; }
  .serial { display: none; }
  .nav-dots { width: 100%; justify-content: center; }
  .arch-rail, .floating-label { display: none; }
  .plaque { position: relative; width: 86vw; left: auto; right: auto; top: auto; bottom: auto; margin: 12px auto; }
  #mirror-index { align-content: center; gap: 16px; }
  .ticker { font-size: 10px; letter-spacing: .1em; }
  .portal-pair { transform: scale(.92); }
  .index-plates { bottom: 8%; }
}
