@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap");

:root {
  color-scheme: dark;
  --cyan: #39f6ff;
  --violet: #9d54ff;
  --pink: #ff3fd5;
  --stage-size: min(92vw, 90vh);
  --card-w: clamp(54px, 7.5vmin, 88px);
  --card-h: clamp(76px, 10.5vmin, 122px);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #030207;
  color: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(66, 30, 118, .22) 0, transparent 29%),
    radial-gradient(circle at 8% 82%, rgba(0, 222, 255, .12) 0, transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(255, 38, 198, .10) 0, transparent 27%),
    #030207;
}

button, a { font: inherit; }
button { color: inherit; }

#neon-canvas, .aurora, .noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#neon-canvas { z-index: 0; opacity: .8; }

.aurora {
  z-index: 0;
  overflow: hidden;
  filter: blur(55px) saturate(150%);
}

.aurora__beam {
  position: absolute;
  width: 70vw;
  height: 11vw;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: .18;
  animation: drift 14s ease-in-out infinite alternate;
}
.aurora__beam--one {
  top: 4%; left: -12%; transform: rotate(-28deg);
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
}
.aurora__beam--two {
  right: -16%; bottom: 12%; transform: rotate(-36deg);
  background: linear-gradient(90deg, transparent, var(--pink), #6637ff, transparent);
  animation-delay: -4s;
}
.aurora__beam--three {
  width: 48vw; left: 28%; bottom: -3%; transform: rotate(11deg);
  background: linear-gradient(90deg, transparent, #08d9ff, var(--violet), transparent);
  animation-delay: -8s;
}

.noise {
  z-index: 1;
  opacity: .045;
  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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.experience {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3vw, 40px) clamp(20px, 4vw, 64px) clamp(18px, 3vw, 34px);
}

.topbar, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
}

.brand__mark {
  width: 18px; height: 18px; border: 1px solid rgba(83, 240, 255, .7); border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(57,246,255,.55), 0 0 12px rgba(57,246,255,.35);
  position: relative;
}
.brand__mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(9,7,17,.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.sound-toggle:hover { border-color: rgba(57,246,255,.5); background: rgba(57,246,255,.07); }
.sound-toggle__label { font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.sound-toggle__bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-toggle__bars i { display: block; width: 2px; height: 4px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 5px var(--cyan); animation: bars .8s ease-in-out infinite alternate; }
.sound-toggle__bars i:nth-child(2) { height: 10px; animation-delay: -.5s; }
.sound-toggle__bars i:nth-child(3) { height: 7px; animation-delay: -.2s; }
.sound-toggle__bars i:nth-child(4) { height: 5px; animation-delay: -.7s; }
.sound-toggle[aria-pressed="true"] i { animation-play-state: paused; height: 2px; }

.hero {
  position: relative;
  align-self: center;
  justify-self: center;
  width: var(--stage-size);
  height: var(--stage-size);
  max-height: calc(100svh - 132px);
  max-width: calc(100svh - 132px);
}

.image-orbit, .orbit-glow, .orbit-track, .core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.image-orbit { inset: 0; transform: none; left: 0; top: 0; z-index: 20; }

.orbit-track {
  width: 72%; height: 72%; border-radius: 50%;
  border: 1px solid rgba(116, 91, 185, .2);
  box-shadow: inset 0 0 34px rgba(109,54,197,.08), 0 0 22px rgba(51,226,255,.05);
}
.orbit-track::before, .orbit-track::after {
  content: ""; position: absolute; border-radius: 50%; inset: -5px;
  border-top: 1px solid rgba(57,246,255,.45);
  border-right: 1px solid transparent;
  animation: track-spin 8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(57,246,255,.8));
}
.orbit-track::after { inset: 8px; border-top-color: rgba(255,63,213,.35); animation-direction: reverse; animation-duration: 11s; }

.orbit-glow { border-radius: 50%; pointer-events: none; }
.orbit-glow--outer {
  width: 79%; height: 79%;
  background: conic-gradient(from 10deg, transparent 0 12%, rgba(57,246,255,.11) 18%, transparent 25% 50%, rgba(255,63,213,.12) 58%, transparent 68% 85%, rgba(157,84,255,.12));
  filter: blur(20px); animation: track-spin 18s linear infinite;
}
.orbit-glow--inner {
  width: 40%; height: 40%;
  background: radial-gradient(circle, rgba(156,69,255,.15), rgba(35,218,255,.06) 35%, transparent 70%);
  filter: blur(10px); animation: core-breathe 2.5s ease-in-out infinite;
}

.orbit-card {
  --accent: 190 100% 61%;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card-w); height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-h) / -2);
  padding: 3px;
  border-radius: clamp(8px, 1.1vmin, 14px);
  background: linear-gradient(145deg, hsl(var(--accent) / .82), rgba(255,255,255,.13) 35%, rgba(20,8,43,.75) 67%, hsl(var(--accent) / .55));
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 13px hsl(var(--accent) / .25), 0 12px 35px rgba(0,0,0,.7);
  transform-origin: center;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}
