:root {
  --void: #05010a;
  --deep: #0b0318;
  --magenta: #ff2bd6;
  --hot: #ff007a;
  --cyan: #00f7ff;
  --sun-hi: #ffe566;
  --sun-lo: #ff4d6d;
  --text: #e8f4ff;
  --muted: #9bb0c9;
  --font-display: "Orbitron", sans-serif;
  --font-logo: "Audiowide", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background: var(--void);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-mono);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- overlays ---------- */

.fx {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  opacity: 0.28;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 1, 10, 0.75) 100%);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: linear-gradient(to bottom, rgba(5, 1, 10, 0.75), transparent);
  pointer-events: none;
}

.nav a,
.nav button,
.nav input {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-logo);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.65);
}

.logo-mark {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.nav-end {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

.deck-wrap {
  position: relative;
  pointer-events: auto;
}

.deck {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  width: 248px;
  padding: 0.2rem 0.45rem 0.2rem 0.18rem;
  border: 1px solid rgba(0, 247, 255, 0.45);
  background: rgba(5, 1, 10, 0.55);
  box-shadow: 0 0 14px rgba(0, 247, 255, 0.18);
}

.music-hint {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transform: translateX(-50%);
  white-space: nowrap;
}

.music-hint-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: hintFlash 0.9s ease-in-out infinite;
}

.music-hint-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.9);
  animation: hintFlash 0.9s ease-in-out infinite;
}

.music-hint.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

@keyframes hintFlash {
  0%,
  100% {
    opacity: 1;
    color: var(--cyan);
  }
  50% {
    opacity: 0.4;
    color: var(--magenta);
  }
}

.music-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  color: var(--magenta);
}

.music-toggle .icon-off,
.music-toggle .eq {
  grid-area: 1 / 1;
}

.music-toggle .icon-off {
  width: 20px;
  height: 20px;
}

.music-toggle .eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-toggle .eq span {
  display: block;
  width: 3px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: eq 0.7s ease-in-out infinite;
  transform-origin: bottom;
}

.music-toggle .eq span:nth-child(1) {
  height: 7px;
}

.music-toggle .eq span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}

.music-toggle .eq span:nth-child(3) {
  height: 10px;
  animation-delay: 0.28s;
}

.deck.is-on .music-toggle .icon-off {
  display: none;
}

.deck.is-on .music-toggle .eq {
  display: flex;
}

.deck.is-waiting {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 247, 255, 0.45);
  animation: waitPulse 1.5s ease-in-out infinite;
}

@keyframes waitPulse {
  50% {
    border-color: var(--magenta);
    box-shadow: 0 0 22px rgba(255, 43, 214, 0.5);
  }
}

.track-skip {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.55);
}

.track-skip:hover,
.track-skip:focus-visible {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

.track {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.2em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.track-scroll {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 12s linear infinite;
}

.track-scroll span {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.45);
}

.deck:not(.is-on) .track-scroll {
  animation-play-state: paused;
  opacity: 0.45;
}

.vol {
  display: flex;
  align-items: center;
  flex: 0 0 52px;
}

.vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  outline: none;
  cursor: pointer;
}

.vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--cyan);
}

.vol input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--cyan);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 42%, rgba(123, 44, 191, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 58%, rgba(255, 0, 122, 0.18), transparent 50%),
    linear-gradient(to bottom, #020008 0%, #120428 38%, #1a0530 52%, #05010a 100%);
}

.sky {
  position: absolute;
  inset: 0 0 50%;
  z-index: 1;
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  top: auto;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  transform: translate(-50%, 42%);
}

.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-hi) 0%, #ff9f43 38%, var(--sun-lo) 72%, #c2007a 100%);
  box-shadow:
    0 0 40px rgba(255, 77, 109, 0.85),
    0 0 90px rgba(255, 0, 122, 0.45),
    0 0 160px rgba(255, 43, 214, 0.25);
}

