:root {
  color-scheme: dark;
  --bg: #030004;
  --ink: #f8effa;
  --purple: #8f008d;
  --purple-hot: #bd14ba;
  --purple-soft: rgba(143, 0, 141, 0.58);
  --muted: rgba(248, 239, 250, 0.64);
}

* {
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", Consolas, monospace;
  transition: background-color 420ms linear;
}

body.is-dragging {
  cursor: grabbing;
}

#webgl-stage,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#webgl-stage {
  z-index: 0;
}

#webgl-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.grain {
  z-index: 2;
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 100% 5px, 9px 9px;
  mix-blend-mode: screen;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 13px;
  height: 13px;
  border: 1px solid var(--purple-hot);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(189, 20, 186, 0.95);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.portal-flash {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 1) 0 22%, rgba(255, 245, 255, 0.96) 36%, rgba(189, 20, 186, 0.78) 58%, transparent 92%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72), rgba(189, 20, 186, 0.42) 58%, transparent 96%);
  transition: opacity 420ms linear;
}

.screen-blackout {
  position: fixed;
  inset: 0;
  z-index: 34;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.86), rgba(226, 118, 255, 0.38) 42%, rgba(143, 0, 141, 0.16) 76%, transparent 100%);
  mix-blend-mode: screen;
  transition: opacity 520ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.intro-cinematic {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.32), rgba(189, 20, 186, 0.18) 10%, transparent 26%),
    linear-gradient(90deg, rgba(41, 217, 255, 0.12), transparent 18% 82%, rgba(255, 44, 255, 0.16)),
    rgba(3, 0, 4, 0.72);
  mix-blend-mode: screen;
}

.intro-cinematic::before,
.intro-cinematic::after,
.intro-cinematic span,
.intro-cinematic i,
.intro-cinematic b {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-cinematic::before {
  inset: 50% auto auto 50%;
  width: 10vmin;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 44, 255, 0.52) 28%, rgba(41, 217, 255, 0.26) 54%, transparent 72%);
  box-shadow:
    0 0 18px rgba(248, 239, 250, 0.74),
    0 0 58px rgba(189, 20, 186, 0.88),
    0 0 120px rgba(41, 217, 255, 0.28);
  transform: translate(-50%, -50%) scale(0.24);
}

.intro-cinematic::after {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 7vw, rgba(255, 255, 255, 0.1) 7.1vw 7.28vw),
    linear-gradient(180deg, transparent 0 38%, rgba(255, 255, 255, 0.26) 49%, transparent 60%);
  clip-path: polygon(0 42%, 100% 28%, 100% 70%, 0 58%);
  opacity: 0;
}

.intro-cinematic span {
  inset: 50% -8vw auto -8vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(41, 217, 255, 0.84), #fff, rgba(255, 44, 255, 0.9), transparent);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.84),
    0 0 62px rgba(189, 20, 186, 0.78);
  transform: translateX(-110%) skewX(-18deg);
}

.intro-cinematic i,
.intro-cinematic b {
  inset: 0;
  background:
    linear-gradient(104deg, transparent 0 34%, rgba(41, 217, 255, 0.18) 36%, transparent 39% 56%, rgba(255, 44, 255, 0.22) 58%, transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px 20px);
  transform: translateX(-22%) scaleX(1.4);
  opacity: 0;
}

.intro-cinematic b {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.34), rgba(189, 20, 186, 0.3) 24%, transparent 58%),
    conic-gradient(from 90deg, transparent, rgba(41, 217, 255, 0.22), transparent, rgba(255, 44, 255, 0.25), transparent);
  filter: blur(2px);
}

.intro-cinematic.is-active {
  animation: introOverlay 3600ms cubic-bezier(0.15, 0.82, 0.18, 1) both;
}

.intro-cinematic.is-active::before {
  animation: introPortalCore 3600ms cubic-bezier(0.15, 0.82, 0.18, 1) both;
}

.intro-cinematic.is-active::after {
  animation: introScanGrid 3600ms steps(1, end) both;
}

.intro-cinematic.is-active span {
  animation: introLensStrike 3600ms cubic-bezier(0.16, 0.85, 0.26, 1) both;
}

.intro-cinematic.is-active i {
  animation: introShards 3600ms cubic-bezier(0.18, 0.86, 0.22, 1) both;
}

.intro-cinematic.is-active b {
  animation: introBloomRing 3600ms cubic-bezier(0.16, 0.85, 0.26, 1) both;
}

body.logo-intro-running .site-header,
body.logo-intro-running .experience-controls,
body.logo-intro-running .story-copy,
body.logo-intro-running .phase-modal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  pointer-events: none;
}

.intro-cinematic.is-active ~ .site-header,
.intro-cinematic.is-active ~ .experience-controls,
.intro-cinematic.is-active ~ main .story-copy {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  pointer-events: none;
}

.site-header,
.experience-controls,
.story-copy {
  transition:
    opacity 620ms cubic-bezier(0.16, 0.85, 0.26, 1),
    transform 620ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.logo-drawn {
  overflow: visible;
  fill: none;
  stroke: var(--purple);
  stroke-width: 38;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(189, 20, 186, 0.55));
}

.logo-drawn .core,
.logo-drawn circle:not(.hole) {
  fill: var(--purple);
  stroke-width: 0;
}

.loader-logo .core {
  fill: #9a0698;
}

