/* Pulsar Archive cosmic archive theme */
@font-face {
  font-family: "Pulsar Meslo Nerd";
  src: url("fonts/MesloLGSNerdFont-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Pulsar Fantasque Nerd";
  src: url("fonts/FantasqueSansMNerdFont-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Pulsar Swiss Sans";
  src: url("fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #050611;
  --bg-deep: #080a19;
  --panel: rgba(14, 19, 38, 0.72);
  --panel-strong: rgba(20, 26, 48, 0.84);
  --text: #ecf0ff;
  --muted: #a7aed4;
  --line: rgba(161, 186, 255, 0.17);
  --cyan: #7ce7ff;
  --magenta: #ff68d0;
  --violet: #9891ff;
  --white-glow: rgba(232, 240, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.42);
  --ui-font: "Inter", Arial, sans-serif;
  --display-font: "Inter", Arial, sans-serif;
}

body.theme-ion {
  --bg: #041116;
  --bg-deep: #07171d;
  --panel: rgba(10, 24, 29, 0.72);
  --panel-strong: rgba(12, 31, 39, 0.84);
  --text: #e8feff;
  --muted: #99cad1;
  --line: rgba(124, 231, 255, 0.18);
  --cyan: #7ce7ff;
  --magenta: #7bf7d7;
  --violet: #79b9ff;
}

body.theme-ember {
  --bg: #12070a;
  --bg-deep: #1a0c12;
  --panel: rgba(34, 16, 20, 0.74);
  --panel-strong: rgba(43, 20, 28, 0.86);
  --text: #fff0ea;
  --muted: #d4aea8;
  --line: rgba(255, 166, 120, 0.18);
  --cyan: #ffb37c;
  --magenta: #ff6aa6;
  --violet: #ff8c7a;
}

body.theme-ghost {
  --bg: #07080b;
  --bg-deep: #10131a;
  --panel: rgba(21, 24, 32, 0.74);
  --panel-strong: rgba(28, 33, 44, 0.86);
  --text: #f2f5ff;
  --muted: #b5bed5;
  --line: rgba(209, 220, 255, 0.16);
  --cyan: #d6e4ff;
  --magenta: #9fb0d8;
  --violet: #c2cbdf;
}

body.theme-nocturne {
  --bg: #09040f;
  --bg-deep: #13081a;
  --panel: rgba(24, 12, 34, 0.76);
  --panel-strong: rgba(32, 16, 45, 0.88);
  --text: #f8eeff;
  --muted: #ccb4df;
  --line: rgba(206, 150, 255, 0.17);
  --cyan: #b58cff;
  --magenta: #ff71c8;
  --violet: #d1a4ff;
}

body.theme-eclipse {
  --bg: #06090d;
  --bg-deep: #0b1117;
  --panel: rgba(15, 20, 23, 0.78);
  --panel-strong: rgba(20, 28, 32, 0.88);
  --text: #eef8f5;
  --muted: #a9beb9;
  --line: rgba(153, 215, 192, 0.17);
  --cyan: #93f0d3;
  --magenta: #8be0ff;
  --violet: #c7ffef;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--ui-font);
  background:
    radial-gradient(circle at 18% 16%, rgba(124, 231, 255, 0.12), transparent 0 26%),
    radial-gradient(circle at 82% 20%, rgba(255, 104, 208, 0.11), transparent 0 22%),
    radial-gradient(circle at 50% 80%, rgba(152, 145, 255, 0.10), transparent 0 28%),
    linear-gradient(180deg, #04050d 0%, #090c19 36%, #050714 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 34%, rgba(255,255,255,0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 68%, rgba(124, 231, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 18%, rgba(255, 104, 208, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 74%, rgba(152, 145, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 72%, rgba(255,255,255,0.3) 0 1px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0.65;
  animation: star-drift 28s linear infinite alternate;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(124, 231, 255, 0.07) 50%, transparent 100%);
  transform: translateX(-110%);
  animation: sweep 18s linear infinite;
  opacity: 0.5;
}

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

[data-parallax] {
  will-change: transform;
}

.noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.45px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.08;
}

.scanlines {
  background: linear-gradient(rgba(255, 255, 255, 0.035), transparent 3px);
  background-size: 1px 4px;
  opacity: 0.15;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.4rem;
  background: rgba(5, 7, 18, 0.56);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(152, 145, 255, 0.18);
}

.active-display {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(124, 231, 255, 0.12);
  border-radius: 999px;
  background: rgba(124, 231, 255, 0.04);
  box-shadow: inset 0 0 14px rgba(255, 104, 208, 0.03);
}

.active-display span {
  color: var(--text);
}

.settings-toggle,
.settings-close {
  appearance: none;
  border: 1px solid rgba(124, 231, 255, 0.22);
  background: rgba(124, 231, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.settings-toggle:hover,
.settings-toggle:focus-visible,
.settings-close:hover,
.settings-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 104, 208, 0.4);
  box-shadow: 0 0 18px rgba(255, 104, 208, 0.12);
}

.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(390px, 100%);
  height: 100vh;
  padding: 0;
  transform: translateX(100%);
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.settings-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.settings-inner {
  height: 100%;
  margin-left: auto;
  width: min(360px, 100%);
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 17, 33, 0.96), rgba(8, 10, 24, 0.96));
  box-shadow: 0 24px 60px rgba(0,0,0,0.46);
  overflow-y: auto;
  transform: translateX(18px) scale(0.985);
  opacity: 0.78;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease;
}

