/* ═══════════════════════════════════════════════════════════════
   Sanchit & Riya · Shubh Vivah — TECHNO skin (friends-facing)
   "Obsidian monochrome, single cyan light-source." The page is
   black-and-white; light is RARE and EARNED. Reference: Anyma /
   Afterlife — high-contrast, hard-edged, restrained. NOT gamer-RGB:
   presence comes from weight + spacing + crisp edges, not glow.
   Accent budget: ~2–3 cyan moments per screen, no bloom on type.
   ═══════════════════════════════════════════════════════════════ */

/* ── Vendored fonts (self-hosted, Google's per-script subsets; OFL 1.1) ──
   Space Grotesk + Space Mono = latin subset; Noto Serif Devanagari = the
   devanagari subset for the Nataraja shloka. No external font CDN. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/space-mono-400italic.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/space-mono-700.woff2") format("woff2"); }
/* display:block so the sacred Devanagari line never flashes tofu */
/* Archivo Variable — the hero display face. Space Grotesk is a proportional
   companion to Space Mono: an engineered neo-grotesk with no display cut and no
   width axis, which is exactly why the names read as generic Helvetica at 130px.
   Archivo carries a REAL wdth axis (62-125), so the lockup can be set genuinely
   EXTENDED rather than synthetically stretched. Wide, not condensed: two short
   first names set condensed make a narrow column and worsen the hero's empty
   lower band, where extended fills the measure and counterweights the artwork.
   Latin subset, both axes, 90KB. SIL OFL 1.1. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
}
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 500; font-display: block; src: url("../assets/fonts/noto-serif-devanagari-500.woff2") format("woff2"); }

:root {
  /* obsidian — dark-only (the light/day theme was dropped: off-brand) */
  --bg: #0b0c0f;
  --bg-deep: #06070a;
  --surface: #14161c;
  --hairline: #232833;
  --hairline-soft: #1c2029;
  --text: #f5f7fa;          /* primary, ~18:1 on obsidian */
  --body: #c7cdd6;          /* emotional/body copy, ~11:1 */
  --muted: #9aa3b2;         /* secondary, ~7.8:1 */
  --label: #79828f;         /* workhorse labels (eyebrows, TRACK, DRESS), ~4.9:1 */
  --accent: #22d3ee;        /* the single accent: electric cyan (AAA on obsidian) */
  --accent-soft: #38bdf8;   /* faint light-shaft / fog only */
  --accent-rgb: 34, 211, 238;
  --accent-soft-rgb: 56, 189, 248;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-luxe: cubic-bezier(.25, 1, .5, 1);
  --shadow-lift: 0 24px 60px -28px rgba(0, 0, 0, .85);

  /* driven each frame by the light show (js/app/lightshow.js): --energy is the
     smoothed track energy (0..1), --beat spikes on onsets and decays. UI accents
     react to these. Defaults keep everything calm when no show runs
     (reduced-motion, no JS). */
  --beat: 0;
  --energy: 0.3;
  --drop: 0; /* 0..1 while the drop dancer is on screen; lifts the vignette */
}

/* dark-only: one obsidian palette regardless of the auto day/night decision */
html, html[data-theme="dark"], html[data-theme="light"] { background-color: #0b0c0f; }
/* the day↔night toggle contradicts the "obsidian, one cold light" concept — hidden
   (!important overrides the shared control-shape rule later in this file) */
#theme-toggle { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(var(--accent-rgb), .25); color: #fff; }

/* film grain — a cheap tactile finish over the whole page so the obsidian never
   reads as a flat fill (fixed, above content, below the fixed controls/gate) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: .04; } }

/* prevent pre-JS flash only when JS is present to animate things in */
html.js .fade-up, html.js .hero-seq, html.js .interlude-art, html.js .interlude-line { opacity: 0; }
html.js.reduce-motion .fade-up,
html.js.reduce-motion .hero-seq,
html.js.reduce-motion .interlude-art,
html.js.reduce-motion .interlude-line { opacity: 1; }

/* ── layout primitives ─────────────────────────────────────── */
.wrap { max-width: 74rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap--narrow { max-width: 46rem; }
.band { padding-block: clamp(4.5rem, 9vw, 7rem); position: relative; }
/* translucent so the fixed WebGL backdrop stays visible through every section,
   not just the hero. Dark enough to hold text contrast over the live haze. */
.band--tint { background: linear-gradient(180deg, rgba(6, 7, 10, .58), rgba(11, 12, 15, .46)); }
.band, .footer { min-height: 100svh; display: flex; align-items: center; }
.band > .wrap, .footer > .wrap { width: 100%; }

/* Anyma "vertical light-shaft marks the threshold": ONE faint beam at the top
   of each band — the only ambient light, kept whisper-quiet (no wireframe). */
.band::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: clamp(90px, 22vw, 260px); height: 34%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--accent-soft-rgb), .09), transparent 80%);
  filter: blur(26px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.kicker {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 1.4rem;
}
.script-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.display-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 3rem;
}
.display-head em { font-style: normal; color: var(--text); font-weight: 300; } /* tonal (weight) emphasis, not a cyan highlight */

