/* =========================================================
   STAR MARK RECORDS — HERO EXPERIENCE
   Pure HTML/CSS/JS. No external framework or font required.
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #02040a;
  --bg-deep: #000107;
  --surface: rgba(7, 12, 27, 0.66);
  --surface-strong: rgba(7, 12, 27, 0.9);
  --text: #f8f7f2;
  --muted: #a9b0c3;
  --gold: #d8ae59;
  --gold-bright: #f6d889;
  --navy: #071a3a;
  --accent: #d8ae59;
  --accent-bright: #f6d889;
  --accent-rgb: 216, 174, 89;
  --accent-secondary: #375cb9;
  --accent-secondary-rgb: 55, 92, 185;
  --line: rgba(255, 255, 255, 0.12);
  --panel-width: min(390px, calc(100vw - 24px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html[data-theme="violet"] {
  --accent: #b98cff;
  --accent-bright: #e2caff;
  --accent-rgb: 185, 140, 255;
  --accent-secondary: #ff4fb8;
  --accent-secondary-rgb: 255, 79, 184;
}

html[data-theme="cyan"] {
  --accent: #62d9ff;
  --accent-bright: #c4f3ff;
  --accent-rgb: 98, 217, 255;
  --accent-secondary: #7b8dff;
  --accent-secondary-rgb: 123, 141, 255;
}

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

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
  scrollbar-color: rgba(var(--accent-rgb), 0.65) #02040a;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

::selection {
  color: #04060d;
  background: var(--accent-bright);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  border-radius: 999px;
  background: #060a15;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.experience {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-deep);
}

.space-canvas,
.cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.space-canvas {
  z-index: -5;
}

.cosmos {
  z-index: -6;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--accent-rgb), 0.08), transparent 18%),
    radial-gradient(circle at 18% 20%, rgba(28, 61, 132, 0.2), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(95, 30, 122, 0.13), transparent 34%),
    linear-gradient(180deg, #01030a 0%, #020611 50%, #000107 100%);
}

.cosmos::before,
.cosmos::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.35;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 13% 27%, rgba(255, 255, 255, 0.75) 0 0.5px, transparent 1.4px),
    radial-gradient(circle at 68% 16%, rgba(255, 255, 255, 0.55) 0 0.6px, transparent 1.4px),
    radial-gradient(circle at 39% 71%, rgba(255, 255, 255, 0.5) 0 0.5px, transparent 1.4px),
    radial-gradient(circle at 88% 65%, rgba(var(--accent-rgb), 0.55) 0 0.6px, transparent 1.5px);
  background-size: 41px 43px, 73px 79px, 97px 89px, 131px 137px;
  animation: dust-drift 42s linear infinite;
}

.cosmos::after {
  opacity: 0.16;
  filter: blur(0.2px);
  transform: rotate(17deg) scale(1.2);
  animation-duration: 68s;
  animation-direction: reverse;
}

.galaxy-band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170vmax;
  height: 27vmax;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(24px) saturate(1.2);
  mix-blend-mode: screen;
  transform-origin: center;
  transition: opacity 1.8s ease, filter 1.8s ease;
}

.galaxy-band::before,
.galaxy-band::after {
  content: "";
  position: absolute;
  inset: 18% 4%;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.55), transparent 3%),
    linear-gradient(90deg,
      transparent 0%,
      rgba(68, 94, 174, 0.16) 18%,
      rgba(var(--accent-rgb), 0.34) 37%,
      rgba(255, 255, 255, 0.42) 50%,
      rgba(var(--accent-secondary-rgb), 0.28) 63%,
      rgba(59, 88, 166, 0.12) 82%,
      transparent 100%);
}

.galaxy-band::after {
  inset: 34% 0;
  opacity: 0.45;
  filter: blur(12px);
}

.galaxy-band--one {
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: galaxy-breathe 16s ease-in-out infinite alternate;
}

.galaxy-band--two {
  width: 120vmax;
  height: 17vmax;
  opacity: 0.07;
  transform: translate(-50%, -50%) rotate(28deg);
  animation: galaxy-breathe-secondary 21s ease-in-out infinite alternate;
}

.nebula {
  position: absolute;
  width: 72vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(72px);
  mix-blend-mode: screen;
  will-change: transform;
}

.nebula--gold {
  left: -24vmax;
  top: 17%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.48), transparent 66%);
  animation: nebula-float-one 24s ease-in-out infinite alternate;
}

.nebula--blue {
  right: -30vmax;
  top: -22vmax;
  background: radial-gradient(circle, rgba(30, 85, 186, 0.44), transparent 67%);
  animation: nebula-float-two 31s ease-in-out infinite alternate;
}

.nebula--violet {
  right: -24vmax;
  bottom: -38vmax;
  background: radial-gradient(circle, rgba(var(--accent-secondary-rgb), 0.31), transparent 68%);
  animation: nebula-float-three 28s ease-in-out infinite alternate;
}

.cosmic-dust {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.cosmic-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 25%, rgba(0, 1, 7, 0.12) 55%, rgba(0, 1, 7, 0.8) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.58));
}

.experience[data-state="launching"] .galaxy-band,
.experience[data-state="revealed"] .galaxy-band {
  opacity: 0.4;
  filter: blur(18px) saturate(1.55);
}

.experience[data-state="revealed"] .galaxy-band--two {
  opacity: 0.18;
}

/* Top bar */
.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: calc(18px + var(--safe-top)) calc(24px + var(--safe-right)) 18px calc(24px + var(--safe-left));
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 600ms ease, transform 600ms var(--ease-out);
}