.sun-bands {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 9px,
    rgba(5, 1, 10, 0.72) 9px 13px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 36%, #000 58%);
  mask-image: linear-gradient(to bottom, transparent 36%, #000 58%);
}

.distant-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2%;
  height: 18%;
  z-index: 2;
}

.distant-lights span {
  position: absolute;
  border-radius: 50%;
  animation: pulse-light 3.4s ease-in-out infinite;
}

@keyframes pulse-light {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  z-index: 2;
}

.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), var(--magenta), transparent);
  box-shadow: 0 0 22px var(--magenta), 0 0 48px rgba(255, 43, 214, 0.55);
  z-index: 3;
}

.horizon-glow {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 70%;
  height: 28%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.45), transparent 70%);
  filter: blur(8px);
}

.floor {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 43, 214, 0.14) 100%);
  pointer-events: none;
}

.grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 8rem 6vw 18vh;
}

.kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.6);
}

.kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.2vw, 6.1rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.title-glitch {
  position: relative;
  display: inline-block;
  animation: boot 0.85s ease both;
}

.title-followed {
  background: linear-gradient(180deg, #ffffff 0%, #c8f6ff 42%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(200, 246, 255, 0.45));
}

.title-by {
  color: var(--hot);
  -webkit-text-fill-color: var(--hot);
  background: none;
  animation: byPulse 1.6s ease-in-out infinite;
}

@keyframes byPulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--hot)) drop-shadow(0 0 24px rgba(255, 0, 122, 0.95));
  }
  50% {
    opacity: 0.55;
    filter: drop-shadow(0 0 6px var(--hot));
  }
}

.title-ravens {
  background: linear-gradient(180deg, #d7b3ff 0%, #9b5cff 48%, #6b21a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(155, 92, 255, 0.85));
}

.title-systems {
  background: linear-gradient(180deg, #ffd0f3 0%, var(--magenta) 48%, #c2007a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 43, 214, 0.75));
}

.file-view {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: auto;
}

.file-view[hidden] {
  display: none !important;
}

body.is-file-view {
  overflow: hidden;
}

body.is-file-view .hero > .hero-copy,
body.is-file-view .panel,
body.is-file-view .foot {
  visibility: hidden;
  pointer-events: none;
}

body.is-file-view .file-copy,
.file-page .hero-copy {
  padding: 7.5rem 6vw 26vh;
}

.file-copy .title {
  font-size: clamp(2rem, 6.2vw, 4.6rem);
}

.file-copy .hud {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.file-copy .cta {
  margin-top: 1.8rem;
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.28);
}

.coming-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes boot {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tag {
  margin: 1.15rem 0 1.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(0, 247, 255, 0.25) inset,
    0 0 18px rgba(0, 247, 255, 0.25);
  background: rgba(0, 247, 255, 0.06);
}

.cta:hover,
.cta:focus-visible {
  background: rgba(255, 43, 214, 0.12);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.45);
}

.cta-arrow {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

/* ---------- panels ---------- */

.panel {
  position: relative;
  z-index: 6;
  scroll-margin-top: 4.5rem;
  padding: 7rem 6vw;
  background:
    linear-gradient(to bottom, rgba(5, 1, 10, 0.55), rgba(8, 2, 18, 0.92));
  border-top: 1px solid rgba(255, 43, 214, 0.18);
}

.panel-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--magenta);
  font-family: var(--font-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.panel h2 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 247, 255, 0.2);
}

.section-intro,
.lede {
  max-width: 42rem;
  color: var(--muted);
}

.origin-grid p {
  max-width: 42rem;
  color: var(--muted);
}

.lede {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 2.4rem 0 0;
  list-style: none;
}

.hud li {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background: rgba(0, 247, 255, 0.04);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.08);
}

.hud span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hud strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0, 247, 255, 0.55);
  animation: pulse-light 3.4s ease-in-out infinite;
}

.status-dot-alt {
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta), 0 0 16px rgba(255, 43, 214, 0.5);
  animation-delay: 0.45s;
}