/* mid-tier voice between whisper (mono label) and shout (display) */
.eyebrow-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.05rem; color: var(--muted);
}

/* ═══ INVOCATION (Nataraja shloka) ═══════════════════════════ */
.invocation { text-align: center; }
.shloka {
  display: block;
  font-family: "Noto Serif Devanagari", var(--font-display), serif;
  font-weight: 500;
  color: var(--accent);            /* the sacred line earns light */
  letter-spacing: .01em;
  line-height: 1.5;
}
.shloka-roman {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .1em;  /* tighter so diacritics read */
  text-transform: uppercase;
  color: var(--muted);
}
.invocation-motif {
  display: block;
  margin: 0 auto .55rem;
  color: var(--accent);
  aspect-ratio: 1;
}
.gate-invocation { margin-bottom: .9rem; }
.gate-invocation .invocation-motif { width: clamp(52px, 12vw, 62px); }
.gate-invocation .shloka { font-size: .96rem; }
.footer-invocation { margin-bottom: 1.1rem; }
.footer-invocation .invocation-motif { width: 56px; }
.footer-invocation .shloka { font-size: 1.02rem; }
.hero-invocation { margin-bottom: 1.3rem; }
.hero-invocation .invocation-motif { width: clamp(50px, 12vw, 62px); }
.hero-invocation .shloka { font-size: clamp(1rem, 3.2vw, 1.16rem); }
@media (max-height: 640px) {
  .gate-invocation { margin-bottom: .5rem; }
  .gate-invocation .invocation-motif { width: 48px; margin-bottom: .3rem; }
  .gate-invocation .shloka { font-size: .88rem; }
  .gate-invocation .shloka-roman { display: none; }
}

/* ═══ INTRO GATE (video-free, CSS stage) ═════════════════════ */
#gate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  /* translucent so the live WebGL backdrop shows THROUGH the gate before tap —
     the tap then dissolves the card onto the same, continuing scene */
  background: radial-gradient(120% 90% at 50% 42%, rgba(8, 9, 12, .28), rgba(6, 7, 10, .5) 72%);
  overflow: hidden;
}
.gate-stage { position: absolute; inset: 0; pointer-events: none; }
/* the WebGL backdrop replaces the gate's own CSS stage decorations */
.gate--techno .gate-stage { display: none; }
/* soft volumetric fog instead of a synthwave wireframe grid */
.gate-grid, .hero-grid, .ambient-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 50% 118%, rgba(var(--accent-soft-rgb), .08), transparent 70%),
    linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 55%);
}
/* single vertical light-shaft */
.gate-shaft, .hero-shaft {
  position: absolute; top: -10%; left: 50%;
  width: clamp(80px, 20vw, 180px); height: 120%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(var(--accent-soft-rgb), .16) 46%, transparent);
  filter: blur(30px);
  mix-blend-mode: screen;
}
/* The black hole (js/app/blackhole.js) sits dead-centre of the fixed light-show
   backdrop, and a LIT INTERIOR is the single biggest "portal, not black hole"
   tell — the shadow disc has to be the darkest thing on screen. The shared rule
   above peaks at 46% of the shaft's height, which lands almost exactly on the
   horizon, so the hero copy is re-ramped to peak high and die out above the
   disc: the shaft now reads as being swallowed by the hole rather than shining
   through it. The gate copy keeps the original ramp (the gate is opaque, no hole
   behind it). */
