/* =====================================================================
   OUR HOUSE — JUNHEE · JEEYUN · AZIN
   ===================================================================== */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('../assets/fonts/Unbounded-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('../assets/fonts/Syne-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/InstrumentSerif-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: block;
  src: url('../assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root {
  --bg: #07060b;
  --bg-2: #0d0c14;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.34);
  --line: rgba(255, 255, 255, 0.12);

  --junhee: #4d8dff;
  --junhee-2: #5ce1ff;
  --jeeyun: #ff4f8b;
  --jeeyun-2: #ff9a6b;
  /* Relative luminance Y = 0.46 (< 0.50 Force-Dark threshold) so mobile browsers never invert gold to brown */
  --azin: #ff9f1c;
  --azin-2: #ffb84d;
  --tri: linear-gradient(90deg, var(--junhee), var(--jeeyun), var(--azin));

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-sans: 'Syne', 'Noto Sans KR', sans-serif;
  --f-kr: 'Syne', 'Noto Sans KR', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(20px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark only;
  forced-color-adjust: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark only; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-kr);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-gated { overflow: hidden; height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--azin); color: var(--bg); }

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

/* =====================================================================
   GATE — Awwwards Kinetic Architectural Shutter
   ===================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden;
}
.gate.is-gone { display: none; }
.gate-shutters {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.gate-blade {
  position: relative; width: 100%; height: 50%;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 100%, #151320 0%, #07060b 75%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 3vh, 32px) var(--pad);
  will-change: transform;
}
.gate-bottom {
  background: radial-gradient(120% 100% at 50% 0%, #151320 0%, #07060b 75%);
}
.gate-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: clamp(48px, 8vw, 110px) clamp(48px, 8vw, 110px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 85%);
}
.gate-hud-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: clamp(9px, 1.1vw, 11px); letter-spacing: 0.24em;
  color: var(--faint);
}
.gate-hud-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.gate-hud-pill .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.d1 { background: var(--junhee); } .dot.d2 { background: var(--jeeyun); } .dot.d3 { background: var(--azin); margin-right: 4px; }

.gate-huge-word {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(68px, 19vw, 310px); line-height: 0.78; letter-spacing: -0.055em;
  text-align: center; white-space: nowrap; user-select: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color 0.6s, color 0.6s, transform 0.8s var(--ease-out);
}
.word-top { transform: translateY(18%); }
.word-bottom { transform: translateY(-18%); }
.gate:has(.gate-vinyl:hover) .gate-huge-word {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.48);
  color: rgba(255, 255, 255, 0.03);
}
.gate:has(.gate-vinyl:hover) .word-top { transform: translateY(12%) scale(1.02); }
.gate:has(.gate-vinyl:hover) .word-bottom { transform: translateY(-12%) scale(1.02); }

.gate-laser {
  position: absolute; z-index: 4; left: 0; right: 0; top: 50%; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 2%, var(--junhee) 22%, var(--jeeyun) 50%, var(--azin) 78%, transparent 98%);
  box-shadow: 0 0 28px 2px rgba(255, 79, 139, 0.55), 0 0 60px 4px rgba(77, 141, 255, 0.35);
  animation: seamGlow 2.4s ease-in-out infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes seamGlow { 50% { opacity: 0.4; } }

.gate-center {
  position: absolute; z-index: 6; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
   pointer-events: none; text-align: center;
}
.gate-center > * { pointer-events: auto; }

.gate-vinyl {
  position: relative; width: clamp(176px, 24vmin, 260px); aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-out);
}
.gate-vinyl:hover { transform: scale(1.07); }
.gate-vinyl:focus-visible { outline: 2px solid var(--azin); outline-offset: 10px; }
.vinyl-aura {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--junhee), var(--jeeyun), var(--azin), var(--junhee));
  filter: blur(28px); opacity: 0.38;
  animation: spin 8s linear infinite;
  transition: opacity 0.5s, scale 0.5s;
}
.gate-vinyl:hover .vinyl-aura { opacity: 0.72; scale: 1.12; }
.vinyl-disc {
  position: absolute; inset: 12%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 36%, rgba(255, 255, 255, 0.08) 37%, transparent 39%),
    repeating-radial-gradient(circle, #0a090e 0 2px, #171521 2px 3.5px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: spin 6s linear infinite;
  @media (prefers-reduced-motion: reduce) { animation-duration: 40s; }
}
.vinyl-grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(255, 255, 255, 0.11) 14%, transparent 20% 60%, rgba(255, 255, 255, 0.08) 64%, transparent 70%);
}
.vinyl-label {
  position: absolute; inset: 31%; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--junhee), var(--jeeyun), var(--azin), var(--junhee));
  color: var(--bg);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25);
}
.vinyl-label b { font-family: var(--f-display); font-size: clamp(12px, 1.9vmin, 17px); line-height: 1; letter-spacing: 0.04em; }
.vinyl-label small { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.18em; font-weight: 600; margin-top: 2px; }
.vinyl-ring {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  animation: spin 22s linear infinite reverse;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
.vinyl-ring text { font-family: var(--f-mono); font-size: 9.4px; letter-spacing: 0.28em; fill: rgba(244, 241, 234, 0.72); }
@keyframes spin { to { transform: rotate(360deg); } }

.gate-meta-stack {
  position: absolute; bottom: clamp(54px, 11vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(7, 6, 11, 0.65); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.gate-hint { font-size: clamp(12px, 3.2vw, 14px); color: var(--muted); }
.gate-hint span { color: var(--ink); font-family: var(--f-serif); font-style: italic; font-size: 1.15em; }
.gate-silent {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--faint);
  padding: 4px 10px; border-radius: 6px; transition: color 0.3s;
}
.gate-silent:hover { color: var(--ink); }
.gate-flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 80% at 50% 50%, #fff 0%, rgba(255, 210, 63, 0.7) 25%, rgba(255, 79, 139, 0.35) 50%, transparent 75%);
  mix-blend-mode: screen;
}
@media (max-width: 640px) {
  .gate-hud-top > span:first-child,
  .gate-hud-top > span:last-child { display: none; }
  .gate-hud-top { justify-content: center; }
  .gate-hud-bottom { font-size: 9px; letter-spacing: 0.14em; }
  .gate-meta-stack { bottom: 68px; padding: 8px 16px; width: max-content; max-width: 90vw; }
}

/* =====================================================================
   GLOBAL FX
   ===================================================================== */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.beat-flash {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 50% 45%, var(--flash, #fff), transparent 70%);
  mix-blend-mode: screen;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 70; height: 2px; width: 100%;
  background: var(--tri); transform-origin: 0 50%; transform: scaleX(0);
  display: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    animation: grow-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes grow-progress { to { transform: scaleX(1); } }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid #fff;
  display: grid; place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background 0.35s;
}
.cursor-ring em { font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: #000; opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor-ring { width: 86px; height: 86px; background: #fff; }
.cursor.is-hover .cursor-ring em { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body:not(.is-gated) { cursor: none; } body:not(.is-gated) a, body:not(.is-gated) button, body:not(.is-gated) label { cursor: none; } }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.is-scrolled { background: rgba(7, 6, 11, 0.62); backdrop-filter: blur(14px) saturate(140%); padding-block: 14px; border-bottom: 1px solid var(--line); }
.nav-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { position: relative; width: 26px; height: 24px; }
.logo-mark i { position: absolute; width: 11px; height: 11px; border-radius: 50%; transition: transform 0.15s; }
.logo-mark i:nth-child(1) { left: 0; bottom: 0; background: var(--junhee); }
.logo-mark i:nth-child(2) { right: 0; bottom: 0; background: var(--jeeyun); }
.logo-mark i:nth-child(3) { left: 50%; top: 0; margin-left: -5.5px; background: var(--azin); }
.logo-mark i.pop { transform: scale(1.45); }
.logo-text { font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: 0.02em; }
.logo-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 19px; color: var(--muted); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 44px); list-style: none; }
.nav-links a {
  position: relative; text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted); transition: color 0.3s;
}
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--tri); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-bpm { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.nav-bpm b { color: var(--ink); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jeeyun); box-shadow: 0 0 0 calc(var(--pulse, 0) * 8px) rgba(255, 79, 139, 0.25); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* =====================================================================
   DOCK (sound)
   ===================================================================== */
.dock {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 6px; border-radius: 999px;
  background: rgba(14, 13, 20, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  opacity: 0; translate: 0 20px; pointer-events: none;
  transition: opacity 0.6s, translate 0.6s var(--ease-out);
}
body.is-open .dock { opacity: 1; translate: 0 0; pointer-events: auto; }
.dock-disc { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.dock-vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--azin) 0 18%, #0b0a10 19% 22%, transparent 23%), repeating-radial-gradient(circle, #111 0 1.5px, #1c1a24 1.5px 3px);
  animation: spin 3s linear infinite; animation-play-state: paused;
}
.dock.is-playing .dock-vinyl { animation-play-state: running; }
.dock-state {
  position: relative; font-family: var(--f-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.05em;
  color: #ffffff; background: linear-gradient(135deg, var(--jeeyun), var(--azin));
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border-radius: 4px; padding: 1px 4px; translate: 0 13px;
}
.dock-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dock-eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.dock-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--eq-c, var(--jeeyun)); box-shadow: 0 0 6px var(--eq-c, var(--jeeyun)); transform-origin: 50% 100%; transform: scaleY(0.1); }
.dock-track { width: 150px; overflow: hidden; white-space: nowrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.dock-track span { display: inline-block; padding-left: 100%; animation: ticker 12s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.dock-file {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.dock-file:hover { background: var(--ink); color: var(--bg); }
.drop-zone {
  position: fixed; inset: 16px; z-index: 300; display: none; place-items: center; text-align: center;
  border: 2px dashed var(--azin); border-radius: 28px; background: rgba(7, 6, 11, 0.85); backdrop-filter: blur(8px);
}
.drop-zone.show { display: grid; }
.drop-zone b { display: block; font-family: var(--f-display); font-size: clamp(36px, 7vw, 96px); background: var(--tri); -webkit-background-clip: text; background-clip: text; color: transparent; }
.drop-zone span { color: var(--muted); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  --kick: 0; --bass: 0; --pulse: 0;
  --scene: var(--junhee); --scene-2: var(--junhee-2);
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%;
  filter: blur(85px); -webkit-filter: blur(85px);
  opacity: calc(0.24 + var(--bass) * 0.36);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  transition: scale 1.4s var(--ease-out), opacity 0.2s;
  animation: orbit 26s ease-in-out infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
.b-junhee { left: -18vmax; top: -12vmax; background: radial-gradient(circle, var(--junhee), transparent 65%); }
.b-jeeyun { right: -20vmax; top: 6vmax; background: radial-gradient(circle, var(--jeeyun), transparent 65%); animation-delay: -9s; }
.b-azin { left: 22vw; bottom: -30vmax; background: radial-gradient(circle, var(--azin), transparent 65%); animation-delay: -17s; }
.hero[data-scene="0"] .b-junhee, .hero[data-scene="1"] .b-jeeyun, .hero[data-scene="2"] .b-azin { scale: 1.38; opacity: calc(0.38 + var(--bass) * 0.44); }
@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(8vw, 6vh); }
  66% { transform: translate(-6vw, 10vh); }
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 47%, #000 10%, transparent 75%);
  opacity: calc(0.5 + var(--pulse) * 0.5);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: pan-y; }
.hero-ghost {
  position: absolute; z-index: 1; left: 50%; top: 47%;
  translate: -50% -50%;
  scale: calc(1 + var(--kick) * 0.035);
  font-family: var(--f-display); font-weight: 900; line-height: 1;
  font-size: clamp(120px, 30vw, 620px); letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none; user-select: none;
}
.hero-ghost .g-ch { display: inline-block; transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.hero-ghost .g-ch.hit { color: color-mix(in srgb, var(--scene) 14%, transparent); -webkit-text-stroke-color: color-mix(in srgb, var(--scene) 70%, transparent); transition: none; }

.vmarquee {
  position: absolute; z-index: 4; top: 0; bottom: 0; width: 22px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.vm-left { left: clamp(10px, 1.6vw, 26px); }
.vm-right { right: clamp(10px, 1.6vw, 26px); }
.vm-track {
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.4em; color: var(--faint);
}
.vm-track b { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .vmarquee { display: none; } }

.hero-caption {
  position: absolute; z-index: 5; left: var(--pad); bottom: clamp(28px, 7vh, 72px);
  max-width: min(560px, 60vw);
}
.cap-meta { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.cap-meta i { width: 36px; height: 1px; background: var(--scene); }
.cap-name {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(54px, 7.4vw, 128px); line-height: 0.95; letter-spacing: -0.01em;
  color: var(--scene); margin: 6px 0 8px;
  text-shadow: calc(var(--kick) * 7px) 0 rgba(255, 0, 90, 0.55), calc(var(--kick) * -7px) 0 rgba(0, 210, 255, 0.55);
  overflow: hidden; padding-right: 0.15em;
}
.cap-name .ch { display: inline-block; }
.cap-line { font-size: 15px; color: var(--muted); }

.hero-hud {
  position: absolute; z-index: 5; right: var(--pad); bottom: clamp(28px, 7vh, 72px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.hud-beats { display: flex; gap: 6px; }
.hud-beats i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); transition: background 0.35s, box-shadow 0.35s; }
.hud-beats i.on { background: var(--scene); border-color: var(--scene); box-shadow: 0 0 16px var(--scene); transition: none; }
.hud-bar { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.hud-bar b { color: var(--ink); font-weight: 600; }
.hud-scenes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hud-scenes button {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hud-scenes button:hover { border-color: var(--ink); color: var(--ink); }
.hud-scenes button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 760px) {
  .hero-hud { left: var(--pad); right: auto; top: 86px; bottom: auto; align-items: flex-start; }
  .hud-scenes { justify-content: flex-start; }
  .hero-caption { max-width: none; right: var(--pad); }
}

.hero-scroll {
  position: absolute; z-index: 5; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--faint);
}
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(180deg, var(--ink), transparent); transform-origin: top; animation: drip 1.9s var(--ease-out) infinite; @media (prefers-reduced-motion: reduce) { animation: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .hero-scroll { display: none; } }

/* Pre-open states (revealed by GSAP) */
body.is-gated .nav, body.is-gated .hero-caption, body.is-gated .hero-hud, body.is-gated .hero-scroll, body.is-gated .vmarquee { opacity: 0; }

/* =====================================================================
   EQUATION
   ===================================================================== */
.equation { position: relative; }
.eq-pin {
  height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh;
  padding: 0 var(--pad); text-align: center; overflow: hidden;
}
.eq-line {
  --eq-fs: 17vw;
  display: flex; align-items: baseline; justify-content: center; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: var(--eq-fs); line-height: 1; letter-spacing: -0.03em;
}
.eq-word { display: inline-flex; align-items: baseline; }
.eq-word b { font-weight: 900; }
.w-junhee b { color: var(--junhee); }
.w-jeeyun b { color: var(--jeeyun); }
.w-azin b { color: var(--azin); }
.rest { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; color: var(--ink); }
.eq-op { margin: 0 0.16em; font-weight: 400; color: var(--faint); }
.eq-sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: var(--muted); line-height: 1.5; }
.eq-sub .eq-hi {
  font-family: var(--f-display); font-style: normal; font-weight: 900;
  font-size: 1.24em; color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
  margin: 0 0.04em;
}

/* =====================================================================
   BAND (kinetic tape — viewport-centered rotation, Force-Dark immune)
   ===================================================================== */
.band {
  position: relative;
  padding: clamp(32px, 6.5vh, 68px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.band-strip {
  width: 112vw;
  margin-left: -6vw;
  overflow: hidden;
  transform-origin: 50% 50%;
}
.band-strip.strip-solid {
  rotate: -2.4deg;
  background: linear-gradient(90deg, #162a66 0%, #5c163b 50%, #663808 100%);
  border-block: 1.5px solid rgba(255, 159, 28, 0.55);
  box-shadow: 0 22px 60px rgba(255, 79, 139, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 0.1em 0;
}
.band-strip.strip-outline {
  rotate: 1.8deg;
  margin-top: -4px;
}
.band-row {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 4.6vw, 78px); line-height: 1.12; letter-spacing: -0.02em;
  color: #ffffff;
  will-change: transform;
}
.band-row.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 241, 234, 0.62);
}
.band-row span { padding: 0 0.35em; display: inline-flex; align-items: center; gap: 0.35em; }
.band-row span b { font-weight: 900; }
.band-row span i { font-style: normal; font-size: 0.55em; color: var(--azin-2); }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: clamp(110px, 16vh, 190px) var(--pad); }
.section-head { max-width: 1400px; margin: 0 auto clamp(48px, 7vh, 80px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 32px; height: 2px; border-radius: 2px;
  background: var(--jeeyun);
  box-shadow: -10px 0 10px var(--junhee), 10px 0 10px var(--azin);
}
.section-title {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(42px, 8vw, 132px); line-height: 0.95; letter-spacing: -0.035em;
}
.section-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  color: var(--jeeyun);
  padding-right: 0.08em;
}
.section-title em .em-ch {
  display: inline-block;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-shadow: 0 0 28px color-mix(in srgb, currentColor 36%, transparent);
}
.section-title .line { display: block; overflow: hidden; }
.section-title .line > span { display: inline-block; }
.section-desc { margin-top: 20px; max-width: 560px; color: var(--muted); font-size: 16px; }
.sample-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--azin); border: 1px dashed rgba(255, 210, 63, 0.5); vertical-align: middle; }

/* =====================================================================
   CREW
   ===================================================================== */
.crew-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); perspective: 1400px; }
@media (max-width: 980px) { .crew-grid { grid-template-columns: 1fr; } }
.crew-card {
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 600px; padding: clamp(22px, 2.4vw, 34px);
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--c) 24%, rgba(77, 141, 255, 0.14)), transparent 62%),
    linear-gradient(165deg, #151322 0%, #09080f 68%);
  border: 1px solid color-mix(in srgb, var(--c) 38%, rgba(255, 255, 255, 0.14));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}
