/* ==========================================================================
   Zoom Executive Karaoke & Lounge — styles
   Direction C: Midnight Editorial
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --base: #07040C;
  --base-raised: #100A1A;
  --text: #F4EEF8;
  --text-2: #B9AEC8;
  --text-3: #9488A6;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --leak-magenta: #E0129A;
  --leak-violet: #7B1FD1;
  --leak-indigo: #2A1AA8;
  --leak-crimson: #D4183A;

  --cta: #C80E88;
  --cta-glow: rgba(224, 18, 154, 0.55);
  --focus: #FF5BC8;

  --accent-grad: linear-gradient(100deg, #FF9BDD 0%, #D7B4FF 45%, #FFD3B6 100%);

  --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 300ms;
  --dur-base: 600ms;

  --gutter: 20px;
  --max: 1440px;
  --section-y: clamp(5rem, 12vh, 10rem);
  --dock-h: 0px;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-blur: 18px;
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
}
@media (max-width: 899px) {
  :root { --glass-blur: 12px; --dock-h: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
html.reduce-motion { scroll-behavior: auto; }
body {
  min-height: 100svh;
  background: var(--base);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: var(--dock-h);
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
em { font-style: normal; }
dialog { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 91, 200, 0.18), 0 0 24px rgba(255, 91, 200, 0.35);
  border-radius: 6px;
}
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { border-radius: var(--r-pill); }

::selection { background: rgba(224, 18, 154, 0.45); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main { position: relative; z-index: 3; }

/* ---------- Typography ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow { color: var(--text-3); margin-bottom: 1.25rem; }
.muted { color: var(--text-2); }

.display {
  font-weight: 600;
  font-size: clamp(3.4rem, 8.6vw + 0.5rem, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(2.35rem, 4.4vw + 1rem, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.h3 {
  font-weight: 500;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lead, .body-lg {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44ch;
}

/* Serif accent word: one per headline */
.display em, .h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip: text only paints inside the box; extend it past the
     tight line-height so descenders (g, p) and the italic overhang show */
  padding: 0.1em 0.1em 0.32em 0.02em;
  margin: -0.1em -0.02em -0.32em -0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.display em { font-size: 1.06em; }

/* Split text masks */
/* Mask box is padded so serif-italic descenders (g, p) and overhangs are never clipped */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.12em 0.36em 0.02em;
  margin: -0.1em -0.12em -0.36em -0.02em;
}
.split-word > span { display: inline-block; will-change: transform; }
.split-word em, .split-word > span > em { display: inline-block; }

/* ---------- Ambient: light leaks ---------- */
.leaks {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.leak {
  position: absolute;
  left: 0; top: 0;
  width: 78vmax; height: 78vmax;
  margin: -39vmax 0 0 -39vmax;
  mix-blend-mode: screen;
  opacity: var(--o, 0.7);
  transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0) scale(var(--s, 1));
  transition: transform 2.6s var(--ease-inout), opacity 2.6s var(--ease-inout);
  will-change: transform, opacity;
}
.leak > i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: drift 28s ease-in-out infinite alternate;
}
.leak--a > i { background: radial-gradient(closest-side, rgba(224, 18, 154, 0.95), rgba(224, 18, 154, 0.42) 38%, rgba(224, 18, 154, 0.1) 66%, transparent 100%); }
.leak--b > i { background: radial-gradient(closest-side, rgba(123, 31, 209, 0.9), rgba(123, 31, 209, 0.4) 40%, rgba(123, 31, 209, 0.08) 70%, transparent 100%); animation-duration: 34s; animation-delay: -9s; }
.leak--c > i { background: radial-gradient(closest-side, rgba(42, 26, 168, 0.95), rgba(42, 26, 168, 0.45) 42%, rgba(42, 26, 168, 0.1) 70%, transparent 100%); animation-duration: 40s; animation-delay: -17s; }
.leak--d > i { background: radial-gradient(closest-side, rgba(212, 24, 58, 0.85), rgba(212, 24, 58, 0.32) 40%, rgba(212, 24, 58, 0.06) 68%, transparent 100%); animation-duration: 31s; animation-delay: -5s; }