.logo-drawn .hole {
  fill: #000;
  stroke-width: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 0, 141, 0.24), transparent 28%),
    linear-gradient(180deg, #020002, #000 68%);
  color: var(--purple-hot);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.asset-status {
  position: fixed;
  left: 50%;
  bottom: 128px;
  z-index: 42;
  width: min(420px, calc(100vw - 32px));
  padding: 13px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(3, 0, 4, 0.86), rgba(34, 4, 48, 0.76)),
    radial-gradient(circle at 18% 20%, rgba(41, 217, 255, 0.2), transparent 45%);
  box-shadow:
    0 0 26px rgba(189, 20, 186, 0.34),
    inset 0 0 24px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  opacity: 0;
  transform: translate3d(-50%, 16px, 0) scale(0.98);
  transition:
    opacity 260ms cubic-bezier(0.16, 0.85, 0.26, 1),
    transform 260ms cubic-bezier(0.16, 0.85, 0.26, 1);
  pointer-events: none;
}

.asset-status.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.asset-status span,
.asset-status b {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-status span {
  color: rgba(248, 239, 250, 0.78);
}

.asset-status b {
  color: #fff;
}

.asset-status i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.asset-status em {
  display: block;
  width: var(--asset-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #29d9ff, #fff, #bd14ba);
  box-shadow: 0 0 20px rgba(189, 20, 186, 0.85);
  transition: width 180ms linear;
}

.loader.is-done .loader-mark {
  animation: loaderCollapsePortal 700ms cubic-bezier(0.16, 0.85, 0.26, 1) both;
}

.loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54vw, 430px);
  aspect-ratio: 1;
}

.loader-mark::before,
.loader-mark::after,
.loader-mark i {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.loader-mark::before {
  inset: 8%;
  border: 1px solid rgba(189, 20, 186, 0.28);
  box-shadow: inset 0 0 28px rgba(189, 20, 186, 0.2), 0 0 44px rgba(189, 20, 186, 0.18);
}

.loader-mark::after {
  inset: 19%;
  border: 1px solid rgba(248, 239, 250, 0.12);
}

.loader-mark i {
  inset: 2%;
  border: 2px solid transparent;
  border-top-color: rgba(189, 20, 186, 0.88);
  border-right-color: rgba(189, 20, 186, 0.16);
  animation: loaderOrbit 2600ms linear infinite;
}

.loader-mark i:nth-child(2) {
  inset: 15%;
  border-top-color: rgba(248, 239, 250, 0.7);
  border-left-color: rgba(189, 20, 186, 0.22);
  animation-duration: 3600ms;
  animation-direction: reverse;
}

.loader-logo-image {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 0 22px rgba(189, 20, 186, 0.72));
  animation: loaderPulse 2200ms cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.brand-logo {
  width: 28px;
  height: 24px;
  stroke-width: 70;
}

.brand-logo circle:not(.hole) {
  fill: var(--purple);
}

.brand-logo-image {
  width: 38px;
  height: 34px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(189, 20, 186, 0.9))
    drop-shadow(0 0 22px rgba(189, 20, 186, 0.45));
}

.loader-meta {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 260px;
}

.loader-meta span {
  color: rgba(248, 239, 250, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.loader-count {
  min-width: 70px;
  border-top: 1px solid rgba(189, 20, 186, 0.5);
  padding-top: 8px;
  color: var(--purple-hot);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 18px var(--purple-hot);
}

.site-header {
  position: fixed;
  top: 38px;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand,
.nav-pill a,
.story-copy a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(248, 239, 250, 0.82);
  font-size: 14px;
  font-weight: 700;
  min-width: 94px;
}

.header-title {
  min-width: min(340px, 30vw);
  color: rgba(248, 239, 250, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 18px rgba(189, 20, 186, 0.55);
}

.phase-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: min(340px, 26vw);
  border: 1px solid rgba(189, 20, 186, 0.34);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(7, 0, 8, 0.68);
  color: rgba(248, 239, 250, 0.62);
  font: 700 10px/1 "IBM Plex Mono", Consolas, monospace;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.035), 0 0 24px rgba(189, 20, 186, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.phase-menu b {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 11px;
}

.phase-menu i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.phase-menu[aria-expanded="true"] i {
  transform: translateY(2px) rotate(225deg);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  border: 1px solid rgba(189, 20, 186, 0.5);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(7, 0, 8, 0.72);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.05), 0 0 28px rgba(189, 20, 186, 0.18);
  backdrop-filter: blur(18px);
}

.nav-pill a {
  color: rgba(248, 239, 250, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.brand:hover,
.nav-pill a:hover,
.phase-menu:hover,
.control-button:hover,
.flight-wheel button:hover,
.track-picker select:hover,
.story-copy :is(p, h1, h2, span, a):hover {
  animation: textDistort 1180ms steps(1, end) infinite;
  color: #fff6ff;
  text-shadow:
    -1px 0 rgba(41, 217, 255, 0.74),
    1px 0 rgba(255, 44, 255, 0.8),
    0 0 18px rgba(189, 20, 186, 0.7),
    0 14px 28px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
  will-change: filter, text-shadow;
}

.phase-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease, visibility 260ms ease;
  visibility: hidden;
}

.phase-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.phase-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(189, 20, 186, 0.18), transparent 42%),
    rgba(2, 0, 4, 0.56);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
}

.phase-modal-panel {
  position: relative;
  width: min(760px, 92vw);
  max-height: min(720px, 82vh);
  overflow: hidden;
  border: 1px solid rgba(189, 20, 186, 0.54);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 0, 18, 0.92), rgba(3, 0, 6, 0.82)),
    radial-gradient(circle at 18% 0%, rgba(189, 20, 186, 0.22), transparent 38%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.04),
    0 0 58px rgba(189, 20, 186, 0.34);
  transform: translateY(18px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.phase-modal.is-open .phase-modal-panel {
  transform: translateY(0) scale(1);
}

.phase-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(41, 217, 255, 0.09), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.phase-modal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(189, 20, 186, 0.28);
  color: var(--purple-hot);
  text-shadow: 0 0 18px rgba(189, 20, 186, 0.75);
  font-size: 12px;
  font-weight: 700;
}