.crew-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.45; transition: opacity 0.5s;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 34%, transparent), transparent 65%);
}
.crew-card:hover::before { opacity: 1; }
.crew-initial {
  position: absolute; z-index: -1; right: -0.08em; bottom: -0.2em;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(260px, 26vw, 420px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 42%, rgba(255, 255, 255, 0.12));
  transition: translate 0.8s var(--ease-out);
}
.crew-card:hover .crew-initial { translate: -4% -3%; }
.crew-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.crew-top b { color: var(--c); font-weight: 600; }
.crew-avatar {
  position: relative; width: 112px; height: 112px; border-radius: 50%; margin: 18px 0 6px;
  display: grid; place-items: center;
}
.crew-avatar::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c), var(--c2), transparent 60%, var(--c));
  animation: spin 5s linear infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
.crew-avatar::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-2); }
.crew-avatar span { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 900; font-size: 40px; color: var(--c); }
.crew-avatar img { position: absolute; inset: 5px; z-index: 1; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover; }
.crew-name { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 4.3vw, 70px); line-height: 0.95; letter-spacing: -0.03em; color: var(--c); text-shadow: 0 0 32px color-mix(in srgb, var(--c) 28%, transparent); }
.crew-title { font-family: var(--f-serif); font-style: italic; font-size: 26px; line-height: 1.1; color: var(--ink); }
.crew-bio { font-family: var(--f-sans); color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 34ch; }
.crew-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-tags span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 42%, rgba(255, 255, 255, 0.15)); color: color-mix(in srgb, var(--c) 85%, var(--ink)); background: color-mix(in srgb, var(--c) 8%, transparent); }
.crew-links { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.crew-link {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  min-width: 0;
  padding: 12px 11px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid color-mix(in srgb, var(--c) 24%, rgba(255, 255, 255, 0.12));
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  transition: background 0.35s, color 0.35s, border-color 0.35s, translate 0.35s var(--ease-out), box-shadow 0.35s;
}
.crew-link svg { width: 15px; height: 15px; flex: none; color: var(--c); transition: color 0.35s; }
.crew-link > span {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  text-align: left; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crew-link small {
  display: block; color: var(--muted);
  font-size: clamp(8.2px, 0.68vw, 9.5px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.35s;
}
.crew-link:hover,
.crew-link:active {
  background: var(--c); color: var(--bg); border-color: var(--c); translate: 0 -3px;
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--c) 55%, transparent);
}
.crew-link:hover svg,
.crew-link:active svg { color: var(--bg); }
.crew-link:hover small,
.crew-link:active small { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.crew-link.is-empty { border-style: dashed; }
.crew-link.is-wide { grid-column: 1 / -1; justify-content: center; }
.crew-link.is-wide > span { flex: 0 1 auto; align-items: center; text-align: center; }
.crew-card.is-active {
  border-color: color-mix(in srgb, var(--c) 62%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 26px 70px -18px color-mix(in srgb, var(--c) 32%, rgba(0, 0, 0, 0.8)), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.crew-card.is-active::before { opacity: 0.95; }
.crew-card.is-active .crew-initial { translate: -4% -3%; -webkit-text-stroke-color: color-mix(in srgb, var(--c) 65%, rgba(255, 255, 255, 0.2)); }

/* =====================================================================
   DOORS — Awwwards Interactive Kinetic Portal Showcase
   ===================================================================== */
.door-grid {
  max-width: 1400px; margin: 0 auto;
  display: flex; gap: 18px;
  min-height: 540px;
}
.portal-card {
  --mx: 50%; --my: 50%;
  position: relative; flex: 1; min-width: 0;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden; isolation: isolate;
  text-decoration: none; color: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(10, 9, 16, 0.9));
  border: 1px solid color-mix(in srgb, var(--h1) 30%, rgba(255, 255, 255, 0.12));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 22px 55px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    flex 0.75s var(--ease-out),
    border-color 0.5s,
    box-shadow 0.75s var(--ease-out),
    transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .door-grid:hover .portal-card { flex: 0.85; }
  .door-grid .portal-card:hover,
  .door-grid .portal-card:focus-visible {
    flex: 1.85;
    border-color: color-mix(in srgb, var(--h1) 72%, transparent);
    box-shadow: 0 30px 90px -20px color-mix(in srgb, var(--h1) 48%, transparent);
  }
}
.portal-card.is-active {
  border-color: color-mix(in srgb, var(--h1) 68%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 26px 75px -18px color-mix(in srgb, var(--h1) 42%, transparent);
}

/* Ambient + preview backdrop */
.portal-backdrop {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(110% 90% at 80% 10%, color-mix(in srgb, var(--h1) 42%, transparent), transparent 62%),
    radial-gradient(95% 95% at 15% 100%, color-mix(in srgb, var(--h2) 72%, transparent), #07060b 78%);
}
.portal-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 11, 0.2) 0%, rgba(7, 6, 11, 0.5) 50%, rgba(7, 6, 11, 0.9) 100%),
    radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--h1) 34%, transparent), transparent 65%);
}
.portal-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42; scale: 1.12; filter: saturate(1.18) contrast(1.06);
  transition: opacity 0.8s var(--ease-out), scale 1.1s var(--ease-out);
}
.portal-card:hover .portal-img,
.portal-card.is-active .portal-img { opacity: 0.68; scale: 1.02; }

