/* Apex Illusion — pixel-production landing */

:root {
  --bg: #07070a;
  --bg-2: #0c0c12;
  --line: #1c1c28;
  --text: #e8e8ef;
  --muted: #8a8a9a;
  --cyan: #78c4bc;
  --magenta: #ff2bd6;
  --chrome: #c4c4d4;
  --grid: 8px;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-px: "Press Start 2P", ui-monospace, monospace;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

iframe {
  background-color: #07070a;
  color-scheme: dark;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ---------- FX layers ---------- */

.fx-grid,
.fx-vignette,
.fx-scanlines,
.fx-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.fx-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 196, 188, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 196, 188, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.fx-vignette {
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 18% 0%, rgba(255, 43, 214, 0.08), transparent 55%),
    radial-gradient(900px 600px at 92% 12%, rgba(120, 196, 188, 0.08), transparent 50%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.fx-scanlines {
  z-index: 1;
  opacity: var(--scan-op, 0.22);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 4px
  );
}

.fx-grain {
  z-index: 3;
  opacity: 0.05;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--line);
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top);
  transition: background 0.2s ease, backdrop-filter 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 10, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 0 rgba(255, 43, 214, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  color: var(--cyan);
  flex: none;
}

.brand-mark svg {
  image-rendering: pixelated;
}

.brand-word {
  font-family: var(--font-px);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-here {
  color: var(--cyan);
}

.nav-ext::after {
  content: " ↗";
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 2px solid var(--line);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  padding: 64px 0 80px;
}

.hero-video {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  z-index: 0;
  overflow: hidden;
  contain: paint;
  clip-path: inset(0);
  pointer-events: none;
  background: #000;
  will-change: transform;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  z-index: 2;
  opacity: 1;
  background: #07070a;
  transition: opacity 0.8s ease;
}

.hero.is-playing .hero-poster,
.hero.is-playing .hero-boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-boot {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: #050508;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-static {
  position: absolute;
  inset: -10%;
  background-color: #07070a;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 196, 188, 0.12) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(180deg, #0b0b10 0 2px, #15151c 2px 4px);
  background-size: 3px 3px, 6px 6px, 4px 4px;
  animation: boot-static 0.1s steps(2, end) infinite;
  filter: contrast(1.35) saturate(1.2);
}

.boot-scan {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 22%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(120, 196, 188, 0.18),
    rgba(255, 43, 214, 0.12),
    transparent
  );
  animation: boot-scan 1.15s linear infinite;
  mix-blend-mode: screen;
}

.boot-hud {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 1;
}

.boot-label {
  margin: 0 0 10px;
  font-family: var(--font-px);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 2px 0 rgba(255, 43, 214, 0.55);
  animation: boot-flicker 0.12s steps(2, end) infinite;
}

.boot-bar {
  width: min(220px, 50vw);
  height: 8px;
  border: 2px solid var(--cyan);
  background: #07070a;
  box-shadow: 3px 3px 0 var(--magenta);
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--cyan) 0 6px,
      transparent 6px 8px
    );
  animation: boot-fill 4.2s linear forwards;
}

.hero-video-frame {
  --hero-zoom: 1.22;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(var(--hero-zoom));
  opacity: 0;
  visibility: hidden;
}

.hero.is-playing .hero-video-frame {
  opacity: 1;
  visibility: visible;
}

.hero-video-frame iframe,
.hero-video-frame > div {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.82) 0%, rgba(7, 7, 10, 0.42) 48%, rgba(7, 7, 10, 0.7) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.35) 0%, rgba(7, 7, 10, 0.18) 40%, rgba(7, 7, 10, 0.88) 100%);
}

.hero-video-shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(transparent, #07070a 55%);
  pointer-events: none;
}

.hero-switch {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hero.is-switching .hero-switch {
  visibility: visible;
  animation: switch-flash 0.4s steps(4, end) forwards;
}

.hero.is-switching .hero-video-frame {
  animation: switch-frame 0.4s steps(4, end);
}

.hero.is-switching .hero-now-title {
  animation: title-glitch 0.4s steps(2, end);
}

.hero-switch-static {
  position: absolute;
  inset: -8%;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 196, 188, 0.2) 0 2px, transparent 2px 4px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: screen;
}

.hero-switch-slice {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 18%;
  top: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 196, 188, 0.45),
    rgba(255, 43, 214, 0.4),
    transparent
  );
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.hud-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  font-family: var(--font-px);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.hud-dot {
  width: 8px;
  height: 8px;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  animation: pulse 1.6s steps(2, end) infinite;
}

.hud-sep {
  color: var(--muted);
}