.phase-modal-head button {
  min-height: 34px;
  border: 1px solid rgba(248, 239, 250, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(248, 239, 250, 0.06);
  color: var(--ink);
  font: 700 11px/1 "IBM Plex Mono", Consolas, monospace;
  cursor: pointer;
}

.phase-modal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-height: calc(min(720px, 82vh) - 72px);
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(189, 20, 186, 0.75) rgba(255, 255, 255, 0.06);
}

.phase-choice {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border: 1px solid rgba(248, 239, 250, 0.11);
  border-radius: 10px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 239, 250, 0.72);
  font: 700 12px/1.25 "IBM Plex Mono", Consolas, monospace;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.phase-choice em {
  color: var(--purple-hot);
  font-style: normal;
  text-shadow: 0 0 14px rgba(189, 20, 186, 0.72);
}

.phase-choice:hover,
.phase-choice.is-active {
  transform: translateX(4px);
  border-color: rgba(189, 20, 186, 0.72);
  background: rgba(143, 0, 141, 0.18);
  color: #fff6ff;
  box-shadow: inset 0 0 22px rgba(189, 20, 186, 0.08), 0 0 24px rgba(189, 20, 186, 0.16);
}

.phase-choice:hover span {
  display: inline-block;
  animation: textDistort 1180ms steps(1, end) infinite;
}

.phase-menu,
.control-button,
.path-actions a,
.gateway-link,
.phase-choice,
.phase-modal-head button {
  isolation: isolate;
  clip-path: polygon(16px 0, calc(100% - 32px) 0, calc(100% - 18px) 10px, 100% 10px, 100% calc(100% - 12px), calc(100% - 18px) 100%, 32px 100%, 18px calc(100% - 10px), 0 calc(100% - 10px), 0 12px);
}

.control-button,
.path-actions a,
.gateway-link,
.phase-modal-head button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 80, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(92, 72, 255, 0.2), transparent 24%, rgba(4, 0, 10, 0.72) 52%, rgba(189, 20, 186, 0.16)),
    linear-gradient(90deg, rgba(41, 217, 255, 0.12), rgba(143, 0, 141, 0.22) 48%, rgba(41, 217, 255, 0.08)),
    rgba(3, 0, 8, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(248, 239, 250, 0.08),
    inset 0 8px 20px rgba(87, 83, 255, 0.16),
    inset 0 -14px 22px rgba(0, 0, 0, 0.54),
    0 0 28px rgba(189, 20, 186, 0.24);
}

.control-button::before,
.path-actions a::before,
.gateway-link::before,
.phase-modal-head button::before {
  content: "";
  position: absolute;
  inset: 4px 7px;
  z-index: -1;
  clip-path: polygon(14px 0, calc(100% - 24px) 0, calc(100% - 12px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 13px) 100%, 24px 100%, 12px calc(100% - 8px), 0 calc(100% - 8px), 0 8px);
  border: 1px solid rgba(248, 239, 250, 0.16);
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(41, 217, 255, 0.34) 12%, transparent 18% 82%, rgba(189, 20, 186, 0.4) 88%, transparent 94%),
    rgba(0, 0, 0, 0.38);
  opacity: 0.86;
}

.control-button::after,
.path-actions a::after,
.gateway-link::after,
.phase-modal-head button::after {
  content: "";
  position: absolute;
  inset: -40% -18%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 34%, rgba(41, 217, 255, 0.3) 46%, rgba(255, 255, 255, 0.42) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-38%) rotate(3deg);
}

.control-button:hover::after,
.path-actions a:hover::after,
.gateway-link:hover::after,
.phase-modal-head button:hover::after {
  animation: buttonScan 720ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.control-button:hover,
.path-actions a:hover,
.path-actions a.is-active,
.gateway-link:hover,
.phase-modal-head button:hover {
  border-color: rgba(248, 239, 250, 0.72);
  background:
    linear-gradient(180deg, rgba(92, 72, 255, 0.32), transparent 24%, rgba(8, 0, 16, 0.78) 52%, rgba(255, 44, 255, 0.24)),
    linear-gradient(90deg, rgba(41, 217, 255, 0.22), rgba(143, 0, 141, 0.34) 48%, rgba(41, 217, 255, 0.16)),
    rgba(8, 0, 14, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(248, 239, 250, 0.18),
    inset 0 9px 20px rgba(87, 83, 255, 0.22),
    inset 0 -18px 26px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(41, 217, 255, 0.2),
    0 0 46px rgba(189, 20, 186, 0.42);
}

.nav-pill i {
  width: 36px;
  height: 3px;
  background: var(--ink);
  box-shadow: 0 0 16px rgba(248, 239, 250, 0.8);
}

.experience-controls {
  position: fixed;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(248, 239, 250, 0.16);
  border-radius: 999px;
  background: rgba(5, 0, 7, 0.72);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04), 0 0 34px rgba(189, 20, 186, 0.2);
  backdrop-filter: blur(18px);
}

.control-button,
.track-picker select {
  min-height: 38px;
  border: 1px solid rgba(189, 20, 186, 0.42);
  border-radius: 999px;
  background: rgba(18, 0, 20, 0.78);
  color: var(--ink);
  font: 700 12px/1 "IBM Plex Mono", Consolas, monospace;
}

.control-button {
  padding: 0 15px;
  cursor: pointer;
}

.flight-toggle {
  min-width: 72px;
}

.phase-step {
  min-width: 86px;
}

.control-button.is-active {
  background: rgba(143, 0, 141, 0.72);
  box-shadow: 0 0 20px rgba(189, 20, 186, 0.46);
}

.control-button.is-pending {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 18px rgba(41, 217, 255, 0.22),
    0 0 26px rgba(189, 20, 186, 0.32);
}

.control-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.track-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 239, 250, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.track-picker select {
  width: 238px;
  padding: 0 12px;
  outline: none;
}

.speed-control,
.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(189, 20, 186, 0.32);
  border-radius: 999px;
  background: rgba(18, 0, 20, 0.62);
  color: rgba(248, 239, 250, 0.58);
  font: 700 10px/1 "IBM Plex Mono", Consolas, monospace;
}

