/* Hallmark · genre: atmospheric · macrostructure: Marquee Hero · theme: custom (vibe: "deep space, black and white only")
 * palette: pure black #000 + pure white #fff; hierarchy comes from white at lower opacity, never a third colour
 * display: Syne 800 · body: Space Grotesk · labels: Space Mono · axes: dark / wide-geometric-sans / neutral
 * enrichment: E5 hand-built SVG apparatus (Orion star chart + leader callouts) · nav: N9 Edge-aligned minimal · footer: Ft5 Statement
 * notes: UI prose is lowercase via CSS; YouTube titles and posts keep the creator's own casing (.ugc)
 */

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --color-paper: #000;
  --color-paper-2: rgb(255 255 255 / 0.045);
  --color-paper-3: rgb(255 255 255 / 0.09);
  --color-ink: #fff;
  --color-ink-2: rgb(255 255 255 / 0.82);
  --color-muted: rgb(255 255 255 / 0.6);
  --color-rule: rgb(255 255 255 / 0.12);
  --color-rule-2: rgb(255 255 255 / 0.24);
  --color-accent: #fff;
  --color-accent-hover: rgb(255 255 255 / 0.85);
  --color-accent-ink: #000;
  --color-accent-2: #fff;
  --color-glow: rgb(255 255 255 / 0.28);
  --color-glow-warm: rgb(255 255 255 / 0.28);
  --color-glow-2: rgb(255 255 255 / 0.1);
  --color-paper-emit: rgb(255 255 255 / 0.03);
  --color-star: #fff;
  --color-star-cool: #fff;
  --color-star-warm: #fff;
  --color-bad: #fff;
  --color-good: #fff;
  --color-focus: #fff;
  --color-nebula-1: transparent;
  --color-nebula-2: transparent;
  --rule-blueprint: rgb(255 255 255 / 0.05);
  --rule-hair: 1px;

  --font-display: "Syne", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-display: clamp(1.75rem, 3.9vw + 0.6rem, 3.9rem);
  --text-2xl: clamp(1.35rem, 1.9vw + 0.8rem, 2.15rem);
  --text-xl: clamp(1.05rem, 0.7vw + 0.9rem, 1.35rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-label: 11px;
  --tracking-micro: 0.10em;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 112px;
  --page-gutter: clamp(16px, 4vw, 48px);
  --page-max: 1200px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.25, 0.6, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 600ms;
  --dur-pulse: 4s;

  color-scheme: dark;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-paper);
  color: var(--color-ink-2);
  font: 400 var(--text-base)/1.6 var(--font-body);
  font-variant-numeric: tabular-nums;
  text-transform: lowercase; /* prose register; labels override to uppercase */
  -webkit-font-smoothing: antialiased;
}
/* a still, sparse star field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, var(--color-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, var(--color-star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 72%, var(--color-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 44%, var(--color-star-cool) 50%, transparent 51%),
    radial-gradient(1px 1px at 89% 63%, var(--color-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 91%, var(--color-star-cool) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 51% 27%, var(--color-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 54%, var(--color-star) 50%, transparent 51%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 300px 300px, 460px 460px, 350px 350px, 610px 610px, 270px 270px;
  opacity: 0.45;
}
input, textarea, select, .ugc { text-transform: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a, button, summary, select, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: var(--space-xl); }
h1, h2, h3 { color: var(--color-ink); font-weight: 400; margin: 0; overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-md); top: -100px; z-index: 50;
  padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink);
  border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus-visible { top: var(--space-md); }

.wrap {
  width: 100%; max-width: var(--page-max); margin-inline: auto;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left)) max(var(--page-gutter), env(safe-area-inset-right));
}

/* mono labels: the only uppercase surface */
.eyebrow, .label, .callout, .meter__label, .stat__label, .chip {
  font-family: var(--font-label);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow { color: var(--color-muted); margin: 0 0 var(--space-sm); }

/* ============================================================
   Nav · N9 edge-aligned minimal
   ============================================================ */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-2xs);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule-2); }