.hero-shaft {
  background: linear-gradient(180deg,
    transparent,
    rgba(var(--accent-soft-rgb), .17) 20%,
    rgba(var(--accent-soft-rgb), .05) 34%,
    transparent 44%);
}
.gate-scanlines, .ambient-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .5) 2px 3px);
  mix-blend-mode: overlay;
  opacity: .04;
}
#gate.revealing .gate-shaft { animation: shaft-burst 1.1s var(--ease-luxe) forwards; }
#gate.revealing .gate-grid { animation: grid-fade 1.1s var(--ease-luxe) forwards; }
@keyframes shaft-burst { 0% { opacity: 1; } 40% { opacity: 1; width: 52vw; } 100% { opacity: 0; } }
@keyframes grid-fade { to { opacity: 0; } }

.gate-card {
  position: relative; z-index: 2;
  cursor: pointer;
  text-align: center;
  padding: 2.1rem 1.7rem 1.6rem;
  max-width: 25rem;
  margin-inline: 1.25rem;
  background: rgba(9, 10, 13, .5);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gate-card { background: rgba(9, 10, 13, .92); }
}
.gate-kicker {
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--label); margin-bottom: .7rem;
}
.gate-line {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.2rem; line-height: 1.5; margin-bottom: 1.4rem;
  color: var(--body);
}

/* glyph seal — a crisp cyan ring around the monogram, no bloom */
.seal--techno {
  position: relative;
  width: 148px; height: 148px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 44%, var(--surface), var(--bg-deep));
  box-shadow: inset 0 0 0 1px var(--hairline);
  -webkit-tap-highlight-color: transparent;
}
.seal--techno:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.seal--techno .seal-ring {
  position: absolute; inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .5);
}
.seal--techno .seal-monogram {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: .04em;
  color: var(--text);
}
.seal--techno .seal-monogram em { font-style: normal; color: var(--accent); margin-inline: .1em; }
.seal--techno .seal-ripple {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .45);
  pointer-events: none; opacity: 0;
}
.seal--techno.opened .seal-ripple { display: none; }
.gate-hint {
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-top: 1rem;
}

/* ═══ FLOATING CONTROLS (opaque chrome, never sit on bare text) ═ */
#theme-toggle, #music-toggle, #fullscreen-toggle, #floating-cue {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  background: rgba(13, 15, 20, .94);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#theme-toggle { position: fixed; right: 1.1rem; top: 1.1rem; z-index: 65; }
#theme-toggle:focus-visible, #music-toggle:focus-visible, #fullscreen-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#theme-toggle:hover, #music-toggle:hover, #floating-cue:hover { color: var(--accent); }
#theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] #theme-toggle .icon-sun { display: block; }

