
:root {
  --space: #010412;
  --nebula: #050a1e;
  --plasma: #132446;
  --ink: #0b1126;
  --accent: #f6c977;
  --pulse: #7b8bff;
  --glow: #9fe7d9;
  --muted: #9ca9c9;
  --text: #f5f5ff;
  --text-soft: rgba(245, 245, 255, 0.78);
  --glass-bg: rgba(5, 10, 26, 0.78);
  --glass-bg-home: rgba(5, 9, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 30px 90px rgba(2, 4, 10, 0.55);
  --space-deep: #020617;
  --space-mid: #040b1f;
  --space-fade: #061326;
  --sun-glow: rgba(255, 193, 120, 0.35);
  --space-grid: rgba(255, 255, 255, 0.04);
  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background-color: #010208;
}

@supports (height: 100svh) {
  html,
  body {
    min-height: 100svh;
  }
}

body,
.cosmic-body {
  margin: 0;
  padding: 0;
  min-height: inherit;
  background: radial-gradient(circle at top, #050816 0%, #020412 55%, #010208 100%);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1;
}

body.home-page {
  background: transparent;
}

p {
  color: var(--text-soft);
  font-size: 1rem;
}

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

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

.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;
}

.site-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3.5vw, 3rem) clamp(4rem, 8vh, 5rem);
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
}

#celestial-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040716;
}

#celestial-bg::after {
  content: "";
  position: absolute;
  inset: -35vh -25vw;
  background: radial-gradient(circle at 50% 30%, rgba(9, 13, 33, 0.95), rgba(1, 3, 12, 0.9) 55%, rgba(0, 0, 0, 0.95));
  z-index: -1;
}

#celestial-bg canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--celestial-scale, 1));
  display: block;
  opacity: 0.95;
  filter: blur(0.15px) saturate(1.05) brightness(0.88);
  transform-origin: center;
  transition: transform 0.25s ease-out;
  min-width: max(240vw, 1400px);
  min-height: max(240vh, 1400px);
  will-change: transform;
  backface-visibility: hidden;
}

body.space-page {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

#space-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

#space-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

body.space-page .site-shell,
body.space-page nav,
body.space-page header,
body.space-page main,
body.space-page footer {
  position: relative;
  z-index: 2;
}

#space-background canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.space-loader {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: radial-gradient(circle at 35% 20%, rgba(8, 12, 28, 0.95) 0%, rgba(1, 4, 12, 0.96) 55%, rgba(0, 0, 0, 0.98) 100%);
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: auto;
}

.space-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.space-loader__orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(159, 231, 217, 0.35);
  position: relative;
  box-shadow: 0 0 35px rgba(159, 231, 217, 0.45), inset 0 0 35px rgba(76, 124, 255, 0.35);
  animation: orbitPulse 3s ease-in-out infinite alternate;
}

.space-loader__orb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px dashed rgba(246, 201, 119, 0.6);
  animation: orbitSpin 12s linear infinite;
}

.space-loader__copy {
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
}

.space-loader__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.space-loader__status {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.space-loader.is-error .space-loader__status {
  color: #f87171;
}

.space-loader.is-error .space-loader__orb {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 35px rgba(248, 113, 113, 0.4), inset 0 0 35px rgba(248, 113, 113, 0.45);
}

@keyframes orbitPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

body.space-orbit {
  --celestial-scale: 1.6;
}

@media (max-width: 1024px) {
  body.space-orbit {
    --celestial-scale: 2.05;
  }
}

@media (max-width: 768px) {
  body.space-orbit {
    --celestial-scale: 2.55;
  }

  #celestial-bg canvas {
    min-width: 280vw;
    min-height: 280vh;
  }
}

body.home-page .site-shell {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  background: transparent;
}

body.home-page p {
  color: rgba(233, 238, 255, 0.9);
}

body.home-page #celestial-bg canvas {
  opacity: 1;
  filter: saturate(1.1) brightness(1); 
}

body.home-page .cosmic-hero {
  padding-top: clamp(1rem, 3vw, 2.5rem);
  margin-top: 0.5rem;
}

body.home-page .glass-panel,
body.home-page .hero-column,
body.home-page .channel-content,
body.home-page .channel-media,
body.home-page .channel-block,
body.home-page .star-system__card,
body.home-page .star-system__grid article,
body.home-page .experience-grid article,
body.home-page .orbit-card,
body.home-page .manifest .scrim-band {
  background: var(--glass-bg-home) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
}