.speed-control input,
.volume-control input {
  width: 92px;
  accent-color: var(--purple-hot);
}

.speed-control b,
.volume-control b {
  min-width: 34px;
  color: var(--ink);
  font-size: 11px;
}

.volume-control {
  border-color: rgba(41, 217, 255, 0.26);
}

.volume-control input {
  width: 76px;
}

.volume-control b {
  min-width: 30px;
}

.flight-console {
  position: fixed;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(96px, 12vh, 138px);
  z-index: 25;
  width: min(320px, calc(100vw - 34px));
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.94);
  transition:
    opacity 260ms cubic-bezier(0.16, 0.85, 0.26, 1),
    transform 260ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.flight-console.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.flight-wheel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 54px);
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(189, 20, 186, 0.48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(189, 20, 186, 0.28), transparent 39%),
    linear-gradient(135deg, rgba(7, 0, 12, 0.88), rgba(2, 0, 4, 0.72));
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.04),
    0 0 44px rgba(189, 20, 186, 0.28);
  backdrop-filter: blur(20px);
}

.flight-wheel::before,
.flight-wheel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(248, 239, 250, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.flight-wheel::after {
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  border-color: rgba(41, 217, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 0 22px rgba(41, 217, 255, 0.1),
    0 0 28px rgba(189, 20, 186, 0.28);
  transform: translate(-50%, -50%);
}

.flight-wheel button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  border: 1px solid rgba(248, 239, 250, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(41, 217, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(30, 0, 36, 0.86), rgba(7, 0, 10, 0.86));
  color: var(--ink);
  font: 700 10px/1 "IBM Plex Mono", Consolas, monospace;
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(189, 20, 186, 0.16);
  cursor: pointer;
}

.flight-wheel button:hover,
.flight-wheel button:active {
  border-color: rgba(189, 20, 186, 0.74);
  color: #fff;
  box-shadow:
    inset 0 0 18px rgba(189, 20, 186, 0.18),
    0 0 24px rgba(189, 20, 186, 0.46);
}

.flight-wheel [data-flight-move="up"] {
  grid-column: 2;
  grid-row: 1;
}

.flight-wheel [data-flight-move="left"] {
  grid-column: 1;
  grid-row: 2;
}

.flight-wheel [data-flight-move="right"] {
  grid-column: 3;
  grid-row: 2;
}

.flight-wheel [data-flight-move="down"] {
  grid-column: 2;
  grid-row: 3;
}

.flight-wheel [data-flight-move="forward"] {
  grid-column: 2;
  grid-row: 2;
  border-color: rgba(189, 20, 186, 0.58);
  color: #fff;
}

.flight-wheel [data-flight-move="back"] {
  grid-column: 1;
  grid-row: 3;
}

.flight-wheel [data-flight-reset] {
  grid-column: 3;
  grid-row: 3;
}

.flight-readout {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(189, 20, 186, 0.28);
  border-radius: 999px;
  background: rgba(5, 0, 7, 0.72);
  color: rgba(248, 239, 250, 0.62);
  font: 700 10px/1.2 "IBM Plex Mono", Consolas, monospace;
  text-align: center;
  backdrop-filter: blur(16px);
}

.flight-readout b {
  color: var(--ink);
  font-size: 10px;
}

.music-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 34px;
  height: 28px;
  padding-right: 5px;
}

.music-bars i {
  width: 3px;
  height: 9px;
  border-radius: 99px;
  background: var(--purple-hot);
  opacity: 0.4;
  transform-origin: bottom;
}

.experience-controls.is-music-playing .music-bars i {
  animation: musicBar 720ms ease-in-out infinite;
}

.experience-controls.is-music-playing .music-bars i:nth-child(2) {
  animation-delay: 90ms;
}

.experience-controls.is-music-playing .music-bars i:nth-child(3) {
  animation-delay: 180ms;
}

.experience-controls.is-music-playing .music-bars i:nth-child(4) {
  animation-delay: 270ms;
}

.experience-controls.is-music-playing .music-bars i:nth-child(5) {
  animation-delay: 360ms;
}

main {
  position: relative;
  z-index: 10;
}

.story-panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 116px clamp(24px, 7vw, 96px) 76px;
}

.hero-panel {
  min-height: 118vh;
  align-items: end;
}

.align-right {
  justify-items: end;
}

.final-panel {
  min-height: 110vh;
  place-items: center;
  text-align: center;
}

.path-panel {
  display: none;
  min-height: 112vh;
  padding-top: 148px;
}

body[data-active-path] .main-panel {
  display: none;
}

body[data-active-path="blockchain"] .path-panel[data-path-scene="blockchain"],
body[data-active-path="web-mobile"] .path-panel[data-path-scene="web-mobile"],
body[data-active-path="erp"] .path-panel[data-path-scene="erp"],
body[data-active-path="ai"] .path-panel[data-path-scene="ai"] {
  display: grid;
}