#right-dock {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 55;
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
}
#music-dock { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
#music-toggle[aria-pressed="false"] .icon-note { opacity: .4; }
#fullscreen-toggle .icon-exit { display: none; }
#fullscreen-toggle[aria-pressed="true"] .icon-enter { display: none; }
#fullscreen-toggle[aria-pressed="true"] .icon-exit { display: block; }
#floating-cue { cursor: pointer; opacity: 1; transition: opacity .5s ease; }
#floating-cue.cue-gone { opacity: 0; pointer-events: none; }
#floating-cue .cue-chevrons { display: grid; place-items: center; width: 20px; height: 20px; }
#floating-cue .cue-chevrons i {
  grid-area: 1 / 1; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) { #floating-cue { display: none; } }

/* ═══ LIGHT-SHOW CANVAS (fixed, outside smoother wrapper) ════ */
/* MilkDrop (butterchurn) viz — backmost layer, tinted toward the obsidian+cyan
   palette so the colourful presets stay on-brand; fades in once live. */
#milkdrop {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; /* driven per-frame by the drop level in milkdrop.js */
  filter: saturate(0.5) hue-rotate(140deg) contrast(1.05) brightness(0.7) blur(16px); /* blur softens 300x150 upscale artefact into atmosphere */
  mix-blend-mode: screen;
}
#lightshow { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.ls-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 32%, rgba(11, 12, 15, .5) 74%, #0b0c0f 100%);
  opacity: calc(1 - var(--drop) * 0.8); /* the vignette lifts during a drop so the side dancer shows */
}
#smooth-wrapper { position: relative; z-index: 2; }

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  /* a soft central scrim so the text block sits in cleaner, darker air over the
     backdrop, plus a bottom fade into the page */
  background:
    radial-gradient(ellipse 66% 48% at 50% 50%, rgba(9, 10, 13, .5) 0%, rgba(9, 10, 13, .12) 56%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 10, 13, .3) 30%, transparent 58%);
}
.hero-inner {
  position: absolute; inset: 0; z-index: 2; width: 100%;
  display: grid; grid-template-rows: 1fr auto 1fr;
  align-items: center; justify-items: center;
  padding: 9vh 1.25rem; box-sizing: border-box;
}
.hero-top { align-self: end; }
.hero-bottom { align-self: start; }
.hero-inner > .hero-names { grid-row: 2; margin-block: .5rem; }
.hero .kicker {
  max-width: 32rem; margin-inline: auto;
  letter-spacing: .22em; font-size: .66rem; color: var(--label);
  text-wrap: balance;   /* even the two-line wrap instead of long-over-short */
}
.hero-names {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .06em;
  margin-block: .8rem .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 1.02;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-name { position: relative; padding-inline: .04em; color: var(--text); }
/* tie the ampersand to the names with flanking hairlines so the couple reads as
   one union, not two separate events (mobile stacks the names). */
.hero-amp {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 500;
  font-size: .46em; line-height: 1;
  color: var(--accent);           /* the one hero accent */
}
.hero-amp::before, .hero-amp::after {
  content: ""; width: clamp(28px, 8vw, 52px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .5), transparent);
}
@media (min-width: 760px) {
  .hero-names { flex-direction: row; align-items: center; gap: .22em; font-size: clamp(3.6rem, 9vw, 7rem); }
  .hero-amp::before, .hero-amp::after { display: none; }
}
.hero-date {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  letter-spacing: .02em;
  color: var(--body);
}
.hero-date .hero-amp { display: inline; }
/* ice-white, not cyan: the ONE cyan ampersand on the hero is the names lockup —
   a second cyan "&" in the date line overspent the accent budget */
.hero-date .hero-amp span { color: var(--text); }
@media (max-width: 600px) { .hero-date-sep { display: none; } .hero-date-location { display: block; } }
.hero-tag {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .18em;
  color: var(--muted);
}
.hero-tag-text { display: inline-block; }

/* waveform / spectrum divider — the signature "electronic heartbeat".
   Ice-white bars; a few tip cyan. Crisp, no glow. */
.hero-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 22px; margin: 1.1rem auto .2rem; }
.hero-wave i { width: 2px; height: 20%; background: var(--muted); opacity: .6; border-radius: 1px; animation: wave-breathe 1.8s ease-in-out infinite; }
.hero-wave i:nth-child(3n) { background: var(--accent); opacity: .85; }
.hero-wave i:nth-child(1) { animation-delay: -.1s } .hero-wave i:nth-child(2) { animation-delay: -.3s }
.hero-wave i:nth-child(3) { animation-delay: -.5s } .hero-wave i:nth-child(4) { animation-delay: -.7s }
.hero-wave i:nth-child(5) { animation-delay: -.9s } .hero-wave i:nth-child(6) { animation-delay: -1.1s }
.hero-wave i:nth-child(7) { animation-delay: -1.3s } .hero-wave i:nth-child(8) { animation-delay: -1.5s }
.hero-wave i:nth-child(9) { animation-delay: -.2s } .hero-wave i:nth-child(10) { animation-delay: -.4s }
.hero-wave i:nth-child(11) { animation-delay: -.6s } .hero-wave i:nth-child(12) { animation-delay: -.8s }
.hero-wave i:nth-child(13) { animation-delay: -1.0s } .hero-wave i:nth-child(14) { animation-delay: -1.2s }
.hero-wave i:nth-child(15) { animation-delay: -1.4s } .hero-wave i:nth-child(16) { animation-delay: -.15s }
.hero-wave i:nth-child(17) { animation-delay: -.35s }
@keyframes wave-breathe { 0%, 100% { height: 16%; } 50% { height: 100%; } }