.wordmark {
  margin: 0;
  display: grid;
  gap: 8px;
  position: relative;
  width: max-content;
  max-width: 100%;
}

.wordmark-glitch {
  display: block;
  max-width: 100%;
  font-family: var(--font-px);
  font-size: clamp(24px, 8.4vw, 84px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow:
    0 4px 28px rgba(0, 0, 0, 0.75),
    2px 0 0 rgba(120, 196, 188, 0.4),
    -2px 0 0 rgba(255, 43, 214, 0.35);
  position: relative;
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow-wrap: anywhere;
}

.wordmark-sub {
  font-size: clamp(22px, 6vw, 56px);
  color: var(--chrome);
}

.cursor {
  position: absolute;
  right: -22px;
  bottom: 10px;
  width: 14px;
  height: 32px;
  background: var(--cyan);
  animation: blink 1.1s steps(1, end) infinite;
}

.tagline {
  max-width: 28ch;
  margin: 32px 0 0;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  color: #d4d4dc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
  margin-top: 28px;
}

.hero-now {
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: 100%;
}

.hero-now-kicker {
  font-family: var(--font-px);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.hero-now-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.hero-now:hover .hero-now-title,
.hero-now:focus-visible .hero-now-title {
  color: var(--cyan);
}

.hero-controls {
  display: flex;
  gap: 8px;
}

.hero-ctrl {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: rgba(12, 12, 18, 0.72);
  color: var(--text);
}

.hero-ctrl:hover,
.hero-ctrl:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-ctrl.is-on {
  border-color: var(--magenta);
  color: var(--cyan);
  box-shadow: 3px 3px 0 rgba(255, 43, 214, 0.35);
}

.audio-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, calc(100vw - 32px));
  min-height: 52px;
  padding: 8px 10px 8px 12px;
  border: 2px solid var(--cyan);
  background: rgba(7, 7, 10, 0.94);
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(255, 43, 214, 0.35);
  backdrop-filter: blur(12px);
}

.audio-dock[hidden] {
  display: none;
}

.audio-dock-pulse {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  animation: dock-pulse 2.6s steps(2, end) infinite;
}

.audio-dock-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.audio-dock-kicker {
  font-family: var(--font-px);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.audio-dock-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audio-dock-mute {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 2px solid var(--line);
  color: var(--cyan);
}

.audio-dock:hover,
.audio-dock:focus-visible {
  border-color: var(--magenta);
}

body.nav-open .audio-dock {
  visibility: hidden;
}

.hero-ctrl .icon-on,
.hero-ctrl.is-muted .icon-off {
  display: block;
}

.hero-ctrl .icon-off,
.hero-ctrl.is-muted .icon-on {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid transparent;
  font-family: var(--font-px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.btn-primary {
  background: var(--cyan);
  color: #04110f;
  box-shadow: 4px 4px 0 var(--magenta);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(12, 12, 18, 0.6);
}

.btn:focus-visible,
.link-card:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible,
.single-tile:focus-visible,
.hero-ctrl:focus-visible,
.audio-dock:focus-visible,
.catalog-play:focus-visible,
.stream-link:focus-visible,
.catalog-jump:focus-visible,
.crumbs a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.glitch-hover span {
  display: inline-block;
}

.glitch-hover:hover,
.glitch-hover:focus-visible {
  animation: shake 0.28s steps(2, end);
}

.glitch-hover:hover span,
.glitch-hover:focus-visible span {
  text-shadow:
    2px 0 var(--cyan),
    -2px 0 var(--magenta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 2px 2px 0 var(--magenta);
  transform: translate(2px, 2px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- Watch ---------- */

.watch,
.listen {
  padding: 96px 0;
}

.watch {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.55), transparent 40%);
}

.section-head {
  margin-bottom: 40px;
}

.pixel-kicker {
  margin: 0 0 16px;
  font-family: var(--font-px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
}

.section-title {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.section-meta {
  margin: 16px 0 0;
  font-family: var(--font-px);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.section-copy {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.monitor {
  position: relative;
  padding: 4px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  box-shadow:
    0 0 0 2px #0a0a10,
    8px 8px 0 rgba(255, 43, 214, 0.18);
}

.monitor::before,
.monitor::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  z-index: 2;
}

.monitor::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.monitor::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

.monitor-chrome {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-px);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chrome-dot {
  width: 8px;
  height: 8px;
  background: var(--line);
}

.chrome-dot:first-child {
  background: var(--magenta);
}

.chrome-label {
  color: var(--cyan);
}

.chrome-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  overflow: hidden;
  background: #000;
  color-scheme: dark;
}

.monitor-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
}

.yt-fallback[hidden],
.embed-hint[hidden],
.monitor-screen iframe[hidden] {
  display: none;
}

.yt-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05) brightness(0.72);
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 72px;
  height: 48px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  box-shadow: 4px 4px 0 var(--magenta);
  transform: translate(-50%, -50%);
}

.yt-fallback-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--font-px);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.yt-fallback:hover img,
.yt-fallback:focus-visible img {
  filter: grayscale(0) contrast(1.08) brightness(0.85);
}

.embed-hint {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.embed-hint code {
  font-family: var(--font-px);
  font-size: 10px;
  color: var(--cyan);
}

.monitor-feet {
  display: flex;
  justify-content: space-between;
  padding: 8px 24px 4px;
}

.monitor-feet span {
  width: 48px;
  height: 8px;
  background: var(--line);
}

/* ---------- Singles / Spotify deck ---------- */

.singles {
  padding: 96px 0;
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(700px 280px at 8% 0%, rgba(255, 43, 214, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(12, 12, 18, 0.45), transparent 35%);
}

.deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.now {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  grid-template-areas:
    "art meta"
    "art player"
    "art open";
  gap: 16px 20px;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(12, 12, 18, 0.82);
  box-shadow: 8px 8px 0 rgba(255, 43, 214, 0.16);
}

.now::before,
.now::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  z-index: 2;
}

.now::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.now::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

.now-stage {
  grid-area: art;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #000;
}

.now-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.now-stage-fx {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.18) 3px,
      rgba(0, 0, 0, 0.18) 4px
    ),
    linear-gradient(180deg, transparent 40%, rgba(7, 7, 10, 0.45) 100%);
  pointer-events: none;
}

.now-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 10px;
  font-family: var(--font-px);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--magenta);
  box-shadow: 3px 3px 0 var(--cyan);
}