.settings-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 5, 12, 0.42);
  opacity: 0;
  transition: opacity 320ms ease;
  cursor: default;
}

.settings-drawer.open .settings-scrim {
  opacity: 1;
}

.settings-drawer.open .settings-inner {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.settings-head h2 {
  margin: 0;
  font-family: var(--display-font);
}

.settings-section {
  margin-top: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(124, 231, 255, 0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.settings-title {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.settings-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.settings-chip {
  margin: 0;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(124, 231, 255, 0.16);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-toggle {
  position: relative;
  overflow: hidden;
}

.settings-toggle::after {
  content: "";
  position: absolute;
  inset: auto -30% 0 -30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 231, 255, 0.6), rgba(255, 104, 208, 0.55), transparent);
  opacity: 0.55;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--display-font);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: -0.018em 0 rgba(124, 231, 255, 0.34), 0.018em 0 rgba(255, 104, 208, 0.28);
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 35%, var(--magenta) 100%);
  box-shadow: 0 0 16px rgba(124, 231, 255, 0.5), 0 0 28px rgba(255, 104, 208, 0.25);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition: color 360ms ease, border-color 360ms ease, background 360ms ease, box-shadow 420ms ease, transform 360ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text);
  border-color: rgba(124, 231, 255, 0.26);
  background: rgba(124, 231, 255, 0.06);
  box-shadow: 0 0 22px rgba(124, 231, 255, 0.1), inset 0 0 20px rgba(255, 104, 208, 0.04);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 5rem 1.4rem 3rem;
}

.hero-grid,
.content-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.hero-signal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.signal-core,
.signal-ring,
.signal-wave {
  position: absolute;
  border-radius: 999px;
}

.signal-core {
  width: 220px;
  height: 220px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(124,231,255,0.7) 18%, rgba(255,104,208,0.34) 48%, rgba(124,231,255,0) 72%);
  filter: blur(1px);
  box-shadow: 0 0 140px rgba(124, 231, 255, 0.3), 0 0 200px rgba(255, 104, 208, 0.15);
  animation: pulse-core 6.4s ease-in-out infinite;
}

.signal-ring {
  border: 1px solid rgba(161, 186, 255, 0.14);
}

.ring-a {
  width: 340px;
  height: 340px;
  animation: rotate-drift 20s linear infinite;
}

.ring-b {
  width: 510px;
  height: 510px;
  border-color: rgba(255, 104, 208, 0.12);
  animation: rotate-drift-reverse 28s linear infinite;
}

.ring-c {
  width: 760px;
  height: 760px;
  border-color: rgba(124, 231, 255, 0.1);
  animation: rotate-drift 42s linear infinite;
}

.signal-wave {
  width: min(1200px, 92vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 231, 255, 0.85), rgba(255, 104, 208, 0.85), transparent);
  opacity: 0.38;
}

.wave-a {
  transform: rotate(10deg);
  animation: wave-float 9s ease-in-out infinite;
}