.experience[data-state="revealed"] .mini-brand {
  opacity: 1;
  transform: translateY(0);
}

.mini-brand img {
  width: 41px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.35));
}

.mini-brand span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.mini-brand strong {
  font-size: 0.71rem;
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.mini-brand small {
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.45em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-action,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 7, 17, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.text-action:hover,
.icon-button:hover {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.09);
}

.text-action:active,
.icon-button:active {
  transform: scale(0.96);
}

.text-action {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience[data-state="revealed"] .text-action {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.icon-button svg {
  width: 20px;
  fill: currentColor;
}

.settings-trigger svg {
  transition: transform 500ms var(--ease-out);
}

.settings-trigger:hover svg,
.settings-trigger[aria-expanded="true"] svg {
  transform: rotate(80deg);
}

/* Intro */
.intro-scene {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: calc(80px + var(--safe-top)) 24px calc(44px + var(--safe-bottom));
  text-align: center;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.intro-kicker {
  margin: 0 0 -2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(0.59rem, 1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.44em;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-rise 900ms 650ms var(--ease-out) forwards;
}

.brand-portal {
  position: relative;
  width: clamp(270px, 42vw, 510px);
  aspect-ratio: 1.08;
  display: grid;
  place-items: center;
  margin: clamp(-28px, -2vw, -10px) 0 clamp(-24px, -2vw, -8px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.84);
  animation: portal-arrival 1.8s 180ms var(--ease-out) forwards;
  will-change: transform, opacity, filter;
}

.brand-portal::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), transparent 65%);
  filter: blur(24px);
  opacity: 0.85;
  transition: opacity 300ms ease, transform 300ms ease;
}

.brand-portal:hover::before,
.brand-portal:focus-visible::before {
  opacity: 1;
  transform: scale(1.12);
}

.intro-logo {
  position: relative;
  z-index: 3;
  width: 88%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.18))
    drop-shadow(0 0 48px rgba(var(--accent-rgb), 0.16))
    brightness(1.08);
  transition: transform 500ms var(--ease-out), filter 500ms ease;
}

.brand-portal:hover .intro-logo,
.brand-portal:focus-visible .intro-logo {
  transform: scale(1.035);
  filter:
    drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.32))
    drop-shadow(0 0 72px rgba(var(--accent-rgb), 0.25))
    brightness(1.14);
}

.portal-aura {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(var(--accent-rgb), 0.06), 0 0 28px rgba(var(--accent-rgb), 0.06);
}

.portal-aura::before,
.portal-aura::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.7);
}

.portal-aura::before {
  top: 13%;
  left: 19%;
}

.portal-aura::after {
  right: 9%;
  bottom: 28%;
}

.portal-aura--outer {
  inset: 1%;
  border-style: dashed;
  animation: orbit-spin 26s linear infinite;
}

.portal-aura--middle {
  inset: 9%;
  border-color: rgba(123, 157, 232, 0.2);
  animation: orbit-spin 18s linear infinite reverse;
}

.portal-aura--inner {
  inset: 18%;
  border-color: rgba(var(--accent-rgb), 0.18);
  animation: orbit-spin 13s linear infinite;
}

.portal-scan {
  position: absolute;
  z-index: 2;
  inset: 9%;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.4;
}

.portal-scan::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 85%, rgba(var(--accent-rgb), 0.2) 92%, transparent 100%);
  animation: orbit-spin 5.5s linear infinite;
}

.portal-core {
  position: absolute;
  z-index: 0;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 30px 9px rgba(var(--accent-rgb), 0.28), 0 0 90px 25px rgba(var(--accent-rgb), 0.16);
  opacity: 0.35;
  animation: core-pulse 2.4s ease-in-out infinite;
}

.entry-copy {
  display: grid;
  gap: 5px;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-rise 900ms 2.1s var(--ease-out) forwards;
}

.entry-copy p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(0.75rem, 1.6vw, 0.91rem);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-copy small {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.entry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55);
  animation: signal-pulse 1.8s ease-out infinite;
}