.story-copy {
  width: min(860px, 100%);
  transform: translateY(40px);
  opacity: 0;
  transition: opacity 620ms cubic-bezier(0.16, 0.85, 0.26, 1), transform 620ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

.story-panel.is-active .story-copy {
  transform: translateY(0);
  opacity: 1;
}

.story-copy p {
  color: var(--purple-hot);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(189, 20, 186, 0.72);
}

.story-copy h1,
.story-copy h2 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  line-height: 0.9;
}

.story-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(56px, 10vw, 150px);
}

.story-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 108px);
}

.path-panel .story-copy {
  width: min(780px, 100%);
}

.path-panel .story-copy h2 {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.96;
}

.path-panel .story-copy span {
  max-width: 760px;
}

.story-copy span {
  display: block;
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.35;
}

.story-copy :is(h1, h2)[data-hover-text] {
  position: relative;
  isolation: isolate;
}

.story-copy :is(h1, h2)[data-hover-text]::before,
.story-copy :is(h1, h2)[data-hover-text]::after {
  content: attr(data-hover-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  color: inherit;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  mix-blend-mode: screen;
}

.story-copy :is(h1, h2)[data-hover-text]::before {
  clip-path: inset(0 0 54% 0);
  color: rgba(41, 217, 255, 0.9);
  text-shadow: 0 0 22px rgba(41, 217, 255, 0.65);
}

.story-copy :is(h1, h2)[data-hover-text]::after {
  clip-path: inset(47% 0 0 0);
  color: rgba(255, 44, 255, 0.9);
  text-shadow: 0 0 26px rgba(255, 44, 255, 0.7);
}

.story-copy :is(h1, h2)[data-hover-text]:hover::before {
  opacity: 0.82;
  animation: titleSliceTop 920ms steps(1, end) infinite;
}

.story-copy:hover :is(h1, h2)[data-hover-text]::before,
.story-copy.is-hovering :is(h1, h2)[data-hover-text]::before {
  opacity: 0.82;
  animation: titleSliceTop 920ms steps(1, end) infinite;
}

.story-copy :is(h1, h2)[data-hover-text]:hover::after {
  opacity: 0.78;
  animation: titleSliceBottom 920ms steps(1, end) infinite;
}

.story-copy:hover :is(h1, h2)[data-hover-text]::after,
.story-copy.is-hovering :is(h1, h2)[data-hover-text]::after {
  opacity: 0.78;
  animation: titleSliceBottom 920ms steps(1, end) infinite;
}

.story-copy:hover :is(h1, h2)[data-hover-text],
.story-copy.is-hovering :is(h1, h2)[data-hover-text] {
  animation: textDistort 1180ms steps(1, end) infinite;
  color: #fff6ff;
  text-shadow:
    -1px 0 rgba(41, 217, 255, 0.74),
    1px 0 rgba(255, 44, 255, 0.8),
    0 0 22px rgba(189, 20, 186, 0.76),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.story-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid rgba(189, 20, 186, 0.58);
  border-radius: 999px;
  padding: 0 28px;
  background: rgba(17, 0, 18, 0.72);
  color: #fbd6ff;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(189, 20, 186, 0.22);
}

.path-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin: 34px auto 0;
}

.path-actions a {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border-color: rgba(248, 239, 250, 0.22);
  background: rgba(16, 0, 18, 0.72);
  color: #f8effa;
}

.path-actions a::after {
  content: none;
}

.path-actions a:hover,
.path-actions a.is-active {
  border-color: rgba(248, 239, 250, 0.5);
  background: rgba(48, 0, 52, 0.82);
  box-shadow: 0 0 34px rgba(189, 20, 186, 0.38);
}

.lobby-panel .story-copy {
  width: min(840px, 100%);
}

.story-panel.is-active.lobby-choice .story-copy,
.story-panel.is-active.gateway-outro .story-copy {
  animation: gatewayStrike 720ms cubic-bezier(0.16, 0.95, 0.2, 1) both;
}

.lobby-choice .story-copy p,
.gateway-outro .story-copy p {
  color: #ff2cff;
  text-shadow:
    0 0 8px rgba(255, 44, 255, 0.95),
    0 0 22px rgba(189, 20, 186, 0.72),
    0 0 48px rgba(189, 20, 186, 0.48);
}

.lobby-choice .story-copy h2,
.gateway-outro .story-copy h2 {
  color: #fff6ff;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.92),
    0 0 34px rgba(255, 44, 255, 0.74),
    0 0 72px rgba(189, 20, 186, 0.62);
  filter: drop-shadow(0 0 22px rgba(189, 20, 186, 0.72));
}

.lobby-choice .path-actions a,
.gateway-outro .path-actions a {
  border-color: rgba(255, 44, 255, 0.44);
  background:
    linear-gradient(90deg, rgba(255, 44, 255, 0.16), rgba(10, 0, 12, 0.8) 38%, rgba(255, 255, 255, 0.08)),
    rgba(16, 0, 18, 0.82);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(189, 20, 186, 0.32);
}

.lobby-choice .path-actions a:hover,
.lobby-choice .path-actions a.is-active,
.gateway-outro .path-actions a:hover,
.gateway-outro .path-actions a.is-active {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(90deg, rgba(255, 44, 255, 0.34), rgba(50, 0, 54, 0.88) 48%, rgba(255, 255, 255, 0.12)),
    rgba(42, 0, 46, 0.88);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.1),
    0 0 36px rgba(255, 44, 255, 0.52),
    0 0 74px rgba(189, 20, 186, 0.28);
}

.lobby-pass .story-copy,
.story-panel.is-active.lobby-pass .story-copy {
  opacity: 0;
  pointer-events: none;
}

.gateway-link {
  margin-top: 34px;
}