.wave-b {
  transform: rotate(-14deg);
  animation: wave-float 11s ease-in-out infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.kicker,
.panel-label,
.entry-code,
.event-date {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.page-intro h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero-title {
  position: relative;
  max-width: 8ch;
  text-wrap: balance;
  font-family: var(--display-font);
  text-shadow:
    -0.022em 0 rgba(124, 231, 255, 0.38),
    0.022em 0 rgba(255, 104, 208, 0.32),
    0 0 18px rgba(124, 231, 255, 0.14),
    0 0 42px rgba(255, 104, 208, 0.08);
  animation: title-flicker 7s ease-in-out infinite;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.hero-title::before {
  color: var(--cyan);
  transform: translateX(-2px);
}

.hero-title::after {
  color: var(--magenta);
  transform: translateX(2px);
}

.hero-tagline {
  margin: 1rem 0 0;
  font-size: 1.35rem;
  color: rgba(255,255,255,0.92);
}

.hero-text,
.page-intro p,
.entry-copy p,
.panel p,
.event-row p,
.uplink-list,
.booking-panel p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-actions,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 231, 255, 0.28);
  background: rgba(124, 231, 255, 0.07);
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  transition: transform 360ms ease, box-shadow 360ms ease, border-color 360ms ease, background 360ms ease;
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.uplink-list a:hover,
.uplink-list a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 104, 208, 0.38);
  box-shadow: 0 0 28px rgba(255, 104, 208, 0.12), 0 0 18px rgba(124, 231, 255, 0.08);
}

.button-secondary {
  background: rgba(255, 104, 208, 0.06);
}

.signal-panel,
.panel,
.entry-card,
.event-panel,
.booking-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 20, 37, 0.76), rgba(10, 13, 28, 0.86));
  box-shadow: 0 22px 50px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  box-shadow:
    0 22px 50px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.04),
    -1px 0 0 rgba(124, 231, 255, 0.08),
    1px 0 0 rgba(255, 104, 208, 0.08);
}

.parallax-active .hero-signal,
.parallax-active .hero-copy,
.parallax-active .signal-panel,
.parallax-active .panel,
.parallax-active .entry-card,
.parallax-active .event-panel,
.parallax-active .booking-panel,
.parallax-active .page-intro {
  transition: transform 140ms linear;
}

.signal-panel::before,
.panel::before,
.entry-card::before,
.event-panel::before,
.booking-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.05), transparent 32%, transparent 72%, rgba(124, 231, 255, 0.05));
  pointer-events: none;
}

.signal-panel {
  padding: 1.35rem;
  border-radius: 28px;
}

.stat-list,
.meta-grid,
.uplink-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.stat-list li,
.meta-grid li,
.uplink-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(161, 186, 255, 0.12);
}

.stat-list li:last-child,
.meta-grid li:last-child,
.uplink-list li:last-child {
  border-bottom: none;
}

.stat-list span,
.meta-grid span,
.uplink-list span {
  color: var(--muted);
}

.stat-list strong,
.meta-grid strong,
.uplink-list a,
.text-link,
code {
  color: var(--text);
}

.content-wrap {
  position: relative;
  z-index: 1;
  padding: 0 1.4rem 4rem;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -3.2rem;
}

.font-lab-panel {
  grid-column: span 3;
}

.font-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.font-option,
.theme-option {
  appearance: none;
  border: 1px solid rgba(124, 231, 255, 0.22);
  background: rgba(124, 231, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 0.52rem 0.78rem;
  font: inherit;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.font-option:hover,
.font-option:focus-visible,
.font-option.active,
.theme-option:hover,
.theme-option:focus-visible,
.theme-option.active {
  transform: translateY(-1px);
  border-color: rgba(255, 104, 208, 0.4);
  background: rgba(255, 104, 208, 0.08);
  box-shadow: 0 0 18px rgba(255, 104, 208, 0.14);
}

.font-lab-note {
  font-size: 0.94rem;
  opacity: 0.9;
  padding: 0.9rem 0.95rem;
  border: 1px dashed rgba(255, 104, 208, 0.16);
  border-radius: 18px;
  background: rgba(255, 104, 208, 0.03);
}

.panel {
  padding: 1.4rem;
  border-radius: 26px;
}

.panel-wide {
  grid-column: span 2;
}

.panel-note {
  background: linear-gradient(180deg, rgba(19, 16, 39, 0.76), rgba(10, 12, 28, 0.9));
}

.signal-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.34rem;
  margin-top: 1.3rem;
  align-items: end;
  min-height: 54px;
}

.signal-bar span {
  display: block;
  background: linear-gradient(180deg, rgba(124, 231, 255, 0.92), rgba(255, 104, 208, 0.86));
  border-radius: 999px;
  animation: signal-heights 7s ease-in-out infinite;
}

.signal-bar span:nth-child(1) { height: 22%; animation-delay: -0.1s; }
.signal-bar span:nth-child(2) { height: 62%; animation-delay: -0.7s; }
.signal-bar span:nth-child(3) { height: 34%; animation-delay: -1.4s; }
.signal-bar span:nth-child(4) { height: 82%; animation-delay: -0.5s; }
.signal-bar span:nth-child(5) { height: 48%; animation-delay: -2.1s; }
.signal-bar span:nth-child(6) { height: 96%; animation-delay: -1.2s; }
.signal-bar span:nth-child(7) { height: 58%; animation-delay: -2.6s; }
.signal-bar span:nth-child(8) { height: 72%; animation-delay: -0.9s; }
.signal-bar span:nth-child(9) { height: 38%; animation-delay: -1.8s; }
.signal-bar span:nth-child(10) { height: 88%; animation-delay: -0.4s; }
.signal-bar span:nth-child(11) { height: 44%; animation-delay: -2.7s; }
.signal-bar span:nth-child(12) { height: 68%; animation-delay: -1.1s; }

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 2rem;
}