body.home-page .scrim-band,
body.home-page .channel-scrim {
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  padding: 0;
}

body.home-page .manifest .scrim-band {
  background: var(--glass-bg-home) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

body.home-page .channel-media {
  animation: none;
}

body.home-page .channel,
body.home-page .star-system,
body.home-page .runway,
body.home-page .manifest,
body.home-page .channel--resume {
  margin-block: clamp(2rem, 5vh, 4rem);
}

body.home-page .hero-grid,
body.home-page .channel-grid {
  padding: 0;
}

body.home-page .channel-content,
body.home-page .channel-media,
body.home-page .star-system__card,
body.home-page .orbit-card,
body.home-page .experience-grid article,
body.home-page .manifest .scrim-band {
  box-shadow: 0 25px 65px rgba(2, 5, 15, 0.55);
}

.orbital-links {
  position: fixed;
  top: 50%;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 20;
  transform: translateY(-50%);
  padding: 0.75rem 0.35rem;
  background: rgba(4, 6, 18, 0.55);
  border-radius: 1.2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(1, 3, 8, 0.35);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.orbital-links a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  color: rgba(245, 245, 255, 0.6);
  font-family: var(--font-display);
  padding: 0.45rem 0.25rem;
}

.orbital-links a:hover {
  color: var(--accent);
}

@media (max-height: 720px) and (min-width: 769px) {
  .orbital-links {
    top: 1rem;
    bottom: 1rem;
    transform: none;
    justify-content: flex-start;
  }
}

@media (max-height: 700px) and (min-width: 769px) {
  .orbital-links {
    top: 1.5rem;
    bottom: 1.5rem;
    transform: none;
    justify-content: flex-start;
    overflow-y: auto;
  }
}

.cosmic-hero {
  position: relative;
  margin-bottom: clamp(3rem, 7vh, 5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding-top: 1rem;
}

.hero-column {
  background: rgba(3, 7, 18, 0.94);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 65px rgba(1, 3, 12, 0.6);
}

.hero-media {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 48vh, 420px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 25px 55px rgba(1, 3, 12, 0.65);
}

.mini-player {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(113, 66, 255, 0.22), rgba(255, 126, 176, 0.18));
  box-shadow: 0 25px 55px rgba(5, 7, 18, 0.7);
  align-items: center;
  width: 100%;
}

.mini-player__art-wrap {
  flex: 0 0 clamp(160px, 28vw, 220px);
  max-width: 280px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  align-self: center;
}

.mini-player__art {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 25px rgba(255, 255, 255, 0.18),
    inset 0 15px 55px rgba(255, 255, 255, 0.08),
    0 18px 35px rgba(3, 5, 15, 0.8);
  animation: spinRecord 22s linear infinite;
  animation-play-state: paused;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 50% 65%, rgba(90, 124, 255, 0.35), rgba(255, 140, 220, 0.25) 45%, rgba(45, 55, 120, 0.05) 75%, transparent 90%),
    linear-gradient(145deg, rgba(104, 81, 255, 0.35), rgba(255, 148, 216, 0.35));
  background-color: rgba(15, 18, 45, 0.75);
  backdrop-filter: blur(12px) saturate(130%);
  cursor: default;
}

.mini-player__art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.3), transparent 55%);
  animation: pulseRing 6s linear infinite;
}

.mini-player__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 65%),
    radial-gradient(circle at 50% 80%, rgba(18, 23, 55, 0.25), rgba(18, 23, 55, 0));
  opacity: 0.65;
  filter: blur(1.5px);
  pointer-events: none;
}

.mini-player__art.is-playing {
  animation-play-state: running;
}

.mini-player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

@keyframes pulseRing {
  0% {
    border-color: #fff;
  }
  33% {
    border-color: #ffb9ff;
  }
  66% {
    border-color: #9fe7d9;
  }
  100% {
    border-color: #fff;
  }
}

.mini-player__details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.mini-player__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.mini-player__title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
}

.mini-player__meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.mini-player__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.55;
}

.mini-player__audio {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--accent);
}