.eq {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq i {
  display: block;
  width: 4px;
  background: var(--cyan);
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}

.eq i:nth-child(2) {
  height: 80%;
  animation-delay: 0.15s;
}

.eq i:nth-child(3) {
  height: 55%;
  animation-delay: 0.28s;
}

.eq i:nth-child(4) {
  height: 95%;
  animation-delay: 0.08s;
}

.now-meta {
  grid-area: meta;
  padding: 8px 4px 0;
  align-self: end;
}

.now-index {
  margin: 0 0 8px;
  font-family: var(--font-px);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.now-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.now-info {
  margin: 10px 0 0;
  font-family: var(--font-px);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.spotify-frame {
  grid-area: player;
  align-self: end;
  position: relative;
  overflow: hidden;
  height: 160px;
  background: #121212;
  border: 2px solid var(--line);
}

.spotify-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#121212, #121212) left top / 14px 14px no-repeat,
    linear-gradient(#121212, #121212) right top / 14px 14px no-repeat,
    linear-gradient(#121212, #121212) left bottom / 14px 14px no-repeat,
    linear-gradient(#121212, #121212) right bottom / 14px 14px no-repeat,
    linear-gradient(#121212, #121212) bottom center / 100% 4px no-repeat;
}

.spotify-embed,
.spotify-frame iframe {
  display: block;
  width: 100%;
  height: 160px;
  margin: 0;
  border: 0;
  background: #121212;
  color-scheme: only dark;
}

.now-open {
  grid-area: open;
  align-self: start;
  justify-self: start;
}

.single-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.single-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #111118;
  cursor: pointer;
}

.single-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.08) brightness(0.78);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.single-tile:hover img,
.single-tile:focus-visible img,
.single-tile.is-active img {
  filter: none;
  transform: scale(1.07);
}

.single-tile.is-active {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 var(--magenta);
  z-index: 1;
}

.tile-index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-family: var(--font-px);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: 0 1px 8px #000;
}

.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 8px 8px;
  background: linear-gradient(transparent, rgba(7, 7, 10, 0.92));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

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

/* ---------- Listen ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 20px;
  border: 2px solid var(--line);
  background: rgba(12, 12, 18, 0.7);
  position: relative;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  opacity: 0.35;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(255, 43, 214, 0.35);
}

.link-icon {
  color: var(--cyan);
}

.link-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.link-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-handle {
  font-family: var(--font-px);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.link-arrow {
  color: var(--magenta);
  font-size: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--line);
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: baseline;
  font-size: 16px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-px);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--text);
}

.crumbs-sep {
  color: var(--magenta);
}

/* ---------- Catalog ---------- */

.catalog-page {
  padding: 40px 0 120px;
  min-height: calc(100svh - 64px);
  border-top: 2px solid transparent;
}

.catalog-page .hud-line {
  margin: 0 0 28px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.catalog-card {
  min-width: 0;
  max-width: 100%;
}

.catalog-card .monitor {
  min-width: 0;
  max-width: 100%;
  box-shadow:
    0 0 0 2px #0a0a10,
    6px 6px 0 rgba(255, 43, 214, 0.16);
}

.catalog-card .monitor-screen iframe {
  z-index: 1;
}

button.catalog-play,
a.catalog-play {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  touch-action: manipulation;
}

.catalog-meta {
  padding: 16px 2px 0;
  min-width: 0;
}

.catalog-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.stream-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stream-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--line);
  background: rgba(12, 12, 18, 0.82);
  font-family: var(--font-px);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  touch-action: manipulation;
}

.stream-icon {
  display: none;
  flex: none;
}

.stream-link:hover,
.stream-link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 3px 3px 0 rgba(255, 43, 214, 0.28);
}

.catalog-jump-wrap {
  margin: 20px 0 0;
}

.catalog-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-px);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.catalog-jump::after {
  content: " →";
  color: var(--magenta);
}

