@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&family=Cormorant+Garamond:wght@400;700&family=Spectral:wght@400;700&family=Amethysta&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===================== 1. TOKENS ===================== */
:root {
  --night: #030f2a;
  --deep: #04143d;
  --panel: #0b2a6c;
  --panel-2: #10347e;
  --ink: #ccffff;
  --heading: #eeffff;
  --dim: #9fbfe0;
  --silver: #c0c0c0;
  --gold: #eee999;
  --rose: #f3a6c8;
  --red: #ff4040;
  --on-silver: #061a4a;
  --line: rgba(204, 255, 255, 0.16);
  --line-strong: rgba(192, 192, 192, 0.45);
  --rule: rgba(204, 255, 255, 0.5);
  --display: "Philosopher", "Cormorant Garamond", "Spectral", Georgia, serif;
  --body: "Amethysta", "Spectral", Georgia, serif;
  --sans: "Figtree", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --page-gap: clamp(2.5rem, 7vw, 4.5rem);
  --section-gap: clamp(1.25rem, 4vw, 2rem);
  --astro-gap: clamp(1.75rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); }
body { font-family: var(--body); color: var(--ink); }

/* ===================== 2. NEBULA BACKGROUND ===================== */
.sky {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  /* The video sits beneath everything; these translucent washes keep text readable. */
  background:
    radial-gradient(ellipse at 50% 35%, rgba(7,24,60,.45) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 120%, rgba(1,10,28,.7) 0%, transparent 60%),
    linear-gradient(180deg, rgba(3,15,42,.6), rgba(3,15,42,.75));
}
.sky-layers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sky-content { position: relative; z-index: 2; min-width: 0; }