@keyframes drift {
  0%   { transform: translate3d(-4vmax, 2vmax, 0) scale(0.95); }
  50%  { transform: translate3d(3vmax, -3vmax, 0) scale(1.06); }
  100% { transform: translate3d(5vmax, 4vmax, 0) scale(0.98); }
}

/* Per-scene leak maps (driven by html[data-scene]) */
html[data-scene="0"] .leak--a { --x: 4vw;  --y: 96vh; --s: 1.05; --o: 0.85; }
html[data-scene="0"] .leak--b { --x: 96vw; --y: 34vh; --s: 1;    --o: 0.7; }
html[data-scene="0"] .leak--c { --x: 50vw; --y: 118vh; --s: 1.2; --o: 0.8; }
html[data-scene="0"] .leak--d { --x: 70vw; --y: -14vh; --s: 0.6; --o: 0.25; }

html[data-scene="1"] .leak--a { --x: -10vw; --y: 40vh; --s: 0.8; --o: 0.4; }
html[data-scene="1"] .leak--b { --x: 0vw;  --y: 70vh; --s: 1;    --o: 0.6; }
html[data-scene="1"] .leak--c { --x: 50vw; --y: 130vh; --s: 1;   --o: 0.5; }
html[data-scene="1"] .leak--d { --x: 100vw; --y: 0vh; --s: 0.9;  --o: 0.65; }

html[data-scene="2"] .leak--a { --x: 60vw; --y: 70vh; --s: 0.9; --o: 0.6; }
html[data-scene="2"] .leak--b { --x: 98vw; --y: 6vh;  --s: 1.1; --o: 0.8; }
html[data-scene="2"] .leak--c { --x: 10vw; --y: 110vh; --s: 1;  --o: 0.6; }
html[data-scene="2"] .leak--d { --x: -10vw; --y: 20vh; --s: 0.6; --o: 0.3; }

html[data-scene="3"] .leak--a { --x: 100vw; --y: 60vh; --s: 0.8; --o: 0.6; }
html[data-scene="3"] .leak--b { --x: 0vw;  --y: 20vh; --s: 0.9; --o: 0.55; }
html[data-scene="3"] .leak--c { --x: 50vw; --y: 55vh; --s: 1.25; --o: 0.85; }
html[data-scene="3"] .leak--d { --x: 30vw; --y: 120vh; --s: 0.6; --o: 0.2; }

html[data-scene="4"] .leak--a { --x: 0vw;  --y: 100vh; --s: 0.6; --o: 0.3; }
html[data-scene="4"] .leak--b { --x: 0vw;  --y: 0vh;  --s: 1;   --o: 0.65; }
html[data-scene="4"] .leak--c { --x: 50vw; --y: 130vh; --s: 1;  --o: 0.4; }
html[data-scene="4"] .leak--d { --x: 100vw; --y: 96vh; --s: 1.05; --o: 0.7; }

html[data-scene="5"] .leak--a { --x: 50vw; --y: 140vh; --s: 0.5; --o: 0.15; }
html[data-scene="5"] .leak--b { --x: 80vw; --y: 10vh; --s: 1;   --o: 0.5; }
html[data-scene="5"] .leak--c { --x: 30vw; --y: 70vh; --s: 1.3; --o: 0.85; }
html[data-scene="5"] .leak--d { --x: -10vw; --y: 110vh; --s: 0.5; --o: 0.15; }

html[data-scene="6"] .leak--a { --x: 100vw; --y: 0vh; --s: 0.75; --o: 0.5; }
html[data-scene="6"] .leak--b { --x: 0vw;  --y: 50vh; --s: 0.9; --o: 0.4; }
html[data-scene="6"] .leak--c { --x: 40vw; --y: 110vh; --s: 1.2; --o: 0.85; }
html[data-scene="6"] .leak--d { --x: 90vw; --y: 120vh; --s: 0.6; --o: 0.2; }

html[data-scene="7"] .leak--a { --x: 50vw; --y: 55vh; --s: 1.2; --o: 0.95; }
html[data-scene="7"] .leak--b { --x: 10vw; --y: 10vh; --s: 1.1; --o: 0.75; }
html[data-scene="7"] .leak--c { --x: 90vw; --y: 100vh; --s: 1.1; --o: 0.8; }
html[data-scene="7"] .leak--d { --x: 95vw; --y: 10vh; --s: 0.6; --o: 0.35; }

