:root {
  --mx: 0.5;
  --my: 0.5;
  --beat: 0;
  --ink: #f4f7ff;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --gold: #c9a87c;
  --font-main: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-main);
  background: #05070d;
}

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

.bg-video,
.bg-dim,
.ambient,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08) brightness(0.58);
}

.bg-dim {
  z-index: 1;
  background:
    radial-gradient(45rem 28rem at 90% -10%, rgba(120, 158, 255, 0.2), transparent 62%),
    radial-gradient(38rem 22rem at -8% 24%, rgba(201, 168, 124, 0.16), transparent 64%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.44) 0%, rgba(4, 7, 13, 0.76) 100%);
}

.ambient {
  z-index: 2;
  background:
    radial-gradient(24rem 24rem at 14% 82%, rgba(146, 177, 255, 0.12), transparent 72%),
    radial-gradient(22rem 22rem at 84% 16%, rgba(201, 168, 124, 0.1), transparent 70%);
  transform: translate(calc((var(--mx) - 0.5) * 26px), calc((var(--my) - 0.5) * 26px));
  transition: transform 170ms ease;
}

.spotlight {
  z-index: 2;
  background: radial-gradient(
    34rem 24rem at calc(var(--mx) * 100%) calc(var(--my) * 100%),
    rgba(255, 255, 255, 0.12),
    transparent 72%
  );
}

.topbar,
.stage {
  position: relative;
  z-index: 3;
}

.topbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aab8da;
}

.audio-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8efff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.audio-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.stage {
  min-height: calc(100svh - 52px);
  display: grid;
  place-items: center;
  padding: 1rem 1.3rem 1.6rem;
}

/* no old-school box */
.logo-stage {
  width: min(1220px, 100%);
  text-align: center;
  padding: clamp(1rem, 2.8vw, 2rem);
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  transition: transform 180ms ease;
}

.micro {
  margin: 0.5rem 0 -0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c0ccea;
}

.logo-wrap {
  position: relative;
  margin: 0.2rem auto 0;
  width: 100%;
  max-width: 1080px;
  height: clamp(220px, 38vw, 480px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.mega-logo {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 13.5vw, 11.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 800;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
  word-break: keep-all;
}

.mega-logo .unit {
  color: transparent;
  background: linear-gradient(95deg, #ffffff 0%, #d8e3ff 54%, #9abaff 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
}

.mega-logo .slash {
  color: var(--gold);
  margin: 0 0.015em;
  display: inline-block;
}

.mega-logo:not(.glow):not(.scan) {
  text-shadow: 0 0 28px rgba(150, 181, 255, 0.22);
  animation: logo-base 6s ease-in-out infinite;
  filter: saturate(calc(1 + var(--beat) * 0.35));
}

.mega-logo.glow {
  opacity: calc(0.56 + var(--beat) * 0.6);
  filter: blur(calc(8px + var(--beat) * 8px));
  transform: translateZ(-28px) scale(1.03);
  mix-blend-mode: screen;
  animation: logo-glow 3.3s ease-in-out infinite;
}

.mega-logo.scan {
  opacity: calc(0.48 + var(--beat) * 0.5);
  mix-blend-mode: screen;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.96) 38%,
    rgba(0, 0, 0, 0.96) 62%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.96) 38%,
    rgba(0, 0, 0, 0.96) 62%,
    transparent 100%
  );
  animation: logo-scan 2.8s linear infinite;
}

.mega-logo.scan .unit,
.mega-logo.scan .slash {
  color: #eaf1ff;
}

.mega-logo .slash {
  animation: slash-flicker 2.2s steps(20, end) infinite;
}

.mega-logo .sx {
  animation: unit-shimmer 5s linear infinite;
}

.mega-logo .lab {
  animation: unit-shimmer 5s linear infinite reverse;
}

.logo-eq {
  width: min(43vw, 340px);
  height: 30px;
  margin: 0.25rem auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, 0.35vw, 4px);
}

.eq-bar {
  --h: 0.14;
  width: clamp(3px, 0.42vw, 5px);
  height: 100%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: scaleY(var(--h));
  background: linear-gradient(
    180deg,
    rgba(240, 224, 195, 0.98) 0%,
    rgba(201, 168, 124, 0.95) 48%,
    rgba(140, 113, 79, 0.86) 100%
  );
  box-shadow:
    0 0 18px rgba(201, 168, 124, 0.32),
    0 0 4px rgba(201, 168, 124, 0.5) inset;
  opacity: calc(0.45 + var(--h) * 0.55);
  transition: transform 90ms linear, opacity 90ms linear;
}

.eq-bar:nth-child(3n) {
  width: clamp(2px, 0.34vw, 4px);
}

.eq-bar:nth-child(5n) {
  width: clamp(3px, 0.46vw, 6px);
}

.tagline {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #dce6ff;
}

.live-links,
.soon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.62rem;
}

.live-links {
  margin-top: 1.2rem;
}

.live-links a,
.soon-links a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.live-links a {
  color: #e9efff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(255, 255, 255, 0.04);
}

.live-links a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.coming {
  margin-top: 0.82rem;
}

.coming p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #98a8ce;
}

.soon-links {
  margin-top: 0.42rem;
}

.soon-links a {
  color: #9cacd0;
  border-bottom: 1px solid rgba(156, 172, 208, 0.36);
}

.soon-links a:hover {
  color: #e2ebff;
  border-bottom-color: rgba(226, 235, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 620ms cubic-bezier(0.22, 0.8, 0.26, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

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

@keyframes logo-base {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    opacity: 0.58;
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    filter: blur(14px);
  }
}

@keyframes logo-scan {
  0% {
    transform: translateY(-16px);
  }
  50% {
    transform: translateY(16px);
  }
  100% {
    transform: translateY(-16px);
  }
}

@keyframes unit-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes slash-flicker {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
    text-shadow: 0 0 24px rgba(201, 168, 124, 0.32);
  }
  45% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
    transform: scaleY(1.14);
    text-shadow: 0 0 34px rgba(201, 168, 124, 0.54);
  }
  55% {
    opacity: 0.78;
  }
}

@media (max-width: 840px) {
  .top-meta {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .logo-stage {
    padding: 1rem 0.75rem 1.2rem;
  }
}

@media (max-width: 580px) {
  .topbar {
    padding-top: 0.84rem;
  }

  .logo-wrap {
    height: clamp(200px, 44vw, 300px);
  }

  .mega-logo {
    font-size: clamp(2.1rem, 15vw, 4.2rem);
  }

  .tagline {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .live-links a,
  .soon-links a {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    overflow: auto;
  }

  .logo-stage,
  .ambient,
  .spotlight,
  .logo-wrap,
  .mega-logo,
  .logo-eq,
  .eq-bar,
  .reveal {
    animation: none;
    transform: none;
    transition: none;
  }
}