/* Fullscreen video backdrop (astro.webm, cover-fit, inert). */
.sky-video { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* Horizon image: only as the reduced-motion or failed-video sky. */
.sky-video--failed { background: #030f2a url('https://images.squarespace-cdn.com/content/586f371c29687f8411fff23b/bcb7f886-0762-4996-8baa-c808b6a07080/Horizon01.jpg') center / cover no-repeat; }
/* Dim wash above the video so text stays readable. */
.sky-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,15,42,.55), rgba(3,15,42,.7)); }
.sky-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; opacity: 0; animation: sky-video-in 1.2s ease forwards; }
@keyframes sky-video-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sky-video { background: #030f2a url('https://images.squarespace-cdn.com/content/586f371c29687f8411fff23b/bcb7f886-0762-4996-8baa-c808b6a07080/Horizon01.jpg') center / cover no-repeat; } .sky-video video { display: none; } }

.sky-swirl {
  position: absolute; top: 38%; left: 50%;
  width: max(170%, 80rem); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background:
    conic-gradient(from 20deg at 50% 50%,
      transparent 0deg, rgba(96, 136, 214, 0.22) 35deg, transparent 85deg,
      rgba(192, 192, 192, 0.14) 140deg, transparent 190deg,
      rgba(238, 233, 153, 0.1) 235deg, transparent 280deg,
      rgba(110, 175, 230, 0.15) 320deg, transparent 360deg),
    radial-gradient(circle at 50% 50%, rgba(204, 255, 255, 0.09), transparent 42%);
  filter: blur(56px);
  opacity: 0.9;
  animation: sky-turn 240s linear infinite;
}
.sky-arms {
  position: absolute; top: 40%; left: 50%;
  width: max(130%, 64rem); aspect-ratio: 1.25;
  transform: translate(-50%, -50%) rotate(-24deg);
  background:
    radial-gradient(ellipse 58% 15% at 34% 40%, rgba(110, 148, 220, 0.24), transparent 70%),
    radial-gradient(ellipse 48% 12% at 66% 60%, rgba(192, 192, 192, 0.18), transparent 70%),
    radial-gradient(ellipse 36% 10% at 56% 28%, rgba(238, 233, 153, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 11% at 40% 72%, rgba(110, 175, 230, 0.14), transparent 70%),
    radial-gradient(ellipse 22% 20% at 50% 50%, rgba(238, 255, 255, 0.11), transparent 70%);
  filter: blur(34px);
  animation: sky-drift 320s linear infinite reverse;
}
.sky-dust {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 36%, rgba(120, 160, 230, 0.07), transparent 75%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(1, 8, 24, 0.45) 100%);
}
.sky-field {
  position: absolute; inset: 0; opacity: 0.75; background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 6% 5%, rgba(255,255,255,.8) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 27% 11%, rgba(204,255,255,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 69% 3%, rgba(238,233,153,.7) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 41% 22%, rgba(192,192,192,.7) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 14% 33%, rgba(255,255,255,.5) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 77% 38%, rgba(204,255,255,.7) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 54% 47%, rgba(238,233,153,.5) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 3% 56%, rgba(192,192,192,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 93% 61%, rgba(255,255,255,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 31% 68%, rgba(204,255,255,.5) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 66% 74%, rgba(255,255,255,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 18% 86%, rgba(238,233,153,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 83% 89%, rgba(192,192,192,.6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 47% 96%, rgba(255,255,255,.5) 0 .8px, transparent 1.6px);
}
.sky-sand { position: absolute; inset: 0; }
.sky-field::before, .sky-field::after, .sky-sand::before, .sky-sand::after {
  content: ""; position: absolute; inset: 0; background-repeat: no-repeat;
}
.sky-field::before {
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 9% 14%, rgba(230,230,230,.75) 0 .5px, transparent 1px),
    radial-gradient(circle at 36% 4%, rgba(238,233,153,.75) 0 .5px, transparent 1px),
    radial-gradient(circle at 58% 17%, rgba(220,220,220,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 81% 27%, rgba(238,233,153,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 22% 42%, rgba(230,230,230,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 71% 52%, rgba(238,233,153,.65) 0 .5px, transparent 1px),
    radial-gradient(circle at 44% 61%, rgba(220,220,220,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 96% 72%, rgba(238,233,153,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 11% 79%, rgba(230,230,230,.65) 0 .5px, transparent 1px),
    radial-gradient(circle at 57% 84%, rgba(238,233,153,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 33% 93%, rgba(220,220,220,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 89% 97%, rgba(230,230,230,.6) 0 .5px, transparent 1px);
}
.sky-field::after {
  opacity: 0.9;
  background-image:
    radial-gradient(circle at 17% 21%, rgba(244,244,244,.85) 0 1.2px, rgba(192,192,192,.18) 2px, transparent 4px),
    radial-gradient(circle at 62% 9%, rgba(251,246,200,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 35%, rgba(251,246,200,.85) 0 1.4px, rgba(238,233,153,.18) 2.4px, transparent 4.5px),
    radial-gradient(circle at 37% 49%, rgba(235,235,235,.75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 6% 66%, rgba(251,246,200,.75) 0 1.1px, transparent 2px),
    radial-gradient(circle at 76% 66%, rgba(244,244,244,.85) 0 1.6px, rgba(192,192,192,.16) 2.6px, transparent 5px),
    radial-gradient(circle at 49% 77%, rgba(251,246,200,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 26% 91%, rgba(244,244,244,.8) 0 1.3px, rgba(192,192,192,.14) 2.2px, transparent 4px),
    radial-gradient(circle at 70% 92%, rgba(251,246,200,.85) 0 1.2px, transparent 2px);
}
.sky-sand::before {
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 4% 9%, rgba(238,233,153,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 49% 2%, rgba(230,230,230,.75) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 74% 12%, rgba(238,233,153,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 29% 26%, rgba(220,220,220,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 98% 22%, rgba(230,230,230,.65) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 63% 36%, rgba(238,233,153,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 8% 47%, rgba(220,220,220,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 86% 50%, rgba(238,233,153,.65) 0 .5px, transparent 1px),
    radial-gradient(circle at 39% 71%, rgba(230,230,230,.7) 0 .5px, transparent 1px),
    radial-gradient(circle at 79% 80%, rgba(238,233,153,.7) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 16% 95%, rgba(220,220,220,.65) 0 .5px, transparent 1px),
    radial-gradient(circle at 61% 98%, rgba(238,233,153,.7) 0 .5px, transparent 1px);
}
.sky-sand::after {
  opacity: 0.9;
  background-image:
    radial-gradient(circle at 31% 7%, rgba(251,246,200,.85) 0 1.3px, rgba(238,233,153,.16) 2.2px, transparent 4px),
    radial-gradient(circle at 84% 6%, rgba(244,244,244,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 12% 29%, rgba(244,244,244,.85) 0 1.5px, rgba(192,192,192,.16) 2.5px, transparent 4.5px),
    radial-gradient(circle at 53% 31%, rgba(251,246,200,.75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 57%, rgba(251,246,200,.8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 90% 82%, rgba(244,244,244,.85) 0 1.3px, rgba(192,192,192,.16) 2.2px, transparent 4px),
    radial-gradient(circle at 59% 63%, rgba(235,235,235,.75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 3% 87%, rgba(251,246,200,.85) 0 1.4px, rgba(238,233,153,.16) 2.4px, transparent 4.5px),
    radial-gradient(circle at 42% 85%, rgba(244,244,244,.8) 0 1.1px, transparent 2px);
}
@keyframes sky-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sky-drift {
  from { transform: translate(-50%, -50%) rotate(-24deg); }
  to   { transform: translate(-50%, -50%) rotate(336deg); }
}
.star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  opacity: 0.12; transform: scale(0.5);
  animation-name: sky-flash; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.star::before, .star::after {
  content: ""; position: absolute; top: 50%; left: 50%; border-radius: 1px; transform: translate(-50%, -50%);
}
.star::before { width: 18px; height: 1px; }
.star::after  { width: 1px; height: 18px; }
.star--silver { background: #f4f4f4; box-shadow: 0 0 6px 1px rgba(220,220,220,.9), 0 0 16px 3px rgba(192,192,192,.45); }
.star--silver::before { background: linear-gradient(90deg, transparent, rgba(230,230,230,.9), transparent); }
.star--silver::after  { background: linear-gradient(180deg, transparent, rgba(230,230,230,.9), transparent); }
.star--gold { background: #fbf6c8; box-shadow: 0 0 6px 1px rgba(238,233,153,.9), 0 0 16px 3px rgba(238,233,153,.4); }
.star--gold::before { background: linear-gradient(90deg, transparent, rgba(238,233,153,.9), transparent); }
.star--gold::after  { background: linear-gradient(180deg, transparent, rgba(238,233,153,.9), transparent); }
@keyframes sky-flash {
  0%, 88%, 100% { opacity: 0.12; transform: scale(0.5) rotate(0deg); }
  92% { opacity: 1; transform: scale(1.5) rotate(20deg); }
  95% { opacity: 0.45; transform: scale(0.9) rotate(35deg); }
}
.st1  { top: 4%;  left: 12%; animation-duration: 9s;    animation-delay: -1s; }
.st2  { top: 7%;  left: 78%; animation-duration: 13s;   animation-delay: -6s; }
.st3  { top: 13%; left: 44%; animation-duration: 11s;   animation-delay: -3s; }
.st4  { top: 19%; left: 91%; animation-duration: 15s;   animation-delay: -9s; }
.st5  { top: 24%; left: 6%;  animation-duration: 12s;   animation-delay: -4s; }
.st6  { top: 31%; left: 63%; animation-duration: 10s;   animation-delay: -7s; }
.st7  { top: 37%; left: 28%; animation-duration: 16s;   animation-delay: -2s; }
.st8  { top: 44%; left: 86%; animation-duration: 9.5s;  animation-delay: -5s; }
.st9  { top: 51%; left: 16%; animation-duration: 14s;   animation-delay: -11s; }
.st10 { top: 57%; left: 52%; animation-duration: 12.5s; animation-delay: -8s; }
.st11 { top: 63%; left: 95%; animation-duration: 10.5s; animation-delay: -3.5s; }
.st12 { top: 69%; left: 36%; animation-duration: 17s;   animation-delay: -12s; }
.st13 { top: 76%; left: 8%;  animation-duration: 11.5s; animation-delay: -6.5s; }
.st14 { top: 82%; left: 70%; animation-duration: 13.5s; animation-delay: -1.5s; }
.st15 { top: 89%; left: 24%; animation-duration: 15.5s; animation-delay: -10s; }
.st16 { top: 95%; left: 58%; animation-duration: 9s;    animation-delay: -4.5s; }

/* ===================== 3. PAGE LAYOUT ===================== */
.page { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: var(--page-gap); padding: clamp(0.6rem, 3vw, 2rem); }
.page-top { display: flex; flex-direction: column; gap: 1rem; }
.section { display: flex; flex-direction: column; gap: var(--section-gap); min-width: 0; }
.section-rule { width: 100%; max-width: 54rem; margin: 0 auto calc(var(--page-gap) - var(--section-gap)); padding-left: 26px; }
.section-rule--full { max-width: none; margin-bottom: 0; padding-left: 0; }
.section-rule__line { display: block; width: 100%; height: 1px; background: var(--rule); }

/* ===================== 4. BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0.55rem 1.3rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-align: center; text-decoration: none; cursor: pointer;
  caret-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, #f4f4f4, #b4b4b4);
  color: var(--on-silver);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 10px 30px -10px rgba(192,192,192,.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 14px 38px -10px rgba(192,192,192,.9); }
.btn--ghost { background: rgba(204,255,255,.06); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(204,255,255,.12); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--block { width: 100%; }

/* ===================== 5. NAV ===================== */
.nav {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.4rem 0.6rem; padding: 0.45rem clamp(0.5rem, 2.5vw, 1.1rem);
  background: rgba(4, 20, 61, 0.78); border: 1px solid var(--line); border-radius: 1.4rem;
  backdrop-filter: blur(14px); box-shadow: 0 12px 40px -24px rgba(192,192,192,.45);
}
.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.brand__mark {
  position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffffff 0 7%, #e6e6e6 9% 36%, #7d8aa8 72%, #1b2f63 100%);
  box-shadow: 0 0 22px rgba(192,192,192,.5);
}
.brand__mark::after { content: ""; position: absolute; inset: 34% -28%; border: 1.5px solid rgba(238,233,153,.8); border-radius: 50%; transform: rotate(-22deg); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--heading); overflow-wrap: anywhere; }
.brand__tag { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; color: var(--dim); overflow-wrap: anywhere; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(204,255,255,.06); cursor: pointer;
}
.nav__toggle-bar { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); }
.nav__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav__links { display: none; order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0.15rem; padding-top: 0.15rem; }
.nav__links.is-open { display: flex; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.7rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim); font-family: var(--display); font-size: 0.92rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.nav__link:hover { color: var(--heading); background: rgba(204,255,255,.08); }
.nav__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav__link.is-active { color: var(--heading); background: rgba(192,192,192,.18); box-shadow: inset 0 0 0 1px rgba(192,192,192,.3); }
@media (min-width: 48rem) {
  .nav { flex-wrap: nowrap; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; order: 0; flex-basis: auto; flex-wrap: nowrap; padding-top: 0; }
}

/* ===================== 6. HERO ===================== */
.hero {
  position: relative; width: 100%; overflow: hidden; isolation: isolate; container-type: inline-size;
  border-radius: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 8%, rgba(192,192,192,.18), transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(238,233,153,.1), transparent 50%),
    linear-gradient(180deg, rgba(9,36,98,.62), rgba(4,20,61,.72));
  backdrop-filter: blur(2px); padding: clamp(1.25rem, 5vw, 3.5rem);
}
.hero__stars {
  position: absolute; inset: 0; z-index: -2; opacity: 0.8;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 62%, rgba(204,255,255,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 37% 28%, rgba(238,233,153,.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 51% 84%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 12%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 48%, rgba(204,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 76%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 30%, rgba(238,233,153,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 15% 88%, rgba(192,192,192,.8) 0 1px, transparent 2px);
}
.hero__orbits { position: absolute; z-index: -1; top: 50%; right: -18%; width: min(44rem, 120%); aspect-ratio: 1; transform: translateY(-50%); opacity: 0.45; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(192,192,192,.4); animation: spin 60s linear infinite; }
.ring::before { content: ""; position: absolute; top: -0.4rem; left: 50%; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--silver); box-shadow: 0 0 18px var(--silver); }
.ring--outer { inset: 0; }
.ring--mid { inset: 16%; border-style: solid; border-color: rgba(238,233,153,.3); animation-duration: 40s; animation-direction: reverse; }
.ring--mid::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.ring--inner { inset: 32%; animation-duration: 26s; }
.ring--inner::before { width: 0.55rem; height: 0.55rem; top: -0.28rem; background: var(--ink); box-shadow: 0 0 14px var(--ink); }
.ring-core { position: absolute; inset: 44%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 6%, #e8e8e8 10% 40%, #5d6f99 80%); box-shadow: 0 0 60px rgba(192,192,192,.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
@container (min-width: 52rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
  .hero__orbits { right: -8%; width: min(40rem, 70%); opacity: 0.7; }
}
.hero__copy { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 8.5vw, 4.6rem); font-size: clamp(2.1rem, 9cqi, 4.6rem);
  line-height: 1.04; letter-spacing: -0.015em; color: var(--heading); overflow-wrap: anywhere;
}
/* second headline line: UPRIGHT (not italic), weight 300, 2pt smaller, silver→gold gradient text */
.hero__accent {
  display: block; font-size: calc(1em - 2pt); font-style: normal; font-weight: 300;
  background: linear-gradient(90deg, #f2f2f2, #c0c0c0 45%, #eee999);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { margin: 0; max-width: 36rem; color: var(--ink); font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.7; }
.hero__handle { display: inline-flex; align-self: flex-start; max-width: 100%; font-family: var(--mono); font-size: 0.82rem; color: var(--dim); overflow-wrap: anywhere; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; padding-top: 0.25rem; }
.hero__aside { min-width: 0; display: flex; justify-content: center; }
.status-pill {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 0.55rem; max-width: 100%;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem; border-radius: 999px;
  border: 1px solid rgba(238,233,153,.4); background: rgba(238,233,153,.08); color: var(--gold);
  font-family: var(--sans); font-size: calc(0.78rem - 1pt); font-weight: 400; letter-spacing: 0.03em; overflow-wrap: anywhere;
}
.status-pill__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(238,233,153,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238,233,153,.6); } 100% { box-shadow: 0 0 0 0.6rem rgba(238,233,153,0); } }

/* ===================== 7. SIGN-IN CARD ===================== */
.signin {
  width: 100%; max-width: 28rem; display: flex; flex-direction: column; gap: 1rem; margin: 0;
  padding: clamp(1rem, 4vw, 1.75rem); border-radius: 1.6rem; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16,52,126,.85), rgba(4,20,61,.92)); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -40px rgba(192,192,192,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.signin__head { display: flex; flex-direction: column; gap: 0.35rem; }
.signin__title { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.005em; color: var(--heading); }
.signin__body { margin: 0; color: var(--ink); font-size: 0.94rem; line-height: 1.6; }
.host { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; padding: 0.65rem 0.8rem; border-radius: 1rem; border: 1px solid rgba(238,233,153,.28); background: linear-gradient(90deg, rgba(238,233,153,.08), rgba(192,192,192,.04)); }
.host__orb { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 7%, #e6e6e6 12% 40%, #5d6f99 85%); box-shadow: 0 0 16px rgba(192,192,192,.5); }
.host__orb::after { content: ""; position: absolute; inset: 36% -30%; border: 1.5px solid rgba(238,233,153,.85); border-radius: 50%; transform: rotate(-20deg); }
.host__text { display: flex; flex-direction: column; flex: 1 1 8rem; min-width: 0; }
.host__label { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.host__name { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.host__meta { display: inline-flex; align-items: center; min-height: 1.8rem; padding: 0 0.7rem; border-radius: 999px; border: 1px solid rgba(238,233,153,.35); background: rgba(238,233,153,.1); color: var(--gold); font-family: var(--sans); font-size: 0.72rem; font-weight: 600; overflow-wrap: anywhere; }
.providers { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-family: var(--display); font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip.is-active { color: var(--heading); border-color: var(--silver); background: rgba(192,192,192,.18); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.field__wrap { display: flex; align-items: center; min-height: 50px; padding: 0 0.9rem; border-radius: 0.95rem; border: 1px solid var(--line-strong); background: rgba(4,20,61,.85); }
.field__wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(238,233,153,.22), 0 0 26px rgba(238,233,153,.35); }
.field__prefix { flex: none; color: var(--silver); font-family: var(--mono); padding-right: 0.25rem; }
.field__input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--heading); font-family: var(--mono); font-size: 1rem; outline: none; }
.field__input:focus, .field__input:focus-visible { outline: none; box-shadow: none; }
.field__input::placeholder { color: var(--dim); }
.field__hint { font-family: var(--sans); font-size: 0.76rem; line-height: 1.45; color: var(--dim); overflow-wrap: anywhere; }
.signin__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.78rem; color: var(--dim); }
.signin__note { min-width: 0; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ===================== 8. STATS ===================== */
.stats { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; padding: 1rem 1.1rem; border-radius: 1.2rem; border: 1px solid var(--line); background: rgba(9,36,98,.55); backdrop-filter: blur(8px); }
.stat__value { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 5.5vw, 2.6rem); letter-spacing: -0.01em; background: linear-gradient(90deg, #eeffff, #c0c0c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__blank { display: flex; align-items: center; min-height: clamp(2.1rem, 6.3vw, 3rem); }
.stat__blank-line { display: block; width: 2.5rem; height: 2px; border-radius: 2px; background: rgba(204,255,255,.18); }
.stat__label { font-family: var(--display); font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }
.stat__hint { font-family: var(--sans); font-size: 0.74rem; color: var(--dim); overflow-wrap: anywhere; }

/* ===================== 9. SECTION HEADING + BRIGHT STAR ===================== */
.heading-wrap { position: relative; width: 100%; min-width: 0; }
.heading { width: 100%; max-width: 46rem; display: flex; flex-direction: column; gap: 0.6rem; }
.heading__eyebrow { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.heading__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--heading); overflow-wrap: anywhere; }
.heading__body { margin: 0; color: var(--ink); font-size: clamp(0.98rem, 2.2vw, 1.06rem); line-height: 1.7; }
.heading__line { display: block; }
.beacon {
  position: absolute; top: 0.3rem; right: 12%; width: 7px; height: 7px; border-radius: 50%; background: #fffef2;
  box-shadow: 0 0 4px 2px rgba(255,255,255,.95), 0 0 14px 5px rgba(251,246,200,.65), 0 0 34px 12px rgba(238,233,153,.28), 0 0 60px 22px rgba(192,192,192,.14);
  pointer-events: none; animation: shimmer 7s ease-in-out infinite;
}
.beacon::before, .beacon::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 1px; }
.beacon::before { width: 64px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(255,252,225,.95), transparent); }
.beacon::after  { width: 1.5px; height: 40px; background: linear-gradient(180deg, transparent, rgba(255,252,225,.95), transparent); }
@media (min-width: 48rem) { .beacon { right: auto; left: calc(50% - 3.5px); } }
@keyframes shimmer { 0%, 100% { opacity: 0.88; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }

/* ===================== 10. SPACE TILES ===================== */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.accent-silver { --tile-hue: #c0c0c0; --frame-hue: #c0c0c0; }
.accent-gold   { --tile-hue: #eee999; --frame-hue: #eee999; }
.accent-rose   { --tile-hue: #f3a6c8; --frame-hue: #f3a6c8; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0;
  padding: clamp(1rem, 3.5vw, 1.35rem); border-radius: 1.4rem; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(16,52,126,.88), rgba(11,42,108,.88)); backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease;
}
/* Space icon blob: a full-width card image. */
.tile__img { display: block; width: calc(100% + 2 * clamp(1rem, 3.5vw, 1.35rem)); margin: calc(-1 * clamp(1rem, 3.5vw, 1.35rem)) calc(-1 * clamp(1rem, 3.5vw, 1.35rem)) 0; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile::before { content: ""; position: absolute; top: -40%; right: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--tile-hue), transparent 65%); opacity: 0.2; pointer-events: none; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tile__head { position: relative; display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.tile__avatar { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), var(--tile-hue) 45%, #0b2a6c 100%); color: var(--on-silver); font-family: var(--display); font-weight: 700; font-size: 1.25rem; box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 0 24px -4px var(--tile-hue); }
.tile__ident { display: flex; flex-direction: column; min-width: 0; }
.tile__name { margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.tile__name a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tile__name a:hover { text-decoration: underline; }
.tile__handle { font-family: var(--mono); font-size: 0.76rem; color: var(--dim); overflow-wrap: anywhere; }
.tile__desc { position: relative; margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(204,255,255,.08); color: var(--ink); font-family: var(--sans); font-size: 0.74rem; font-weight: 500; }
.tile__foot { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.78rem; color: var(--dim); }
.tile__count { min-width: 0; }
.tile__online { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.8rem; padding: 0 0.7rem; border-radius: 999px; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.badge--open    { color: var(--gold); background: rgba(238,233,153,.1); border: 1px solid rgba(238,233,153,.35); }
.badge--members { color: #e6e6e6;     background: rgba(192,192,192,.12); border: 1px solid rgba(192,192,192,.4); }
.badge--invite  { color: var(--rose); background: rgba(243,166,200,.1); border: 1px solid rgba(243,166,200,.35); }

/* ===================== 11. CONTENT FRAME ===================== */
.frame {
  --frame-hue: #c0c0c0;
  width: 100%; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,52,126,.9), rgba(4,20,61,.95));
  box-shadow: 0 24px 60px -36px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06);
}
.frame.accent-gold { --frame-hue: #eee999; }
.frame.accent-rose { --frame-hue: #f3a6c8; }
.frame__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.65rem; padding: 0.7rem clamp(0.85rem, 3vw, 1.15rem); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(192,192,192,.1), transparent); }
.frame__port { flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--frame-hue); box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 0 12px var(--frame-hue); }
.frame__kind { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--frame-hue); }
.frame__title { flex: 1 1 8rem; min-width: 0; font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.frame__meta { font-family: var(--sans); font-size: 0.76rem; color: var(--dim); overflow-wrap: anywhere; }
.frame__body { min-width: 0; padding: clamp(0.85rem, 3vw, 1.25rem); overflow-wrap: anywhere; }
.post { display: flex; gap: 0.8rem; min-width: 0; }
.post--divider { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.post__avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 6%, #eee999 14% 45%, #5c5a24 100%); }
.post__avatar--alt { background: radial-gradient(circle at 35% 30%, #ffffff 0 6%, #c0c0c0 14% 45%, #3b4a70 100%); }
.post__main { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.post__who { display: flex; flex-wrap: wrap; gap: 0 0.45rem; align-items: baseline; }
.post__name { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--heading); }
.post__handle { font-family: var(--mono); font-size: 0.76rem; color: var(--dim); overflow-wrap: anywhere; }
.post__text { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.post__meta { font-family: var(--sans); font-size: 0.74rem; color: var(--dim); }
.peek { display: flex; flex-direction: column; gap: clamp(1.25rem, 4vw, 2rem); min-width: 0; }

/* ===================== 13. RADIO PLAYER ===================== */
.rd {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; min-width: 0; container-type: inline-size;
  padding: clamp(1rem, 4vw, 1.75rem); border-radius: 1.6rem; border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(238,233,153,.12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(192,192,192,.14), transparent 55%),
    linear-gradient(160deg, rgba(18,58,140,.92), rgba(6,29,85,.96));
  box-shadow: 0 30px 80px -42px rgba(192,192,192,.5), inset 0 1px 0 rgba(255,255,255,.07);
  font-family: var(--body); color: var(--ink);
}
.rd--off { background: radial-gradient(ellipse at 0% 0%, rgba(255,64,64,.08), transparent 50%), linear-gradient(160deg, rgba(14,44,108,.92), rgba(5,24,70,.96)); }
.rd__inner { display: grid; gap: clamp(1.25rem, 4vw, 2rem); align-items: start; }
@container (min-width: 44rem) { .rd__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.rd__deck { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.rd__body { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.rd__body[hidden] { display: none; }
.rd__top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; min-width: 0; }
.rd__disc {
  position: relative; flex: none; width: clamp(4.5rem, 18cqi, 6.5rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; appearance: none;
  background: transparent;
  box-shadow: 0 0 0 4px rgba(255,255,255,.05), 0 0 34px rgba(192,192,192,.45);
}
/* Only the face spins; the play/pause icon sits still on top of it. */
.rd__disc-face {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 35% 30%, #ffffff 0 4%, #dcdcdc 10% 34%, #6a7ba3 70%, #13306f 100%);
  animation: spin 9s linear infinite; animation-play-state: paused;
}
.rd__disc > .rd__icon-play, .rd__disc > .rd__icon-pause { position: absolute; z-index: 1; inset: 0; margin: auto; }
/* The pause icon is a flex box that stretches to fill the disc — center its bars. */
.rd__disc > .rd__icon-pause { align-items: center; justify-content: center; }
.rd__disc > .rd__icon-play { transform: translateX(0.125rem); }
.rd__disc:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rd__disc::after { content: ""; position: absolute; inset: 38% -22%; border: 1.5px solid rgba(238,233,153,.75); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.rd__disc--on .rd__disc-face { animation-play-state: running; }
/* While playing: brighter white planet with a gold ring. */
.rd__disc--playing {
  box-shadow: 0 0 0 3px rgba(238,233,153,.9), 0 0 0 7px rgba(238,233,153,.25), 0 0 48px rgba(238,233,153,.55);
}
.rd__disc--playing .rd__disc-face {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.1) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 35% 30%, #ffffff 0 12%, #f6f6f6 18% 48%, #a9b8d8 78%, #2a4a9a 100%);
}
.rd__disc--off { filter: grayscale(.7) brightness(.65); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.rd__disc--off::after { border-color: rgba(192,192,192,.35); }
.rd__ident { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 12rem; min-width: 0; }
.rd__station { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 6.5cqi, 2.3rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--heading); overflow-wrap: anywhere; }
.rd__url { font-family: var(--mono); font-size: 0.82rem; color: var(--dim); overflow-wrap: anywhere; }
.rd__now { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; padding: 1.05rem 1.2rem; border-radius: 1.1rem; border: 1px solid var(--line); border-left: 3px solid rgba(238,233,153,.55); background: rgba(5,26,74,.55); }
.rd__now-label { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.rd__now-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 4.5cqi, 1.75rem); line-height: 1.25; letter-spacing: -0.005em; color: var(--heading); overflow-wrap: anywhere; }
.rd__now-artist { font-size: 1.05rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.rd__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.rd__icon-play { display: block; width: 0; height: 0; margin-left: 0.25rem; border-top: 0.65rem solid transparent; border-bottom: 0.65rem solid transparent; border-left: 1rem solid var(--on-silver); }
.rd__icon-pause { display: flex; gap: 0.3rem; }
.rd__icon-pause-bar { display: block; width: 0.32rem; height: 1.2rem; border-radius: 2px; background: var(--on-silver); }
.rd__mute { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(204,255,255,.06); color: var(--ink); font-family: var(--display); font-size: 0.94rem; font-weight: 400; cursor: pointer; }
.rd__mute:hover { background: rgba(204,255,255,.12); }
.rd__mute--on { border-color: rgba(238,233,153,.45); color: var(--gold); }
.rd__eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 1.6rem; }
.rd__bar { display: block; width: 4px; height: 25%; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--silver)); opacity: 0.55; transform-origin: bottom; }
.rd__eq--on .rd__bar { opacity: 1; animation: rd-eq .9s ease-in-out infinite alternate; }
.rd__eq--flat .rd__bar { height: 10%; opacity: 0.3; background: var(--dim); }
.rd__bar:nth-child(2) { animation-delay: -0.3s; }
.rd__bar:nth-child(3) { animation-delay: -0.6s; }
.rd__bar:nth-child(4) { animation-delay: -0.15s; }
.rd__bar:nth-child(5) { animation-delay: -0.45s; }
@keyframes rd-eq { 0% { height: 20%; } 50% { height: 85%; } 100% { height: 45%; } }
.rd__listeners { font-family: var(--sans); font-size: 0.8rem; color: var(--dim); }
.rd__listeners b { color: var(--gold); font-weight: 700; }
.rd__history { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 1rem 1.1rem; border-radius: 1.2rem; border: 1px solid var(--line); background: rgba(5,26,74,.5); }
.rd__history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; }
.rd__history-title { margin: 0; font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--heading); }
.rd__history-count { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.rd__history-list { margin: 0; padding: 0 0 0 0.9rem; list-style: none; display: flex; flex-direction: column; border-left: 1px dashed rgba(192,192,192,.3); }
.rd__entry { position: relative; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.1rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(204,255,255,.07); }
.rd__entry:last-child { border-bottom: 0; }
.rd__entry::before { content: ""; position: absolute; left: -1.18rem; top: 0.95rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #6a7ba3; box-shadow: 0 0 0 3px rgba(8,37,103,.9); }
.rd__entry--latest::before { background: var(--silver); box-shadow: 0 0 0 3px rgba(8,37,103,.9), 0 0 10px rgba(192,192,192,.7); }
.rd__entry-time { grid-row: span 2; padding-top: 0.15rem; font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.rd__entry-title { min-width: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--heading); overflow-wrap: anywhere; }
.rd__entry-artist { min-width: 0; font-family: var(--sans); font-size: 0.8rem; color: var(--dim); overflow-wrap: anywhere; }
.rd__history-empty { margin: 0; font-size: 0.9rem; font-style: italic; color: var(--dim); }
.rd__history-note { font-family: var(--sans); font-size: 0.74rem; color: var(--dim); overflow-wrap: anywhere; }

/* ===================== 14. ASTROCOSMS: MEDIA + PLAYLIST ===================== */
.am { position: relative; width: 100%; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; padding: 26px 26px 0; }
.am__holder { position: relative; width: 100%; margin: 0 auto; animation: am-appear 1.4s ease-out both; }
@keyframes am-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.am__stage {
  position: relative; width: 100%; overflow: hidden; isolation: isolate; border-radius: 1.6rem; border: 1px solid rgba(192,192,192,.4);
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 16%, rgba(238,233,153,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 74%, rgba(204,255,255,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 84%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 0%, rgba(192,192,192,.16), transparent 60%),
    #051a4a;
  box-shadow: 0 30px 80px -42px rgba(192,192,192,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.am--default .am__stage { aspect-ratio: 4 / 3; }
.am--landscape .am__stage { aspect-ratio: 16 / 10; }
.am--square { max-width: 34rem; }   .am--square .am__stage { aspect-ratio: 1 / 1; }
.am--portrait { max-width: 28rem; } .am--portrait .am__stage { aspect-ratio: 4 / 5; }
.am--tall { max-width: 26rem; }     .am--tall .am__stage { aspect-ratio: 3 / 4; }
.am--wide .am__stage { aspect-ratio: 16 / 10; }
.am--audio { max-width: 34rem; }    .am--audio .am__stage { aspect-ratio: 1 / 1; }
@container (min-width: 34rem) {
  .am--default .am__stage { aspect-ratio: 16 / 10; }
  .am--wide .am__stage { aspect-ratio: 2 / 1; }
  .am--audio .am__stage { aspect-ratio: 4 / 3; }
}
.am__media { position: absolute; inset: 0; display: grid; place-items: center; }
.am__media > img, .am__media > video { display: block; width: 100%; height: 100%; max-width: 100%; border: 0; }
.am--cover .am__media > * { object-fit: cover; }
.am--contain .am__media > * { object-fit: contain; }
.am__plate { position: absolute; inset: 0; display: grid; place-items: center; }
.am__plate--image { background: radial-gradient(circle at 32% 38%, rgba(238,233,153,.55), transparent 30%), radial-gradient(ellipse at 72% 70%, rgba(204,255,255,.32), transparent 50%), linear-gradient(160deg, #1a4aa8, #051a4a); }
.am__plate--video { background: radial-gradient(ellipse at 70% 30%, rgba(192,192,192,.45), transparent 45%), radial-gradient(ellipse at 20% 80%, rgba(124,92,220,.35), transparent 50%), linear-gradient(200deg, #0e3484, #04143d); }
.am__plate--music { background: radial-gradient(circle at 50% 45%, rgba(238,233,153,.25) 0 16%, transparent 17%), repeating-radial-gradient(circle at 50% 45%, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), radial-gradient(circle at 50% 45%, rgba(204,255,255,.25), transparent 60%), linear-gradient(140deg, #123a8c, #061d55); }
.am__plate--playlist { background: radial-gradient(ellipse at 25% 25%, rgba(243,166,200,.3), transparent 45%), radial-gradient(ellipse at 80% 75%, rgba(238,233,153,.3), transparent 45%), linear-gradient(170deg, #15409a, #051a4a); }
.am__glyph { position: relative; display: grid; place-items: center; width: clamp(3.25rem, 14cqi, 5.5rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(238,255,255,.45); background: rgba(5,26,74,.45); backdrop-filter: blur(6px); color: var(--heading); font-size: clamp(1.3rem, 5.5cqi, 2.3rem); line-height: 1; box-shadow: 0 0 40px rgba(192,192,192,.35); }
.am__author {
  position: absolute; z-index: 3; top: 26px; left: 26px; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; overflow: hidden; border-radius: 50%;
  border: 2px solid rgba(238,255,255,.9); background: radial-gradient(circle at 35% 30%, #ffffff 0 6%, #c0c0c0 14% 45%, #3b4a70 100%);
  color: var(--on-silver); font-family: var(--display); font-size: 1.2rem; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 5px #030f2a, 0 0 22px rgba(192,192,192,.55); transition: box-shadow .2s ease, transform .2s ease;
}
.am__author:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 5px #030f2a, 0 0 30px rgba(238,233,153,.65); }
.am__author:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.am__author img { display: block; width: 100%; height: 100%; object-fit: cover; }
.am__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pl { width: 100%; min-width: 0; container-type: inline-size; }
.pl__rule { display: block; width: 100%; height: 1px; background: var(--rule); margin: calc(var(--page-gap) - var(--astro-gap)) 0 0; }
.pl__pile { position: relative; width: 100%; margin: 16px 0 0; }
.pl__back1, .pl__back2 { position: absolute; left: 50%; transform: translateX(-50%); height: 24px; border-radius: 1.1rem 1.1rem 0 0; border: 1px solid rgba(192,192,192,.3); border-bottom: 0; pointer-events: none; }
.pl__back1 { top: -8px; width: 94%; background: linear-gradient(180deg, rgba(16,52,126,.95), rgba(9,36,98,.95)); }
.pl__back2 { top: -16px; width: 86%; background: linear-gradient(180deg, rgba(11,42,108,.8), rgba(4,20,61,.8)); border-color: rgba(192,192,192,.18); }
.pl__thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border-radius: 1.4rem; border: 1px solid rgba(192,192,192,.42); background: #04143d; box-shadow: 0 30px 80px -42px rgba(192,192,192,.55), inset 0 1px 0 rgba(255,255,255,.07); }
.pl__media { position: absolute; inset: 0; }
.pl__media > * { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; border: 0; }
.pl__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(4,20,61,.45)); pointer-events: none; }
.pl__play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(56px, 16cqi, 76px); height: clamp(56px, 16cqi, 76px); padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: linear-gradient(135deg, rgba(244,244,244,.92), rgba(180,180,180,.92)); box-shadow: 0 0 0 6px rgba(4,20,61,.35), 0 0 34px rgba(192,192,192,.6); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.pl__play:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 6px rgba(4,20,61,.35), 0 0 44px rgba(238,233,153,.6); }
.pl__play:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pl__tri { display: block; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #061a4a; }

/* ===================== 15. FOOTER ===================== */
.footer { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 1rem; color: var(--ink); }
.footer__domain { margin: 0; width: 100%; text-align: center; font-family: "Figtree", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 20px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; color: #ccffff; overflow-wrap: anywhere; }
.footer__domain-link, .footer__domain-link:visited {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; padding: 0 0.6rem;
  border-radius: 999px; color: #ccffff; -webkit-text-fill-color: #ccffff; text-decoration: none;
  transition: color .2s ease, -webkit-text-fill-color .2s ease, text-shadow .2s ease;
}
.footer__domain-link:hover, .footer__domain-link:active {
  color: #eee999; -webkit-text-fill-color: #eee999;
  text-decoration: underline; text-decoration-color: #eee999; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-shadow: 0 0 14px rgba(238,233,153,.45);
}
.footer__domain-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.footer__bar { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding: 0 0 0.5rem; }
.footer__line { margin: 0; min-width: 0; flex: 1 1 18rem; font-family: var(--sans); font-size: calc(0.78rem - 2pt); line-height: 1.7; color: var(--dim); overflow-wrap: anywhere; }
.footer__word { font-family: var(--display); font-weight: 700; font-size: calc(1.1rem - 3pt); color: var(--heading); }
.footer__dash { padding: 0 0.45em; color: var(--silver); }
.footer__nav { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.footer__item { display: inline-flex; align-items: center; }
.footer__sep { padding: 0 0.6rem; font-family: var(--sans); font-size: calc(0.84rem - 2pt); line-height: 1; color: rgba(204,255,255,.4); user-select: none; }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); font-family: var(--sans); font-size: calc(0.84rem - 2pt); font-weight: 500; text-decoration: none; }
.footer__link:hover { color: var(--heading); }

/* ===================== 16. REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  .sky-swirl, .sky-arms, .ring, .status-pill__dot, .beacon,
  .rd__disc-face, .rd__capsule-planet-spin, .rd__eq--on .rd__bar, .am__holder { animation: none; }
  .star { animation: none; opacity: 0.55; transform: none; }
  .beacon { opacity: 1; }
  .btn, .tile, .rd__disc, .pl__play, .am__author, .am__feed, .footer__domain-link { transition: none; }
  .btn--primary:hover, .tile:hover { transform: none; }
  .pl__play:hover, .am__author:hover { transform: translate(-50%, -50%); }
  .am__feed:hover { transform: translate(50%, -50%); }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  font-family: var(--sans); font-size: 0.84rem;
}
.skip-link:focus-visible {
  position: fixed; left: 8px; top: 8px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #f4f4f4, #b4b4b4); color: var(--on-silver);
}

/* ===================== 17. OWNER UPDATES ===================== */
.signin__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; gap: 0 1.1rem; }
.signin__links .text-link { font-size: calc(0.8rem - 1pt); text-align: center; }

.am__feed {
  position: absolute; z-index: 3; top: 26px; right: 26px; transform: translate(50%, -50%);
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; overflow: hidden; border-radius: 50%;
  border: 2px solid rgba(238,255,255,.9); background: radial-gradient(circle at 35% 30%, #ffffff 0 6%, #eee999 14% 45%, #5c5a24 100%);
  color: var(--on-silver); font-family: var(--display); font-size: 1.2rem; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 5px #030f2a, 0 0 22px rgba(192,192,192,.55); transition: box-shadow .2s ease, transform .2s ease;
}
.am__feed:hover { transform: translate(50%, -50%) scale(1.06); box-shadow: 0 0 0 5px #030f2a, 0 0 30px rgba(238,233,153,.65); }
.am__feed:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.am__feed img { display: block; width: 100%; height: 100%; object-fit: cover; }

.am__watch { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; min-height: 32px; padding: 0.2rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(4,20,61,.85); backdrop-filter: blur(8px); color: var(--gold); font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-decoration: none; }
.am__watch:hover { background: rgba(4,20,61,.95); }

.pl__title { display: flex; align-items: center; justify-content: flex-start; min-height: 44px; margin: 0 0 1.1rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5.5vw, 2.4rem); letter-spacing: -0.01em; color: var(--heading); text-decoration: none; text-align: left; }
.pl__title:hover { color: var(--gold); }
.pl__title:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Waves embed: a live page, so it needs real height rather than a 16:9 box. */
.pl__thumb--wave { aspect-ratio: auto; height: clamp(24rem, 70vh, 36rem); background: transparent; }
.pl__thumb--wave iframe { background: transparent; }

/* Full-bleed section rule (viewport width despite page padding). */
.section-rule--bleed { max-width: none; padding-left: 0; position: relative; left: 50%; transform: translateX(-50%); width: 100vw; }

.rd__status-note { margin: 0; font-family: var(--mono); font-size: 0.74rem; line-height: 1.5; color: var(--dim); overflow-wrap: anywhere; }

/* Observe: the two live feeds side by side. */
.peek__row { display: grid; gap: clamp(1.25rem, 4vw, 2rem); min-width: 0; }
@media (min-width: 48rem) { .peek__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.frame__title a { color: inherit; text-decoration: none; }
.frame__title a:hover { color: var(--gold); }

/* Floating player capsule (visible while the stream plays). */
.rd__capsule { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: 0.9rem; width: min(24rem, calc(100vw - 1.5rem)); display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem 0.55rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8,34,92,.92); backdrop-filter: blur(14px); box-shadow: 0 18px 50px -18px rgba(0,0,0,.85), 0 0 30px rgba(238,233,153,.22); }
/* Capsule planet: the play/pause button, with only its face spinning. */
.rd__capsule-planet { position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; box-shadow: 0 0 14px rgba(192,192,192,.55); }
.rd__capsule-planet:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rd__capsule-planet-spin { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 8%, #f0f0f0 14% 42%, #93a5c8 75%, #1b2f63 100%); animation: spin 6s linear infinite; animation-play-state: paused; }
.rd__capsule-planet--on .rd__capsule-planet-spin { animation-play-state: running; }
.rd__capsule-planet > .rd__icon-play, .rd__capsule-planet > .rd__icon-pause { position: absolute; z-index: 1; inset: 0; margin: auto; }
.rd__capsule-planet > .rd__icon-pause { align-items: center; justify-content: center; }
.rd__capsule-planet .rd__icon-play { border-top-width: 0.4rem; border-bottom-width: 0.4rem; border-left-width: 0.62rem; transform: translateX(0.075rem); }
.rd__capsule-planet .rd__icon-pause { gap: 0.16rem; }
.rd__capsule-planet .rd__icon-pause-bar { width: 0.18rem; height: 0.62rem; background: var(--on-silver); }
.rd__capsule-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rd__capsule-title { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd__capsule-artist { font-family: var(--sans); font-size: 0.76rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd__capsule-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 34px; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(204,255,255,.08); color: var(--ink); font-family: var(--sans); font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.rd__capsule-btn:hover { background: rgba(204,255,255,.14); }
.rd__capsule-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rd__capsule-btn--icon { padding: 0; }

/* Speaker icon in the capsule: waves hidden and slash shown while muted. */
.rd__speaker { display: block; color: var(--ink); }
.rd__speaker-slash { display: none; }
.rd__capsule-btn--muted .rd__speaker-waves { display: none; }
.rd__capsule-btn--muted .rd__speaker-slash { display: block; }
.rd__capsule-btn--muted { color: var(--gold); border-color: rgba(238,233,153,.45); }
.rd__capsule-btn--muted .rd__speaker { color: var(--gold); }

/* Capsule exit: small ✕ pinned to the capsule's top-right corner. */
.rd__capsule-exit { position: absolute; top: -7px; right: -4px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: #0b2a6c; color: var(--dim); font-size: 0.58rem; line-height: 1; cursor: pointer; }
.rd__capsule-exit:hover { color: var(--heading); border-color: var(--gold); }
.rd__capsule-exit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.rd__home { min-height: 36px; padding: 0.3rem 1.1rem; font-size: 0.88rem; }

.heading__title a { color: inherit; text-decoration: none; }
.heading__title a:hover { color: var(--gold); }
.heading__title a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ===================== 18. OBSERVE: LIVE POSTS ===================== */
img.post__avatar { object-fit: cover; display: block; }
.post__name { text-decoration: none; }
.post__name:hover { text-decoration: underline; }
.post__link { color: var(--gold); text-decoration: none; }
.post__link:hover { text-decoration: underline; }

/* Post previews in the Observe feeds. */
.post__preview-img { display: block; max-width: 100%; width: auto; max-height: 16rem; margin-top: 0.5rem; border-radius: 0.9rem; border: 1px solid var(--line); }
.post__preview-link { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; padding: 0.6rem 0.75rem; border-radius: 0.9rem; border: 1px solid var(--line); background: rgba(5,26,74,.45); text-decoration: none; }
.post__preview-link:hover { border-color: var(--line-strong); }
.post__preview-link > img { flex: none; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 0.5rem; }
.post__preview-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.post__preview-title { font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--heading); overflow-wrap: anywhere; }
.post__preview-desc { font-family: var(--sans); font-size: 0.76rem; line-height: 1.5; color: var(--dim); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* A tile that is itself a link. */
a.tile--link { text-decoration: none; color: inherit; display: flex; }
a.tile--link:hover { text-decoration: none; }