@media (max-width: 899px) {
  .leak { width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; }
  .leak--c, .leak--d { display: none; }
}

/* Film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@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); }
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 440px; height: 440px;
  margin: -220px 0 0 -220px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 70, 190, 0.075), rgba(160, 60, 255, 0.03) 55%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 600ms ease;
}
html.has-pointer.motion.pointer-active .cursor-glow { opacity: 1; }

/* 3D stage */
.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.stage.is-ready { opacity: var(--stage-o, 1); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(16, 10, 26, 0.88); }
}

/* Pointer spotlight border on glass */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 130, 220, 0.7), rgba(170, 110, 255, 0.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.spot:hover::before, .spot:focus-within::before { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.btn--sm { --h: 40px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn--lg { --h: 60px; padding: 0 2rem; font-size: 1.06rem; }
.btn__icon { flex: none; }

.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 160, 225, 0.45), transparent 55%);
  opacity: 0.8;
  transition: opacity var(--dur-fast);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(224, 18, 154, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--primary:hover::after { opacity: 1; }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover .btn__icon { transform: translateX(3px); }
.btn--ghost .btn__icon { transition: transform var(--dur-fast) var(--ease-out); }

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6B607A;
  transition: background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.chip[aria-pressed="true"] .chip__dot { background: #FF5BC8; box-shadow: 0 0 10px #FF5BC8; }
.chip--lang { min-width: 44px; justify-content: center; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: background-color var(--dur-fast);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 14px; left: 50%;
  z-index: 100;
  transform: translate(-50%, -160%);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: rgba(20, 12, 32, 0.92);
  border: 1px solid var(--line-2);
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: background-color 500ms ease, box-shadow 500ms ease;
}
.nav.is-scrolled .nav__pill { background-color: rgba(10, 6, 18, 0.45); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.brand__mark { color: #FFB6E6; }
.brand__word { font-weight: 600; letter-spacing: 0.24em; font-size: 0.98rem; }

.nav__links {
  display: none;
  gap: 0.25rem;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-2);
  border-radius: var(--r-pill);
  transition: color var(--dur-fast);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--focus);
  transform: translateX(-50%) scale(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.nav__tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav__cta { display: none; }

@media (min-width: 1100px) {
  /* Equal side columns keep the links on the true center of the bar */
  .nav__pill { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .nav__links { display: flex; margin-inline: 0; }
  .nav__tools { margin-left: 0; justify-self: end; }
  .nav__menu-btn { display: none; }
  .nav__cta { display: inline-flex; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__cta { display: inline-flex; }
}

/* Mobile menu sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: rgba(8, 4, 14, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}
.menu-sheet::backdrop { background: transparent; }
.menu-sheet[open] { animation: sheet-in 500ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
.menu-sheet__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.menu-sheet__close { align-self: flex-end; }
.menu-sheet__links { margin-top: 6vh; display: grid; gap: 0.25rem; }
.menu-sheet__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}
.menu-sheet__links .mono { color: var(--text-3); }
.menu-sheet[open] .menu-sheet__links li { animation: rise 700ms var(--ease-out) both; }
.menu-sheet[open] .menu-sheet__links li:nth-child(2) { animation-delay: 40ms; }
.menu-sheet[open] .menu-sheet__links li:nth-child(3) { animation-delay: 80ms; }
.menu-sheet[open] .menu-sheet__links li:nth-child(4) { animation-delay: 120ms; }
.menu-sheet[open] .menu-sheet__links li:nth-child(5) { animation-delay: 160ms; }
.menu-sheet[open] .menu-sheet__links li:nth-child(6) { animation-delay: 200ms; }
.menu-sheet[open] .menu-sheet__links li:nth-child(7) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.menu-sheet__foot { margin-top: auto; padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; color: var(--text-3); }

/* ---------- Progress rail ---------- */
.rail {
  position: fixed;
  right: 22px; top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: none;
}
.rail ol { display: grid; gap: 4px; }
.rail a {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
}
.rail a::before {
  content: "";
  width: 2px; height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 500ms var(--ease-out), background-color 500ms;
}
.rail a:hover::before { background: rgba(255, 255, 255, 0.6); }
.rail a[aria-current="true"]::before { height: 28px; background: #fff; box-shadow: 0 0 12px rgba(255, 120, 220, 0.8); }
@media (min-width: 1100px) { .rail { display: block; } }

/* ==========================================================================
   S0 — Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  padding: 10px;
}
@media (min-width: 900px) { .hero { padding: 24px; min-height: 720px; } }

.hero__frame {
  position: relative;
  height: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hero__content {
  position: absolute;
  left: clamp(20px, 5vw, 88px);
  right: clamp(20px, 5vw, 88px);
  bottom: clamp(150px, 22vh, 210px);
  z-index: 2;
}
.hero__content .lead { margin-top: 1.4rem; }
.hero__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__facts {
  position: absolute;
  left: clamp(12px, 5vw, 88px);
  right: clamp(12px, 5vw, 88px);
  bottom: clamp(12px, 3vh, 32px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--text);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts svg { color: #FFB6E6; }
.age-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px; height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 182, 230, 0.6);
  color: #FFC9EC;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .hero__content { right: auto; max-width: 60vw; bottom: 150px; }
  .hero__facts {
    left: auto;
    right: clamp(24px, 3vw, 48px);
    bottom: clamp(24px, 4vh, 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1.1rem 1.3rem;
  }
}
@media (max-width: 899px) {
  .hero__frame {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 12px calc(var(--dock-h) + 2px);
  }
  .hero__content, .hero__facts { position: relative; left: auto; right: auto; bottom: auto; }
  .hero__content { padding-inline: 8px; }
  .hero__content .lead { margin-top: 1rem; }
  .hero__ctas { margin-top: 1.5rem; }
  .hero__facts { font-size: 0.84rem; gap: 0.3rem 0.9rem; padding: 0.75rem 1rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__ctas .btn--ghost { display: none; }
}
@media (max-width: 899px) and (max-height: 720px) {
  /* Short phones: the dock already carries the reserve action */
  .hero__ctas { display: none; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: clamp(24px, 4vh, 40px);
  z-index: 2;
  width: 96px; height: 96px;
  margin-left: -48px;
  display: none;
  place-items: center;
  border-radius: 50%;
}
@media (min-width: 900px) { .scroll-cue { display: grid; } }
.scroll-cue__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.scroll-cue__ring text { fill: var(--text-2); font-family: var(--f-mono); font-size: 8.4px; letter-spacing: 1.6px; }
.scroll-cue__arrow { position: relative; animation: nudge 2.2s var(--ease-inout) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* Load-in state (only when motion allowed; removed by JS or failsafe) */
html.is-loading [data-hero-in] { opacity: 0; transform: translateY(18px); }
html.is-loading .hero .split { opacity: 0; }

/* ==========================================================================
   S1 — About (door transition)
   ========================================================================== */
.about {
  position: relative;
  min-height: 135svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--section-y);
  isolation: isolate;
}
.about__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 0px);
}
.about__media picture, .about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__media img { transform-origin: 50% 40%; }
.about__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--base) 0%, rgba(7, 4, 12, 0.2) 22%, rgba(7, 4, 12, 0.25) 45%, rgba(7, 4, 12, 0.92) 78%, var(--base) 100%),
    linear-gradient(90deg, rgba(7, 4, 12, 0.75), transparent 70%);
}
.about__content .body-lg { margin-top: 1.75rem; color: #D8CFE3; }
.pillars {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(7, 4, 12, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.pillars__n { color: #FF9BDD; font-family: var(--f-serif); font-style: italic; text-transform: none; font-size: 1rem; letter-spacing: 0; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vh, 4rem) 0;
  border-block: 1px solid var(--line);
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.marquee__row i { font-style: normal; font-size: 0.4em; color: #FF7FD0; }
.marquee__row .is-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   S2 — Rooms
   ========================================================================== */
.rooms { position: relative; padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.rooms__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.rooms__meta { max-width: 34ch; }
.rooms__caption { color: var(--text-2); }
.rooms__counter { margin-top: 1rem; color: var(--text-3); }
.rooms__counter span { color: var(--text); }

.rooms__viewport { margin-top: clamp(2.5rem, 6vh, 4rem); }
.rooms__track {
  display: grid;
  gap: 1.25rem;
  padding-inline: var(--gutter);
}
.room-card__btn {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--r-md);
}
.room-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--base-raised);
}
.room-card--wide .room-card__media { aspect-ratio: 4 / 3; }
.room-card__media picture, .room-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.room-card__media img {
  transform: scale(1.12);
  transition: filter 900ms var(--ease-out);
  filter: saturate(0.75) brightness(0.85);
}
.room-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(123, 31, 209, 0.55), rgba(224, 18, 154, 0.2) 50%, rgba(7, 4, 12, 0.5));
  mix-blend-mode: color;
  transition: opacity 900ms var(--ease-out);
}
.room-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 4, 12, 0.7));
  pointer-events: none;
}
.room-card.is-active .room-card__media::after,
.room-card__btn:hover .room-card__media::after,
.room-card__btn:focus-visible .room-card__media::after { opacity: 0; }
.room-card.is-active .room-card__media img,
.room-card__btn:hover .room-card__media img,
.room-card__btn:focus-visible .room-card__media img { filter: none; }

.room-card__cap {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1rem 0.25rem 0;
}
.room-card__cap .mono { color: var(--text-3); }
.room-card__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.room-card__zoom {
  margin-left: auto;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.room-card__btn:hover .room-card__zoom { transform: rotate(90deg); background: rgba(255, 255, 255, 0.08); }

.rooms__progress { margin-top: 2rem; display: none; }
.rooms__progress::before { content: ""; display: block; height: 1px; background: var(--line-2); }
.rooms__progress span { display: block; height: 1px; margin-top: -1px; background: #fff; transform-origin: left; transform: scaleX(0.2); box-shadow: 0 0 10px rgba(255, 120, 220, 0.8); }

@media (min-width: 900px) {
  .rooms { padding-bottom: 0; }
  html.motion .rooms__pin {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 110px 40px;
  }
  html.motion .rooms { padding-top: 0; }
  html.motion .rooms__viewport { overflow: hidden; margin-top: 2.5rem; }
  html.motion .rooms__track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-inline: var(--gutter) 20vw;
  }
  html.motion .room-card { width: clamp(280px, 26vw, 420px); }
  html.motion .room-card--wide { width: clamp(440px, 46vw, 760px); }
  html.motion .room-card__media { aspect-ratio: auto; height: min(52svh, 560px); }
  html.motion .rooms__progress { display: block; }

  html.reduce-motion .rooms__track { grid-template-columns: repeat(3, 1fr); }
  html.reduce-motion .room-card--wide { grid-column: span 2; }
  html.reduce-motion .room-card--wide .room-card__media { aspect-ratio: auto; height: 100%; }
  html.reduce-motion .rooms__track { max-width: var(--max); margin-inline: auto; }
}

/* ==========================================================================
   S3 — Facilities
   ========================================================================== */
.facilities { position: relative; padding-block: var(--section-y); min-height: 110svh; display: flex; align-items: center; }
.section-head { margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.fac-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .fac-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 18vh; }
}
.fac-card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.9rem;
  min-height: 260px;
  align-content: end;
  transition: transform 600ms var(--ease-out);
}
.fac-card:hover { transform: translateY(-6px); }
.fac-card__n { position: absolute; top: 1.5rem; right: 1.6rem; color: var(--text-3); }
.fac-card__icon { color: #FFB6E6; margin-bottom: auto; }
.fac-card p { color: var(--text-2); }

/* ==========================================================================
   S4 — Menu
   ========================================================================== */
.menu { position: relative; padding-block: var(--section-y); }
.menu__grid { display: grid; gap: 2.5rem; }
.menu__head .muted { margin-top: 1.25rem; }
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .menu__sticky { position: sticky; top: 140px; }
}
.menu__list { border-top: 1px solid var(--line-2); }
.menu-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: clamp(1.4rem, 3.4vh, 2.2rem) 0.5rem;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  transition: padding-left 600ms var(--ease-out), background-color 600ms ease;
}
.menu-row::before { border-radius: var(--r-sm); }
.menu-row__n { color: var(--text-3); }
.menu-row__name { font-size: clamp(1.5rem, 2.2vw + 0.9rem, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.menu-row__tag { grid-column: 2; color: #FF9BDD; }
@media (min-width: 700px) {
  .menu-row { grid-template-columns: 3rem 1fr auto; }
  .menu-row__tag { grid-column: auto; }
}
.menu-row:hover { padding-left: 1.25rem; background: linear-gradient(90deg, rgba(224, 18, 154, 0.1), transparent 70%); }

/* ==========================================================================
   S5 — The night
   ========================================================================== */
.night {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
  overflow: hidden;
}
.night__bg { position: absolute; inset: 0; z-index: -1; }
.night__bg picture, .night__bg img { width: 100%; height: 100%; object-fit: cover; }
.night__bg img { opacity: 0.38; filter: saturate(1.2); transform: scale(1.15); }
.night__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--base) 0%, rgba(7, 4, 12, 0.55) 30%, rgba(7, 4, 12, 0.6) 70%, var(--base) 100%);
}
.night__dark {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 60%, rgba(10, 6, 40, 0.4), rgba(3, 2, 10, 0.95));
  opacity: 0.25;
}