.nav-links a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.nav-links .nav-yt { color: var(--color-accent); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--space-xs);
    font: inherit; text-transform: lowercase; color: var(--color-ink);
    background: transparent; border: var(--rule-hair) solid var(--color-rule-2);
    border-radius: var(--radius-pill); padding: 8px 16px; min-height: 40px; cursor: pointer;
  }
  .nav-toggle:hover { border-color: var(--color-ink-2); }
  .nav-toggle:active { transform: translateY(1px); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-md); padding: var(--space-xs) var(--space-md);
    box-shadow: 0 24px 60px -28px oklch(0% 0 0 / 0.7);
  }
  .nav-links[data-open="false"] { display: none; }
  .nav-links a { display: block; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ============================================================
   Buttons (all states)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 46px; padding: 0 22px;
  font: 500 var(--text-base)/1 var(--font-body); text-transform: lowercase; white-space: nowrap;
  border-radius: var(--radius-pill); border: var(--rule-hair) solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn-ghost:hover { border-color: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: default; transform: none; }
.btn[data-state="loading"] { opacity: 0.75; cursor: progress; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid var(--color-rule-2); padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.text-link:hover { border-bottom-color: var(--color-accent); color: var(--color-accent); }

/* ============================================================
   Hero · Marquee with the Orion apparatus
   ============================================================ */
.hero {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(var(--rule-blueprint) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(55% 50% at 74% 42%, var(--color-paper-emit) 0%, transparent 65%);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: center;
  gap: var(--space-2xl);
  min-height: min(84vh, 760px);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 19ch;
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent-2);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: ""; position: absolute; left: 0.04em; right: 0.04em; bottom: 0.06em;
  height: 1px; background: var(--color-accent-2);
  transform-origin: left;
  animation: verb-underline 320ms var(--ease-soft) 900ms backwards;
}
@keyframes verb-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lede { margin-top: var(--space-lg); max-width: 44ch; font-size: var(--text-lg); color: var(--color-ink-2); }

/* the apparatus: a star chart of orion */
.chart { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--color-rule); stroke-width: 1; fill: none; }
.chart .figure-line { stroke: var(--color-rule-2); stroke-width: 1; fill: none; }
.chart .star { fill: var(--color-star); }
.chart .star--warm { fill: var(--color-star-warm); }
.chart .star--cool { fill: var(--color-star-cool); }
.chart .halo { fill: var(--color-glow-2); }
.chart .halo--warm { fill: var(--color-glow-warm); opacity: 0.55; animation: star-pulse var(--dur-pulse) ease-in-out infinite; }
.chart .nebula { fill: rgb(255 255 255 / 0.12); }
.chart .leader { stroke: var(--color-rule-2); stroke-width: 1; }
.chart text {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; fill: var(--color-muted);
}
.chart .greek { text-transform: none; font-family: var(--font-body); }
[role="alert"]:not(:empty)::before { content: "! "; font-weight: 600; }
@keyframes star-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.4; } }

/* ============================================================
   Meter strip · views of the latest uploads
   ============================================================ */
.meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.meter__label { color: var(--color-muted); white-space: nowrap; margin: 0; }
.meter__label strong { color: var(--color-ink); font-weight: 500; }
.meter__bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 30px; min-width: 0; }
.meter__bars span {
  flex: 1 1 0; min-width: 2px; max-width: 5px; border-radius: 1px;
  background: var(--color-accent); opacity: 0.85;
  transform-origin: bottom;
}
@media (max-width: 560px) {
  .meter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: var(--space-xs); }
  .meter__bars { grid-column: 1 / -1; grid-row: 1; }
  .meter__label--right { text-align: right; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: var(--space-4xl) 0; }
.section:last-of-type { padding-bottom: var(--space-4xl); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl); }
.section__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; max-width: 22ch; }
.section__lede { margin-top: var(--space-sm); max-width: 52ch; color: var(--color-ink-2); }