@media (max-width: 720px) {
  .mini-player {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .mini-player__art-wrap {
    width: min(75vw, 280px);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    margin: 0 auto;
  }

  .mini-player__details {
    align-items: center;
  }

  .mini-player__note,
  .mini-player__meta,
  .mini-player__title {
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-column {
    width: 100%;
    max-width: 480px;
    text-align: center;
  }

  .venture-links {
    justify-content: center;
  }

  body[data-active-venture="bopp"] .hero-column,
  body[data-active-venture="bopp"] .hero-media {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body[data-active-venture="bopp"] .mini-player {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 1.25rem;
    max-width: 100%;
  }

  body[data-active-venture="bopp"] .mini-player__details {
    width: 100%;
  }
}

.page-intro {
  max-width: 960px;
  margin: 0 auto clamp(2.5rem, 6vh, 4.5rem);
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-intro-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 0.65rem;
}

.page-intro-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.channel {
  margin-block: clamp(2.5rem, 6vh, 4.5rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.bopp-gallery {
  margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.bopp-gallery figure {
  margin: 0;
}

.bopp-gallery img {
  width: 100%;
  border-radius: 1.35rem;
  box-shadow: 0 20px 45px rgba(1, 3, 12, 0.6);
}

.bopp-gallery figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-column.shrine {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-column h1 {
  background-image: linear-gradient(120deg, #ffffff, #f7cfff, #fffaf1);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientFlow 22s ease-in-out infinite alternate;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2,
h3,
h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hero-actions a {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.85s ease forwards;
}

.venture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.github-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--pulse));
  color: #111016;
  border: none;
}

.btn.secondary {
  color: var(--fg, #f6f7ff);
}

.hero-actions a:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-actions a:nth-child(3) {
  animation-delay: 0.24s;
}

.hero-actions .primary {
  background: linear-gradient(135deg, var(--accent), var(--pulse));
  color: #111016;
  border: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: #f8fbff;
  background: transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--pulse));
  border: none;
  color: #121212;
}

.btn.secondary {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.45);
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.metric-stack span {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-display);
  color: var(--accent);
}

.section {
  margin-block: clamp(2.5rem, 6vh, 4.5rem);
}

.story-panel {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.orbit-card {
  background: rgba(5, 8, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 25px 55px rgba(1, 3, 12, 0.55);
  backdrop-filter: blur(18px);
  width: min(100%, 980px);
  margin: 0 auto;
}

.inline-link {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--glow);
}

.star-system {
  margin: clamp(2rem, 5vw, 3.25rem) 0;
}

.star-system__card {
  background: rgba(5, 10, 24, 0.92);
  border-radius: 1.8rem;
  padding: clamp(1.75rem, 3vw, 2.85rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(1, 4, 12, 0.55);
  backdrop-filter: blur(20px);
}

.star-system__card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
}

.star-system__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem;
  margin-top: 1.25rem;
}

.star-system__grid article {
  padding: 1rem;
  background: rgba(8, 14, 33, 0.9);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.star-system__grid h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.channel {
  position: relative;
  padding: clamp(2.5rem, 4vw, 4.5rem) 0;
}

.channel::before {
  content: none;
}

.channel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.channel-grid--space {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.space-map {
  background: rgba(3, 7, 18, 0.95);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.space-map__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.space-map__fov {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.space-map__viewport {
  width: 100%;
  height: clamp(320px, 55vh, 620px);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.space-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.space-controls form {
  flex: 1 1 260px;
  display: flex;
  gap: 0.75rem;
}

.space-controls input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 28, 0.85);
  color: var(--text);
  font-size: 0.95rem;
}

.space-controls button {
  border: none;
  border-radius: 0.85rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(120deg, rgba(245, 201, 119, 0.9), rgba(155, 231, 217, 0.9));
  color: #03060f;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.space-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(245, 201, 119, 0.35);
}

.space-fov {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.space-fov input[type="range"] {
  width: 180px;
}

.space-presets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.space-presets button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 9, 22, 0.85);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.space-presets button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(8, 12, 28, 0.95);
}

.space-tip {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.85rem;
  line-height: 1.5;
}

.channel-content {
  max-width: 640px;
  background: rgba(3, 7, 18, 0.94);
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.channel-content h2 {
  text-shadow: 0 0 35px rgba(255, 243, 233, 0.45);
}

.channel-media {
  min-height: 260px;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 32, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  animation: hueBreath 18s ease-in-out infinite;
  will-change: transform, filter;
}

.channel-media img {
  width: clamp(180px, 55%, 360px);
  max-width: 100%;
  border-radius: 1.35rem;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25));
  box-shadow: 0 20px 40px rgba(1, 3, 12, 0.55);
}

.channel-media--panel {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(9, 14, 32, 0.86), rgba(7, 11, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: none;
}

.channel-media--image {
  padding: 0;
  border: none;
  background: transparent;
  animation: none;
  min-height: unset;
  backdrop-filter: none;
}

.channel-media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 25px 45px rgba(1, 3, 12, 0.65);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.spec-list li {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.spec-list span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 255, 0.65);
  margin-bottom: 0.25rem;
}

.code-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.code-block {
  background: rgba(6, 10, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(233, 238, 255, 0.92);
  overflow-x: auto;
  white-space: pre;
}

.channel-img {
  width: 100%;
  border-radius: 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glyph-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(6, 10, 20, 0.9));
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.channel-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.experience-grid article {
  background: rgba(7, 12, 32, 0.78);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.channel-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 1.35rem;
  background: rgba(3, 7, 18, 0.92);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.runway {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: clamp(3rem, 8vh, 5.5rem);
}

.runway-track {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.runway-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.runway-row.active .runway-label {
  color: var(--accent);
}

.runway-row.active p {
  color: #fdf7eb;
}

.runway-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--muted);
}

.manifest {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

/* Paula page */
.paula-lab {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.paula-stage {
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(145deg, rgba(255, 126, 176, 0.2), rgba(125, 139, 255, 0.15));
}

.paula-stage--fallback {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.paula-stage--fallback img {
  border-radius: 1.35rem;
  box-shadow: 0 35px 65px rgba(4, 6, 18, 0.65);
}

.paula-stage__status {
  margin: 0.25rem 0 0;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.paula-stage__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.paula-stage.viewer {
  position: relative;
  padding: 0;
  min-height: clamp(360px, 55vh, 560px);
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255, 126, 176, 0.6), rgba(6, 10, 26, 0.9));
}

.paula-stage.viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: transparent;
}

.paula-stage.viewer[data-status]::after {
  content: attr(data-status);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 8, 18, 0.75);
}

.stage-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  z-index: 1;
}

.paula-legends {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.paula-motion {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.paula-motion article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.motion-copy {
  background: rgba(7, 12, 32, 0.78);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* Responsive */
@media (max-width: 768px) {
  .site-shell {
    padding: 1.5rem 1rem 3rem;
  }

  .orbital-links {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    writing-mode: horizontal-tb;
    gap: 0.4rem;
    margin: 0;
    padding: 0.3rem 0.6rem;
    max-width: none;
  }

  .orbital-links a {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.18em;
    font-size: 0.45rem;
    padding: 0.2rem 0.4rem;
  }

  .cosmic-hero {
    padding-top: clamp(3rem, 14vh, 6rem);
  }

  .hero-grid,
  .channel-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.75rem;
  }

  .hero-column,
  .channel-content,
  .channel-media,
  .section,
  .runway,
  .manifest,
  .bopp-gallery {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    text-align: left;
  }

  .channel-media {
    animation: none;
    padding: 1.25rem;
  }

  .hero-column h1,
  .hero-column p,
  .channel-content h2,
  .channel-content p {
    text-align: left;
  }

  .orbit-card {
    width: 100%;
    max-width: 680px;
    padding: 1.5rem;
  }

  .space-loader__orb {
    width: 72px;
    height: 72px;
  }

  .space-loader__eyebrow {
    letter-spacing: 0.3em;
  }

  .hero-column {
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel {
    padding: 2.5rem 0;
  }

  .runway {
    margin-block: 2.5rem;
  }

  .paula-stage.viewer {
    min-height: clamp(320px, 60vh, 520px);
  }

  .stage-actions {
    position: static;
    padding: 1rem;
    justify-content: flex-start;
  }

  .channel-media {
    min-height: 200px;
  }

  .channel-media--panel {
    padding: 1.5rem;
  }

  .runway-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@keyframes hueBreath {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.scrim-band {
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.98));
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 45px 85px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.channel-scrim {
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 2.5vw, 2.35rem);
  background: linear-gradient(145deg, rgba(1, 5, 14, 0.95), rgba(3, 9, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 45px 90px rgba(1, 3, 12, 0.55);
  backdrop-filter: blur(18px);
}

.channel-scrim .channel-grid {
  margin: 0;
}
