/* Perth Dubstep. The page is a camera rail through one 3D venue; everything
   here is the type, glass and controls that float in front of it. */
@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Rubik Glitch";
  src: url("/fonts/rubik-glitch-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #07050c;
  --ink: #f4eff9;
  --ink-soft: #b4aac6;
  --ink-faint: #7d7490;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(11, 8, 18, 0.76);
  --glass-strong: rgba(11, 8, 18, 0.82);
  --amber: #ffad5c;
  --uv: #8b45ff;
  --logo-violet: #7b2cff;
  --logo-cyan: #00e5ff;
  --logo-magenta: #ff2ca8;
  --display: "Anton", "Arial Narrow", sans-serif;
  --head: "Unbounded", "Arial Black", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --bar-h: 64px;
  --player-h: 60px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- the world ---------- */
.world {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  display: block;
  z-index: 0;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 3, 8, 0.55) 100%),
    linear-gradient(to top, rgba(4, 3, 8, 0.72), rgba(4, 3, 8, 0.3) 30%, transparent 46%);
}
.veil::before {
  /* behind the copy only: a soft shade from the copy's side, so text never sits on bare lasers */
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--copy, 0);
  background:
    linear-gradient(to bottom, rgba(4, 3, 8, 0.55), transparent 22%),
    linear-gradient(to right, rgba(4, 3, 8, 0.78), rgba(4, 3, 8, 0.5) 26%, transparent 50%);
}
.veil::after {
  /* film grain, very light */
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}
.flash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
  opacity: 0;
  mix-blend-mode: screen;
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--bg);
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loading.is-done {
  opacity: 0;
  visibility: hidden;
}
.loading > * {
  grid-area: 1 / 1;
}
.loading.is-ready .loading__status {
  opacity: 0;
}
.loading__status {
  transition: opacity 0.3s;
  pointer-events: none; /* it sits over the Enter button once hidden; taps must reach the button */
}

/* The door: the sun mark and one word. Tapping it starts the song and the lights. */
.gate {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 40px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s, visibility 0.6s;
  -webkit-tap-highlight-color: transparent;
}
.loading.is-ready .gate {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.gate__sun {
  width: 120px;
  height: auto;
  animation: gate-breathe 2.4s ease-in-out infinite;
}
.gate__label {
  position: relative;
  font: 400 40px/1 "Rubik Glitch", var(--display);
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: -3px 0 rgba(0, 229, 255, 0.8), 3px 0 rgba(255, 44, 168, 0.8);
  transition: text-shadow 0.2s;
}
.gate__hint {
  font: 700 11px/1 "Space Mono", var(--mono);
  letter-spacing: 0.32em;
  color: var(--logo-violet);
}
.gate:hover .gate__label,
.gate:focus-visible .gate__label {
  text-shadow: -6px 0 rgba(0, 229, 255, 0.9), 6px 0 rgba(255, 44, 168, 0.9);
}
.gate:focus-visible {
  outline: 1px solid rgba(123, 44, 255, 0.7);
  outline-offset: 6px;
  border-radius: 20px;
}
@keyframes gate-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(123, 44, 255, 0)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(123, 44, 255, 0.55)); }
}