.catalog-card.reveal,
.catalog-card.reveal.is-in,
.catalog-card.reveal.is-glitching {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(10px, 32px, 0);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.is-glitching {
  animation: reveal-glitch 0.38s steps(3, end) both;
  animation-delay: var(--stagger, 0ms);
}

.reveal.is-glitching .section-title {
  animation: title-glitch 0.38s steps(2, end) both;
}

.single-tile.reveal {
  transform: translate3d(6px, 18px, 0);
}

.single-tile.reveal.is-in {
  transform: none;
}

/* ---------- Motion ---------- */

@keyframes boot-static {
  0% {
    background-position: 0 0, 0 0, 0 0;
    transform: translate(0, 0);
  }
  100% {
    background-position: 3px 6px, -6px 3px, 2px -4px;
    transform: translate(1px, -1px);
  }
}

@keyframes boot-scan {
  0% {
    top: -25%;
  }
  100% {
    top: 110%;
  }
}

@keyframes boot-flicker {
  0%,
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
  }
}

@keyframes boot-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes dock-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 14px var(--magenta), 0 0 28px rgba(255, 43, 214, 0.55);
  }
  50% {
    opacity: 0.12;
    transform: scale(0.85);
    box-shadow: 0 0 0 var(--magenta);
  }
}

@keyframes shake {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-1px, 0);
  }
  50% {
    transform: translate(1px, 1px);
  }
  75% {
    transform: translate(-1px, 0);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes reveal-glitch {
  0% {
    opacity: 0;
    transform: translate3d(-14px, 32px, 0) skewX(-6deg);
    filter: contrast(1.45) saturate(1.3);
  }
  35% {
    opacity: 0.55;
    transform: translate3d(10px, 10px, 0) skewX(4deg);
  }
  65% {
    opacity: 1;
    transform: translate3d(-5px, 0, 0) skewX(-2deg);
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes title-glitch {
  0% {
    text-shadow: 4px 0 var(--magenta), -4px 0 var(--cyan);
    transform: translateX(-6px);
  }
  40% {
    text-shadow: -5px 0 var(--cyan), 3px 0 var(--magenta);
    transform: translateX(5px);
  }
  70% {
    text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan);
    transform: translateX(-2px);
  }
  100% {
    text-shadow: none;
    transform: none;
  }
}

@keyframes switch-flash {
  0% {
    opacity: 1;
    filter: contrast(1.8) saturate(1.6);
  }
  30% {
    opacity: 0.85;
  }
  55% {
    opacity: 0.35;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

@keyframes switch-frame {
  0% {
    transform: translate(-50%, -50%) scale(var(--hero-zoom)) translate3d(-18px, 0, 0) skewX(-8deg);
    filter: hue-rotate(-20deg) contrast(1.4);
  }
  25% {
    transform: translate(-50%, -50%) scale(var(--hero-zoom)) translate3d(16px, -6px, 0) skewX(6deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(var(--hero-zoom)) translate3d(-10px, 4px, 0) skewX(-4deg);
    filter: hue-rotate(18deg);
  }
  75% {
    transform: translate(-50%, -50%) scale(var(--hero-zoom)) translate3d(8px, 0, 0) skewX(2deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(var(--hero-zoom));
    filter: none;
  }
}

/* ---------- Responsive ---------- */

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }

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

@media (max-width: 980px) {
  .catalog-page {
    padding: 20px 0 calc(72px + env(safe-area-inset-bottom));
  }

  .catalog-page .hud-line {
    margin-bottom: 16px;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .catalog-card .monitor {
    box-shadow:
      0 0 0 2px #0a0a10,
      4px 4px 0 rgba(255, 43, 214, 0.16);
  }

  .catalog-card .monitor-chrome {
    grid-template-columns: auto auto 1fr;
    padding: 8px 10px;
    font-size: 8px;
    gap: 6px;
  }

  .catalog-card .chrome-id {
    display: none;
  }

  .catalog-card .yt-play {
    width: 56px;
    height: 38px;
  }

  .catalog-title {
    font-size: clamp(18px, 5.8vw, 24px);
    letter-spacing: 0.03em;
  }

  .stream-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
  }

  .stream-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .stream-icon {
    display: block;
  }

  .stream-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    height: 56px;
  }

  .brand-word {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(56px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 20;
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(7, 7, 10, 0.97);
    border-bottom: 2px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  .hero {
    min-height: calc(100svh - 56px - env(safe-area-inset-top));
    padding: 20px 0 calc(16px + env(safe-area-inset-bottom));
    align-items: end;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-video {
    top: 0;
    height: 100%;
  }

  .hero-video-shade {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.18) 0%, rgba(7, 7, 10, 0.42) 42%, rgba(7, 7, 10, 0.94) 100%);
  }

  .hero-video-frame {
    --hero-zoom: 1.16;
    width: 177.78svh;
    height: 100svh;
  }

  .hud-line {
    flex-wrap: wrap;
    font-size: 8px;
    margin-bottom: 12px;
  }

  .boot-hud {
    left: 16px;
    top: 16px;
  }

  .boot-label {
    font-size: 8px;
  }

  .wordmark {
    gap: 4px;
  }

  .wordmark-sub {
    font-size: clamp(16px, 7vw, 36px);
  }

  .tagline {
    max-width: none;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-cta {
    margin-top: 16px;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .hero-cta .btn {
    flex: 1;
    width: auto;
    min-height: 48px;
    padding: 0 10px;
    font-size: 9px;
  }

  .hero-deck {
    width: 100%;
    margin-top: 14px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-now {
    min-width: 0;
    flex: 1;
  }

  .hero-now-title {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-controls {
    flex: none;
  }

  .hero-ctrl {
    width: 44px;
    height: 44px;
  }

  .cursor {
    display: none;
  }

  .watch,
  .listen,
  .singles {
    padding: 56px 0;
  }

  .catalog-page {
    padding: 20px 0 calc(72px + env(safe-area-inset-bottom));
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .section-copy {
    font-size: 16px;
  }

  .now {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "meta"
      "player"
      "open";
    padding: 10px;
    box-shadow: 4px 4px 0 rgba(255, 43, 214, 0.16);
  }

  .now-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .spotify-frame,
  .spotify-embed,
  .spotify-frame iframe {
    height: 152px;
  }

  .single-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .single-tile {
    min-height: 0;
  }

  .tile-caption {
    font-size: 11px;
    padding: 20px 6px 6px;
  }

  .link-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .link-card {
    min-height: 72px;
    padding: 16px;
  }

  .monitor {
    box-shadow:
      0 0 0 2px #0a0a10,
      4px 4px 0 rgba(255, 43, 214, 0.18);
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding: 16px 0 calc(12px + env(safe-area-inset-bottom));
  }

  .btn {
    min-height: 48px;
    font-size: 10px;
    padding: 0 16px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .chrome-id {
    display: none;
  }

  .monitor-chrome {
    grid-template-columns: auto auto 1fr;
  }

  .tile-index {
    font-size: 7px;
  }

  .tile-caption {
    font-size: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .now-open {
    width: 100%;
  }

  .crumbs {
    font-size: 8px;
  }

  .yt-fallback-label {
    font-size: 8px;
    bottom: 10px;
    left: 10px;
  }
}

@media (max-width: 380px) {
  .brand-word {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

  .cursor,
  .hud-dot,
  .audio-dock-pulse,
  .glitch-hover:hover,
  .glitch-hover:focus-visible,
  .eq i,
  .boot-label,
  .boot-bar span,
  .boot-static,
  .boot-scan,
  .reveal,
  .reveal.is-in,
  .reveal.is-glitching,
  .reveal.is-glitching .section-title,
  .hero.is-switching .hero-switch,
  .hero.is-switching .hero-video-frame,
  .hero.is-switching .hero-now-title {
    animation: none;
  }

  .boot-bar span {
    width: 100%;
  }

  .fx-grid,
  .hero-video,
  .hero-inner {
    transform: none !important;
  }

  .hero-inner {
    opacity: 1 !important;
  }

  .fx-scanlines {
    opacity: 0.22 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