/* Architectural grid & giant index watermark */
.portal-grid-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 35%, #000 10%, transparent 75%);
}
.portal-watermark {
  position: absolute; right: -0.06em; top: 14%; z-index: -1;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(130px, 15vw, 230px); line-height: 0.85; letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--h1) 34%, rgba(255, 255, 255, 0.1));
  pointer-events: none; user-select: none;
  transition: transform 0.8s var(--ease-out), -webkit-text-stroke-color 0.5s;
}
.portal-card:hover .portal-watermark,
.portal-card.is-active .portal-watermark {
  transform: translate(-8px, -10px) scale(1.05);
  -webkit-text-stroke-color: color-mix(in srgb, var(--h1) 65%, rgba(255, 255, 255, 0.24));
}

/* Top bar */
.portal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.portal-index {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.portal-index::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--h1); box-shadow: 0 0 12px var(--h1);
}

/* Center floating orbital badge */
.portal-visual {
  position: relative; my: auto;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 24px 0;
}
.portal-orb {
  position: relative; width: 76px; height: 76px; border-radius: 24px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--h1) 52%, rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 34px;
  transition: transform 0.6s var(--ease-out), border-radius 0.6s, background 0.5s;
}
.portal-card:hover .portal-orb,
.portal-card.is-active .portal-orb {
  transform: scale(1.1) rotate(-6deg);
  border-radius: 50%;
  background: color-mix(in srgb, var(--h1) 24%, rgba(255, 255, 255, 0.1));
}