.player-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.player-shell {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(161, 186, 255, 0.12);
  border-radius: 20px;
  background: rgba(9, 13, 28, 0.55);
}

.player-meta h3 {
  margin: 0;
  font-size: 1.35rem;
}

.easter-panel {
  overflow: hidden;
}

.easter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.easter-sideband {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.easter-bar span {
  animation-duration: 4.4s;
}

.easter-echo {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.2rem;
  color: rgba(255, 104, 208, 0.24);
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.easter-echo span:nth-child(2) {
  padding-left: 1.5rem;
  color: rgba(124, 231, 255, 0.22);
}

.easter-whisper {
  margin-top: 1rem;
  color: var(--cyan);
  font-style: italic;
}

.easter-transcript {
  position: relative;
}

.carrier-grid {
  align-items: start;
}

.carrier-panel {
  min-height: 360px;
}

.carrier-stack {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
}

.carrier-stack span {
  opacity: 0.2;
  animation: carrier-shift 8s ease-in-out infinite;
}

.carrier-stack span:nth-child(2) {
  padding-left: 1.4rem;
  color: rgba(124, 231, 255, 0.66);
  animation-delay: 0.9s;
}

.carrier-stack span:nth-child(3) {
  color: rgba(255, 104, 208, 0.58);
  animation-delay: 1.8s;
}

.carrier-stack span:nth-child(4) {
  padding-left: 2rem;
  color: rgba(236, 240, 255, 0.62);
  animation-delay: 2.7s;
}

.carrier-sideband {
  min-height: 320px;
}

.transcript-lines {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-family: "Space Mono", monospace;
  color: rgba(236, 240, 255, 0.78);
}

.transcript-lines span {
  opacity: 0;
  transform: translateX(-8px);
  animation: transcript-fade 10s ease-in-out infinite;
}

.transcript-lines span:nth-child(2) {
  animation-delay: 1.4s;
}

.transcript-lines span:nth-child(3) {
  animation-delay: 2.8s;
}

.transcript-lines span:nth-child(4) {
  animation-delay: 4.2s;
}

.archive-audio {
  width: 100%;
  filter: hue-rotate(-8deg) saturate(1.1);
}

.archive-audio::-webkit-media-controls-panel {
  background: rgba(236, 240, 255, 0.9);
}

.page-intro {
  width: min(720px, 100%);
}

.page-intro h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.entry-list,
.uplink-grid,
.personnel-grid {
  display: grid;
  gap: 1rem;
}

.entry-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 30px;
}

.entry-art {
  min-height: 280px;
  border-radius: 24px;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(161, 186, 255, 0.14);
  box-shadow: inset 0 0 42px rgba(255,255,255,0.04);
}

.entry-art-a {
  background:
    radial-gradient(circle at 46% 42%, rgba(255,255,255,0.7), rgba(124, 231, 255, 0.2) 20%, transparent 50%),
    radial-gradient(circle at 55% 52%, rgba(255, 104, 208, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(15, 22, 50, 0.85), rgba(9, 14, 28, 0.96));
}

.entry-art-b {
  background:
    radial-gradient(circle at 60% 36%, rgba(255, 104, 208, 0.3), transparent 18%),
    linear-gradient(135deg, rgba(12, 20, 44, 0.96), rgba(37, 17, 48, 0.88));
}

.entry-art-c {
  background:
    radial-gradient(circle at 50% 50%, rgba(152, 145, 255, 0.34), transparent 20%),
    radial-gradient(circle at 54% 54%, rgba(124, 231, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(10, 14, 32, 0.94), rgba(7, 9, 23, 0.98));
}

.entry-art-cheese {
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.58), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(255, 231, 120, 0.25), transparent 22%),
    radial-gradient(circle at 62% 58%, rgba(255, 104, 208, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(18, 20, 44, 0.98), rgba(36, 18, 35, 0.92));
}

.entry-copy h2,
.panel h2,
.event-panel h2,
.booking-panel h2,
.personnel-card h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--display-font);
  text-shadow: -0.012em 0 rgba(124, 231, 255, 0.24), 0.012em 0 rgba(255, 104, 208, 0.2);
}