.silent-entry {
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: fade-rise 900ms 2.45s var(--ease-out) forwards;
  transition: color 180ms ease, border-color 180ms ease;
}

.silent-entry:hover {
  color: var(--accent-bright);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.experience[data-state="launching"] .brand-portal {
  animation: portal-collapse 1.15s var(--ease-in-out) forwards;
  pointer-events: none;
}

.experience[data-state="launching"] .entry-copy,
.experience[data-state="launching"] .silent-entry,
.experience[data-state="launching"] .intro-kicker {
  animation: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.experience[data-state="revealed"] .intro-scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Big Bang layers */
.shockwave-layer,
.burst-layer {
  position: fixed;
  z-index: 24;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4vmin;
  aspect-ratio: 1;
  border: 2px solid rgba(var(--accent-rgb), 0.9);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  box-shadow:
    0 0 30px rgba(var(--accent-rgb), 0.62),
    inset 0 0 30px rgba(var(--accent-rgb), 0.3);
  animation: shockwave-expand var(--shock-duration, 1.7s) var(--shock-delay, 0s) var(--ease-out) forwards;
}

.burst-particle,
.music-fragment {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.burst-particle {
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: var(--particle-color, var(--accent-bright));
  box-shadow: 0 0 calc(var(--size, 4px) * 4) var(--particle-color, var(--accent-bright));
  animation: particle-burst var(--duration, 1.5s) var(--delay, 0s) var(--ease-out) forwards;
}

.music-fragment {
  width: var(--icon-size, 34px);
  height: var(--icon-size, 34px);
  color: var(--fragment-color, var(--accent-bright));
  filter: drop-shadow(0 0 12px currentColor);
  animation: icon-burst var(--duration, 2s) var(--delay, 0s) var(--ease-out) forwards;
}

.music-fragment svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Final hero */
.hero-scene {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  padding: calc(108px + var(--safe-top)) max(24px, calc((100vw - 1320px) / 2)) calc(54px + var(--safe-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s 500ms ease, visibility 1s 500ms ease;
}

.experience[data-state="revealed"] .hero-scene {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-shell {
  width: min(1320px, 100%);
  min-height: min(64svh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 28px 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--accent-bright);
  font-size: clamp(0.64rem, 1vw, 0.76rem);
  font-weight: 750;
  letter-spacing: 0.29em;
  opacity: 0;
  transform: translateY(18px);
}

.eyebrow-line {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright));
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.15rem, 7.3vw, 7.2rem);
  font-weight: 760;
  line-height: 0.91;
  letter-spacing: -0.066em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(26px);
}

.hero-copy h1 span {
  display: block;
  margin-top: 0.09em;
  color: transparent;
  background: linear-gradient(110deg, var(--accent), #fff1c2 48%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 55px rgba(var(--accent-rgb), 0.13);
}

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(239, 242, 250, 0.76);
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  line-height: 1.72;
  opacity: 0;
  transform: translateY(22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(18px);
}

.primary-action,
.secondary-action,
.settings-replay {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.primary-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-bright) 55%, var(--accent-secondary) 140%);
  color: #06080e;
  box-shadow: 0 18px 48px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 13, 28, 0.55);
  color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.primary-action svg,
.secondary-action svg,
.settings-replay svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action:hover,
.secondary-action:hover,
.settings-replay:hover {
  transform: translateY(-3px);
}

.primary-action:hover {
  box-shadow: 0 24px 62px rgba(var(--accent-rgb), 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.secondary-action:hover,
.settings-replay:hover {
  border-color: rgba(var(--accent-rgb), 0.56);
  background: rgba(var(--accent-rgb), 0.08);
}

.signal-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.62rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
}

.signal-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}

.experience[data-state="revealed"] .hero-eyebrow,
.experience[data-state="revealed"] .hero-copy h1,
.experience[data-state="revealed"] .hero-lead,
.experience[data-state="revealed"] .hero-actions,
.experience[data-state="revealed"] .signal-line {
  animation: hero-rise 900ms var(--ease-out) forwards;
}

.experience[data-state="revealed"] .hero-copy h1 {
  animation-delay: 120ms;
}

.experience[data-state="revealed"] .hero-lead {
  animation-delay: 260ms;
}

.experience[data-state="revealed"] .hero-actions {
  animation-delay: 410ms;
}

.experience[data-state="revealed"] .signal-line {
  animation-delay: 560ms;
}

/* Vinyl centerpiece */
.vinyl-stage {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.78) rotate(-8deg);
  perspective: 1000px;
}

.experience[data-state="revealed"] .vinyl-stage {
  animation: vinyl-arrival 1.4s 280ms var(--ease-out) forwards;
}

.vinyl-halo {
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.02) 48%, transparent 68%);
  filter: blur(24px);
  animation: halo-breathe 4.6s ease-in-out infinite alternate;
}

