/* Space After Hours — styles
   Contents: tokens · base · nav · hero · sound · sections · team · merch · connect · footer · motion */

@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --section-gap: clamp(40px, 5.2vw, 76px);
  --cyan: #32E6EF;
  --pink: #FF009D;
  --pink-text: #FF4DB8;          /* lighter pink for small text on black (contrast) */
  --black: #050509;
  --midnight: #17182A;
  --white: #F4F5FA;
  --muted: #A7A9B8;
  --line: rgba(244, 245, 250, .12);
  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { /* faint nebula tint behind everything */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(50, 230, 239, .055), transparent 70%),
    radial-gradient(60vw 55vh at 100% 100%, rgba(255, 0, 157, .06), transparent 70%);
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--white); color: var(--black); border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Entrance ---------- */
.gate { display: none; position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--black); }
.gate:focus { outline: none; }
.gate-on .gate { display: grid; place-items: center; }
html.gate-on { overflow: hidden; }
.gate-sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gate-dust circle { fill: var(--white); opacity: .5; transform-box: fill-box; transform-origin: center; }
.gate-lines path { fill: none; stroke: url(#gate-grad); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; opacity: .34; transition: opacity .5s; }
.gate-stars circle { fill: var(--white); opacity: .7; transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .6s var(--ease); }
.gate-skip { position: absolute; top: max(10px, env(safe-area-inset-top)); right: var(--gutter); z-index: 2; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gate-skip:hover { color: var(--white); }
.gate-inner { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 64px var(--gutter) 40px; text-align: center; }
.gate-saturn { width: clamp(200px, 36vh, 340px); height: auto; overflow: visible; margin-bottom: clamp(18px, 4vh, 40px); transition: transform 1s var(--ease); }
.gate-saturn * { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s-orbit { stroke: var(--cyan); stroke-width: .8; stroke-dasharray: 1 7; opacity: .5; }
.s-moon { fill: var(--pink); stroke: none; }
.s-rings { stroke: var(--cyan); stroke-width: 1.2; }
.s-rings :nth-child(2) { stroke: var(--pink); }
.s-globe { fill: var(--black); stroke: var(--white); stroke-width: 1.3; }
.s-bands { stroke: var(--white); stroke-width: .7; opacity: .42; }
.s-hatch { stroke-width: .6; }
.s-pulse { stroke: url(#gate-grad); stroke-width: 2.4; stroke-dasharray: .2 1; stroke-dashoffset: .2; opacity: 0; }
.gate-copy { display: flex; flex-direction: column; align-items: center; transition: opacity .45s, transform .6s var(--ease); }
.gate-eyebrow { font-family: var(--display); font-weight: 500; font-size: clamp(.66rem, 1.5vw, .78rem); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.gate-title { margin: clamp(14px, 2.6vh, 24px) 0 clamp(14px, 2.4vh, 22px); font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 6.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.028em; }
.gate-title span { display: block; color: var(--white); }
.gate-title .gate-cyan { color: var(--cyan); }
.gate-tag { font-size: clamp(.62rem, 1.4vw, .72rem); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); text-wrap: balance; }
.gate-enter {
  margin-top: clamp(26px, 5vh, 44px); min-height: 56px; padding: 0 34px; border-radius: 999px; border: 1px solid var(--pink);
  background: rgba(255, 0, 157, .07); box-shadow: 0 0 18px rgba(255, 0, 157, .2);
  font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .24em; text-transform: uppercase; color: var(--white);
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.gate-enter span { display: inline-block; margin-left: .5em; transition: transform .3s var(--ease); }
.gate-enter:hover { background: rgba(255, 0, 157, .2); box-shadow: 0 0 26px rgba(255, 0, 157, .36); }
.gate-enter:hover span { transform: translateX(5px); }
.gate-sound { display: inline-flex; margin-top: 18px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.gate-sound label { position: relative; cursor: pointer; }
.gate-sound input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gate-sound span { display: flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; color: var(--muted); transition: background-color .25s, color .25s; }
.gate-sound input:checked + span { background: rgba(244, 245, 250, .12); color: var(--white); }
.gate-sound input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.gate.is-entering .gate-copy { opacity: 0; transform: translateY(-10px); }
.gate.is-entering .gate-stars circle { opacity: 1; transform: scale(1.9); }
.gate.is-entering .gate-lines path { opacity: .9; }
.gate.is-entering .gate-saturn { transform: scale(1.05); }
.gate.is-entering .gate-skip { opacity: 0; }
.gate.is-leaving { opacity: 0; transition: opacity .45s ease-in; }
@media (max-height: 560px) {
  .gate-saturn { width: 104px; margin-bottom: 6px; } .gate-inner { padding-top: 14px; padding-bottom: 12px; }
  .gate-title { font-size: clamp(1.5rem, 9vh, 2.2rem); margin: 8px 0; } .gate-enter { margin-top: 12px; min-height: 46px; } .gate-sound { margin-top: 10px; }
}
.replay-entrance { margin-left: 14px; min-height: 44px; padding: 0 6px; border: 0; background: none; font-size: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.replay-entrance:hover { color: var(--white); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 5, 9, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { filter: drop-shadow(0 0 6px rgba(255, 0, 157, .55)); }
.brand-word { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand-word span { color: var(--cyan); }
.brand-word em { font-style: normal; color: var(--pink-text); }
.nav-menu { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-menu a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color .25s;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="true"] { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a[aria-current="true"]::after { transform: scaleX(1); }
.nav-sound { flex: none; margin-left: clamp(14px, 2.4vw, 34px); order: 3; background: transparent; }
.nav-sound[hidden] { display: none; }
.nav-sound.is-on { border-color: var(--pink); color: #fff; box-shadow: 0 0 14px rgba(255, 0, 157, .35); }
.nav-menu { order: 2; margin-left: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .nav-sound { order: 0; margin-left: auto; margin-right: 10px; }
  .nav-toggle { order: 1; }
  html:not(.js) .brand-word { display: none; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: .66rem; letter-spacing: .08em; white-space: nowrap; }
  .js .nav-menu a { min-height: 52px; font-size: .86rem; letter-spacing: .16em; border-bottom: 1px solid var(--line); }
  .js .nav-menu {
    position: absolute; top: calc(var(--nav-h) - 6px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; gap: 0; padding: 8px 20px;
    background: rgba(12, 12, 22, .97); border: 1px solid var(--line); border-radius: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .js .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .nav-menu a:last-child { border-bottom: 0; }
  .nav-menu a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 8px) 0 96px; text-align: center;
  --stage-w: min(1240px, 100vw, 118vh);
}
.stage { position: relative; width: var(--stage-w); max-width: 100%; }
.stage-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent 2%, #000 22%, #000 76%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent 2%, #000 22%, #000 76%, transparent 97%);
  mask-composite: intersect;
}
.stage-fallback, .stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.stage-video { opacity: 0; transition: opacity .5s; }
.stage-video.is-live { opacity: 1; }
.stage-controls { position: absolute; right: clamp(14px, 13%, 170px); top: 15%; z-index: 3; display: flex; gap: 8px; opacity: .55; transition: opacity .3s; }
.stage-controls[hidden] { display: none; }
.stage:hover .stage-controls, .stage-controls:focus-within { opacity: 1; }

.chip-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: rgba(5, 5, 9, .6); border: 1px solid var(--line); border-radius: 50%;
  color: var(--white); transition: border-color .25s, color .25s, box-shadow .25s;
}
.chip-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(50, 230, 239, .3); }

.hero-copy { position: relative; margin-top: calc(var(--stage-w) * -.07); padding: 0 var(--gutter); }
.hero-mission {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 2.5vw, 1.9rem); line-height: 1.3;
  letter-spacing: -.005em; max-width: 30ch; margin-inline: auto; text-wrap: balance;
}
.hero-tagline {
  margin-top: 18px; font-size: clamp(.7rem, 1.25vw, .82rem); font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 1.2em;
}
.hero-tagline span:first-child { color: var(--cyan); }
.hero-tagline span:last-child { color: var(--pink-text); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(23, 24, 42, .45);
  font-size: .88rem; font-weight: 500; letter-spacing: .04em; text-decoration: none;
  transition: border-color .3s, box-shadow .3s, color .3s, transform .3s var(--ease);
}
.social li:first-child .social-link:hover { border-color: var(--pink); color: #fff; box-shadow: 0 0 22px rgba(255, 0, 157, .35), inset 0 0 12px rgba(255, 0, 157, .12); }
.social li:last-child .social-link:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 22px rgba(50, 230, 239, .3), inset 0 0 12px rgba(50, 230, 239, .1); }
.social-link:hover { transform: translateY(-2px); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; padding: 4px 8px;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); transform-origin: top; }
.scroll-cue:hover { color: var(--white); }

@media (max-width: 760px) {
  .stage-media { aspect-ratio: 5 / 4; }
  .stage-media { -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent 4%, #000 26%, #000 74%, transparent 96%); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent 4%, #000 26%, #000 74%, transparent 96%); }
  .stage-controls { right: var(--gutter); top: 2%; }
  .hero-copy { margin-top: -18px; }
  .hero { padding-bottom: 110px; }
}

/* ---------- Sound ---------- */
.sound { padding: var(--section-gap) var(--gutter); --energy: 0; }
.console {
  position: relative; max-width: 860px; margin-inline: auto; padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; background: linear-gradient(160deg, rgba(23, 24, 42, .82), rgba(9, 9, 16, .88));
  border: 1px solid var(--line);
}
.console::before { /* neon rim that pulses with the audio */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--cyan), transparent 35%, transparent 65%, var(--pink));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc(.45 + var(--energy) * .55);
}
.console::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: -18px 0 60px -20px rgba(50, 230, 239, .55), 18px 0 60px -20px rgba(255, 0, 157, .55);
  opacity: calc(.12 + var(--energy) * .8);
}
.console-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 26px; }
.console-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -.01em; line-height: 1.1; }
.player { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.play-btn {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1d1f36, #0a0a12); border: 1.5px solid var(--cyan); color: var(--cyan);
  box-shadow: 0 0 calc(14px + var(--energy) * 34px) rgba(50, 230, 239, .45), inset 0 0 14px rgba(50, 230, 239, .18);
  transition: transform .25s var(--ease), border-color .3s, color .3s;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { grid-area: 1 / 1; }
.play-btn .ico-pause, .is-playing .play-btn .ico-play { display: none; }
.is-playing .play-btn .ico-pause { display: block; }
.is-playing .play-btn { border-color: var(--pink); color: #fff; box-shadow: 0 0 calc(14px + var(--energy) * 34px) rgba(255, 0, 157, .55), inset 0 0 14px rgba(255, 0, 157, .22); }
.player-main { flex: 1; min-width: 0; }
.viz { width: 100%; height: 96px; }
.player-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.time { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2.4em; }
.seek {
  --p: 0%; flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--pink)) 0 / var(--p) 100% no-repeat, rgba(244, 245, 250, .16); }
.seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(244, 245, 250, .16); }
.seek::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px var(--cyan); border: 0; }
.seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px var(--cyan); border: 0; }
.console-note { margin-top: 14px; font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) {
  .player { flex-direction: column; align-items: stretch; }
  .play-btn { align-self: center; }
  .console-note { text-align: center; }
}

/* ---------- Shared section furniture ---------- */
/* One rhythm for the whole page: every section has the same space above and below it,
   so the distance between any two sections is 2 x --section-gap. */
.section { position: relative; padding: var(--section-gap) var(--gutter); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 76px); text-align: center; }
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan);
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.label-pink { color: var(--pink-text); }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.lede { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); text-wrap: balance; }
.fine { font-size: .78rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px;
  border-radius: 999px; border: 1.5px solid; font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { border-color: var(--pink); background: rgba(255, 0, 157, .1); box-shadow: 0 0 22px rgba(255, 0, 157, .3), inset 0 0 14px rgba(255, 0, 157, .14); }
.btn-pink:hover { background: var(--pink); color: #fff; box-shadow: 0 0 36px rgba(255, 0, 157, .6); }
.btn-cyan { border-color: var(--cyan); background: rgba(50, 230, 239, .08); box-shadow: 0 0 24px rgba(50, 230, 239, .3), inset 0 0 14px rgba(50, 230, 239, .12); }
.btn-cyan:hover { background: var(--cyan); color: var(--black); box-shadow: 0 0 40px rgba(50, 230, 239, .6); }
.btn-lg { min-height: 64px; padding: 0 44px; font-size: 1.05rem; }

/* ---------- Team ---------- */
.constellation {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px); max-width: 1500px; margin-inline: auto;
}
.constellation-thread { position: absolute; left: 0; right: 0; top: 34%; width: 100%; height: 22%; z-index: 0; overflow: visible; pointer-events: none; }
.constellation-thread path { fill: none; stroke: rgba(50, 230, 239, .28); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 7; }
.star-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 1100px) {
  .star-card:nth-of-type(even) { margin-top: 56px; }
  /* Wide screens only: Sarah sits second and Dominique third. Phones and tablets keep the page order
     (Jaelyn, Dominique, Sarah, Meghan). The two margins keep the up/down stagger in step with the swap. */
  .star-card[data-member="sarah"] { order: 2; margin-top: 56px; }
  .star-card[data-member="dominique"] { order: 3; margin-top: 0; }
  .star-card[data-member="jaelyn"] { order: 1; }
  .star-card[data-member="meghan"] { order: 4; }
}
.portrait {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #07070c;
  border-radius: 20px; overflow: hidden; aspect-ratio: 1; isolation: isolate;
  box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky line { stroke: url(#sky-grad); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset .5s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.sky .glow { opacity: .0; transform-box: fill-box; transform-origin: center; transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.sky .rest { opacity: .5; transform-box: fill-box; transform-origin: center; }
.orbit { position: absolute; left: -4%; right: -4%; top: 50%; height: 26%; transform: rotate(-9deg); pointer-events: none; opacity: 0; transition: opacity .5s; }
.orbit i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--cyan), 0 0 26px 8px rgba(255, 0, 157, .55); }
.connect-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .8rem; font-weight: 500; letter-spacing: .05em; text-decoration: none; color: var(--muted);
  transition: color .35s, border-color .35s, box-shadow .35s, background-color .35s;
}
.connect-link .arrow { transition: transform .35s var(--ease); }
.connect-link:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 20px rgba(50, 230, 239, .35); background: rgba(50, 230, 239, .08); }
.connect-link:hover .arrow { transform: translate(2px, -2px); }