/* ---------- buttons ---------- */
/* Lit sticker: square at rest with a hard offset shadow; on hover it peels up,
   tilts and the shadow flips colour.
   Primary: lit UV slab with a magenta offset. Ghost: the mirror, a magenta slab with
   a violet offset. On hover both brighten and their offsets turn cyan. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 700 13px/1 "Space Mono", var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, rotate 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
a.btn::after {
  content: "→";
  font-family: var(--text);
  letter-spacing: 0;
  transition: transform 0.25s;
}
a.btn:hover::after {
  transform: translateX(3px);
}
.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
}
.btn:active {
  rotate: 0deg;
  transform: translate(2px, 2px);
}
.btn--primary {
  background: linear-gradient(180deg, #9a5bff, var(--logo-violet) 55%, #5d17d6);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 5px 5px 0 var(--logo-magenta), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  rotate: -1.5deg;
  background: linear-gradient(180deg, #ad7aff, #8c45ff 55%, #6a22e8);
  text-shadow: -2px 0 var(--logo-cyan), 2px 0 var(--logo-magenta);
  box-shadow: 8px 8px 0 var(--logo-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:active {
  box-shadow: 2px 2px 0 var(--logo-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--ghost {
  background: linear-gradient(180deg, #ff6cc6, var(--logo-magenta) 55%, #d4148a);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 5px 5px 0 var(--logo-violet), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  rotate: 1.5deg;
  background: linear-gradient(180deg, #ff8ad2, #ff47b4 55%, #e81c98);
  text-shadow: -2px 0 var(--logo-violet), 2px 0 var(--logo-cyan);
  box-shadow: 8px 8px 0 var(--logo-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--ghost:active {
  box-shadow: 2px 2px 0 var(--logo-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.when-on {
  display: none;
}
.sound-on .when-on {
  display: inline;
}
.sound-on .when-off {
  display: none;
}
.sound-on .when-silent {
  display: none !important;
}

/* ---------- header ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bar__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 620;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.bar__sun {
  display: block;
  width: 54px;
  height: auto;
}

/* The Signal glitch logo: PERTH in violet mono over DUBSTEP with a
   cyan/magenta channel split. Size the whole lockup with --logo. */
.logo {
  --logo: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
}
.logo__city {
  font-family: "Space Mono", var(--mono);
  font-weight: 700;
  font-size: calc(var(--logo) * 0.385);
  letter-spacing: calc(var(--logo) * 0.23);
  margin-right: calc(var(--logo) * -0.23);
  color: var(--logo-violet);
  margin-bottom: calc(var(--logo) * 0.12);
}
.logo__word {
  position: relative;
  font-family: "Rubik Glitch", var(--display);
  font-size: var(--logo);
  color: #fff;
  isolation: isolate;
}
.logo__word::before,
.logo__word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.8;
}
.logo__word::before { color: var(--logo-cyan); transform: translateX(calc(var(--logo) * -0.1)); }
.logo__word::after { color: var(--logo-magenta); transform: translateX(calc(var(--logo) * 0.1)); }
.logo--lg { --logo: clamp(44px, 9vw, 88px); }
.bar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bar::before {
  /* a shade under the header so it reads over the brightest truss */
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(rgba(4, 3, 8, 0.6), transparent);
  pointer-events: none;
}
.bar__nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.82;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s, background-color 0.2s;
}
.bar__nav a:hover {
  opacity: 1;
}
.bar__nav .bar__cta {
  margin-left: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- sections: tall scroll runs with a pinned stage ---------- */
main {
  position: relative;
  z-index: 3;
}
.sec {
  position: relative;
  height: var(--h, 200svh);
}
.sec--arrival { --h: 170svh; }
.sec--inside { --h: 150svh; }
.sec--gigs { --h: 260svh; }
.sec--lineup { --h: 300svh; }
.sec--drop { --h: 300svh; }
.sec--desk { --h: 230svh; }
.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.is-gone {
  pointer-events: none;
}
.kicker {
  margin: 0 0 10px;
  font: 400 12px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.sample-note {
  margin: 12px 0 0;
  font: 500 13px/1.45 var(--text);
  color: var(--ink-soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.is-real .sample-note {
  display: none;
}

/* arrival */
.arrival {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--player-h) + 56px + env(safe-area-inset-bottom));
  max-width: 40rem;
}
.arrival__lede {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.02;
  font-weight: 640;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.arrival__sub {
  margin: 0 0 22px;
  max-width: 27rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.arrival__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cue {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--player-h) + 64px + env(safe-area-inset-bottom));
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink), transparent);
  animation: cue 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* inside: one beat of copy */
.beat {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--player-h) + 64px + env(safe-area-inset-bottom));
  max-width: 34rem;
  opacity: 0;
}
.beat__title {
  margin: 0 0 14px;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.98;
  font-weight: 640;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.beat__body {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.beat__hint {
  margin: 16px 0 0;
  font: 400 12px/1.4 var(--mono);
  color: var(--amber);
}

/* section heads */
.sec__head {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--bar-h) + 28px + env(safe-area-inset-top));
  max-width: 24rem;
}
.sec__title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  font-weight: 640;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