#archive.panel {
  padding-left: 3vw;
  padding-right: 3vw;
}

#archive .panel-inner {
  max-width: 1560px;
}

.tapes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.5rem;
  margin-top: 1.6rem;
  position: relative;
}

.tape-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tape {
  position: relative;
  aspect-ratio: 400 / 252;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.tape-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: rgba(255, 43, 214, 0.85);
  filter: drop-shadow(0 0 18px rgba(255, 43, 214, 0.18));
  transition: color 0.25s ease, filter 0.25s ease;
}

.tape-id {
  position: absolute;
  z-index: 1;
  top: 17.5%;
  left: 12%;
  margin: 0;
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.tape-label {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 57%;
  bottom: 14.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0.1rem 0.4rem 0;
  overflow: hidden;
}

.tape h3 {
  margin: 0 0 0.12rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.4vw, 1.12rem);
  line-height: 1.15;
  flex: 0 0 auto;
}

.tape-label p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: clamp(0.74rem, 1.15vw, 0.9rem);
  line-height: 1.28;
  flex: 1 1 auto;
  min-height: 0;
}

.tape a {
  margin-top: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding-bottom: 0.05rem;
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

.tape::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.tape::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.tape:hover {
  transform: translateY(-6px);
}

.tape:hover .tape-outline {
  color: var(--cyan);
  filter: drop-shadow(0 0 22px rgba(0, 247, 255, 0.28));
}

.tape a:hover,
.tape a:focus-visible {
  color: var(--magenta);
}

/* ---------- form ---------- */

.tx-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin-top: 1.6rem;
}

.tx-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tx-form .full,
.tx-form button,
.form-status {
  grid-column: 1 / -1;
}

.tx-form span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tx-form input,
.tx-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background: rgba(5, 1, 10, 0.55);
  color: var(--text);
  font: inherit;
  outline: none;
}

.tx-form input:focus,
.tx-form textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.28);
}

.tx-form button {
  justify-self: start;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--magenta);
  background: rgba(255, 43, 214, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.tx-form button:hover,
.tx-form button:focus-visible {
  background: rgba(255, 43, 214, 0.22);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.4);
}

.tx-form button:disabled {
  cursor: wait;
  opacity: 0.55;
  box-shadow: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.form-status.is-error {
  color: var(--magenta);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--magenta);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 6vw 2.2rem;
  border-top: 1px solid rgba(0, 247, 255, 0.15);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.reveal {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hud,
  .tx-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.75rem 4vw;
    gap: 0.6rem;
  }

  .logo {
    letter-spacing: 0.12em;
    font-size: 0.82rem;
  }

  .logo-mark {
    width: 22px;
    height: 22px;
  }

  .nav-links {
    gap: 0.65rem;
  }

  .nav-links a {
    letter-spacing: 0.06em;
    font-size: 0.68rem;
  }

  .music-toggle {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .deck {
    width: 208px;
    gap: 0.2rem;
    padding-right: 0.4rem;
  }

  .music-hint-text {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .track-skip {
    height: 30px;
    font-size: 0.9rem;
  }

  .vol {
    flex-basis: 44px;
  }

  .vol input[type="range"] {
    width: 44px;
  }

  .hero-copy {
    padding-bottom: 22vh;
  }

  .kicker {
    flex-wrap: wrap;
    letter-spacing: 0.14em;
  }

  .hud {
    grid-template-columns: 1fr 1fr;
  }

  .tapes {
    grid-template-columns: 1fr;
  }

  .tx-form {
    grid-template-columns: 1fr;
  }

  .foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .title-glitch,
  .title-by,
  .cta-arrow,
  .kicker .dot,
  .coming-badge .dot,
  .distant-lights span,
  .status-dot,
  .music-toggle .eq span,
  .track-scroll,
  .deck.is-waiting,
  .music-hint-arrow,
  .music-hint-text {
    animation: none;
  }
}