.vinyl-disc {
  position: relative;
  z-index: 3;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgba(255, 255, 255, 0.045) 6.5px 7.2px, transparent 7.8px 12px),
    conic-gradient(from 18deg,
      #03050b 0deg,
      #10182a 24deg,
      #03050b 48deg,
      #080b14 78deg,
      #1b2335 98deg,
      #02040a 132deg,
      #111827 188deg,
      #02040a 224deg,
      #171f32 270deg,
      #03050b 322deg,
      #0a1020 360deg);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.018),
    0 38px 90px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(var(--accent-rgb), 0.11),
    inset 0 0 50px rgba(0, 0, 0, 0.82);
  transform: rotateX(7deg) rotateY(-5deg);
  animation: vinyl-spin 16s linear infinite;
}

.vinyl-disc::before,
.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 50%;
}

.vinyl-disc::after {
  inset: 21%;
  border-color: rgba(255, 255, 255, 0.07);
}

.vinyl-reflection {
  position: absolute;
  inset: -22%;
  background: conic-gradient(from 0deg, transparent 0 28deg, rgba(255, 255, 255, 0.1) 38deg, transparent 49deg 187deg, rgba(var(--accent-rgb), 0.08) 202deg, transparent 216deg);
}

.vinyl-label {
  position: relative;
  z-index: 3;
  width: 31%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 24%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(145deg, var(--accent-bright), var(--accent) 62%, #7c5d27);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.3), inset 0 0 18px rgba(255, 255, 255, 0.2);
}

.vinyl-label img {
  width: 72%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.vinyl-hole {
  position: absolute;
  z-index: 5;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #02040a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-12deg);
}

.orbit--outer {
  width: min(47vw, 595px);
  aspect-ratio: 1;
  animation: orbit-spin-3d 24s linear infinite;
}

.orbit--middle {
  width: min(40vw, 505px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(91, 132, 225, 0.17);
  animation: orbit-spin-3d 17s linear infinite reverse;
}

.orbit-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 16px 4px rgba(var(--accent-rgb), 0.5);
}

.orbit-node--one {
  top: 5%;
  left: 27%;
}

.orbit-node--two {
  right: 12%;
  bottom: 18%;
  background: #6ea3ff;
  box-shadow: 0 0 16px 4px rgba(72, 120, 232, 0.5);
}

.frequency-orbit {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 20%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.frequency-orbit span {
  width: 2px;
  height: 12px;
  border-radius: 99px;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
  animation: equalizer 900ms ease-in-out infinite alternate;
}

.frequency-orbit span:nth-child(2) { animation-delay: -200ms; height: 20px; }
.frequency-orbit span:nth-child(3) { animation-delay: -520ms; height: 15px; }
.frequency-orbit span:nth-child(4) { animation-delay: -340ms; height: 24px; }
.frequency-orbit span:nth-child(5) { animation-delay: -690ms; height: 10px; }

/* Worlds */
.worlds {
  width: min(1320px, 100%);
  margin: 18px auto 0;
  padding: 30px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: translateY(36px);
}

.experience[data-state="revealed"] .worlds {
  animation: worlds-arrival 1s 930ms var(--ease-out) forwards;
}

.worlds-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--accent-bright);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.26em;
}

.worlds-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  letter-spacing: -0.035em;
}

.worlds-heading > p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: right;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.world-card {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(6, 11, 25, 0.55);
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 55px rgba(0, 0, 0, 0.22);
  transition: transform 360ms var(--ease-out), border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
  transform-style: preserve-3d;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(var(--card-rgb, var(--accent-rgb)), 0.2), transparent 35%);
  transition: opacity 260ms ease;
  pointer-events: none;
}