.orbit-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: hsl(var(--accent)); opacity: .08; filter: blur(8px);
}
.orbit-card::after {
  content: ""; position: absolute; inset: 3px; border-radius: calc(clamp(8px, 1.1vmin, 14px) - 3px);
  background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 25% 72%, rgba(255,255,255,.08)); pointer-events: none;
}
.orbit-card img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  border-radius: calc(clamp(8px, 1.1vmin, 14px) - 3px);
  background: #09070d;
}
.orbit-card.is-active {
  z-index: 50;
  box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 0 24px hsl(var(--accent) / .75), 0 0 75px hsl(var(--accent) / .42), 0 24px 70px rgba(0,0,0,.82);
}
.orbit-card.is-active::before { opacity: .55; filter: blur(16px); }
.orbit-card.is-dimmed { opacity: .52; filter: saturate(.65) brightness(.62); }

.core {
  z-index: 5; width: 28%; height: 28%; border-radius: 50%;
  display: grid; place-items: center;
}
.core::before {
  content: ""; position: absolute; inset: 19%; border-radius: 50%;
  border: 1px solid rgba(123,225,255,.21);
  background: radial-gradient(circle, rgba(77,31,120,.28), rgba(5,3,12,.12) 58%, transparent 70%);
  box-shadow: inset 0 0 24px rgba(157,84,255,.2), 0 0 42px rgba(110,36,203,.12);
}
.core__rings, .core__rings span { position: absolute; inset: 0; border-radius: 50%; }
.core__rings { animation: track-spin 15s linear infinite; }
.core__rings span { border: 1px dashed rgba(110,232,255,.2); }
.core__rings span:nth-child(2) { inset: 9%; border-style: solid; border-color: rgba(255,83,221,.14) transparent; transform: rotate(45deg); }
.core__rings span:nth-child(3) { inset: 25%; border-style: solid; border-color: rgba(150,96,255,.3) transparent; transform: rotate(-20deg); }
.core__copy { text-align: center; position: relative; z-index: 1; transition: opacity .25s; }
.core__eyebrow { display: block; color: rgba(255,255,255,.36); font-size: clamp(5px, .75vmin, 8px); letter-spacing: .24em; margin-bottom: 5px; }
.core__copy strong { font: 500 clamp(9px, 1.25vmin, 14px) "Space Grotesk", sans-serif; letter-spacing: .12em; color: rgba(255,255,255,.72); }
.hero:has(.orbit-card.is-active) .core__copy { opacity: 0; }

.sequence-line {
  position: absolute; z-index: 80; left: 50%; bottom: 1.5%; transform: translateX(-50%);
  width: min(180px, 28%); height: 1px; background: rgba(255,255,255,.12); overflow: hidden;
}
.sequence-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink)); box-shadow: 0 0 8px var(--cyan); }

.footer { color: rgba(255,255,255,.37); font-size: 9px; letter-spacing: .16em; }
.footer p { margin: 0; }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #4affb8; box-shadow: 0 0 8px #4affb8; margin-right: 7px; animation: live 1.4s ease-in-out infinite; }
.footer__hint { letter-spacing: .09em; }

noscript { position: fixed; inset: auto 0 20px; z-index: 200; text-align: center; color: white; }

@keyframes drift { to { transform: translate3d(12vw, 7vh, 0) rotate(-18deg) scale(1.1); opacity: .27; } }
@keyframes track-spin { to { transform: rotate(360deg); } }
@keyframes core-breathe { 50% { transform: translate(-50%,-50%) scale(1.12); opacity: .65; } }
@keyframes bars { to { height: 11px; } }
@keyframes live { 50% { opacity: .25; } }

@media (max-width: 700px) {
  :root { --stage-size: min(112vw, 82vh); --card-w: clamp(44px, 8.8vmin, 66px); --card-h: clamp(61px, 12.3vmin, 92px); }
  .experience { padding: 18px 16px; }
  .hero { max-width: none; }
  .sound-toggle__label, .footer__hint { display: none; }
  .sound-toggle { padding: 9px 12px; }
  .orbit-track { width: 75%; height: 75%; }
  .footer { justify-content: center; }
}

@media (max-height: 620px) and (orientation: landscape) {
  :root { --stage-size: 92vh; --card-w: 7.2vh; --card-h: 10.1vh; }
  .experience { padding-top: 12px; padding-bottom: 12px; }
  .hero { max-height: calc(100vh - 88px); max-width: calc(100vh - 88px); }
  .footer__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__beam, .orbit-track::before, .orbit-track::after, .orbit-glow, .core__rings, .live-dot, .sound-toggle__bars i { animation: none !important; }
}
