/* X NibYr — callsign / void */

:root {
  --void: #05040c;
  --ink: #0b0916;
  --nebula: #6b3dff;
  --nebula-2: #9b5cff;
  --ion: #3de0ff;
  --star: #e8e4f0;
  --ember: #f0b45a;
  --muted: #9a94ad;
  --line: rgba(232, 228, 240, 0.12);
  --glass: rgba(11, 9, 22, 0.55);
  --glass-2: rgba(232, 228, 240, 0.06);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--star);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

iframe {
  background: #05040c;
  color-scheme: dark;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.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(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Persistent FX */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-nebula,
.fx-vignette,
.fx-grain,
.fx-chroma {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-nebula {
  z-index: 1;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(107, 61, 255, 0.22), transparent 58%),
    radial-gradient(700px 480px at 86% 78%, rgba(61, 224, 255, 0.08), transparent 55%),
    radial-gradient(500px 360px at 50% 100%, rgba(240, 180, 90, 0.06), transparent 60%);
  opacity: 0.85;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.fx-vignette {
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(5, 4, 12, 0.72) 100%);
}

.fx-grain {
  z-index: 3;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fx-chroma {
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0.07;
  background: linear-gradient(115deg, rgba(61, 224, 255, 0.25), transparent 40%, rgba(155, 92, 255, 0.2));
}

body.is-jump .fx-chroma {
  opacity: 0.55;
  background: radial-gradient(circle at 50% 45%, rgba(232, 228, 240, 0.35), rgba(61, 224, 255, 0.2) 28%, rgba(107, 61, 255, 0.18) 55%, transparent 72%);
  animation: chroma-jump 0.9s var(--ease);
}

body.is-jump .fx-vignette {
  background: radial-gradient(ellipse at center, transparent 18%, rgba(5, 4, 12, 0.55) 52%, rgba(5, 4, 12, 0.94) 100%);
}

body.is-jump .fx-nebula {
  transform: scale(1.12);
  filter: saturate(1.35);
}

@keyframes chroma-jump {
  0% {
    opacity: 0.15;
    transform: scale(0.72);
  }
  40% {
    opacity: 0.62;
    transform: scale(1.18);
  }
  100% {
    opacity: 0.07;
    transform: scale(1.45);
  }
}

.page-warp {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #e8e4f0 0%, #3de0ff 8%, #6b3dff 22%, #05040c 62%);
  transform: scale(0);
  opacity: 0;
}

.page-warp.is-on {
  pointer-events: auto;
}

/* Cursor */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--ion);
  box-shadow: 0 0 12px var(--ion);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(61, 224, 255, 0.45);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5, 4, 12, 0.72), rgba(5, 4, 12, 0.18));
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 4, 12, 0.78);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--star);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--star);
}

.brand-mark .is-ion {
  stroke: var(--ion);
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-current,
.nav-ext {
  color: var(--star);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--star);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle span:nth-child(2) {
  top: 15px;
}
.nav-toggle span:nth-child(3) {
  top: 20px;
}
.nav-toggle span:nth-child(4) {
  top: 25px;
}

/* Hero */

.hero {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: calc(var(--header) + 24px) 0 64px;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

.hero-video-frame,
.hero-poster,
.hero-video-shade {
  position: absolute;
  inset: 0;
}

.hero-video-frame {
  opacity: 0;
  transform: scale(1.18);
  pointer-events: none;
}

.hero:not(.is-playing) .hero-video-frame,
.hero:not(.is-playing) .hero-video-frame iframe {
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero.is-playing .hero-video-frame {
  opacity: 0.55;
  visibility: visible;
}

.hero-video-frame iframe {
  width: 100%;
  height: 100%;
  transform: scale(1.35);
}

.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.55);
}

.hero.is-playing .hero-poster {
  opacity: 0;
}

.hero-video-shade {
  background:
    linear-gradient(180deg, rgba(5, 4, 12, 0.18) 0%, rgba(5, 4, 12, 0.5) 42%, rgba(5, 4, 12, 0.88) 72%, #05040c 100%),
    radial-gradient(circle at 50% 40%, transparent 20%, rgba(5, 4, 12, 0.5) 100%);
}

.hero-acquire {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05040c;
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  transition: opacity 0.85s var(--ease);
}

.acquire-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.acquire-copy {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: grid;
  gap: 14px;
  justify-items: center;
  width: max-content;
}

.hero-acquire::before,
.hero-acquire::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-acquire::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0 14px,
    rgba(61, 224, 255, 0.04) 14px 15px
  );
  opacity: 0.55;
}