/* creator promo */
.create-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: radial-gradient(80% 90% at 85% 10%, var(--color-paper-emit) 0%, transparent 60%), var(--color-paper-2);
}
.create-band .btn { margin-top: var(--space-xl); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: var(--space-md) var(--space-md) var(--space-md) 0; }
.stat + .stat { padding-left: var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.4vw + 0.9rem, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--color-ink); }
.stat__label { display: block; margin-top: var(--space-xs); color: var(--color-muted); }
.steps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-sm); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); color: var(--color-ink-2); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-label); font-size: var(--text-label); color: var(--color-accent); padding-top: 4px; }

/* video cards */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, calc((100% - 3 * var(--space-lg)) / 4));
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule-2) transparent;
}
.rail > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .rail { grid-auto-columns: minmax(0, calc((100% - 2 * var(--space-lg)) / 2.6)); } }
@media (max-width: 640px) { .rail { grid-auto-columns: 78%; gap: var(--space-md); } }

.video-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-md); }
.video-card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); /* crops hqdefault's letterbox bars */
  transition: transform var(--dur-slow) var(--ease-out);
}
.video-card:hover .video-card__thumb img { transform: scale(1.4); }
.video-card__title { margin-top: var(--space-sm); color: var(--color-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card__meta { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); }
.video-card:hover .video-card__title { color: var(--color-accent); }

/* ranked list */
.ranked { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.ranked li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.ranked a {
  display: grid; grid-template-columns: 48px 96px minmax(0, 1fr) auto; align-items: center; gap: var(--space-md);
  padding-block: var(--space-md); text-decoration: none; color: inherit;
}
.ranked__no { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--color-muted); }
.ranked__thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-paper-3); }
.ranked__thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.ranked__title { color: var(--color-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ranked__views { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.ranked a:hover .ranked__title { color: var(--color-accent); }
@media (max-width: 560px) {
  .ranked a { grid-template-columns: 32px 72px minmax(0, 1fr); }
  .ranked__no { font-size: 1.5rem; }
  .ranked__views { grid-column: 3; margin-top: -8px; }
}

/* community posts */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); align-items: start; }
.posts--feed { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
@media (max-width: 960px) { .posts:not(.posts--feed) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .posts:not(.posts--feed) { grid-template-columns: minmax(0, 1fr); } }
.post {
  position: relative;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: radial-gradient(90% 70% at 0% 0%, var(--color-paper-emit) 0%, transparent 60%), var(--color-paper-2);
  transition: transform var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft);
}
.post:hover { transform: translateY(-3px); border-color: var(--color-rule-2); }
.post__head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.post__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-paper-3); flex: none; }
.post__who { color: var(--color-ink); line-height: 1.2; }
.post__when { color: var(--color-muted); font-size: var(--text-sm); }
.post__text { white-space: pre-line; color: var(--color-ink-2); overflow-wrap: anywhere; }
.posts:not(.posts--feed) .post__text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.post__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-2xs); margin-top: var(--space-md); border-radius: var(--radius-sm); overflow: hidden; }
.post__images img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-paper-3); }
.post__poll { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.post__poll li { padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-sm); }
.post__video { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-sm); align-items: center; margin-top: var(--space-md); padding: var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.post__video img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; width: 100%; }
.post__video span { color: var(--color-ink); line-height: 1.3; font-size: var(--text-sm); }
.post__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.post__foot a { color: var(--color-ink); white-space: nowrap; }
.chip { display: inline-block; padding: 3px 8px; border: var(--rule-hair) solid var(--color-accent); color: var(--color-accent); border-radius: var(--radius-pill); }

/* requests + store teasers */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
.panel {
  padding: clamp(24px, 3.5vw, 40px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}
.panel .section__title { font-size: var(--text-xl); }
.panel__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }

