:root {
  --bg: #eeebe6;
  --void: #09090b;
  --ink: #f1ede6;
  --dim: rgba(241, 237, 230, .5);
  --accent: #ff2a3a;
  --accent2: #ff7a5a;
  --line: rgba(241, 237, 230, .14);
  --display: 'Syne', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --hindi: 'Rozha One', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html[data-world="toofaan"] {
  --bg: #14051f;
  --void: #0e0317;
  --ink: #fbefd9;
  --dim: rgba(251, 239, 217, .5);
  --accent: #f2c46d;
  --accent2: #ff3d9a;
  --line: rgba(242, 196, 109, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  font-family: var(--body);
  background: var(--void);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .6s;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }
.hi { font-family: var(--hindi); text-transform: none; letter-spacing: 0; }

/* world-specific text swap */
html[data-world="storm"] .w-toofaan,
html[data-world="toofaan"] .w-storm { display: none; }

@media (pointer: fine) { body, button, a { cursor: none; } }

/* ---------- canvas & fx ---------- */
#vortex { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
#flash {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: #fff; mix-blend-mode: difference; opacity: 0;
}
#cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid #fff; border-radius: 50%;
  mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
#cursor i {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: #fff;
}
#cursor.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
@media (pointer: coarse) { #cursor { display: none; } }

#hover-cover {
  position: fixed; left: 0; top: 0; z-index: 60; width: 220px; height: 220px; object-fit: cover;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(-4deg);
  transition: opacity .25s, transform .4s var(--ease);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
#hover-cover.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(3deg); }

/* ---------- gate ---------- */
#gate {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(238,235,230,.55) 45%);
  transition: opacity 1s var(--ease), visibility 1s;
}
#gate.gone { opacity: 0; visibility: hidden; }
.gate-inner { display: grid; justify-items: center; gap: 28px; color: #111; }
.gate-top, .gate-bottom { color: #222; }
.enter {
  position: relative; width: 170px; height: 170px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff6b74, #d0101e 55%, #6d0009);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 80px rgba(255, 42, 58, .6), inset 0 -10px 30px rgba(0,0,0,.35);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.enter:hover { transform: scale(1.08); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 140px rgba(255, 42, 58, .9), inset 0 -10px 30px rgba(0,0,0,.35); }
.enter-label { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.05; letter-spacing: .06em; text-align: center; }
.enter-ring {
  position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.blink { color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 3vw, 36px);
  mix-blend-mode: difference; color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: .12em; }
.brand img { width: 30px; height: auto; filter: grayscale(1) brightness(2); }
.links { display: flex; gap: clamp(14px, 3vw, 40px); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.links a { position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.links a:hover::after { right: 0; }
.world-toggle {
  position: relative; display: flex; align-items: center; gap: 0;
  border: 1px solid #fff; border-radius: 999px; padding: 3px; height: 34px;
}
.wt-opt { position: relative; z-index: 1; width: 40px; text-align: center; font-family: var(--mono); font-size: 12px; transition: color .4s; }
.wt-opt.hi { font-size: 15px; }
.wt-knob {
  position: absolute; top: 3px; left: 3px; width: 40px; height: 26px; border-radius: 999px; background: #fff;
  transition: transform .5s var(--ease);
}
html[data-world="toofaan"] .wt-knob { transform: translateX(40px); }
html[data-world="storm"] .wt-opt[data-w="storm"],
html[data-world="toofaan"] .wt-opt[data-w="toofaan"] { color: #000; }
@media (max-width: 640px) { .links { display: none; } }

/* ---------- hero ---------- */
#hero { position: relative; height: 100vh; min-height: 560px; }
body.locked .hero-title, body.locked .hero-corner { opacity: 0; }
.hero-title, .hero-corner { transition: opacity 1.2s var(--ease); }
.hero-corner { position: absolute; z-index: 2; color: #fff; mix-blend-mode: difference; line-height: 1.7; }
.hero-corner .dim { color: rgba(255,255,255,.6); }
.hero-corner.tl { top: 84px; left: clamp(16px, 3vw, 36px); }
.hero-corner.tr { top: 84px; right: clamp(16px, 3vw, 36px); text-align: right; max-width: 45vw; }
.hero-corner.bl { bottom: 28px; left: clamp(16px, 3vw, 36px); }
.hero-corner.br { bottom: 28px; right: clamp(16px, 3vw, 36px); }
.scroll-cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero-title {
  position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 2; text-align: center;
  font-family: var(--display); font-weight: 800; line-height: .8;
  font-size: clamp(64px, 15vw, 260px); letter-spacing: -.02em; white-space: nowrap;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  will-change: transform;
}
.hero-title .hi { font-weight: 400; font-size: .78em; line-height: 1.25; display: inline-block; padding-bottom: .12em; }
.hero-title em { font-style: normal; display: inline-block; animation: wob 6s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-8deg) translateY(-3%); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; background: var(--accent); color: #0a0a0a;
  transform: rotate(-2deg) scale(1.04); margin-top: -20px; padding: 14px 0;
  border-block: 2px solid #0a0a0a;
}
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 36px); text-transform: uppercase; padding: 0 22px; white-space: nowrap; }
.marquee-track span::after { content: '✺'; margin-left: 44px; font-size: .7em; vertical-align: middle; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.dark { position: relative; z-index: 1; background: var(--void); padding: clamp(80px, 12vw, 160px) clamp(16px, 4vw, 56px); transition: background .6s; }
.sec-head { max-width: 1200px; margin: 0 auto 40px; }
.kicker { color: var(--accent); margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9vw, 140px); line-height: .9; letter-spacing: -.03em; margin-bottom: 18px; }
h2 .hi { font-weight: 400; }

/* ---------- ring ---------- */
.stage {
  position: relative; height: clamp(340px, 52vw, 520px); perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  overflow: hidden; margin: 0 calc(-1 * clamp(16px, 4vw, 56px));
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.ring { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.card {
  position: absolute; width: var(--cw); height: var(--cw); left: calc(var(--cw) / -2); top: calc(var(--cw) / -2);
  transform-style: preserve-3d; cursor: grab;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  background: #111;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 48%, transparent 60%);
  background-size: 250% 100%; background-position: var(--shine, 100%) 0;
  mix-blend-mode: overlay;
}
.card .soon {
  position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  background: #000; color: var(--accent); padding: 4px 7px; border: 1px solid var(--accent);
}
.card.front { box-shadow: 0 0 0 2px var(--accent), 0 30px 80px rgba(0,0,0,.7), 0 0 80px color-mix(in srgb, var(--accent) 40%, transparent); }
.card.playing::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 4px var(--accent);
  animation: beat .5s ease-in-out infinite alternate;
}
@keyframes beat { to { opacity: .3; } }

.front-info { text-align: center; margin: 10px auto 60px; max-width: 800px; }
.front-info h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 64px); line-height: 1; margin: 8px 0 22px; min-height: 1em; }
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 14px 20px; border-radius: 999px;
  background: var(--accent); color: #0a0a0a; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-play:hover { transform: scale(1.05); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-play:disabled { background: transparent; color: var(--dim); border: 1px dashed var(--line); transform: none; box-shadow: none; }
.tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.is-playing .tri, .tri.pause { border: 0; width: 11px; height: 13px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.btn-play:disabled .tri { display: none; }

/* ---------- now playing ---------- */
.now {
  max-width: 1100px; margin: 0 auto 80px; display: grid; grid-template-columns: minmax(160px, 300px) 1fr; gap: clamp(20px, 4vw, 48px);
  padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  animation: rise .7s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.now img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.now h3 { font-family: var(--display); font-size: clamp(26px, 4vw, 48px); font-weight: 800; line-height: 1; margin: 6px 0 16px; }
#bars { width: 100%; height: 80px; display: block; margin-bottom: 18px; }
.now-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.now-links a, .now-links span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s;
}
.now-links a:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.now-links span { color: var(--dim); border-style: dashed; }
.embed iframe { width: 100%; border: 0; border-radius: 12px; }
.embed .yt { aspect-ratio: 16/9; height: auto; }
@media (max-width: 700px) { .now { grid-template-columns: 1fr; } .now img { max-width: 260px; } }

/* ---------- tracklist ---------- */
.tracklist { list-style: none; max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--line); }
.tracklist li {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 18px 8px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: padding .4s var(--ease), background .3s, color .3s;
}
.tracklist li:hover { padding-left: 24px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tracklist li.active { color: var(--accent); }
.tracklist .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.tracklist .t { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -.01em; }
.tracklist .s { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.tracklist li.active .s { color: var(--accent); }

/* ---------- persona split ---------- */
.split {
  position: relative; max-width: 1100px; aspect-ratio: 1; max-height: 80vh; margin: 0 auto; overflow: hidden; border-radius: 14px;
  --x: 50%; touch-action: none; user-select: none;
}
.split-img { position: absolute; inset: 0; }
.split-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.split-img.a img { filter: grayscale(1) contrast(1.3) brightness(1.05); }
.split-img.a::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(255, 42, 58, .35)); mix-blend-mode: multiply; }
.split-img.b { clip-path: inset(0 0 0 var(--x)); }
.split-img.b img { filter: saturate(1.4) hue-rotate(-10deg); }
.split-img.b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 61, 154, .25), rgba(242, 196, 109, .2)); mix-blend-mode: overlay; }
.split-line {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; cursor: ew-resize;
  box-shadow: 0 0 20px #fff;
}
.split-line span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 20px;
}
.split-label { position: absolute; bottom: 24px; display: grid; gap: 6px; text-shadow: 0 2px 20px rgba(0,0,0,.8); pointer-events: none; }
.split-label b { font-family: var(--display); font-size: clamp(28px, 6vw, 72px); line-height: 1; }
.split-label b.hi { font-weight: 400; }
.split-label.la { left: 24px; }
.split-label.lb { right: 24px; text-align: right; }
.persona-copy { max-width: 760px; margin: 56px auto 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.persona-copy p + p { margin-top: 18px; }
.persona-copy b { color: var(--accent); }

/* ---------- connect ---------- */
#connect { padding-bottom: 140px; }
.connect-title { font-size: clamp(64px, 15vw, 240px); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 100px; }
.socials a {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 34px);
  padding: 14px 28px; border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.socials a:hover { background: var(--accent); color: #0a0a0a; transform: rotate(-3deg) scale(1.05); }
.socials p { font-size: 20px; color: var(--dim); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- player ---------- */
#player {
  position: fixed; left: 50%; bottom: 16px; z-index: 85;
  width: min(760px, calc(100vw - 24px));
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  background: rgba(10, 10, 12, .72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.1); color: #f1ede6;
  transform: translate(-50%, 140%); transition: transform .7s var(--ease);
}
html[data-world="toofaan"] #player { background: rgba(20, 5, 31, .75); }
#player.on { transform: translate(-50%, 0); }
#pl-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.pl-meta { display: grid; min-width: 0; }
.pl-meta b { font-family: var(--display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta .mono { font-size: 10px; }
.pl-ctrl { display: flex; align-items: center; gap: 4px; }
.pl-ctrl button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; opacity: .8; }
.pl-ctrl button:hover { opacity: 1; }
.pl-ctrl .pl-play { width: 42px; height: 42px; background: var(--accent); color: #0a0a0a; opacity: 1; }
.pl-prog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: rgba(255,255,255,.1); cursor: pointer; border-radius: 3px; }
.pl-prog::before { content: ''; position: absolute; inset: -8px 0; }
#pl-bar { height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.pl-time { font-size: 10px; width: 36px; text-align: right; }
.pl-imm { font-size: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.pl-imm:hover { background: #fff; color: #000; }
@media (max-width: 560px) { .pl-time { display: none; } #player { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; } }

/* ---------- immersive ---------- */
body.immersive main, body.immersive .nav { opacity: 0; pointer-events: none; }
main, .nav { transition: opacity .8s var(--ease); }
#imm-title {
  position: fixed; left: 0; right: 0; bottom: 110px; z-index: 5; text-align: center; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(36px, 8vw, 120px); line-height: .9;
  color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .8s;
}
body.immersive #imm-title { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-title em, .enter-ring, .scroll-cue span { animation: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(48px, 17vw, 120px); bottom: 120px; }
  .split-label span { display: none; }
  .split-label { bottom: 16px; }
  .split-label.la { left: 16px; } .split-label.lb { right: 16px; }
  .hero-corner.tr { display: none; }
}