.page-intro h1 {
  font-family: var(--display-font);
  text-shadow: -0.012em 0 rgba(124, 231, 255, 0.24), 0.012em 0 rgba(255, 104, 208, 0.2);
}

.signal-bar-dense {
  min-height: 42px;
}

.event-panel {
  padding: 1.4rem;
  border-radius: 28px;
}

.event-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 140px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(161, 186, 255, 0.12);
}

.event-row:last-child {
  border-bottom: none;
}

.event-row h3 {
  margin: 0;
  font-size: 1.08rem;
}

.event-status {
  justify-self: end;
  color: var(--cyan);
  font-family: "Space Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dossier-layout,
.uplink-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.personnel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card {
  padding: 1.2rem;
  border: 1px solid rgba(161, 186, 255, 0.12);
  border-radius: 22px;
  background: rgba(10, 13, 28, 0.46);
}

.tool-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-family: var(--display-font);
}

.chess-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

.chess-panel,
.chess-sidepanel {
  min-width: 0;
}

.chess-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chess-actions {
  margin-top: 0;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: min(100%, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(161, 186, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 13, 28, 0.46);
}

.chess-square {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.chess-square.light {
  background: rgba(217, 226, 255, 0.14);
}

.chess-square.dark {
  background: rgba(78, 91, 145, 0.28);
}

.chess-square.selected {
  box-shadow: inset 0 0 0 2px rgba(255, 104, 208, 0.62);
}

.chess-square.target::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 20%;
  border-radius: 999px;
  background: rgba(124, 231, 255, 0.75);
}

.piece {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255,255,255,0.16);
}

.piece.white {
  color: #f5f7ff;
}

.piece.black {
  color: #13172a;
}

.chess-moves {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.personnel-card,
.uplink-card,
.booking-panel,
.dossier-note,
.dossier-text {
  border-radius: 26px;
}

.uplink-card,
.booking-panel,
.dossier-note,
.dossier-text,
.personnel-card {
  padding: 1.3rem;
}

code {
  font-family: "Space Mono", monospace;
  font-size: 0.95em;
}

@keyframes pulse-core {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes rotate-drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-drift-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes wave-float {
  0%, 100% { opacity: 0.18; transform: translateY(0) rotate(10deg); }
  50% { opacity: 0.46; transform: translateY(-12px) rotate(8deg); }
}

@keyframes title-flicker {
  0%, 100% { opacity: 1; filter: blur(0); }
  4% { opacity: 0.85; }
  5% { opacity: 1; }
  38% { opacity: 1; }
  39% { opacity: 0.92; }
  40% { opacity: 1; }
}

@keyframes signal-heights {
  0%, 100% { transform: scaleY(0.85); opacity: 0.8; }
  50% { transform: scaleY(1.16); opacity: 1; }
}

@keyframes transcript-fade {
  0%, 12% { opacity: 0; transform: translateX(-8px); }
  18%, 42% { opacity: 0.92; transform: translateX(0); }
  54%, 100% { opacity: 0; transform: translateX(6px); }
}

@keyframes carrier-shift {
  0%, 100% { opacity: 0.16; transform: translateX(0); }
  28% { opacity: 0.88; transform: translateX(6px); }
  52% { opacity: 0.34; transform: translateX(-4px); }
  76% { opacity: 0.74; transform: translateX(3px); }
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -8px, 0) scale(1.02); }
}