body .control-button,
body .path-actions a,
body .gateway-link,
body .phase-modal-head button {
  border-radius: 8px;
  border-color: rgba(248, 239, 250, 0.24);
  background:
    linear-gradient(180deg, rgba(94, 84, 255, 0.34) 0 8%, transparent 9% 25%, rgba(4, 0, 10, 0.9) 54%, rgba(20, 0, 24, 0.96)),
    linear-gradient(90deg, rgba(41, 217, 255, 0.22), rgba(143, 0, 141, 0.3) 42%, rgba(255, 44, 255, 0.2) 74%, rgba(41, 217, 255, 0.12)),
    rgba(3, 0, 8, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 9px 18px rgba(94, 84, 255, 0.2),
    inset 0 -18px 24px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(189, 20, 186, 0.22);
  transform: translateZ(0);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

body .control-button:hover,
body .path-actions a:hover,
body .path-actions a.is-active,
body .gateway-link:hover,
body .phase-modal-head button:hover {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(94, 84, 255, 0.44) 0 9%, transparent 10% 23%, rgba(7, 0, 14, 0.92) 52%, rgba(52, 0, 58, 0.96)),
    linear-gradient(90deg, rgba(41, 217, 255, 0.35), rgba(143, 0, 141, 0.4) 42%, rgba(255, 44, 255, 0.34) 74%, rgba(41, 217, 255, 0.2)),
    rgba(8, 0, 14, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 11px 22px rgba(94, 84, 255, 0.28),
    inset 0 -20px 26px rgba(0, 0, 0, 0.76),
    0 0 18px rgba(41, 217, 255, 0.22),
    0 0 42px rgba(189, 20, 186, 0.46),
    0 10px 32px rgba(0, 0, 0, 0.46);
  filter: brightness(1.08) contrast(1.1);
  transform: translateY(-1px) perspective(500px) rotateX(4deg);
}

body .control-button::before,
body .path-actions a::before,
body .gateway-link::before,
body .phase-modal-head button::before {
  inset: 5px 8px;
  border-color: rgba(248, 239, 250, 0.22);
  background:
    linear-gradient(90deg, rgba(41, 217, 255, 0.42) 0 7%, transparent 8% 42%, rgba(255, 255, 255, 0.16) 47% 53%, transparent 58% 92%, rgba(255, 44, 255, 0.42) 93% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(0, 0, 0, 0.34));
  opacity: 0.96;
}

body .control-button::after,
body .path-actions a::after,
body .gateway-link::after,
body .phase-modal-head button::after {
  content: "";
  inset: -30% -22%;
  background:
    linear-gradient(100deg, transparent 28%, rgba(41, 217, 255, 0.16) 39%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 44, 255, 0.22) 56%, transparent 68%);
}

body .control-button:hover::after,
body .path-actions a:hover::after,
body .gateway-link:hover::after,
body .phase-modal-head button:hover::after {
  animation: buttonScan 860ms cubic-bezier(0.16, 0.85, 0.26, 1);
}

@keyframes loaderPulse {
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 32px rgba(189, 20, 186, 0.82));
  }
}

@keyframes loaderOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderCollapsePortal {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  46% {
    transform: scale(0.58) rotate(-11deg);
    filter: brightness(1.65) blur(0);
  }

  100% {
    transform: scale(0.08) rotate(24deg);
    filter: brightness(3.2) blur(6px);
  }
}

@keyframes introOverlay {
  0% {
    opacity: 1;
    filter: brightness(1.8) contrast(1.3);
  }

  18% {
    opacity: 0.94;
  }

  48% {
    opacity: 0.48;
    filter: brightness(1.26) contrast(1.18);
  }

  76% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    filter: brightness(1) contrast(1);
  }
}

@keyframes introPortalCore {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(0deg);
    filter: blur(10px);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4) rotate(38deg);
    filter: blur(3px);
  }

  28% {
    transform: translate(-50%, -50%) scale(3.2) rotate(132deg);
    opacity: 0.62;
    filter: blur(9px);
  }

  52% {
    transform: translate(-50%, -50%) scale(6.2) rotate(218deg);
    opacity: 0.24;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(9) rotate(360deg);
  }
}

@keyframes introLensStrike {
  0%,
  44% {
    opacity: 0;
    transform: translateX(-115%) skewX(-18deg);
  }

  58% {
    opacity: 1;
    transform: translateX(0) skewX(-18deg);
  }

  72% {
    opacity: 0.65;
    transform: translateX(78%) skewX(-18deg);
  }

  100% {
    opacity: 0;
    transform: translateX(116%) skewX(-18deg);
  }
}

@keyframes introScanGrid {
  0%,
  18%,
  34%,
  49%,
  64%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  24% {
    opacity: 0.38;
    transform: translate3d(4px, -7px, 0);
  }

  53% {
    opacity: 0.34;
    transform: translate3d(-6px, 4px, 0);
  }

  68% {
    opacity: 0.18;
    transform: translate3d(3px, 2px, 0);
  }
}

@keyframes introShards {
  0% {
    opacity: 0;
    transform: translateX(-48%) scaleX(1.8);
    clip-path: polygon(0 0, 18% 0, 8% 100%, 0 100%);
  }

  24% {
    opacity: 0.42;
    transform: translateX(-18%) scaleX(1.36);
    clip-path: polygon(0 6%, 36% 0, 24% 100%, 0 90%);
  }

  56% {
    opacity: 0.24;
    transform: translateX(12%) scaleX(1.12);
    clip-path: polygon(62% 0, 100% 12%, 100% 86%, 74% 100%);
  }

  100% {
    opacity: 0;
    transform: translateX(46%) scaleX(0.92);
    clip-path: polygon(88% 0, 100% 0, 100% 100%, 94% 100%);
  }
}