.hero-acquire::after {
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 48%, rgba(232, 228, 240, 0.22), rgba(61, 224, 255, 0.12) 26%, rgba(107, 61, 255, 0.2) 48%, #05040c 74%);
}

.hero.is-boot-run .hero-acquire::after {
  animation: acquire-tunnel 5s var(--ease) forwards;
}

.hero.is-playing .hero-acquire {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.hero.is-booting .hero-acquire {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.hero.is-booting .hero-inner {
  opacity: 0;
}

.hero.is-booting .hero-poster {
  opacity: 0;
}

@keyframes acquire-tunnel {
  0% {
    transform: scale(1);
    opacity: 0.42;
  }
  55% {
    transform: scale(1.45);
    opacity: 0.78;
  }
  100% {
    transform: scale(2.1);
    opacity: 0.15;
  }
}

.acquire-label,
.acquire-coord,
.acquire-bar {
  position: relative;
  z-index: 1;
}

.acquire-label,
.acquire-coord {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ion);
}

.acquire-coord {
  color: var(--muted);
}

.acquire-bar {
  width: min(280px, 60vw);
  height: 1px;
  margin-inline: auto;
  background: var(--line);
  overflow: hidden;
}

.acquire-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ion), var(--ember));
  animation: acquire-fill 5s linear forwards;
}

@keyframes acquire-fill {
  to {
    width: 100%;
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 40px));
  transition: opacity 0.85s var(--ease);
}

.sig-line,
.sig-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ion);
}

.sig-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 12px var(--ion);
  animation: pulse 1.8s ease-in-out infinite;
}

.sig-sep {
  opacity: 0.4;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.living-mark {
  position: fixed;
  left: 0;
  right: 0;
  top: clamp(88px, 18vh, 160px);
  z-index: 25;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: top 0.55s var(--ease), height 0.55s var(--ease), opacity 0.35s var(--ease);
}

.living-mark-svg {
  width: min(1080px, calc(100vw - 36px));
  height: auto;
  overflow: visible;
  transition: width 0.55s var(--ease);
}

.living-mark-svg polyline {
  stroke: var(--star);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.living-mark-svg polyline.is-ion {
  stroke: var(--ion);
  filter: drop-shadow(0 0 10px rgba(61, 224, 255, 0.42));
}

.living-mark-svg polyline.living-mark-ghost {
  opacity: 0;
}

.living-mark-svg polyline.ghost-ion {
  stroke: var(--ion);
}

.living-mark-svg polyline.ghost-ember {
  stroke: var(--ember);
}

.living-mark.is-glitch .living-mark-svg {
  filter: drop-shadow(0 0 14px rgba(61, 224, 255, 0.55));
}

.living-mark.is-compact {
  top: 0;
  height: var(--header);
  padding: 0;
  overflow: hidden;
  align-items: center;
  background: none;
  box-shadow: none;
  z-index: 41;
}

.living-mark.is-compact .living-mark-svg {
  width: min(240px, 26vw);
}

.living-mark.is-compact .living-mark-svg polyline {
  stroke-width: 1.4;
}

body.nav-open .living-mark {
  opacity: 0;
}

body[data-page="signals"] .living-mark {
  top: 0;
}

.tagline {
  max-width: 28ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(240, 180, 90, 0.95), rgba(240, 180, 90, 0.75));
  color: #1a1206;
  border-color: transparent;
  box-shadow: 0 0 32px rgba(240, 180, 90, 0.22);
}

.btn-ghost:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--ion);
}