.scroll-cue { position: absolute; bottom: 3.5vh; left: 0; right: 0; z-index: 2; margin-inline: auto; display: grid; place-items: center; gap: .3rem; }
.cue-label { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.cue-mouse { display: none; position: relative; width: 26px; height: 42px; border: 1.5px solid rgba(245, 247, 250, .35); border-radius: 14px; }
.cue-mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); opacity: 1; }
.cue-chevrons { display: grid; place-items: center; width: 34px; height: 34px; }
.cue-chevrons i { grid-area: 1 / 1; width: 14px; height: 14px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); opacity: 0; }
@media (min-width: 900px) { .cue-mouse { display: block; } .cue-chevrons { display: none; } }

/* ═══ COUNTDOWN + SCRATCH ════════════════════════════════════ */
.countdown { text-align: center; }
.count-grid { display: flex; justify-content: center; gap: clamp(.6rem, 3vw, 1.4rem); margin-bottom: clamp(3rem, 7vw, 4.5rem); }
/* sealed digit slots (a counter awaiting signal, not a skeleton of stars) */
.count-cell {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  min-width: clamp(3.6rem, 18vw, 5.5rem);
  padding: 1.1rem .6rem .7rem;
  border: 1px solid var(--hairline);
  border-top: 1px solid rgba(var(--accent-rgb), .35);
  background: linear-gradient(180deg, rgba(23, 26, 34, .5), transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.count-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 3.4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.count-label { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.scratch { max-width: 24rem; margin-inline: auto; }
.scratch-prompt { font-family: var(--font-display); font-weight: 300; font-size: 1rem; color: var(--body); margin-bottom: .5rem; }
.scratch-hint { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin-bottom: 1.2rem; }
.scratch-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--hairline); box-shadow: var(--shadow-lift); background: var(--surface); overflow: hidden; touch-action: none; }
.scratch-under { position: absolute; inset: 0; display: grid; place-content: center; gap: .3rem; }
.scratch-date { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .02em; color: var(--accent); }
.scratch-sub { font-family: var(--font-mono); font-size: .88rem; letter-spacing: .08em; color: var(--muted); }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }

/* ═══ EVENTS ═════════════════════════════════════════════════ */
.events { text-align: center; }
.event-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; }
@media (min-width: 900px) { .event-grid { grid-template-columns: repeat(3, 1fr); max-width: none; align-items: stretch; } }
.event-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(23, 26, 34, .72), rgba(11, 12, 15, .55));
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
  padding: 1.8rem 1.5rem 1.5rem;
  transform-style: preserve-3d;
  position: relative; text-align: left; overflow: hidden;
  min-height: 15rem;
}
.event-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hairline); }
.event-card--main { border-color: rgba(var(--accent-rgb), .4); }
.event-card--main::before { background: var(--accent); }  /* only the headline earns cyan */
.event-no { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--label); margin-bottom: .7rem; }
.event-card--main .event-no { color: var(--accent); }
.event-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.12; margin-bottom: .9rem; color: var(--text); }
.event-when { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.event-venue { font-family: var(--font-display); font-weight: 300; font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.event-dress { font-size: .85rem; color: var(--body); margin-bottom: 1.2rem; }
.event-dress span { display: block; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin-bottom: .2rem; }
/* a hairline waveform pinned to the card bottom so it composes to full height */
.event-actions { display: flex; gap: 1.4rem; margin-top: auto; }
.event-actions:empty::before {
  content: ""; height: 12px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--hairline) 0 2px, transparent 2px 8px);
  -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent);
  opacity: .5;
}
.btn-quiet {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.btn-quiet:hover, .btn-quiet:focus-visible { color: var(--accent); border-color: rgba(var(--accent-rgb), .6); }

/* Event card extras shared with the Regency markup (build.js buildEventCards):
   kinetic loads THIS file as its base, so without these the prelude card and
   every date line rendered with browser defaults ("20266 o'clock"). */
.event-motif { display: block; width: 34px; height: 34px; color: var(--accent); margin-bottom: .7rem; }
.event-when .ev-t::before { content: " · "; color: var(--label); }
.event-when--tbc { font-style: italic; }
.btn-quiet .ev-ic { flex: none; margin-right: .5em; }
.event-no--prelude { color: var(--accent); }
.event-jai { font-family: var(--font-display); font-weight: 400; font-size: 1rem; color: var(--accent); margin: 0 0 .25rem; }
.event-note { font-family: var(--font-display); font-style: italic; font-size: .92rem; color: var(--body); margin-bottom: .25rem; }
.event-addr { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--label); margin: -.75rem 0 1rem; }
@media (min-width: 900px) {
  /* prelude: alone, centred, same width as a programme card; card 01 starts row 2 */
  .event-grid > .event-card--prelude { grid-column: 2; }
  .event-card--prelude + .event-card { grid-column-start: 1; }
}

