:root {
  --ink: #05030a;
  --panel: #0b0712;
  --violet: #8d35ff;
  --purple: #5b1da8;
  --pink: #ff24c8;
  --cyan: #4cf4f3;
  --white: #f8f4ff;
  --muted: #a59caf;
  --line: rgba(255,255,255,.14);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--white); background: var(--ink); font-family: var(--body); overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

#particle-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .6; }
.noise { position: fixed; inset: 0; z-index: 20; opacity: .025; pointer-events: none; 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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.gateway { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 48%, #27043c 0, #0d0617 32%, #040208 72%); transition: opacity .8s ease, visibility .8s ease; }
.gateway.hidden { opacity: 0; visibility: hidden; }
.gateway::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at center, transparent 0 78px, rgba(173,60,255,.1) 79px 80px); animation: breathe 5s ease-in-out infinite; }
.gateway > * { position: relative; z-index: 2; }
.gateway .eyebrow, .chapter { letter-spacing: .28em; font-size: clamp(.62rem, .8vw, .78rem); font-weight: 600; color: var(--cyan); }
.gateway h1 { margin: 1.6rem 0 .65rem; font: 600 clamp(2.5rem, 7.8vw, 7.5rem)/.78 var(--display); letter-spacing: -.07em; }
.gateway h1 span { display: block; }
.gateway h1 span:first-child { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.66); font-weight: 400; }
.gateway h1 span:last-child { background: linear-gradient(90deg, #fff, #dc80ff 45%, #ff3bc8); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(183,47,255,.35)); }
.tagline { color: #c8bdce; font-weight: 300; letter-spacing: .08em; font-size: clamp(.9rem, 1.5vw, 1.15rem); }
.enter-button { margin-top: 2.3rem; border: 1px solid rgba(255,255,255,.5); background: rgba(9,4,16,.45); padding: 1.1rem 1.4rem 1.1rem 1.7rem; min-width: 270px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; letter-spacing: .13em; font-size: .7rem; backdrop-filter: blur(10px); transition: .3s ease; }
.enter-button:hover { border-color: var(--pink); box-shadow: 0 0 35px rgba(255,36,200,.25); transform: translateY(-2px); }
.enter-button b { font-size: 1.2rem; color: var(--pink); }
.sound-note { margin-top: 1rem; color: #736d7a; font-size: .68rem; letter-spacing: .08em; }
.gateway-orbit { position: absolute; width: min(70vw, 700px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.gateway-orbit::before, .gateway-orbit::after, .gateway-orbit i { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(179,74,255,.13); border-radius: 50%; transform: rotate(62deg) scaleY(.38); }
.gateway-orbit::after { transform: rotate(-62deg) scaleY(.38); }
.gateway-orbit i:nth-child(1) { transform: rotate(0) scaleY(.38); }
.gateway-orbit i:nth-child(2) { inset: 25%; border-color: rgba(255,54,209,.25); animation: spin 15s linear infinite; }

.site-header { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; height: 76px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(4,2,8,.95), rgba(4,2,8,.25), transparent); opacity: 0; transform: translateY(-100%); transition: .7s ease; }
body.entered .site-header { opacity: 1; transform: none; }
.brand { font: 700 1.1rem var(--display); letter-spacing: -.05em; }
.brand span { color: var(--pink); }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
nav a { color: #a89eaf; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; transition: color .2s; }
nav a:hover { color: white; }
.sound-toggle { background: none; border: 0; display: flex; gap: .65rem; align-items: center; cursor: pointer; font-size: .6rem; letter-spacing: .12em; color: #aaa1b0; }
.sound-bars { display: flex; align-items: end; gap: 2px; height: 13px; }
.sound-bars i { width: 2px; height: 5px; background: var(--cyan); }
.sound-toggle.active .sound-bars i { animation: levels .7s ease-in-out infinite alternate; }
.sound-toggle.active .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle.active .sound-bars i:nth-child(3) { animation-delay: -.5s; }

.scene { position: relative; z-index: 1; min-height: 100svh; overflow: hidden; padding: clamp(7rem, 12vh, 10rem) clamp(1.4rem, 8vw, 9rem); }
.dance-floor { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; align-items: center; gap: 5vw; background: radial-gradient(circle at 72% 43%, rgba(113,24,183,.18), transparent 34%), linear-gradient(140deg, #05030a 0%, #09040f 60%, #05030a 100%); }
.scene-copy { position: relative; z-index: 5; max-width: 650px; }
.scene h2 { margin: 1.6rem 0 1rem; font: 500 clamp(3rem, 7vw, 7rem)/.9 var(--display); letter-spacing: -.07em; }
.hero-answer { margin: 0 0 2.5rem; font: 300 clamp(1.5rem, 2.7vw, 2.7rem) var(--display); color: #beb3c6; }
.hero-answer em { color: var(--pink); font-style: normal; }
.intro { max-width: 520px; color: #928999; line-height: 1.8; font-size: .9rem; }
.text-link { display: inline-block; margin-top: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: .5rem; font-size: .68rem; letter-spacing: .18em; }
.text-link span { color: var(--cyan); margin-left: 1rem; }
.portal { position: relative; aspect-ratio: 1; width: min(52vw, 720px); justify-self: center; display: grid; place-items: center; }
.portal-core { width: 28%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 2%, #fa40e9 3% 5%, #5524b8 14%, #120522 40%, #020104 72%); box-shadow: 0 0 80px #8426df, inset 0 0 60px #d53fcf; animation: breathe 3.5s ease-in-out infinite; }
.portal-core span { position: absolute; inset: 37%; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.portal-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(196,112,255,.32); }
.ring-a { inset: 23%; box-shadow: 0 0 35px rgba(145,48,235,.15); animation: spin 22s linear infinite; }
.ring-a::before, .ring-a::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(80,244,243,.22); border-radius: 50%; transform: scaleY(.28) rotate(45deg); }
.ring-a::after { transform: scaleY(.28) rotate(-45deg); }
.ring-b { inset: 12%; border-style: dashed; animation: spin 38s linear infinite reverse; }
.ring-c { inset: 2%; opacity: .35; box-shadow: inset 0 0 70px rgba(179,33,255,.18), 0 0 80px rgba(149,25,232,.13); }
.portal > p { position: absolute; bottom: 7%; font-size: .56rem; letter-spacing: .3em; color: #77707d; }
.floor-grid { position: absolute; width: 80%; height: 45%; right: -5%; bottom: -18%; background-image: linear-gradient(rgba(171,45,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(171,45,255,.11) 1px, transparent 1px); background-size: 70px 40px; transform: perspective(500px) rotateX(62deg); mask-image: linear-gradient(to bottom, transparent, #000); }

.states-scene { background: radial-gradient(circle at 50% 48%, #210b36 0%, #08040e 44%, #040207 80%); display: flex; flex-direction: column; justify-content: center; }
.section-heading { text-align: center; }
.section-heading h2 { font-size: clamp(2.7rem, 5.7vw, 5.8rem); margin-bottom: 1.2rem; }
.section-heading h2 span, .ritual-copy h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.65); }
.section-heading > p:last-child { color: var(--muted); font-size: .8rem; }
.states-stage { margin: 4rem auto 0; width: min(1180px, 100%); display: grid; grid-template-columns: .8fr 1.2fr; gap: 4vw; align-items: center; }
.state-display { min-height: 430px; border: 1px solid rgba(255,255,255,.13); background: radial-gradient(circle at center, color-mix(in srgb, var(--state-color, #6f1ca8) 22%, transparent), rgba(8,4,14,.76) 60%); display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden; transition: box-shadow .35s, border-color .35s, background .55s; }
.state-display::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--state-color, #fff) 28%, transparent); border-radius: 50%; box-shadow: 0 0 75px color-mix(in srgb, var(--state-glow, var(--state-color)) 40%, transparent), inset 0 0 55px color-mix(in srgb, var(--state-color) 12%, transparent); transition: box-shadow .55s, border-color .55s; }
.state-number { position: absolute; top: 1.5rem; left: 1.5rem; font: 600 .65rem var(--display); color: var(--cyan); letter-spacing: .2em; }
.state-symbol { font-size: 3rem; filter: drop-shadow(0 0 18px var(--state-color, var(--pink))); z-index: 1; }
.state-role { color: var(--cyan); font-size: .55rem; letter-spacing: .28em; margin: 1.5rem 0 .45rem; z-index: 1; }
.state-display h3 { z-index: 1; margin: 0; font: 600 clamp(2.8rem, 5vw, 5.4rem)/1 var(--display); letter-spacing: -.07em; }
.state-thought { z-index: 1; color: #b7aebc; font: 300 .85rem var(--body); margin-top: 1.2rem; text-align: center; padding: 0 2rem; }
.preview-control { z-index: 2; margin-top: 1.1rem; min-width: 190px; padding: .75rem 1rem; border: 1px solid color-mix(in srgb, var(--state-color) 60%, #fff 15%); background: rgba(5,3,10,.72); color: #f8f4fb; display: inline-flex; justify-content: center; align-items: center; gap: .65rem; cursor: pointer; font: 600 .62rem var(--body); letter-spacing: .13em; transition: background .25s, box-shadow .25s, transform .25s; }
.preview-control:hover { transform: translateY(-2px); box-shadow: 0 0 25px color-mix(in srgb, var(--state-color) 34%, transparent); }
.preview-control.playing { background: color-mix(in srgb, var(--state-color) 18%, rgba(5,3,10,.85)); }
.preview-icon { color: var(--state-color); font-size: .78rem; }
.preview-note { z-index: 2; margin: .55rem 0 0; color: #756d7d; font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; }
.state-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.state-button { position: relative; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 1rem .8rem; background: transparent; cursor: pointer; color: #79717f; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .5rem; transition: .25s ease; }
.state-button:nth-child(odd) { border-right: 1px solid var(--line); }
.state-button b { font-size: .56rem; color: #5d5662; }
.state-button span { font: 500 .78rem var(--display); letter-spacing: .06em; }
.state-button i { font-style: normal; opacity: .65; }
.state-button:hover, .state-button.active { color: white; background: linear-gradient(90deg, rgba(151,47,255,.12), transparent); padding-left: 1.1rem; }
.state-button.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 50%; background: var(--state-color, var(--pink)); box-shadow: 0 0 12px var(--state-color, var(--pink)); }

.ritual-scene { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8vw; background: linear-gradient(125deg, #040207, #10051a 52%, #050209); }
.ritual-vinyl { position: relative; display: grid; place-items: center; }
.disc { position: relative; z-index: 2; width: min(40vw, 550px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #0e0a13 0 2px, #211329 3px 4px, #08060b 5px 7px); box-shadow: 0 35px 90px #000, inset 0 0 80px #000; animation: spin 26s linear infinite; }
.disc::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 7%, rgba(255,255,255,.14) 8%, transparent 14% 48%, rgba(255,36,200,.12) 52%, transparent 62%); }
.disc-label { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 30% 25%, #ff4cda, #7820bc 40%, #19052c 78%); font: 700 clamp(1.4rem, 3vw, 3rem) var(--display); box-shadow: 0 0 28px rgba(255,36,200,.6); }
.disc-label small { display: block; margin-top: .2rem; font-size: .25em; letter-spacing: .2em; }
.disc-glow { position: absolute; width: 70%; height: 25%; background: #a027ff; filter: blur(80px); opacity: .3; bottom: 8%; }
.ritual-copy h2 { font-size: clamp(2.7rem, 5.4vw, 5.7rem); }
.ritual-steps { margin-top: 3rem; }
.ritual-steps article { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.2rem; border-top: 1px solid var(--line); padding: 1.3rem 0; }
.ritual-steps article:last-child { border-bottom: 1px solid var(--line); }
.ritual-steps b { color: var(--cyan); font: 500 .65rem var(--display); }
.ritual-steps h3 { margin: 0 0 .4rem; font: 500 .95rem var(--display); }
.ritual-steps p { margin: 0; color: #817887; font-size: .75rem; line-height: 1.6; }
.primary-cta { display: inline-flex; justify-content: space-between; gap: 3rem; align-items: center; margin-top: 2rem; padding: 1rem 1.2rem; min-width: 220px; background: linear-gradient(95deg, #7625c7, #d123bc); font-size: .67rem; letter-spacing: .16em; box-shadow: 0 0 35px rgba(190,35,202,.2); transition: .25s; }
.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 0 45px rgba(242,41,220,.38); }
.primary-cta span { color: white; font-size: 1rem; }
.external-note { color: #6f6774; font-size: .6rem; margin-left: .4rem; }

.home-scene { display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 80%, #44105d 0, #150620 25%, #050309 56%, #020104 82%); }
.home-content { position: relative; z-index: 3; }
.home-whisper { margin: 3rem 0 0; color: #9f95a5; letter-spacing: .08em; }
.home-content h2 { font-size: clamp(3.2rem, 7.5vw, 8rem); margin-top: 1rem; background: linear-gradient(#fff, #a594af); -webkit-background-clip: text; color: transparent; }
.home-mark { width: 88px; aspect-ratio: 1; margin: 2.5rem auto 1.5rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 40px rgba(186,43,255,.35), inset 0 0 26px rgba(211,74,255,.18); }
.home-mark span { font: 500 2rem var(--display); color: var(--pink); }
.signature { margin: 0; font: 600 .82rem var(--display); letter-spacing: .2em; }
.artist { margin: .7rem 0 0; color: #665f69; font-size: .58rem; letter-spacing: .2em; }
.home-actions { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 1rem; }
.secondary-cta { margin-top: 2rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(255,255,255,.2); font-size: .62rem; letter-spacing: .14em; color: #9b929f; }
.home-horizon { position: absolute; bottom: 4%; width: 130%; height: 33%; background-image: linear-gradient(rgba(211,50,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(211,50,255,.12) 1px, transparent 1px); background-size: 70px 45px; transform: perspective(500px) rotateX(65deg); mask-image: linear-gradient(to bottom, transparent, black 60%); }

footer { position: relative; z-index: 2; min-height: 105px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.4rem, 7vw, 8rem); color: #5f5864; font-size: .58rem; letter-spacing: .15em; }
footer button { background: none; border: 0; color: #8e8494; cursor: pointer; font-size: .58rem; letter-spacing: .13em; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .58; transform: scale(1.035); } }
@keyframes levels { to { height: 13px; } }

@media (max-width: 820px) {
  .site-header { height: 64px; }
  nav { display: none; }
  .dance-floor, .ritual-scene { grid-template-columns: 1fr; }
  .scene { padding-top: 7rem; padding-bottom: 6rem; }
  .dance-floor { align-content: center; text-align: center; }
  .scene-copy, .intro { margin-inline: auto; }
  .portal { width: min(90vw, 500px); margin-top: -2rem; opacity: .78; }
  .states-stage { grid-template-columns: 1fr; }
  .state-display { min-height: 340px; }
  .ritual-vinyl { order: 2; }
  .disc { width: min(78vw, 450px); margin-top: 2rem; }
  .home-actions { flex-direction: column; gap: 0; }
  footer { flex-direction: column; justify-content: center; gap: .8rem; padding: 1.5rem; }
}

@media (max-width: 500px) {
  .gateway h1 { font-size: clamp(2.1rem, 12vw, 3.3rem); }
  .gateway-orbit { width: 105vw; }
  .enter-button { min-width: 240px; }
  .scene h2 { line-height: .95; }
  .states-scene { padding-inline: 1rem; }
  .state-list { grid-template-columns: 1fr; }
  .state-button:nth-child(odd) { border-right: 0; }
  .state-button { padding: .85rem .7rem; }
  .state-display { min-height: 310px; }
  .ritual-scene { padding-inline: 1.4rem; }
  .home-content h2 { font-size: 15vw; }
  .sound-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