.world-card:hover,
.world-card:focus-visible,
.world-card.is-active {
  border-color: rgba(var(--card-rgb, var(--accent-rgb)), 0.48);
  background:
    linear-gradient(135deg, rgba(var(--card-rgb, var(--accent-rgb)), 0.12), transparent 52%),
    rgba(7, 13, 30, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 26px 72px rgba(0, 0, 0, 0.35), 0 0 38px rgba(var(--card-rgb, var(--accent-rgb)), 0.08);
}

.world-card:hover::before,
.world-card:focus-visible::before,
.world-card.is-active::before {
  opacity: 1;
}

.world-card[data-world="distribution"] { --card-rgb: 84, 181, 255; }
.world-card[data-world="management"] { --card-rgb: 210, 105, 255; }
.world-card[data-world="production"] { --card-rgb: 229, 179, 77; }

.world-number {
  position: absolute;
  top: 17px;
  right: 18px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.planet {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateZ(28px);
  box-shadow: inset -18px -15px 24px rgba(0, 0, 0, 0.58), 0 0 36px rgba(var(--card-rgb), 0.24);
  transition: transform 450ms var(--ease-out), box-shadow 300ms ease;
}

.world-card:hover .planet,
.world-card:focus-visible .planet,
.world-card.is-active .planet {
  transform: translateZ(38px) scale(1.06) rotate(5deg);
  box-shadow: inset -18px -15px 24px rgba(0, 0, 0, 0.55), 0 0 52px rgba(var(--card-rgb), 0.39);
}

.planet--distribution {
  background:
    radial-gradient(circle at 31% 26%, rgba(255, 255, 255, 0.72), transparent 8%),
    radial-gradient(circle at 68% 65%, rgba(1, 35, 82, 0.8), transparent 29%),
    linear-gradient(145deg, #5fdbff, #153c85 58%, #04142d);
}

.planet--management {
  background:
    radial-gradient(circle at 31% 26%, rgba(255, 255, 255, 0.72), transparent 8%),
    radial-gradient(circle at 65% 66%, rgba(61, 8, 98, 0.76), transparent 32%),
    linear-gradient(145deg, #f187ff, #7435bb 55%, #1c0738);
}

.planet--production {
  background:
    radial-gradient(circle at 31% 26%, rgba(255, 255, 255, 0.72), transparent 8%),
    radial-gradient(circle at 65% 66%, rgba(77, 43, 1, 0.8), transparent 32%),
    linear-gradient(145deg, #ffe39a, #b6812c 55%, #352006);
}

.planet-atmosphere {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(var(--card-rgb), 0.45);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(var(--card-rgb), 0.32), inset 0 0 14px rgba(var(--card-rgb), 0.15);
  animation: atmosphere-pulse 3.5s ease-in-out infinite alternate;
}

.planet-grid {
  position: absolute;
  inset: 9%;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 16px 16px;
  transform: rotate(18deg);
  mix-blend-mode: overlay;
}

.planet-ring {
  position: absolute;
  width: 142%;
  height: 34%;
  border: 2px solid rgba(var(--card-rgb), 0.43);
  border-left-color: transparent;
  border-right-color: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-16deg);
  box-shadow: 0 0 12px rgba(var(--card-rgb), 0.15);
}

.planet-ring--tilted {
  transform: rotate(22deg);
}

.planet-icon {
  position: relative;
  z-index: 3;
  width: 45px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.44));
}

.world-card-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 9px;
  transform: translateZ(18px);
}

.world-card-copy strong {
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.2;
}

.world-card-copy > span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  line-height: 1.55;
}

.world-card-copy em {
  color: rgb(var(--card-rgb));
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Settings panel */
.settings-panel {
  position: fixed;
  z-index: 110;
  top: max(12px, var(--safe-top));
  right: max(12px, var(--safe-right));
  width: var(--panel-width);
  max-height: calc(100dvh - max(24px, var(--safe-top) + var(--safe-bottom)));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.08), transparent 45%),
    rgba(4, 8, 19, 0.91);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 34px)) scale(0.96);
  transform-origin: top right;
  transition: opacity 280ms ease, visibility 280ms ease, transform 460ms var(--ease-out);
}

.settings-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.settings-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.settings-header p {
  margin: 0 0 4px;
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.25em;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.panel-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.panel-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.settings-body {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.setting-row,
.setting-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.setting-row--switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.setting-row > div,
.setting-label {
  display: grid;
  gap: 4px;
}

.setting-row strong,
.setting-label strong,
.setting-block legend {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 720;
}

.setting-row span,
.setting-label output {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 27px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, border-color 220ms ease;
}

.switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #cad0dd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 260ms var(--ease-out), background 220ms ease;
}

.switch input:checked + span {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.27);
}

.switch input:checked + span::after {
  transform: translateX(21px);
  background: var(--accent-bright);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.setting-label {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 10px;
}

.setting-label output {
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--accent) 0 var(--range, 35%), rgba(255, 255, 255, 0.11) var(--range, 35%) 100%);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  border: 2px solid #070b17;
  border-radius: 50%;
  appearance: none;
  background: var(--accent-bright);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 2px solid #070b17;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

.setting-block legend {
  margin-bottom: 11px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.segmented-control input:checked + span {
  color: #06080d;
  background: linear-gradient(120deg, var(--accent), var(--accent-bright));
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.18);
}