/* ═══ INTERLUDE ══════════════════════════════════════════════ */
.interlude { text-align: center; }
/* cyan duotone couple portrait — the human warmth the club aesthetic was missing,
   kept on-palette (grayscale + a cyan→obsidian overlay) */
.interlude-art {
  position: relative; overflow: hidden;
  max-width: 30rem; margin-inline: auto;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
}
.interlude-art img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.18) brightness(.92); }
.interlude-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), .42), rgba(11, 12, 15, .28) 45%, rgba(11, 12, 15, .72));
  mix-blend-mode: overlay;
}
.interlude-art .invocation-motif { width: 64px; }  /* small so the linework stays crisp */
.interlude-line {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.25rem, 3.6vw, 1.7rem); line-height: 1.5;
  max-width: 34rem; margin: 2rem auto 0;
  color: var(--body);
}

/* ═══ GALLERY ════════════════════════════════════════════════ */
.gallery { text-align: center; }
.gallery-grid { display: grid; gap: clamp(.6rem, 2vw, 1.1rem); grid-template-columns: repeat(2, 1fr); grid-auto-flow: row dense; text-align: initial; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-grid > .gframe:last-child { grid-column: span 2; } }
.gframe { margin: 0; background: rgba(23, 26, 34, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--hairline); box-shadow: var(--shadow-lift); padding: .35rem; overflow: hidden; }
.gframe img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05); }
.gframe--tall { grid-row: span 2; } .gframe--wide { grid-column: span 2; }
.gframe img { aspect-ratio: 4 / 5; }
.gframe--tall img { aspect-ratio: auto; min-height: 100%; }
.gframe--wide img { aspect-ratio: 16 / 10; }
/* veiled state: a full-width redacted "contact sheet" (curated secrecy, not a
   broken thumbnail). Six blurred tiles behind the caption. */
.gallery-grid--veiled { display: block; }
.gframe--veiled {
  display: grid; place-items: center; gap: 1.1rem;
  position: relative; width: 100%; min-height: 46svh;
  padding: clamp(2.5rem, 9vw, 5rem) 1.5rem;
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 33.33%, rgba(255,255,255,.04) 33.33% 33.4%),
    linear-gradient(180deg, var(--surface), var(--bg));
  text-align: center; overflow: hidden;
}
.gframe--veiled::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.4) 3px 4px);
  mix-blend-mode: overlay; opacity: .06;
}
.gframe--veiled .veil-motif { position: relative; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--label); line-height: 1; }
.gframe--veiled .veil-note {
  position: relative;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem); line-height: 1.5;
  color: var(--body); max-width: 26rem;
}

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.footer { text-align: center; padding-block: clamp(4rem, 9vw, 6.5rem); background: rgba(6, 7, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); border-top: 1px solid var(--hairline); }
.footer-monogram { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: .06em; color: var(--text); }
.footer-monogram em { font-style: normal; color: var(--accent); }
.footer-rule { display: block; width: 64px; height: 1px; margin: 1.4rem auto 1.8rem; background: var(--hairline); }
.footer-line { font-family: var(--font-display); font-weight: 300; font-size: 1.1rem; line-height: 1.65; max-width: 30rem; margin-inline: auto; color: var(--body); }
.footer-sign { margin-top: 1.6rem; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.footer-sign span { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text); display: inline-block; margin-top: .5rem; letter-spacing: .03em; }
.footer-tag { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; color: var(--muted); }