/* lit state: hover (pointer devices), keyboard focus, or tapped */
.star-card.is-active .portrait, .star-card:focus-within .portrait { transform: scale(1.025); box-shadow: 0 0 0 1px rgba(50, 230, 239, .55), -14px 0 50px -18px rgba(50, 230, 239, .6), 14px 0 50px -18px rgba(255, 0, 157, .6); }
.star-card.is-active .sky line, .star-card:focus-within .sky line { stroke-dashoffset: 0; }
.star-card.is-active .sky .glow, .star-card:focus-within .sky .glow { opacity: 1; transform: scale(1.25); }
.star-card.is-active .orbit, .star-card:focus-within .orbit { opacity: 1; }
.star-card.is-active .connect-link, .star-card:focus-within .connect-link { color: #fff; border-color: var(--cyan); box-shadow: 0 0 20px rgba(50, 230, 239, .35); background: rgba(50, 230, 239, .08); }
@media (hover: hover) {
  .star-card:hover .portrait { transform: scale(1.025); box-shadow: 0 0 0 1px rgba(50, 230, 239, .55), -14px 0 50px -18px rgba(50, 230, 239, .6), 14px 0 50px -18px rgba(255, 0, 157, .6); }
  .star-card:hover .sky line { stroke-dashoffset: 0; }
  .star-card:hover .sky .glow { opacity: 1; transform: scale(1.25); }
  .star-card:hover .orbit { opacity: 1; }
  .star-card:hover .connect-link { color: #fff; border-color: var(--cyan); box-shadow: 0 0 20px rgba(50, 230, 239, .35); background: rgba(50, 230, 239, .08); }
}
.hint { margin-top: clamp(32px, 5vw, 60px); text-align: center; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 1099px) { .constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; row-gap: 40px; } .constellation-thread { display: none; } }
@media (max-width: 559px) { .constellation { grid-template-columns: 1fr; max-width: 440px; } }

/* ---------- Merch ---------- */
.rack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px) clamp(14px, 2vw, 28px); max-width: 1400px; margin-inline: auto; }
.product { grid-column: span 2; }
.product:nth-child(-n+2) { grid-column: span 3; }
.plate {
  position: relative; border-radius: 22px; overflow: hidden; background: #0a0a11;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .5s;
}
.product:nth-child(-n+2) .plate { aspect-ratio: 1 / 1; }
.product:nth-child(n+3) .plate { aspect-ratio: 4 / 5; }
.views { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.views::-webkit-scrollbar { display: none; }
.view { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; overflow: hidden; }
.view img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); cursor: zoom-in; }
.view svg { width: 62%; height: auto; overflow: visible; transition: transform .8s var(--ease); }
.product { --g-fill: rgba(244, 245, 250, .035); --g-stroke: rgba(244, 245, 250, .72); }
.g-body { fill: var(--g-fill); stroke: var(--g-stroke); stroke-width: 1.6; stroke-linejoin: round; }
.g-line { fill: none; stroke: rgba(244, 245, 250, .4); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.g-dot { fill: rgba(244, 245, 250, .5); }
.product[data-tone="pink"] { --g-fill: rgba(255, 0, 157, .2); --g-stroke: var(--pink); }
.product[data-tone="blue"] { --g-fill: rgba(40, 90, 255, .26); --g-stroke: #6f9bff; }
.views.is-outline .view + .view { display: none; }
.product:hover .plate { box-shadow: 0 0 0 1px rgba(50, 230, 239, .5), -16px 0 60px -22px rgba(50, 230, 239, .55), 16px 0 60px -22px rgba(255, 0, 157, .55); }
[data-tone="pink"]:hover .plate { box-shadow: 0 0 0 1px rgba(255, 0, 157, .6), 0 0 60px -18px rgba(255, 0, 157, .6); }
@media (hover: hover) { .product:hover .view img, .product:hover .view svg { transform: scale(1.04); } }
.view-tabs { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(5, 5, 9, .72); border: 1px solid var(--line); }
.view-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .25s, background-color .25s; }
.view-tabs button[aria-pressed="true"] { background: rgba(50, 230, 239, .16); color: var(--white); }
.product-meta { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.idx { font-size: .72rem; letter-spacing: .2em; color: var(--pink-text); font-variant-numeric: tabular-nums; }
.product-meta h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.22rem); letter-spacing: .01em; }
.drop { max-width: 620px; margin: clamp(48px, 7vw, 90px) auto 0; text-align: center; display: grid; justify-items: center; gap: 26px; }
.drop > p:first-child { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--white); }
@media (max-width: 900px) {
  .product, .product:nth-child(-n+2) { grid-column: span 3; }
  .product:nth-child(5) { grid-column: 2 / span 4; }
}
@media (max-width: 559px) {
  .rack { grid-template-columns: 1fr; max-width: 440px; }
  .product, .product:nth-child(-n+2), .product:nth-child(5) { grid-column: auto; }
}