.notice { padding: var(--space-lg); border: var(--rule-hair) dashed var(--color-rule-2); border-radius: var(--radius-md); color: var(--color-muted); }
.skeleton { background: linear-gradient(90deg, var(--color-paper-2), var(--color-paper-3), var(--color-paper-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: var(--radius-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================
   Footer · Ft5 statement
   ============================================================ */
.site-foot { margin-top: var(--space-4xl); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-xl); }
.site-foot__line { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--color-ink); max-width: 22ch; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }
.site-foot__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md);
  margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted); font-size: var(--text-sm);
}
.site-foot__disclaimer { max-width: 70ch; }

/* ============================================================
   Reveal + responsive
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: var(--space-xl) var(--space-2xl); gap: var(--space-xl); }
  .chart { width: min(68%, 250px); }
  .create-band, .duo { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: var(--space-3xl); }
}
@media (max-width: 400px) {
  .stat__value { font-size: 2rem; }
  .stat, .stat + .stat { padding-inline: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Star map · every upload is a star
   ============================================================ */
.starmap {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: var(--space-xl);
  align-items: end;
  padding: clamp(16px, 3vw, 32px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background:
    radial-gradient(70% 80% at 60% 30%, var(--color-paper-emit) 0%, transparent 70%),
    var(--color-paper-2);
}
.starmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.starmap .map-grid { stroke: var(--color-rule); stroke-dasharray: 2 6; }
.starmap .map-axis { stroke: var(--color-rule-2); }
.starmap .map-path { fill: none; stroke: var(--color-rule-2); stroke-width: 1; }
.starmap .map-label { font-family: var(--font-label); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--color-muted); }
.starmap .map-label--lg { font-size: 34px; }
.starmap .map-star { cursor: pointer; outline: none; }
.starmap .map-core { fill: var(--color-star); transition: fill var(--dur-fast) var(--ease-out); }
.starmap .map-halo { fill: var(--color-glow); transition: opacity var(--dur-base) var(--ease-out); }
.starmap .map-hit { fill: transparent; }
.starmap .map-star:hover .map-core,
.starmap .map-star.is-selected .map-core { fill: var(--color-accent); }
.starmap .map-star:focus-visible .map-core { stroke: var(--color-focus); stroke-width: 3; }
.starmap .map-star.is-selected .map-halo { opacity: 0.9 !important; }
.star-info { display: grid; gap: var(--space-xs); padding-bottom: var(--space-sm); min-height: 120px; align-content: end; }
.star-info .label { color: var(--color-accent); }
.star-info__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.02em; color: var(--color-ink); }
.star-info .text-link { justify-self: start; margin-top: var(--space-xs); }
@media (max-width: 860px) {
  .starmap { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .star-info { min-height: 0; }
}

/* ============================================================
   Hero motion: the figure draws in, one meteor crosses once
   ============================================================ */
/* the figure traces itself star to star, holds, erases in the same direction, rests, repeats */
.chart .figure-line {
  stroke: var(--color-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: trace-figure 9s var(--ease-in-out) infinite both;
}
.chart .figure-line--2 { animation-delay: 0.5s; }
.chart .figure-line--3 { animation-delay: 1.2s; }
@keyframes trace-figure {
  0%   { stroke-dashoffset: 1; }
  28%  { stroke-dashoffset: 0; }
  62%  { stroke-dashoffset: 0; }
  86%  { stroke-dashoffset: -1; }
  100% { stroke-dashoffset: -1; }
}
.meteor {
  position: absolute; top: 14%; left: 62%; width: 140px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--color-star), transparent); /* bright head leads (it travels left) */
  transform: rotate(-28deg) translateX(0); opacity: 0;
  animation: meteor 1100ms var(--ease-in) 2600ms 1 forwards;
}
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky__meteor {
  position: absolute; height: 1px; opacity: 0; transform-origin: 0 50%; will-change: transform, opacity;
  background: linear-gradient(90deg, var(--color-star), transparent);
}
@keyframes meteor {
  0% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  15% { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(-28deg) translateX(-420px); }
}
@media (prefers-reduced-motion: reduce) {
  .chart .figure-line { stroke-dashoffset: 0; animation: none; }
  .meteor { display: none; }
}