.timeline { position: relative; margin-bottom: clamp(3rem, 8vh, 5rem); }
.timeline__track {
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.timeline__track span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FF7FD0, #9C6BFF, #4B3BFF);
  transform-origin: top;
  box-shadow: 0 0 12px rgba(255, 120, 220, 0.7);
}
.timeline__points { display: grid; gap: 2.25rem; }
.timeline__points li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding-left: 2.25rem;
}
.timeline__dot {
  position: absolute;
  left: 0; top: 0.55em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--base);
  border: 1px solid #FFB6E6;
  box-shadow: 0 0 0 4px rgba(255, 91, 200, 0.12), 0 0 16px rgba(255, 91, 200, 0.6);
}
.timeline__time { font-size: clamp(2rem, 3vw + 1rem, 3.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.timeline__label { color: var(--text-2); }

@media (min-width: 900px) {
  .timeline__track { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline__track span { transform-origin: left; background: linear-gradient(90deg, #FF7FD0, #9C6BFF, #4B3BFF); }
  .timeline__points { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .timeline__points li { padding-left: 0; padding-top: 2.5rem; }
  .timeline__dot { top: 0; }
}

.hours-card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
  max-width: 880px;
}
.hours-card__range { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-top: 0.4rem; }
.hours-card__age { display: flex; align-items: center; gap: 1rem; }
.age-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 182, 230, 0.7);
  font-family: var(--f-mono);
  font-weight: 500;
  color: #FFC9EC;
  box-shadow: inset 0 0 20px rgba(255, 91, 200, 0.25), 0 0 30px rgba(255, 91, 200, 0.25);
}
.hours-card__note { border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (min-width: 900px) {
  .hours-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .hours-card__note { grid-column: 1 / -1; }
}

/* ==========================================================================
   S6 — Location
   ========================================================================== */
.location { position: relative; padding-block: var(--section-y); }
.location__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .location__grid { grid-template-columns: 5fr 6fr; gap: 4rem; } }
.address {
  display: grid;
  gap: 0.15rem;
  margin: 2rem 0 1rem;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.address span:first-child { color: #FFC9EC; }
.location__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.map-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  isolation: isolate;
  padding: 6px;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--r-lg) - 6px);
  /* Dark-mode tint over the real Google map; labels stay readable */
  filter: invert(0.9) hue-rotate(195deg) saturate(0.8) brightness(0.95) contrast(0.95);
}
@media (max-width: 899px) { .map-card { aspect-ratio: 4 / 4.4; } }

/* ==========================================================================
   S7 — Finale
   ========================================================================== */
.finale {
  position: relative;
  min-height: 110svh;
  display: flex;
  align-items: center;
  padding-block: var(--section-y);
  outline: none;
}
.finale__grid { display: grid; }
.finale__panel {
  border-radius: calc(var(--r-lg) + 8px);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 640px;
  margin-top: 34vh;
  background: linear-gradient(180deg, rgba(20, 10, 32, 0.55), rgba(12, 6, 20, 0.45));
}
@media (min-width: 900px) { .finale__panel { margin-top: 0; } }
.finale__panel .body-lg { margin-top: 1.25rem; }
.contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.contact__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF7FD0, #7B1FD1 70%);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.contact__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.contact__num { color: var(--text-2); font-size: 0.85rem; }
.finale__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.finale__actions .btn--lg { flex: 1 1 auto; }
@media (min-width: 600px) { .finale__actions .btn--lg { flex: 0 0 auto; } }
.link-tiktok {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.link-tiktok:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Quick facts ---------- */
.quick { padding-bottom: var(--section-y); }
.quick__card { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.quick__title { color: var(--text-3); margin-bottom: 1.5rem; font-weight: 400; }
.quick__list { display: grid; gap: 1.25rem; }
.quick__list > div { display: grid; gap: 0.2rem; }
.quick__list dt { color: var(--text-3); }
.quick__list dd { font-size: 1.05rem; }
.quick__list a { text-decoration: underline; text-decoration-color: rgba(255, 155, 221, 0.5); text-underline-offset: 4px; }
.quick__list a:hover { text-decoration-color: #FF9BDD; }
@media (min-width: 900px) {
  .quick__list { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 2rem; }
  .quick__list > div:last-child dd { max-width: 30ch; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  background: rgba(7, 4, 12, 0.6);
}
.footer__inner { display: grid; gap: 0.75rem; }
.footer__brand { font-weight: 600; letter-spacing: 0.2em; }
.footer__brand .mono { letter-spacing: 0.08em; color: var(--text-3); margin-left: 0.5rem; font-weight: 400; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; } .footer__inner .muted:nth-child(2) { justify-self: center; } }

/* ---------- Mobile info dock ---------- */
.dock {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 16, 46, 0.6), rgba(14, 8, 24, 0.6));
}
.dock__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--dur-fast);
}
.dock__item:hover, .dock__item[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); }
.dock__item--primary { background: var(--cta); box-shadow: 0 8px 26px -8px var(--cta-glow); }
.dock__item--primary:hover { background: var(--cta); }
.dock__sheet {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 8px);
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: rgba(16, 10, 26, 0.9);
  display: grid;
  gap: 0.4rem;
  animation: rise 400ms var(--ease-out);
}
.dock__sheet[hidden] { display: none; }
.dock__sheet-range { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: rgba(5, 3, 9, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: sheet-in 400ms var(--ease-out); }
.lightbox__figure { display: grid; gap: 1rem; justify-items: center; padding: 72px 16px 24px; }
.lightbox__figure img {
  max-width: min(92vw, 1100px);
  max-height: 78svh;
  width: auto; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -20px rgba(123, 31, 209, 0.5);
  touch-action: pan-y;
}
.lightbox__figure figcaption { color: var(--text-2); text-align: center; max-width: 60ch; }
.lightbox__close { position: fixed; top: 18px; right: 18px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 699px) {
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
}

/* ==========================================================================
   Reduced motion / motion off
   ========================================================================== */
html.reduce-motion .leak,
html.reduce-motion .stage { transition: none; }
html.reduce-motion .leak > i,
html.reduce-motion .grain,
html.reduce-motion .scroll-cue__ring,
html.reduce-motion .scroll-cue__arrow,
html.reduce-motion .scroll-cue__arrow { animation: none; }
html.reduce-motion .room-card__media img { transform: none; }
html.reduce-motion .night__bg img { transform: none; }
html.reduce-motion .menu-sheet[open],
html.reduce-motion .menu-sheet[open] .menu-sheet__links li,
html.reduce-motion .lightbox[open],
html.reduce-motion .dock__sheet { animation: none; }
html.reduce-motion .fac-card:hover { transform: none; }
html.reduce-motion .cursor-glow { display: none; }

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

/* No-JS: everything visible, simple grid gallery */
html.no-js .stage, html.no-js .cursor-glow { display: none; }

/* ==========================================================================
   Phones / touch: drop per-frame effects that are expensive on mobile GPUs
   ========================================================================== */
@media (max-width: 899px), (pointer: coarse) {
  /* Static grain at viewport size (was 200% and animated) */
  .grain { inset: 0; animation: none; }

  /* Leaks: normal blending, no constant drift; scene changes still move them */
  .leak { mix-blend-mode: normal; will-change: transform; }
  .leak > i { animation: none; }

  /* Keep the blur, but give each blurred surface its own GPU compositing layer,
     so scrolling moves cached layers instead of repainting the page around them */
  .glass,
  .btn--glass,
  .pillars li {
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  /* Hover-only spotlight border is never seen on touch */
  .spot::before { display: none; }
}