.lightbox { padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #07070c; color: var(--white); max-width: min(92vw, 900px); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 5, 9, .88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox p { padding: 12px 20px 16px; font-size: .85rem; color: var(--muted); text-align: center; }
.lightbox-close { position: absolute; top: 12px; right: 12px; font-size: 1.4rem; line-height: 1; z-index: 1; }

/* ---------- Connect ---------- */
.connect { text-align: center; overflow: hidden; }
.orbits { position: absolute; left: 50%; top: 50%; width: min(1100px, 150vw); max-width: none; height: auto; transform: translate(-50%, -50%) rotate(-12deg); pointer-events: none; }
.orbits circle { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.o1 { stroke: rgba(50, 230, 239, .3); } .o2 { stroke: rgba(244, 245, 250, .13); stroke-dasharray: 2 8; } .o3 { stroke: rgba(255, 0, 157, .32); }
.sat path { fill: none; stroke: #fff; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s1 path { stroke-width: 9; filter: drop-shadow(0 0 6px var(--cyan)); } .s2 path { stroke-width: 7; filter: drop-shadow(0 0 6px var(--pink)); }
.connect-inner { position: relative; display: grid; justify-items: center; }
.connect .lede { margin-bottom: 38px; }
.connect .fine { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px var(--gutter) 36px; background: rgba(5, 5, 9, .7); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; max-width: 1400px; margin-inline: auto; }
.footer-tag { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.footer-social { display: flex; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .25s, border-color .25s, box-shadow .25s; }
.icon-link:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 16px rgba(50, 230, 239, .3); }
.disclaimer, .copyright { max-width: 1400px; margin-inline: auto; font-size: .76rem; color: var(--muted); }
.disclaimer { margin-top: 30px; max-width: min(1400px, 100%); }
.disclaimer { padding-top: 22px; border-top: 1px solid rgba(244, 245, 250, .06); }
.copyright { margin-top: 10px; }

/* ---------- Music: song list ---------- */
.tracks { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tracks button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: .8rem; letter-spacing: .04em; color: var(--muted); transition: border-color .25s, color .25s, background-color .25s; }
.tracks button span { font-variant-numeric: tabular-nums; font-size: .7rem; color: var(--cyan); }
.tracks button:hover { border-color: var(--cyan); color: var(--white); }
.tracks button[aria-current="true"] { border-color: var(--pink); background: rgba(255, 0, 157, .1); color: var(--white); }

/* ---------- Events ---------- */
.events { padding-top: 0; }
.marquee { position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1) clamp(56px, 8vw, 104px); border-block: 1px solid var(--line); background: rgba(23, 24, 42, .35); }
.marquee[hidden] { display: none; }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding: clamp(16px, 2vw, 24px) 0 clamp(16px, 2vw, 24px) clamp(22px, 3vw, 44px); font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.6rem); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.marquee-track .m-cyan { color: var(--cyan); }
.marquee-track .m-pink { color: var(--pink-text); }
.marquee-track .m-cyan::after { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.marquee::after { content: ""; position: absolute; inset: 0 0 0 auto; width: clamp(90px, 12vw, 160px); background: linear-gradient(90deg, transparent, var(--black) 62%); pointer-events: none; }
.marquee-toggle { z-index: 1; position: absolute; top: 50%; right: clamp(10px, 2vw, 24px); transform: translateY(-50%); background: rgba(5, 5, 9, .85); }
.event-list { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: clamp(20px, 3vw, 30px) 6px; border-bottom: 1px solid var(--line); }
.event svg { flex: none; filter: drop-shadow(0 0 6px rgba(255, 0, 157, .5)); }
.event-name { flex: 1 1 auto; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
.event-note { font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; }
.invite-line { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }
.invite-line strong { color: var(--white); font-weight: 600; }

/* ---------- Motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .marquee-track { animation: marquee var(--marquee-s, 40s) linear infinite; }
  .marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
  .stage-fallback { animation: fade-in .8s 1.4s both; }
  /* Entrance: everything lands inside 1.8s; the button is usable from the first frame. */
  .gate-dust { animation: fade-in .7s both; }
  .gate-dust .t1 { animation: twinkle 4.2s ease-in-out infinite; } .gate-dust .t2 { animation: twinkle 5.6s -2s ease-in-out infinite; } .gate-dust .t3 { animation: twinkle 7s -4s ease-in-out infinite; }
  .gate-lines path { animation: gate-draw 1.1s .35s var(--ease) both; }
  .gate-stars { animation: fade-in .7s .3s both; }
  .s-rings, .s-orbit { animation: gate-lit 1.1s .15s ease-out both; }
  .s-globe, .s-bands, .s-moon { animation: fade-in .8s both; }
  .gate-eyebrow { animation: fade-in .6s .25s both; }
  .gate-title span { animation: rise .7s .45s var(--ease) both; }
  .gate-title .gate-cyan { animation-delay: .65s; }
  .gate-tag { animation: fade-in .6s .9s both; }
  .gate-enter { animation: gate-btn .6s 1s both; }
  .gate-sound { animation: gate-btn .6s 1.15s both; }
  .gate.is-entering .s-pulse { animation: gate-pulse .95s ease-in-out both; }
  html:not(.gate-on) .hero-mission { animation: rise .9s .5s var(--ease) both; }
  html:not(.gate-on) .hero-tagline { animation: track-in 1.1s .8s var(--ease) both; }
  html:not(.gate-on) .social { animation: rise .9s 1.05s var(--ease) both; }
  .scroll-cue i { animation: cue 2.4s ease-in-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .is-lit .rest { animation: twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
  .star-card.is-active .orbit i, .star-card:focus-within .orbit i, .star-card:hover .orbit i { animation: orbit-x 5.2s linear infinite, orbit-y 5.2s linear infinite; }
  .in-view .s1 { animation: sat1 26s linear infinite; }
  .in-view .s2 { animation: sat2 34s linear infinite; }
  .in-view .constellation-thread path { animation: thread 40s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .stage-video { display: none; }
  .marquee-toggle { display: none; }
  .orbit i { left: 86%; top: 78%; }
}
@keyframes gate-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gate-lit { from { opacity: .12; } }
@keyframes gate-btn { from { opacity: .3; } }
@keyframes gate-pulse { 0% { stroke-dashoffset: .2; opacity: 0; } 15%, 80% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes track-in { from { opacity: 0; letter-spacing: .55em; } }
@keyframes cue { 0%, 100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: .8; transform: scale(1.1); } }
@keyframes thread { to { stroke-dashoffset: -180; } }
/* The orbit light travels an ellipse: two offset sine waves, and it dims on the far side */
@keyframes orbit-x { 0% { left: 0%; animation-timing-function: ease-in-out; } 50% { left: 100%; animation-timing-function: ease-in-out; } 100% { left: 0%; } }
@keyframes orbit-y {
  0% { top: 50%; opacity: .9; animation-timing-function: ease-out; }
  25% { top: 100%; opacity: 1; animation-timing-function: ease-in; }
  50% { top: 50%; opacity: .9; animation-timing-function: ease-out; }
  56% { opacity: 0; }
  75% { top: 0%; opacity: 0; animation-timing-function: ease-in; }
  94% { opacity: 0; }
  100% { top: 50%; opacity: .9; }
}
@keyframes sat1 { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes sat2 { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.sat { transform-origin: 0 0; }

@media (max-height: 520px) { .stage-controls { top: 0; } }