/* ═══ BEAT-REACTIVE ACCENTS ═════════════════════════════════
   The few earned cyan moments shimmer to the track. Small-area glow + a bar
   scale only (never a full-field luminance flash), so it stays WCAG-safe; --beat
   decays smoothly so it pulses, never strobes. */
.hero-amp { text-shadow: 0 0 calc(6px + var(--beat) * 38px) rgba(var(--accent-rgb), calc(.22 + var(--beat) * .72)); }
.footer-monogram em, .scratch-date { text-shadow: 0 0 calc(4px + var(--beat) * 30px) rgba(var(--accent-rgb), calc(.18 + var(--beat) * .62)); }
/* the big names + countdown stay crisp between beats (no static bloom), then
   flare cyan ON the beat — an obvious shimmer to the track */
.hero-name { text-shadow: 0 0 calc(var(--beat) * 26px) rgba(var(--accent-rgb), calc(var(--beat) * .5)); }
.count-num { text-shadow: 0 0 calc(var(--beat) * 22px) rgba(var(--accent-rgb), calc(var(--beat) * .6)); }
.hero-tag, .kicker { text-shadow: 0 0 calc(var(--beat) * 14px) rgba(var(--accent-rgb), calc(var(--beat) * .4)); }
.hero-wave i { transform: scaleY(calc(.5 + var(--energy) * 1.3)); transform-origin: bottom; }
.hero-wave i:nth-child(3n) { filter: drop-shadow(0 0 calc(4px + var(--beat) * 16px) rgba(var(--accent-rgb), calc(.35 + var(--beat) * .6))); }
.event-card--main::before { box-shadow: 0 0 calc(var(--beat) * 18px) rgba(var(--accent-rgb), calc(.25 + var(--beat) * .72)); }

/* ═══ CSS AMBIENCE (fallback under the JS light show / no-JS) ═ */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient-scanlines { opacity: .04; }

/* the crosshair-seal + frame count on the veil are a DESKTOP-only enrichment;
   below 1024 the mobile veil stays exactly as shipped (label + note only) */
.veil-seal, .veil-count { display: none; }

/* ═══ DESKTOP ART-DIRECTION — compose the wide frame ═════════
   Diagnosis (design review 2026-07-19): the wide-screen problem was NOT that
   sections are centred — the sacred/emotional core SHOULD stay centred. It was a
   triple-nested width throttle (content pinned to 24–34rem inside a 74rem wrap)
   plus undersized type, so live content read as a ribbon marooned in a void.
   Cure is WIDTH + SCALE + RHYTHM, not portfolio furniture. Asymmetry is spent
   ONLY on the informational bands (events hierarchy, interlude split); the hero,
   shloka, countdown ritual, gallery seal and footer sign-off stay centred. No
   index rail, no 01/06 numbering, no ghosted watermark type, no coordinates. */