.hero-deck {
  margin-top: 40px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 4, 12, 0.45);
}

.hero-now-meta {
  display: grid;
  gap: 2px;
}

.hero-now-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ember);
}

.hero-now-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--star);
}

.hero-controls {
  display: flex;
  gap: 8px;
}

.hero-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 4, 12, 0.45);
  color: var(--star);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-ctrl svg {
  flex-shrink: 0;
}

.hero-ctrl .icon-on,
.hero-ctrl .ctrl-live {
  display: none;
}

.hero-ctrl.is-on .icon-on {
  display: block;
}

.hero-ctrl.is-on .ctrl-live {
  display: inline;
}

.hero-ctrl.is-on .icon-off,
.hero-ctrl.is-on .ctrl-mute {
  display: none;
}

.hero-ctrl.is-on {
  color: var(--ion);
  border-color: rgba(61, 224, 255, 0.45);
}

.hero-ctrl:hover,
.hero-now:hover {
  border-color: var(--ion);
  color: var(--ion);
}

/* Modules */

main {
  position: relative;
  z-index: 4;
}

.watch,
.origin,
.singles,
.listen,
.signals {
  position: relative;
  padding: 148px 0 64px;
}

.module-gate {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 72px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--ion), transparent);
  opacity: 0.45;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-title.is-quiet {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ion);
}

.section-meta,
.section-copy {
  margin: 0 0 10px;
  color: var(--muted);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Watch viewport */

.viewport {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 228, 240, 0.05), rgba(5, 4, 12, 0.4));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(61, 224, 255, 0.06);
  backdrop-filter: blur(18px);
}

.viewport-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chrome-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ion);
  box-shadow: 0 0 10px var(--ion);
}

.chrome-id {
  margin-left: auto;
  color: var(--ion);
}

.viewport-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.viewport-screen iframe,
.yt-fallback,
.yt-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-fallback img {
  object-fit: cover;
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(5, 4, 12, 0.45);
  border: 1px solid rgba(61, 224, 255, 0.5);
  backdrop-filter: blur(8px);
}

.yt-play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 24px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--star);
}

.yt-fallback-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.embed-hint {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-jump-wrap {
  margin: 28px 0 0;
}

.catalog-jump {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ion);
  border-bottom: 1px solid rgba(61, 224, 255, 0.35);
}

/* Origin */

.origin-grid {
  display: grid;
  gap: 28px;
}

.origin-copy {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  font-weight: 500;
}

.origin-copy .char {
  display: inline-block;
  will-change: transform, opacity;
}

.origin-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.origin-coords li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ember);
  background: rgba(240, 180, 90, 0.06);
}

/* Singles orbit */

.orbit {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px;
  align-items: center;
}

.now {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.now-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
}

.now-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(61, 224, 255, 0.35);
  border-radius: 50%;
  animation: spin 18s linear infinite;
  pointer-events: none;
}

.now-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 10px var(--ion);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.now-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 4, 12, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ember);
}

.now-meta {
  display: grid;
  gap: 4px;
  padding: 16px 4px 8px;
}

.now-index {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--ion);
  letter-spacing: 0.16em;
}

.now-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
}

.now-info {
  margin: 0;
  color: var(--muted);
}

.spotify-frame {
  position: relative;
  height: 152px;
  overflow: hidden;
  border-radius: 14px;
  background: #121212;
}

.spotify-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: #121212;
  pointer-events: none;
}

.spotify-embed {
  position: absolute;
  left: -4px;
  top: -2px;
  width: calc(100% + 8px);
  height: 168px;
  background: #121212;
  color-scheme: dark;
}

.now-open {
  width: 100%;
  margin-top: 12px;
}