@keyframes introBloomRing {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  26% {
    opacity: 0.56;
    transform: scale(0.82) rotate(60deg);
  }

  60% {
    opacity: 0.3;
    transform: scale(1.45) rotate(156deg);
  }

  100% {
    opacity: 0;
    transform: scale(2.3) rotate(260deg);
  }
}

@keyframes musicBar {
  0%,
  100% {
    height: 8px;
    opacity: 0.38;
  }

  50% {
    height: 23px;
    opacity: 0.92;
  }
}

@keyframes gatewayStrike {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.92);
    filter: blur(10px) brightness(1.8);
  }

  38% {
    opacity: 1;
    transform: translateY(-8px) scale(1.045);
    filter: blur(0) brightness(1.6);
  }

  58% {
    transform: translateY(3px) scale(0.99);
    filter: brightness(1.2);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes textDistort {
  0% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1.04) saturate(1.08);
    text-shadow:
      -1px 0 rgba(41, 217, 255, 0.62),
      1px 0 rgba(255, 44, 255, 0.72),
      0 0 18px rgba(189, 20, 186, 0.54);
  }

  12% {
    transform: translate3d(0, -1px, 0);
    filter: contrast(1.42) saturate(1.45) brightness(1.12);
    text-shadow:
      -4px -1px rgba(41, 217, 255, 0.72),
      3px 1px rgba(255, 44, 255, 0.82),
      0 0 24px rgba(255, 44, 255, 0.62),
      0 18px 34px rgba(0, 0, 0, 0.5);
  }

  18% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1.08) saturate(1.2);
    text-shadow:
      -1px 0 rgba(41, 217, 255, 0.64),
      1px 0 rgba(255, 44, 255, 0.72),
      0 0 16px rgba(189, 20, 186, 0.56);
  }

  41% {
    transform: translate3d(1px, 0, 0);
    filter: contrast(1.7) saturate(1.68) brightness(1.2);
    text-shadow:
      3px 0 rgba(41, 217, 255, 0.9),
      -5px 0 rgba(255, 44, 255, 0.78),
      0 -1px rgba(255, 255, 255, 0.72),
      0 0 30px rgba(189, 20, 186, 0.78);
  }

  48% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1.06) saturate(1.18);
    text-shadow:
      -1px 0 rgba(41, 217, 255, 0.62),
      1px 0 rgba(255, 44, 255, 0.72),
      0 0 18px rgba(189, 20, 186, 0.56);
  }

  73% {
    transform: translate3d(-1px, 1px, 0);
    filter: contrast(1.5) saturate(1.55) brightness(1.08);
    text-shadow:
      -3px 1px rgba(41, 217, 255, 0.8),
      4px -1px rgba(255, 44, 255, 0.84),
      0 0 22px rgba(255, 255, 255, 0.28),
      0 0 34px rgba(189, 20, 186, 0.7);
  }

  100% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1.04) saturate(1.08);
    text-shadow:
      -1px 0 rgba(41, 217, 255, 0.62),
      1px 0 rgba(255, 44, 255, 0.72),
      0 0 18px rgba(189, 20, 186, 0.54);
  }
}

@keyframes buttonScan {
  0% {
    opacity: 0;
    transform: translateX(-54%) skewX(-18deg);
  }

  18% {
    opacity: 0.95;
  }

  42% {
    opacity: 0.42;
    transform: translateX(-4%) skewX(-18deg);
  }

  100% {
    opacity: 0;
    transform: translateX(56%) skewX(-18deg);
  }
}

@keyframes titleSliceTop {
  0%,
  100% {
    clip-path: inset(0 0 56% 0);
    transform: translate3d(-2px, -1px, 0);
    opacity: 0.54;
  }

  16% {
    clip-path: inset(10% 0 68% 0);
    transform: translate3d(7px, -2px, 0);
    opacity: 0.92;
  }

  32% {
    clip-path: inset(0 0 72% 0);
    transform: translate3d(-5px, 1px, 0);
    opacity: 0.66;
  }

  54% {
    clip-path: inset(22% 0 48% 0);
    transform: translate3d(4px, 0, 0);
    opacity: 0.88;
  }

  76% {
    clip-path: inset(6% 0 61% 0);
    transform: translate3d(-3px, -1px, 0);
    opacity: 0.62;
  }
}

@keyframes titleSliceBottom {
  0%,
  100% {
    clip-path: inset(48% 0 0 0);
    transform: translate3d(2px, 1px, 0);
    opacity: 0.46;
  }

  14% {
    clip-path: inset(64% 0 12% 0);
    transform: translate3d(-6px, 2px, 0);
    opacity: 0.86;
  }

  38% {
    clip-path: inset(42% 0 28% 0);
    transform: translate3d(5px, -1px, 0);
    opacity: 0.72;
  }

  58% {
    clip-path: inset(72% 0 0 0);
    transform: translate3d(-4px, 1px, 0);
    opacity: 0.9;
  }

  82% {
    clip-path: inset(52% 0 20% 0);
    transform: translate3d(3px, 0, 0);
    opacity: 0.6;
  }
}