@media (min-width: 1024px) {
  /* stop forcing every informational band to a full viewport — the dead vertical
     bands came from min-height:100svh flex-centre. Size to content on a generous
     rhythm; the hero and interlude keep their full height. */
  .countdown, .events, .gallery { min-height: auto; padding-block: clamp(6rem, 10vh, 8.5rem); }
  .footer { min-height: auto; }

  /* a touch more presence in the section heads (scale contrast, not decoration) */
  .script-head { font-size: 4rem; }
  .display-head { font-size: 3.7rem; }
  .hero-names { letter-spacing: .05em; }

  /* ── COUNTDOWN — one committed LEFT axis (no centred-heading-over-split
     conflict). A vertical readout whose 4 cells stretch to match the scratch
     card's height beside it, so the two columns share a baseline. ── */
  .countdown { text-align: left; }
  .countdown .wrap {
    display: grid;
    grid-template-columns: minmax(13rem, 15rem) minmax(0, 30rem);
    justify-content: center; align-items: stretch;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
  .countdown .kicker,
  .countdown .script-head { grid-column: 1 / -1; text-align: left; margin-inline: 0; }
  .countdown .script-head { margin-bottom: 2.4rem; }
  .countdown .count-grid {
    grid-column: 1; align-self: stretch;
    display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr;
    gap: .8rem; margin-bottom: 0; width: auto;
  }
  .countdown .count-cell {
    min-width: 0; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 0 1.4rem; gap: 1rem;
  }
  .countdown .count-num { font-size: clamp(2.2rem, 2.6vw, 2.8rem); }
  .countdown .scratch {
    grid-column: 2; max-width: none; width: 100%; margin: 0; align-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
  }

  /* ── EVENTS — the one band that earns real asymmetry. Header left-anchored to
     the content edge; the headline card carries hierarchy by SIZE, the two
     supporting sets stay fully readable (guests compare time/venue/dress) ── */
  .events { text-align: left; }
  .events .kicker, .events .display-head { text-align: left; margin-inline: 0; }
  .event-grid { grid-template-columns: 1fr 1fr 1.32fr; gap: 1.6rem; align-items: stretch; }
  .event-card--main {
    min-height: 20rem; padding: 2.3rem 1.9rem 1.9rem;
    background: linear-gradient(180deg, rgba(30, 34, 44, .82), rgba(13, 15, 20, .6));
  }
  .event-card--main .event-name { font-size: 2rem; }

  /* ── INTERLUDE — a contained editorial split with a DOMINANT image mass. The
     portrait bleeds to the left page edge at ~82vh, so one side clearly wins; the
     heart-line is scaled up opposite and given top-and-bottom rhythm (a mono
     kicker above, a cyan tick below) so the right column reads composed, not one
     short quote floating in a three-sided void. ── */
  .interlude { text-align: left; overflow: hidden; }
  .interlude > .wrap--narrow {
    max-width: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 52% 48%;
    align-items: stretch; min-height: 82vh;
  }
  .interlude-art {
    max-width: none; margin: 0; height: 100%;
    border: 0; box-shadow: none;
  }
  .interlude-art img {
    height: 100%; width: 100%; aspect-ratio: auto;
    object-fit: cover; object-position: center;
  }
  .interlude-line {
    align-self: center; justify-self: start;
    max-width: 30rem; margin: 0;
    padding-inline: clamp(3rem, 6vw, 6rem);
    text-align: left; line-height: 1.4;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  }
  .interlude-line::before {
    content: "Between the sets"; display: block; margin-bottom: 1.5rem;
    font-family: var(--font-mono); font-weight: 400;
    font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--label);
  }
  .interlude-line::after {
    content: ""; display: block; width: 46px; height: 2px;
    margin-top: 1.9rem; background: rgba(var(--accent-rgb), .55);
  }

  /* ── FOOTER — the hand-signed close stays centred and warm; only pulled up
     (min-height relaxed above) so it no longer sits marooned in vertical void ── */
  .footer-line { max-width: 34rem; }

  /* ── GALLERY VEIL — a deliberately sealed object, not an empty contact-sheet
     table. Crosshair-seal + a real locked frame count. Centred and small. NO
     blurred tiles (that would ship the real gated photos). ── */
  /* the veiled grid still carries the 3-col template; force a single centred
     column so the sealed card sits dead-centre, not inside column 1 */
  .gallery-grid--veiled { display: flex; justify-content: center; }
  .gframe--veiled {
    min-height: 22rem; max-width: 38rem;
    padding: clamp(3rem, 5vw, 4rem) 2.5rem; gap: 1.1rem;
    background: linear-gradient(180deg, var(--surface), var(--bg));
  }
  .veil-seal {
    display: block; width: 60px; height: 60px;
    color: var(--accent); opacity: .85; aspect-ratio: 1; margin-bottom: .2rem;
  }
  .veil-count {
    display: block;
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .28em;
    text-transform: uppercase; color: var(--label);
  }
}

/* ═══ REDUCED MOTION ═════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-cue { display: none; }
  .hero-wave i { height: 50%; }
}

/* ── Day↔night circular reveal (View Transitions API) ────────── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
::view-transition-old(root) { z-index: 0; }