@keyframes sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@media (max-width: 900px) {
  .hero-grid,
  .player-panel,
  .chess-layout,
  .entry-card,
  .dossier-layout,
  .uplink-grid,
  .personnel-grid,
  .easter-grid,
  .home-preview-grid {
    grid-template-columns: 1fr;
  }

  .panel-wide {
    grid-column: auto;
  }

  .home-preview-grid {
    margin-top: -1rem;
  }

  .event-row {
    grid-template-columns: 1fr;
  }

  .event-status {
    justify-self: start;
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .signal-panel,
  .panel,
  .entry-card,
  .event-panel,
  .booking-panel {
    border-radius: 22px;
  }

  .entry-art {
    min-height: 220px;
  }

  .carrier-panel,
  .carrier-sideband {
    min-height: auto;
  }

  .signal-core {
    width: 160px;
    height: 160px;
  }

  .ring-a {
    width: 250px;
    height: 250px;
  }

  .ring-b {
    width: 390px;
    height: 390px;
  }

  .ring-c {
    width: 540px;
    height: 540px;
  }
}

body.logo-helvetica {
  --display-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.font-swiss {
  --display-font: "Pulsar Swiss Sans", "Open Sans", Arial, sans-serif;
  --ui-font: "Pulsar Swiss Sans", "Open Sans", Arial, sans-serif;
}

body.font-meslo {
  --display-font: "Pulsar Meslo Nerd", "MesloLGS Nerd Font", "MesloLGS Nerd Font Propo", "MesloLGS Nerd Font Mono", "Space Mono", monospace;
  --ui-font: "Pulsar Swiss Sans", "Open Sans", Arial, sans-serif;
}

body.font-fantasque {
  --display-font: "Pulsar Fantasque Nerd", "FantasqueSansM Nerd Font", "FantasqueSansM Nerd Font Propo", "FantasqueSansM Nerd Font Mono", "Space Mono", monospace;
  --ui-font: "Pulsar Swiss Sans", "Open Sans", Arial, sans-serif;
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.9rem 1rem;
  }

  .brand {
    min-width: 0;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
  }

  .site-nav {
    order: 4;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.15rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .active-display {
    width: 100%;
    order: 3;
    grid-column: 1 / -1;
    font-size: 0.73rem;
    padding: 0.34rem 0.56rem;
  }

  .settings-toggle {
    order: 2;
    justify-self: end;
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.42rem 0.72rem;
    white-space: nowrap;
  }

  .hero,
  .content-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title,
  .page-intro h1 {
    letter-spacing: -0.035em;
  }

  .hero-title {
    max-width: 9ch;
    font-size: clamp(2.6rem, 13vw, 4.3rem);
  }

  .hero-tagline {
    font-size: 1.18rem;
  }

  .hero-text,
  .hero-tagline {
    max-width: 32ch;
  }

  .hero-actions,
  .entry-actions,
  .chess-actions {
    gap: 0.6rem;
  }

  .button,
  .button-secondary {
    width: 100%;
    min-height: 44px;
  }

  .signal-panel,
  .panel,
  .entry-card,
  .event-panel,
  .booking-panel,
  .uplink-card,
  .dossier-note,
  .dossier-text,
  .personnel-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .home-preview-grid {
    margin-top: 0.25rem;
  }

  .font-lab-panel {
    grid-column: auto;
  }

  .player-shell {
    padding: 0.9rem;
  }

  .signal-bar {
    gap: 0.24rem;
  }

  .entry-card {
    gap: 0.9rem;
    padding: 1rem;
  }

  .entry-art {
    min-height: 180px;
    border-radius: 18px;
  }

  .event-row {
    gap: 0.45rem;
  }

  .easter-echo,
  .carrier-stack {
    font-size: clamp(1.25rem, 8vw, 2rem);
  }

  .settings-drawer {
    width: 100%;
  }

  .settings-inner {
    width: 100%;
    padding: 0.9rem;
    border-left: 0;
  }

  .settings-head {
    gap: 0.75rem;
  }

  .settings-head h2 {
    font-size: 1.3rem;
  }

  .settings-section {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .settings-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-text,
  .page-intro p,
  .entry-copy p,
  .panel p,
  .event-row p,
  .uplink-list,
  .booking-panel p {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .hero,
  .content-wrap {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand {
    font-size: 0.78rem;
  }

  .active-display {
    font-size: 0.68rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .page-intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    transform: none !important;
    transition: none !important;
  }

  .settings-drawer,
  .settings-inner,
  .transcript-lines span,
  .carrier-stack span {
    transition: none !important;
    animation: none !important;
  }
}

@supports (mix-blend-mode: screen) {
  .hero-title::before,
  .hero-title::after {
    mix-blend-mode: screen;
  }
}