@media (max-width: 1180px) {
  .site-header {
    top: 24px;
    left: clamp(18px, 3vw, 36px);
    right: clamp(18px, 3vw, 36px);
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo-image {
    width: 34px;
    height: 31px;
  }

  .header-title {
    display: none;
  }

  .phase-menu {
    justify-self: center;
    max-width: min(420px, 42vw);
  }

  .nav-pill {
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
  }

  .nav-pill a {
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-pill i {
    width: 28px;
  }

  .story-panel {
    padding-inline: clamp(28px, 5vw, 64px);
  }

  .story-copy {
    width: min(760px, 100%);
  }

  .story-copy h1 {
    font-size: clamp(54px, 9vw, 118px);
  }

  .story-copy h2,
  .path-panel .story-copy h2 {
    font-size: clamp(42px, 7vw, 78px);
  }

  .experience-controls {
    left: clamp(18px, 4vw, 58px);
    right: clamp(18px, 4vw, 58px);
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .track-picker select {
    width: min(230px, 28vw);
  }

  .volume-control input {
    width: 70px;
  }

  .flight-console {
    right: clamp(18px, 4vw, 58px);
    bottom: 116px;
  }
}

@media (max-width: 820px) {
  .cursor {
    display: none;
  }

  .site-header {
    top: 16px;
    left: 14px;
    right: 14px;
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .brand {
    font-size: 0;
    min-width: auto;
  }

  .brand-logo-image {
    width: 34px;
    height: 30px;
  }

  .header-title {
    display: none;
  }

  .phase-menu {
    grid-column: 2;
    justify-self: end;
    width: 100%;
    max-width: min(330px, calc(100vw - 82px));
    min-height: 38px;
    justify-content: flex-start;
  }

  .phase-menu b {
    max-width: min(210px, 48vw);
  }

  .nav-pill {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    scrollbar-width: none;
  }

  .nav-pill::-webkit-scrollbar {
    display: none;
  }

  .nav-pill a {
    font-size: 10px;
  }

  .nav-pill i {
    display: none;
  }

  .story-panel {
    min-height: 108vh;
    padding: 146px 20px 156px;
  }

  .hero-panel {
    min-height: 112vh;
  }

  .story-copy {
    width: min(100%, 620px);
    transform: translateY(24px);
  }

  .story-copy p {
    font-size: 12px;
  }

  .story-copy h1 {
    font-size: clamp(42px, 14vw, 68px);
    line-height: 0.95;
  }

  .story-copy h2,
  .path-panel .story-copy h2,
  .lobby-choice .story-copy h2,
  .gateway-outro .story-copy h2 {
    font-size: clamp(36px, 11vw, 58px);
    line-height: 1;
  }

  .story-copy span {
    max-width: 92vw;
    font-size: 16px;
    line-height: 1.42;
  }

  .path-actions {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    gap: 10px;
    margin-top: 24px;
  }

  .path-actions a {
    min-height: 52px;
    padding-inline: 16px;
    font-size: 12px;
  }

  .experience-controls {
    left: 16px;
    right: 16px;
    bottom: 12px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px;
    gap: 8px;
    padding: 8px;
  }

  .track-picker {
    width: 100%;
    justify-content: center;
  }

  .track-picker select {
    width: min(310px, 66vw);
    min-height: 36px;
  }

  .speed-control {
    width: 100%;
    justify-content: center;
    min-height: 36px;
  }

  .volume-control {
    min-height: 36px;
    justify-content: center;
  }

  .flight-console {
    right: 16px;
    bottom: 166px;
  }

  .phase-step {
    flex: 1;
    min-width: 0;
  }

  .control-button {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .phase-modal {
    padding: 14px;
  }

  .phase-modal-panel {
    border-radius: 14px;
  }

  .phase-choice {
    grid-template-columns: 44px 1fr;
    min-height: 50px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .asset-status {
    bottom: 154px;
    width: calc(100vw - 22px);
    padding: 11px 12px 12px;
  }

  .asset-status span,
  .asset-status b {
    font-size: 0.6rem;
  }

  .site-header {
    gap: 8px;
  }

  .phase-menu span {
    display: none;
  }

  .phase-menu {
    max-width: calc(100vw - 78px);
    padding-inline: 10px;
  }

  .phase-menu b {
    max-width: calc(100vw - 132px);
    font-size: 10px;
  }

  .nav-pill {
    min-height: 40px;
    gap: 12px;
    border-radius: 14px;
  }

  .nav-pill a {
    font-size: 10px;
  }

  .story-panel {
    padding: 136px 16px 178px;
  }

  .story-copy h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .story-copy h2,
  .path-panel .story-copy h2,
  .lobby-choice .story-copy h2,
  .gateway-outro .story-copy h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .story-copy span {
    font-size: 15px;
  }

  .experience-controls {
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .experience-controls::-webkit-scrollbar {
    display: none;
  }

  .control-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding-inline: 8px;
  }

  .music-bars {
    display: none;
  }

  .speed-control,
  .volume-control,
  .track-picker {
    flex: 0 0 auto;
    width: auto;
  }

  .speed-control input {
    width: 82px;
  }

  .volume-control input {
    width: 74px;
  }

  .flight-console {
    left: 10px;
    right: 10px;
    bottom: 39vh;
    width: auto;
  }

  .flight-wheel {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    grid-template-rows: repeat(3, 48px);
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
  }

  .flight-wheel::after {
    width: 78px;
    height: 78px;
  }

  .flight-wheel button {
    min-height: 40px;
    font-size: 9px;
  }

  .track-picker {
    display: inline-flex;
    justify-content: flex-start;
  }

  .track-picker select {
    width: 220px;
    min-width: 220px;
  }

  .phase-modal-panel {
    max-height: 86vh;
  }
}

@media (max-width: 420px) {
  .site-header {
    left: 10px;
    right: 10px;
  }

  .brand-logo-image {
    width: 30px;
    height: 27px;
  }

  .phase-menu {
    max-width: calc(100vw - 64px);
  }

  .nav-pill {
    padding-inline: 10px;
  }

  .story-panel {
    padding-inline: 14px;
  }

  .experience-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .control-button,
  .track-picker select {
    font-size: 10px;
  }
}