.orbit-ring {
  position: relative;
  min-height: 560px;
}

.orbit-ring.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  min-height: 0;
}

.single-tile {
  position: absolute;
  width: 118px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  transform: translate(-50%, -50%);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s, transform 0.4s var(--ease);
}

.orbit-ring.is-grid .single-tile {
  position: relative;
  width: auto;
  transform: none;
}

.single-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.85);
  transition: filter 0.35s var(--ease);
}

.single-tile.is-active,
.single-tile:hover {
  border-color: var(--ion);
  box-shadow: 0 0 24px rgba(61, 224, 255, 0.18);
  z-index: 2;
}

.single-tile.is-active img,
.single-tile:hover img {
  filter: none;
}

.tile-index,
.tile-caption {
  display: block;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.tile-index {
  padding-top: 8px;
  color: var(--ion);
}

.tile-caption {
  padding-bottom: 8px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Listen */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 224, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.link-card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ion);
}

.link-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
}

/* Signals catalog */

.catalog-page {
  padding-top: calc(var(--header) + 72px);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  min-height: 200px;
}

.catalog-card {
  display: grid;
  gap: 12px;
}

.catalog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.stream-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stream-link:hover {
  color: var(--star);
  border-color: var(--ion);
}

/* Footer + dock */

.site-footer {
  position: relative;
  z-index: 4;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
}

.signal-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 4, 12, 0.72);
  backdrop-filter: blur(16px);
}

.dock-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
  animation: pulse 1.4s ease-in-out infinite;
}

.dock-kicker,
.dock-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.dock-kicker {
  color: var(--ember);
}

/* Motion helpers */

[data-module] .section-head,
[data-module] .viewport,
[data-module] .origin-copy,
[data-module] .now,
.link-card,
.catalog-card {
  --enter: 0;
}

#watch,
#origin,
#singles,
#listen {
  scroll-margin-top: 8px;
}

/* Responsive */

@media (max-width: 900px) {
  .orbit {
    grid-template-columns: 1fr;
  }

  .orbit-ring {
    min-height: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header) 16px auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(5, 4, 12, 0.92);
    backdrop-filter: blur(20px);
  }

  .nav.is-open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .brand-name {
    display: none;
  }

  .living-mark,
  .living-mark.is-compact,
  body[data-page="signals"] .living-mark {
    top: 0;
    height: var(--header);
    padding: 0;
    background: none;
    box-shadow: none;
    z-index: 41;
  }

  .living-mark-svg,
  .living-mark.is-compact .living-mark-svg,
  .living-mark:not(.is-compact) .living-mark-svg {
    width: min(46vw, 188px);
  }

  .living-mark-svg polyline,
  .living-mark.is-compact .living-mark-svg polyline {
    stroke-width: 1.35;
  }

  .hero,
  .hero-video {
    overflow: hidden;
    max-width: 100%;
  }

  .hero-video {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    height: 100svh;
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }

  .hero-video-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(2.8);
    transform: scale(max(1.6, calc(177.78svh / 100vw)));
  }

  .hero-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
  }

  .hero-poster {
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 640px) {
  .living-mark-svg,
  .living-mark.is-compact .living-mark-svg {
    width: min(44vw, 168px);
  }

  .living-mark-svg polyline,
  .living-mark.is-compact .living-mark-svg polyline {
    stroke-width: 1.25;
  }

  .living-mark.is-glitch .living-mark-svg {
    animation-duration: 0.16s;
    filter: drop-shadow(-1px 0 var(--ion));
  }

  body.is-jump main {
    transform: none;
  }

  .hero-deck {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch,
  .origin,
  .singles,
  .listen,
  .signals {
    padding: 120px 0 56px;
  }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .now-ring {
    animation: none;
  }

  .hero-video-frame {
    opacity: 0 !important;
  }

  .living-mark.is-glitch .living-mark-svg,
  body.is-jump .fx-chroma,
  body.is-jump main {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}