.segmented-control input:focus-visible + span,
.theme-option input:focus-visible + .theme-swatch {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.theme-options {
  display: grid;
  gap: 8px;
}

.theme-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-option:has(input:checked) {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(var(--accent-rgb), 0.08);
}

.theme-option input {
  position: absolute;
  opacity: 0;
}

.theme-swatch {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(1, 3, 10, 0.55), 0 0 14px rgba(255, 255, 255, 0.05);
}

.theme-option--gold .theme-swatch { background: linear-gradient(135deg, #f5d989, #b98634 54%, #25447d); }
.theme-option--violet .theme-swatch { background: linear-gradient(135deg, #e6c6ff, #9e55e6 54%, #ff4fb8); }
.theme-option--cyan .theme-swatch { background: linear-gradient(135deg, #c5f6ff, #34b9ec 54%, #647aff); }

.settings-replay {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
}

.settings-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.61rem;
  line-height: 1.55;
}

.settings-backdrop {
  position: fixed;
  z-index: 105;
  inset: 0;
  border: 0;
  background: rgba(0, 1, 7, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.settings-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sound-indicator {
  position: fixed;
  z-index: 49;
  right: calc(24px + var(--safe-right));
  bottom: calc(22px + var(--safe-bottom));
  display: flex;
  align-items: end;
  gap: 3px;
  height: 18px;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.sound-indicator.is-active {
  opacity: 0.7;
}

.sound-indicator span {
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent-bright);
  animation: sound-meter 850ms ease-in-out infinite alternate;
}

.sound-indicator span:nth-child(2) { height: 13px; animation-delay: -200ms; }
.sound-indicator span:nth-child(3) { height: 9px; animation-delay: -430ms; }
.sound-indicator span:nth-child(4) { height: 16px; animation-delay: -600ms; }

.noscript-message {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  background: #02040a;
  text-align: center;
}

.noscript-message img {
  width: min(420px, 85vw);
}

.noscript-message h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
}

.noscript-message p {
  max-width: 560px;
  margin: 0;
  color: #a9b0c3;
}

/* Animations */
@keyframes dust-drift {
  to { transform: translate3d(-5%, 4%, 0) rotate(0.001deg); }
}

@keyframes galaxy-breathe {
  from { transform: translate(-50%, -50%) rotate(-18deg) scale(0.96); }
  to { transform: translate(-50%, -50%) rotate(-16deg) scale(1.05); }
}

@keyframes galaxy-breathe-secondary {
  from { transform: translate(-50%, -50%) rotate(28deg) scale(0.94); }
  to { transform: translate(-50%, -50%) rotate(30deg) scale(1.07); }
}

@keyframes nebula-float-one {
  to { transform: translate3d(11vmax, -5vmax, 0) scale(1.12); }
}

@keyframes nebula-float-two {
  to { transform: translate3d(-9vmax, 12vmax, 0) scale(0.94); }
}

@keyframes nebula-float-three {
  to { transform: translate3d(-11vmax, -8vmax, 0) scale(1.08); }
}

@keyframes fade-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes portal-arrival {
  0% { opacity: 0; transform: scale(0.58); filter: blur(16px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes portal-collapse {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  36% { opacity: 1; transform: scale(1.08); filter: brightness(1.35); }
  63% { opacity: 1; transform: scale(0.16); filter: brightness(3) blur(0); }
  70% { opacity: 1; transform: scale(0.02); filter: brightness(5) blur(1px); }
  100% { opacity: 0; transform: scale(2.6); filter: brightness(7) blur(12px); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes core-pulse {
  50% { opacity: 0.72; transform: scale(1.28); }
}

@keyframes signal-pulse {
  65% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

@keyframes shockwave-expand {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(var(--shock-scale, 33)); }
}

@keyframes particle-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  8% { opacity: 1; }
  72% { opacity: 0.92; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.06); }
}

@keyframes icon-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.18); }
  14% { opacity: 0.96; }
  78% { opacity: 0.84; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(1.12); }
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vinyl-arrival {
  0% { opacity: 0; transform: scale(0.56) rotate(-18deg); filter: blur(12px); }
  66% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}

@keyframes vinyl-spin {
  to { transform: rotateX(7deg) rotateY(-5deg) rotateZ(360deg); }
}

@keyframes halo-breathe {
  to { transform: scale(1.14); opacity: 0.72; }
}

@keyframes orbit-spin-3d {
  to { transform: rotateX(68deg) rotateZ(348deg); }
}

@keyframes equalizer {
  to { transform: scaleY(0.35); opacity: 0.48; }
}

@keyframes worlds-arrival {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes atmosphere-pulse {
  to { opacity: 0.56; transform: scale(1.045); }
}

@keyframes sound-meter {
  to { transform: scaleY(0.35); opacity: 0.45; }
}

/* Motion preferences */
html[data-motion="reduced"] .nebula,
html[data-motion="reduced"] .galaxy-band,
html[data-motion="reduced"] .cosmos::before,
html[data-motion="reduced"] .cosmos::after,
html[data-motion="reduced"] .portal-aura,
html[data-motion="reduced"] .portal-scan::before,
html[data-motion="reduced"] .vinyl-disc,
html[data-motion="reduced"] .orbit,
html[data-motion="reduced"] .planet-atmosphere {
  animation-duration: 80s !important;
}

html[data-motion="reduced"] .brand-portal,
html[data-motion="reduced"] .intro-kicker,
html[data-motion="reduced"] .entry-copy,
html[data-motion="reduced"] .silent-entry {
  animation-delay: 0ms !important;
  animation-duration: 350ms !important;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

html[data-motion="off"] .brand-portal,
html[data-motion="off"] .intro-kicker,
html[data-motion="off"] .entry-copy,
html[data-motion="off"] .silent-entry,
html[data-motion="off"] .hero-eyebrow,
html[data-motion="off"] .hero-copy h1,
html[data-motion="off"] .hero-lead,
html[data-motion="off"] .hero-actions,
html[data-motion="off"] .signal-line,
html[data-motion="off"] .vinyl-stage,
html[data-motion="off"] .worlds {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-motion="auto"] *,
  html[data-motion="auto"] *::before,
  html[data-motion="auto"] *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  html[data-motion="auto"] .brand-portal,
  html[data-motion="auto"] .intro-kicker,
  html[data-motion="auto"] .entry-copy,
  html[data-motion="auto"] .silent-entry,
  html[data-motion="auto"] .hero-eyebrow,
  html[data-motion="auto"] .hero-copy h1,
  html[data-motion="auto"] .hero-lead,
  html[data-motion="auto"] .hero-actions,
  html[data-motion="auto"] .signal-line,
  html[data-motion="auto"] .vinyl-stage,
  html[data-motion="auto"] .worlds {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 7.2vw, 5.8rem);
  }

  .vinyl-stage {
    min-height: 480px;
  }

  .world-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 220px;
    padding: 18px;
  }

  .planet {
    width: 92px;
  }

  .planet-icon {
    width: 36px;
  }
}

@media (max-width: 860px) {
  .hero-scene {
    padding-top: calc(94px + var(--safe-top));
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: 720px;
    padding-top: 16px;
  }

  .vinyl-stage {
    min-height: 390px;
    margin: -26px 0 -10px;
  }

  .vinyl-disc {
    width: min(52vw, 360px);
  }

  .vinyl-halo {
    width: min(62vw, 440px);
  }

  .orbit--outer {
    width: min(68vw, 500px);
  }

  .orbit--middle {
    width: min(59vw, 430px);
  }

  .frequency-orbit {
    right: 21%;
    bottom: 14%;
  }

  .worlds-grid {
    grid-template-columns: 1fr;
  }

  .world-card {
    min-height: 170px;
    grid-template-columns: 122px 1fr;
  }

  .planet {
    width: 108px;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) 12px calc(14px + var(--safe-left));
  }

  .mini-brand strong {
    font-size: 0.62rem;
  }

  .mini-brand small {
    font-size: 0.51rem;
  }

  .mini-brand img {
    width: 34px;
  }

  .text-action {
    padding: 0 12px;
    min-height: 40px;
    font-size: 0.62rem;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .intro-scene {
    gap: 14px;
    padding-inline: 16px;
  }

  .brand-portal {
    width: min(92vw, 400px);
  }

  .intro-kicker {
    letter-spacing: 0.29em;
  }

  .entry-copy p {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .entry-copy small {
    font-size: 0.61rem;
  }

  .hero-scene {
    padding: calc(82px + var(--safe-top)) 18px calc(38px + var(--safe-bottom));
  }

  .hero-copy {
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .eyebrow-line {
    width: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 14.4vw, 4.5rem);
    line-height: 0.94;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 26px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .signal-line {
    justify-content: center;
    gap: 7px 9px;
    margin-top: 24px;
    font-size: 0.52rem;
  }

  .vinyl-stage {
    min-height: 320px;
    margin: -18px 0 0;
  }

  .vinyl-disc {
    width: min(70vw, 300px);
  }

  .vinyl-halo {
    width: min(84vw, 370px);
  }

  .orbit--outer {
    width: min(88vw, 390px);
  }

  .orbit--middle {
    width: min(78vw, 350px);
  }

  .frequency-orbit {
    right: 8%;
    bottom: 17%;
  }

  .worlds {
    margin-top: 0;
    padding-top: 24px;
  }

  .worlds-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .worlds-heading > div,
  .worlds-heading > p {
    width: 100%;
    text-align: center;
  }

  .world-card {
    grid-template-columns: 90px 1fr;
    min-height: 158px;
    gap: 14px;
    padding: 17px;
    border-radius: 20px;
  }

  .planet {
    width: 82px;
  }

  .planet-icon {
    width: 31px;
  }

  .world-card-copy {
    gap: 7px;
  }

  .world-card-copy strong {
    font-size: 0.95rem;
  }

  .world-card-copy > span {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .world-card-copy em {
    font-size: 0.55rem;
  }

  .settings-panel {
    top: max(8px, var(--safe-top));
    right: 8px;
    width: calc(100vw - 16px);
    border-radius: 22px;
    padding: 20px;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .hero-scene {
    padding-top: calc(86px + var(--safe-top));
  }

  .hero-shell {
    min-height: 540px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 6.3vw, 5.8rem);
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .signal-line {
    margin-top: 23px;
  }

  .vinyl-stage {
    min-height: 440px;
  }

  .world-card {
    min-height: 190px;
  }
}

/* =========================================================
   PHASE 1 — GLOBAL NAVIGATION, LANGUAGE AND FOOTER
   ========================================================= */
.phase-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  margin-inline: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 520ms 180ms ease, transform 520ms 180ms var(--ease-out), visibility 520ms 180ms;
}

.experience[data-state="revealed"] .phase-navigation {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.phase-navigation a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.phase-navigation a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
  transition: right 220ms var(--ease-out), left 220ms var(--ease-out);
}

.phase-navigation a:hover,
.phase-navigation a:focus-visible {
  color: #fff;
}

.phase-navigation a:hover::after,
.phase-navigation a:focus-visible::after {
  right: 0;
  left: 0;
}

.phase-language,
.phase-menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 7, 17, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.phase-language {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-bright);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.phase-language:hover,
.phase-language:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.09);
}

.phase-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-content: center;
  gap: 4px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}

.phase-menu-toggle span {
  width: 16px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.phase-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.phase-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.phase-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.phase-footer {
  position: relative;
  z-index: 15;
  display: none;
  padding: 18px max(24px, calc((100vw - 1320px) / 2)) calc(26px + var(--safe-bottom));
}

.experience[data-state="revealed"] .phase-footer {
  display: block;
  animation: phase-footer-arrival 700ms 900ms var(--ease-out) both;
}

.phase-footer__inner {
  width: min(1320px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.phase-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  line-height: 1.5;
}

.phase-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phase-footer__links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.phase-footer__links a:hover,
.phase-footer__links a:focus-visible {
  color: var(--accent-bright);
}

.noscript-home-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 999px;
  color: var(--accent-bright);
  font-weight: 700;
}

@keyframes phase-footer-arrival {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1160px) {
  .phase-menu-toggle {
    display: none;
  }

  .phase-navigation {
    gap: 15px;
  }

  .phase-navigation a {
    font-size: 0.61rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 960px) {
  .phase-menu-toggle {
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 420ms ease, visibility 420ms ease;
  }

  .experience[data-state="revealed"] .phase-menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .phase-navigation {
    position: fixed;
    top: calc(76px + var(--safe-top));
    right: calc(16px + var(--safe-right));
    width: min(310px, calc(100vw - 32px));
    display: grid;
    gap: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(3, 7, 17, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.98) !important;
    pointer-events: none !important;
  }

  .experience[data-state="revealed"] .phase-navigation.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }

  .phase-navigation a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .phase-navigation a::after {
    display: none;
  }

  .phase-navigation a:hover,
  .phase-navigation a:focus-visible {
    background: rgba(var(--accent-rgb), 0.09);
  }
}

@media (max-width: 620px) {
  .phase-language {
    min-width: 40px;
    min-height: 40px;
  }

  .phase-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .phase-footer {
    padding-inline: 16px;
  }

  .phase-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .phase-footer__links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .topbar-actions {
    gap: 6px;
  }

  .experience[data-state="intro"] .phase-language {
    display: none;
  }

  .phase-footer__links a {
    font-size: 0.58rem;
  }
}

html[data-motion="off"] .experience[data-state="revealed"] .phase-footer,
html[data-motion="reduced"] .experience[data-state="revealed"] .phase-footer {
  animation: none;
}

/* Global WhatsApp shortcut added for the final Phase 1 integration */
.phase-whatsapp {
  position: fixed;
  z-index: 74;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px 0 13px;
  border: 1px solid rgba(121, 239, 174, .42);
  border-radius: 999px;
  color: #06120a;
  background: linear-gradient(135deg, #8bf1ba, #44c879);
  box-shadow: 0 18px 46px rgba(16, 110, 62, .28), inset 0 1px 0 rgba(255,255,255,.35);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .02em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.94);
  transition: opacity 360ms ease, visibility 360ms, transform 360ms var(--ease-out), filter 180ms ease;
}

.experience[data-state="revealed"] .phase-whatsapp {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 800ms;
}

.phase-whatsapp:hover,
.phase-whatsapp:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.phase-whatsapp svg {
  width: 26px;
  fill: currentColor;
}

.phase-social[data-profile-url="confirm-before-production"]::after {
  content: "";
}

@media (max-width: 560px) {
  .phase-whatsapp { width: 52px; padding: 0; justify-content: center; }
  .phase-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

html[data-motion="off"] .experience[data-state="revealed"] .phase-whatsapp,
html[data-motion="reduced"] .experience[data-state="revealed"] .phase-whatsapp {
  transition-delay: 0ms;
}