/* cards flying through the space, in the copy column under the section head,
   so the stage stays clear */
.flight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: calc(var(--bar-h) + 210px + env(safe-area-inset-top)) var(--gutter) 0;
  list-style: none;
  display: grid;
  place-items: start;
  align-content: start;
  perspective: 1000px;
  perspective-origin: 20% 40%;
}
.flight > li {
  grid-area: 1 / 1;
  opacity: 0;
  will-change: transform, opacity;
}
.card {
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.card--gig {
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  padding: 28px 28px 26px;
}
.card__date {
  margin: 0 0 18px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.card__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.card__place {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 500;
}
.card__detail {
  margin: 0 0 22px;
  color: var(--ink-soft);
}
.card__status {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card--crew {
  width: min(300px, calc(100vw - 2 * var(--gutter) - 40px));
  padding: 10px 10px 18px;
}
.card--crew img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}
.card--crew div {
  padding: 0 10px;
}
.card--crew .card__title {
  font-size: 26px;
}
.card__time {
  margin: 0 0 8px;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--amber);
}
.card__role {
  margin: 0;
  font: 400 12px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* the drop */
.nudge {
  white-space: nowrap;
  position: absolute;
  left: 50%;
  bottom: calc(var(--player-h) + 64px + env(safe-area-inset-bottom));
  translate: -50% 0;
  opacity: 0;
}

/* ---------- light desk ---------- */
.desk {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--bar-h) + 12px + env(safe-area-inset-top));
  bottom: calc(var(--player-h) + 28px + env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  scrollbar-width: thin;
}
.desk__title {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}
.desk__body {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
/* short phones (iPhone SE): square crew photos, so the card stays under the section head */
@media (max-width: 760px) and (max-height: 760px) {
  .flight .card--crew {
    width: min(200px, 54vw);
  }
  .card--crew img {
    aspect-ratio: 1;
  }
  .beat .beat__title {
    font-size: 28px;
  }
  .beat .beat__body {
    font-size: 15px;
  }
  .veil::before {
    background:
      linear-gradient(to bottom, rgba(4, 3, 8, 0.72), rgba(4, 3, 8, 0.3) 24%, transparent 40%),
      linear-gradient(to top, rgba(4, 3, 8, 0.78), rgba(4, 3, 8, 0.45) 40%, transparent 62%);
  }
}
/* the smallest phones (320 x 568) */
@media (max-width: 760px) and (max-height: 600px) {
  .flight .card--crew {
    width: 160px;
  }
}
/* laptop heights: the intro line goes so the whole desk, Save included, fits */
@media (min-width: 761px) and (max-height: 940px) {
  .desk__body {
    display: none;
  }
  .desk__title {
    margin-bottom: 14px;
  }
}
.desk__form {
  display: grid;
  gap: 12px;
}
.seg-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.seg-group legend,
.haze span {
  padding: 0;
  margin-bottom: 8px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.seg input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #0b0810;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.haze {
  display: grid;
}
.haze input {
  width: 100%;
  accent-color: var(--ink);
}
.desk__fire {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}
.pad {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 620;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: background-color 0.1s, transform 0.1s;
}
.pad small {
  font: 400 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pad:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.97);
}
.desk__save {
  position: sticky;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -12px 24px rgba(11, 8, 18, 0.9);
}
.desk__save:hover,
.desk__save:focus-visible {
  rotate: -0.6deg;
}
.desk__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */
.close {
  position: relative;
  z-index: 3;
  padding: 120px var(--gutter) calc(var(--player-h) + 72px);
  background: linear-gradient(transparent, var(--bg) 120px);
}
.close__inner {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 15px;
}
.close__inner p {
  margin: 0 0 8px;
}
.close__mark {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.close__sun {
  display: block;
  width: clamp(96px, 18vw, 150px);
  height: auto;
}
.close__credit {
  margin-top: 20px !important;
}

/* ---------- saved show ---------- */
.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
}
.sheet::backdrop {
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(6px);
}
.sheet__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
}
.sheet__title {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  justify-self: start;
}
.sheet__card {
  width: min(380px, calc(100vw - 80px), calc((100dvh - 240px) * 0.8));
  height: auto;
  border-radius: 14px;
}
.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sheet__status {
  margin: 0;
  min-height: 1.4em;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 380px;
  overflow-wrap: anywhere;
}