/* Bottom copy + magnetic arrow pill */
.portal-bottom {
  display: flex; flex-direction: column; gap: 14px;
}
.portal-sub {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--h1) 85%, #fff);
  text-transform: uppercase;
}
.portal-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -0.03em;
  word-break: keep-all;
}
.portal-desc {
  font-family: var(--f-sans);
  color: var(--muted); font-size: 14px; line-height: 1.55;
  max-width: 34ch;
}
.portal-cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}
.portal-cta-label {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--ink);
}
.portal-card.is-locked .portal-cta-label { color: var(--faint); }
.portal-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
}
.portal-card:not(.is-locked):hover .portal-arrow,
.portal-card:not(.is-locked).is-active .portal-arrow {
  background: color-mix(in srgb, var(--h1) 45%, #12101e);
  color: #ffffff;
  border-color: var(--h1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--h1) 55%, transparent);
  transform: translate(3px, -3px) rotate(-45deg);
}

.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 6, 11, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--azin-2); border-color: rgba(255, 159, 28, 0.5); }
.status.live::before { animation: blink 1.4s infinite; }
.status.building { color: var(--junhee-2); border-color: rgba(92, 225, 255, 0.4); }
.status.soon { color: var(--faint); }
@keyframes blink { 50% { opacity: 0.2; } }