/* ---------- player ----------
   A play button that is also the sound switch, a skip arrow, and what's playing
   written out beside them, all in the booth's amber with the same glow. No box. */
.player {
  position: fixed;
  left: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  pointer-events: none;
}
.player button {
  flex: none;
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #ffb56b;
  filter: drop-shadow(0 0 6px rgba(255, 150, 60, 0.7)) drop-shadow(0 1px 8px rgba(0, 0, 0, 0.95));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.player svg {
  display: block;
  fill: currentColor;
}
.player__btn,
.player__skip {
  width: 44px;
  height: 44px;
  transition: transform 0.2s, color 0.2s;
}
.player__btn:hover,
.player__btn:focus-visible,
.player__skip:hover,
.player__skip:focus-visible {
  color: #ffd2a3;
}
.player__btn:active,
.player__skip:active {
  transform: scale(0.92);
}
.player__btn svg {
  width: 26px;
  height: 26px;
}
.player__btn .i-pause,
.player__btn[aria-pressed="true"] .i-play {
  display: none;
}
.player__btn[aria-pressed="true"] .i-pause {
  display: inline;
}
/* waiting on the browser's go-ahead for sound: the button breathes */
.sound-armed .player__btn {
  animation: play-pulse 1.6s ease-in-out infinite;
}
@keyframes play-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.player__skip svg {
  width: 22px;
  height: 22px;
}
.np {
  --lvl: 0.35;
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #ffb56b;
  text-transform: uppercase;
  /* amber glow for the look, a dark halo so it reads over a bright stage */
  text-shadow: 0 0 10px rgba(255, 150, 60, 0.7), 0 1px 14px rgba(0, 0, 0, 0.95);
  filter: brightness(calc(0.8 + var(--lvl) * 0.5));
}
.np p {
  margin: 0;
}
.np__title {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.np__meta {
  margin-top: 3px !important;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .sound-armed .player__btn {
    animation: none;
  }
}

/* ---------- the sound switch ----------
   Always there, bottom right, in the player's amber Space Mono: four EQ bars that dance
   while the sound is on and lie flat when it's off. */
.sound-btn {
  position: fixed;
  right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #ffb56b;
  font: 700 15px/1 "Space Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 150, 60, 0.7), 0 1px 14px rgba(0, 0, 0, 0.95);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, transform 0.2s;
}
.sound-btn:hover,
.sound-btn:focus-visible {
  color: #ffd2a3;
}
.sound-btn:active {
  transform: scale(0.95);
}
.sound-btn__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 150, 60, 0.7)) drop-shadow(0 1px 8px rgba(0, 0, 0, 0.95));
}
.sound-btn__eq i {
  width: 3px;
  height: 4px;
  background: currentColor;
  transition: height 0.3s;
}
.sound-on .sound-btn__eq i {
  animation: eq-bar 0.86s ease-in-out infinite alternate;
}
.sound-on .sound-btn__eq i:nth-child(2) { animation-duration: 0.64s; animation-delay: -0.2s; }
.sound-on .sound-btn__eq i:nth-child(3) { animation-duration: 0.43s; animation-delay: -0.1s; }
.sound-on .sound-btn__eq i:nth-child(4) { animation-duration: 0.75s; animation-delay: -0.35s; }
@keyframes eq-bar {
  0% { height: 4px; }
  100% { height: 18px; }
}
/* the player gives the switch its corner on narrow screens */
@media (max-width: 760px) {
  .player {
    width: calc(100vw - 2 * var(--gutter) - 118px);
  }
  .sound-btn {
    font-size: 13px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sound-on .sound-btn__eq i {
    animation: none;
    height: 12px;
  }
  .sound-on .sound-btn__eq i:nth-child(odd) {
    height: 16px;
  }
}

.crowd-src {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root {
    --bar-h: 56px;
    --player-h: 56px;
  }
  .bar__nav a:not(.bar__cta) {
    display: none;
  }
  /* phones: the opening copy sits under the bar, above the LED wall */
  .arrival {
    right: var(--gutter);
    top: calc(var(--bar-h) + 28px + env(safe-area-inset-top));
    bottom: auto;
  }
  /* the two hero buttons side by side, so neither drops onto the wall */
  .arrival__actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .arrival__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .cue {
    display: none;
  }
  .beat {
    right: var(--gutter);
    bottom: calc(var(--player-h) + 40px + env(safe-area-inset-bottom));
  }
  .sec__head {
    right: var(--gutter);
  }
  .card--gig {
    padding: 22px;
  }
  /* phones: the copy sits top and bottom, so the shade comes from both edges */
  .veil::before {
    background:
      linear-gradient(to bottom, rgba(4, 3, 8, 0.72), rgba(4, 3, 8, 0.3) 24%, transparent 40%),
      linear-gradient(to top, rgba(4, 3, 8, 0.6), transparent 42%);
  }
  .flight {
    padding: 0 var(--gutter) calc(var(--player-h) + 28px + env(safe-area-inset-bottom));
    place-items: end center;
    align-content: end;
    perspective-origin: 50% 80%;
  }
  .card--crew {
    width: min(230px, 58vw);
  }
  .desk__save {
    position: static;
    box-shadow: none;
  }
  .desk {
    top: auto;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-height: 46svh;
    bottom: calc(var(--player-h) + 26px + env(safe-area-inset-bottom));
    padding: 16px 16px 14px;
  }
  .desk__head .kicker,
  .desk__body {
    display: none;
  }
  .desk__title {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .desk__form {
    gap: 10px;
  }
  .seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
    /* the row scrolls sideways: fade the far edge so a cut chip reads as "more" */
    mask-image: linear-gradient(to right, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .seg::-webkit-scrollbar {
    display: none;
  }
  .seg label {
    flex: none;
  }
  .seg span {
    min-height: 34px;
  }
  .desk__fire {
    margin: 14px 0 10px;
  }
  .pad {
    min-height: 52px;
  }
  .np__title {
    font-size: 17px;
  }
  .np__meta {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .bar__cta {
    white-space: nowrap;
  }
}
/* the smallest phones: the header link would crowd the logo, and the hero has the same button */
@media (max-width: 360px) {
  .bar__nav .bar__cta {
    display: none;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .veil::after,
  .cue::after {
    animation: none;
  }
  .btn,
  .pad {
    transition: none;
  }
}

/* ---------- no WebGL: a plain, readable page ---------- */
.no-gl body {
  background: var(--bg) url("/img/crowd-poster.webp") center / cover fixed;
}
.no-gl .world,
.no-gl .loading {
  display: none;
}
.no-gl .sec {
  height: auto;
  padding: 120px var(--gutter) 40px;
}
.no-gl .pin {
  position: static;
  height: auto;
  overflow: visible;
  display: grid;
  gap: 20px;
}
.no-gl .pin > *,
.no-gl .flight,
.no-gl .flight > li,
.no-gl .beat,
.no-gl .desk,
.no-gl .sec__head,
.no-gl .arrival {
  position: static;
  opacity: 1 !important;
  transform: none !important;
  margin: 0;
}
.no-gl .flight {
  display: grid;
  gap: 16px;
  place-items: start;
}
.no-gl .flight > li {
  grid-area: auto;
}
.no-gl .desk__fire,
.no-gl .desk__save,
.no-gl .cue {
  display: none;
}

/* ---------- headline type ---------- */
/* Unbounded for every headline: wide and loud next to the glitch logo.
   It runs wider than the old face, so sizes come down about 15%. */
.arrival__lede,
.beat__title,
.sec__title,
.card__title {
  font-family: var(--head);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.arrival__lede { font-size: clamp(34px, 4.4vw, 60px); }
.beat__title { font-size: clamp(34px, 5.2vw, 72px); }
.sec__title { font-size: clamp(29px, 3.7vw, 50px); }
.card__title { font-size: clamp(22px, 2.5vw, 31px); }