@media (max-width: 1080px) {
  .door-grid { display: grid; grid-template-columns: repeat(2, 1fr); min-height: 0; }
  .portal-card { min-height: 400px; }
}
@media (max-width: 640px) {
  .door-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-card { min-height: 320px; padding: 22px 20px; border-radius: 24px; }
  .portal-visual { padding: 12px 0; }
  .portal-orb { width: 60px; height: 60px; border-radius: 18px; font-size: 28px; }
  .portal-watermark { font-size: 130px; top: 8%; }
}

/* =====================================================================
   QUESTS
   ===================================================================== */
.quest-tabs { max-width: 1400px; margin: 0 auto 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.qtab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.qtab:hover { color: var(--ink); border-color: var(--qc); }
.qtab[aria-selected="true"] {
  background: color-mix(in srgb, var(--qc) 38%, #141122);
  color: #ffffff;
  border-color: var(--qc);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--qc) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.qtab .qi { font-size: 16px; }
.quest-panel {
  --qc: var(--azin);
  max-width: 1400px; margin: 0 auto; position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 56px); border-radius: 30px;
  background:
    radial-gradient(95% 120% at 95% 0%, color-mix(in srgb, var(--qc) 24%, transparent), transparent 62%),
    radial-gradient(80% 90% at 0% 100%, color-mix(in srgb, var(--qc) 12%, transparent), transparent 60%),
    linear-gradient(165deg, #141220 0%, #09080f 80%);
  border: 1px solid color-mix(in srgb, var(--qc) 38%, rgba(255, 255, 255, 0.14));
  box-shadow: 0 24px 65px -20px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.q-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.q-title { display: flex; align-items: center; gap: 18px; }
.q-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; background: color-mix(in srgb, var(--qc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--qc) 45%, transparent); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--qc) 35%, transparent); }
.q-title h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.03em; }
.q-title p { font-family: var(--f-sans); color: var(--muted); margin-top: 6px; }
.q-xp { width: min(320px, 100%); }
.q-xp-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; }
.q-xp-top b { color: var(--qc); }
.q-xp-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.q-xp-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--qc); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--qc); }
.q-track { position: relative; margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 22px; }
.q-line { position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: var(--line); }
.q-line i { position: absolute; inset: 0; background: var(--qc); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--qc); }
.q-ms { position: relative; padding-top: 46px; }
.q-node {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #ffffff;
  background: var(--bg); border: 2px solid var(--faint);
}
.q-ms.done .q-node { background: color-mix(in srgb, var(--qc) 65%, #141122); border-color: var(--qc); box-shadow: 0 0 14px color-mix(in srgb, var(--qc) 60%, transparent); }
.q-ms.doing .q-node { border-color: var(--qc); }
.q-ms.doing .q-node::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--qc); animation: ping 1.6s var(--ease-out) infinite; @media (prefers-reduced-motion: reduce) { animation: none; opacity: 0.4; } }
.q-ms.doing .q-node::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--qc); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.q-date { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--qc); }
.q-ms h4 { font-family: var(--f-sans); font-weight: 700; font-size: clamp(17px, 1.4vw, 21px); margin: 6px 0 4px; line-height: 1.3; color: var(--ink); }
.q-ms p { font-family: var(--f-sans); color: var(--muted); font-size: 14px; }
.q-ms-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.q-chip { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--faint); }
.q-ms.done .q-chip { color: #ffffff; background: color-mix(in srgb, var(--qc) 42%, #141122); border-color: var(--qc); }
.q-ms.doing .q-chip { color: var(--qc); border-color: var(--qc); }
.q-who { display: flex; }
.q-who span { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 10px; font-weight: 900; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); border: 2px solid var(--bg); }
@media (max-width: 860px) {
  .q-track { grid-template-columns: 1fr; gap: 28px; padding-left: 40px; }
  .q-line { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .q-line i { transform-origin: 50% 0; transform: scaleY(0); }
  .q-ms { padding-top: 0; }
  .q-node { left: -40px; }
}

/* =====================================================================
   ROOMS
   ===================================================================== */
.room-list { max-width: 1400px; margin: 0 auto; list-style: none; border-bottom: 1px solid var(--line); }
.room-list li {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 18px;
  padding: clamp(18px, 3vh, 30px) 8px; border-top: 1px solid var(--line);
  transition: color 0.4s, padding 0.5s var(--ease-out);
}
.room-list li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #1b3580, #661840, #663808); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); }
.room-list li:hover,
.room-list li:active { color: #ffffff; padding-left: 28px; }
.room-list li:hover::before,
.room-list li:active::before { transform: scaleY(1); }
.room-list span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--azin-2); opacity: 0.9; }
.room-list li:hover span,
.room-list li:active span { color: #ffffff; }
.room-list b { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.room-list em { font-family: var(--f-sans); font-style: normal; font-size: 14px; opacity: 0.72; }
@media (max-width: 640px) { .room-list li { grid-template-columns: 40px 1fr; } .room-list em { grid-column: 2; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; padding: clamp(80px, 14vh, 160px) 0 28px; overflow: hidden; }
.footer-marquee {
  width: 100%; overflow: hidden;
  padding: 0.18em 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.footer-track {
  display: inline-flex; align-items: baseline; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 11.2vw, 195px); line-height: 0.95; letter-spacing: -0.045em;
  will-change: transform;
}
.footer-track .fch {
  display: inline-block;
  color: var(--jeeyun);
  text-shadow: 0 0 32px color-mix(in srgb, currentColor 35%, transparent);
}
.footer-track .fsep { display: inline-block; padding: 0 0.28em; font-size: 0.55em; color: var(--azin-2); vertical-align: middle; }
.footer-track .fsp { display: inline-block; width: 0.28em; }
.footer-bar { max-width: 1400px; margin: clamp(50px, 8vh, 90px) auto 0; padding: 22px var(--pad) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--faint); }
.footer-bar a { text-decoration: none; color: var(--muted); }
.footer-bar a:hover { color: var(--ink); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 250; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(20, 18, 34, 0.95); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px; font-weight: 500; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s, translate 0.45s var(--ease-out);
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* =====================================================================
   MOBILE & SMALL SCREEN OPTIMIZATION (AWWWARDS RESPONSIVE POLISH)
   ===================================================================== */
@media (max-width: 760px) {
  :root { --pad: 18px; }

  /* Gate on mobile: richer contrast & glowing kinetic stroke */
  .gate-huge-word {
    font-size: clamp(78px, 23vw, 160px);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
    text-shadow: 0 0 40px rgba(255, 79, 139, 0.22);
  }
  .gate-vinyl { width: clamp(188px, 48vw, 236px); }
  .vinyl-aura { opacity: 0.62; filter: blur(24px); -webkit-filter: blur(24px); }

  /* Nav: compact header with glass backdrop */
  .nav { padding: 12px var(--pad); gap: 10px; }
  .nav.is-scrolled { padding-block: 10px; background: rgba(7, 6, 11, 0.82); }
  .logo-text { font-size: 15px; }
  .logo-text em { font-size: 17.5px; }
  .nav-bpm { font-size: 10px; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }

  /* Hero layout on mobile: vivid centered neon blobs + crisp typography */
  .hero { min-height: 100svh; }
  .blob {
    width: 78vw; height: 78vw;
    filter: blur(62px); -webkit-filter: blur(62px);
    opacity: calc(0.36 + var(--bass) * 0.42);
  }
  .b-junhee { left: -14vw; top: 8vh; }
  .b-jeeyun { right: -16vw; top: 24vh; }
  .b-azin { left: 10vw; bottom: 8vh; }
  .hero[data-scene="0"] .b-junhee,
  .hero[data-scene="1"] .b-jeeyun,
  .hero[data-scene="2"] .b-azin {
    scale: 1.32;
    opacity: calc(0.55 + var(--bass) * 0.42);
  }

  .hero-ghost {
    top: 42%;
    font-size: clamp(74px, 23.5vw, 150px);
    -webkit-text-stroke: 1.2px color-mix(in srgb, var(--scene) 38%, rgba(255, 255, 255, 0.16));
  }
  .hero-hud {
    left: var(--pad); right: var(--pad); top: 62px; bottom: auto;
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
  }
  .hud-beats i { width: 11px; height: 11px; }
  .hud-bar { font-size: 10px; letter-spacing: 0.18em; }
  .hud-scenes { width: 100%; justify-content: flex-start; gap: 6px; margin-top: 2px; }
  .hud-scenes button {
    padding: 6px 11px; font-size: 9.5px; letter-spacing: 0.14em;
    background: rgba(14, 13, 22, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.18);
  }
  .hud-scenes button.active {
    background: color-mix(in srgb, var(--scene) 42%, #141122);
    color: #ffffff;
    border-color: var(--scene);
    box-shadow: 0 0 18px color-mix(in srgb, var(--scene) 55%, transparent);
    font-weight: 600;
  }

  .hero-caption {
    left: var(--pad); right: var(--pad);
    bottom: 84px; /* leave room for compact sound dock */
    max-width: none;
  }
  .cap-meta { font-size: 10px; letter-spacing: 0.2em; gap: 8px; color: var(--ink); }
  .cap-meta i { width: 24px; height: 1.5px; box-shadow: 0 0 8px var(--scene); }
  .cap-name {
    font-size: clamp(48px, 14.5vw, 72px); margin: 4px 0 6px;
    text-shadow: 0 0 28px color-mix(in srgb, var(--scene) 45%, transparent), calc(var(--kick) * 5px) 0 rgba(255, 0, 90, 0.6), calc(var(--kick) * -5px) 0 rgba(0, 210, 255, 0.6);
  }
  .cap-line { font-family: var(--f-sans); font-size: 14px; line-height: 1.45; color: rgba(244, 241, 234, 0.82); }

  /* Sound Dock: sleek compact pill at bottom-right */
  .dock {
    right: 12px; bottom: 12px;
    padding: 5px 8px 5px 5px; gap: 8px;
    background: rgba(14, 13, 24, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78);
  }
  .dock-disc { width: 34px; height: 34px; }
  .dock-track { width: 84px; font-size: 9px; }
  .dock-eq { height: 14px; }
  .dock-eq i { width: 2.5px; }
  .dock-file { width: 26px; height: 26px; font-size: 11px; }

  /* Equation section on mobile: 3-row stacked kinetic display with zero dead black void */
  .eq-pin {
    height: auto;
    min-height: 76svh;
    gap: 24px;
    padding: 72px var(--pad) 48px;
    background:
      radial-gradient(90% 60% at 50% 45%, rgba(255, 79, 139, 0.16), rgba(77, 141, 255, 0.12) 48%, transparent 78%);
  }
  .eq-line {
    --eq-fs: 11.5vw !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.06;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 28px rgba(255, 79, 139, 0.22));
  }
  .eq-op {
    font-size: 0.58em;
    margin: -2px 0;
    color: var(--azin-2);
  }
  .eq-sub {
    font-size: 17px;
    padding: 0 10px;
    max-width: 30ch;
    color: rgba(244, 241, 234, 0.82);
  }

  /* Kinetic band (viewport-centered tilt, never collides) */
  .band { padding: 28px 0 34px; gap: 10px; }
  .band-strip.strip-solid { rotate: -2.2deg; }
  .band-strip.strip-outline { rotate: 1.8deg; margin-top: 0; }
  .band-row { font-size: clamp(24px, 7vw, 36px); }

  /* Sections & typography */
  .section { padding: 68px var(--pad); }
  .section-head { margin-bottom: 34px; }
  .section-title { font-size: clamp(36px, 11.2vw, 56px); margin-top: 12px; }
  .section-desc { font-family: var(--f-sans); font-size: 14.5px; margin-top: 14px; color: rgba(244, 241, 234, 0.76); }

  /* Crew cards: vivid, high-contrast & compact 2-line buttons on mobile */
  .crew-card {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 26px;
    gap: 12px;
    background:
      radial-gradient(125% 95% at 15% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 65%),
      linear-gradient(165deg, #171527 0%, #090810 75%);
  }
  .crew-avatar { width: 86px; height: 86px; margin: 6px 0 2px; }
  .crew-avatar span { font-size: 32px; }
  .crew-name { font-size: clamp(36px, 10.5vw, 44px); }
  .crew-title { font-size: 22px; }
  .crew-bio { font-size: 14px; max-width: none; color: rgba(244, 241, 234, 0.78); }
  .crew-initial { font-size: 210px; right: -0.04em; bottom: -0.15em; }
  .crew-links { margin-top: 10px; gap: 8px; }
  .crew-link {
    padding: 11px 9px; border-radius: 14px;
    font-size: 9.8px; letter-spacing: 0.04em; gap: 7px;
  }
  .crew-link svg { width: 14px; height: 14px; }
  .crew-link small {
    font-size: clamp(7.8px, 2.3vw, 9px);
    letter-spacing: -0.03em;
  }

  /* Quests tabs: horizontal swipeable strip */
  .quest-tabs {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .quest-tabs::-webkit-scrollbar { display: none; }
  .qtab { flex: 0 0 auto; padding: 10px 16px; font-size: 11px; }
  .quest-panel { padding: 24px 18px; border-radius: 24px; }
  .q-head { gap: 18px; }
  .q-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 26px; }
  .q-title { gap: 14px; }
  .q-title h3 { font-size: 22px; }
  .q-title p { font-size: 13.5px; margin-top: 2px; }

  /* Rooms list */
  .room-list li { padding: 18px 6px; gap: 10px; }
  .room-list b { font-size: clamp(21px, 6.4vw, 30px); }
  .room-list em { font-size: 13px; }

  /* Footer */
  .footer { padding: 64px 0 92px; }
  .footer-track { font-size: clamp(46px, 14.5vw, 78px); }
  .footer-bar { margin-top: 36px; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10px; }
}
