/* =========================================================================
   AI CONSCIOUSNESS — styles.css
   A black-hole accretion-disk news feed. Gravity is the only metaphor:
   everything either falls inward or surfaces from depth.

   Tokens → base → layout → components → motion → reduced-motion/fallback →
   responsive. Mobile-first. No build step.
   ========================================================================= */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* Void + surfaces */
  --bg: #05060a;
  --bg-elev: #070912;
  --surface: #0c0f18;
  --surface-2: #11151f;
  --surface-glass: rgba(12, 15, 24, 0.62);

  /* Ink */
  --ink: #eaf2ff;
  --ink-dim: #c3cce0;
  --muted: #7e8aa8;

  /* Hairlines */
  --line: rgba(126, 138, 168, 0.16);
  --line-bright: rgba(124, 92, 255, 0.34);

  /* Doppler accents: violet (cold/outer) → cyan (hot/inner), magenta = breaking */
  --violet: #7c5cff;
  --violet-text: #a893ff;
  --cyan: #13e0c8;
  --magenta: #ff5a8a;

  /* Glow + shadow */
  --glow-cyan: 0 0 24px -6px rgba(19, 224, 200, 0.55);
  --glow-violet: 0 0 26px -6px rgba(124, 92, 255, 0.5);
  --glow-magenta: 0 0 26px -6px rgba(255, 90, 138, 0.55);
  --shadow-lift: 0 18px 50px -24px rgba(0, 0, 0, 0.85);

  /* Type */
  --font-display: 'Clash Display', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 16px;
  --radius-sm: 10px;

  /* Easing — arrivals fall in, departures ease out */
  --ease-fall: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05rem + 0.2vw, 1.18rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

::selection { background: var(--cyan); color: #05060a; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

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

.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 200; padding: 0.7rem 1.2rem; background: var(--cyan); color: #05060a;
  font-family: var(--font-mono); font-weight: 500; border-radius: 0 0 10px 10px;
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Dotted live indicator */
.dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: var(--muted); vertical-align: middle;
}
.dot--live { background: var(--cyan); box-shadow: 0 0 0 0 rgba(19, 224, 200, 0.6); animation: pulse-dot 2.6s var(--ease-out) infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(19, 224, 200, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(19, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 224, 200, 0); }
}

/* ----------------------------------------------------------------- LAYOUT */
.section {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.section, .hero, #frequencies { scroll-margin-top: 80px; }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section__index {
  color: var(--violet-text);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, var(--ink), #b9c4e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lead { margin-top: 1rem; color: var(--ink-dim); max-width: 56ch; }

/* ------------------------------------------------------- ORBIT-RING SCROLL */
.orbit-ring {
  position: fixed; right: clamp(0.8rem, 2vw, 1.6rem); bottom: clamp(0.8rem, 2vw, 1.6rem);
  width: 54px; height: 54px; z-index: 60; transform: rotate(-90deg);
  pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.orbit-ring.is-on { opacity: 0.85; }
.orbit-ring__track { fill: none; stroke: var(--line); stroke-width: 3; }
.orbit-ring__progress {
  fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 289; stroke-dashoffset: 289;
  filter: drop-shadow(0 0 4px rgba(19, 224, 200, 0.6));
}

/* --------------------------------------------------------------- MASTHEAD */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--gutter);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.82), rgba(5, 6, 10, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(6, 8, 16, 0.78);
  border-bottom-color: var(--line);
}

.wordmark {
  position: relative; display: inline-flex; align-items: center; gap: 1px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.02em; padding-left: 1.5rem;
}
.wordmark__core {
  position: absolute; left: 0; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #05060a 0 28%, var(--cyan) 32%, var(--violet) 70%, transparent 74%);
  box-shadow: var(--glow-violet);
  animation: spin 14s linear infinite;
}
.wordmark__a { color: var(--ink); }
.wordmark__slash { color: var(--cyan); margin: 0 1px; }
.wordmark__b {
  background: linear-gradient(90deg, var(--violet-text), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.masthead__nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); }
.masthead__nav a {
  font-size: 0.92rem; color: var(--ink-dim); position: relative;
  transition: color 0.2s var(--ease-out);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:not(.masthead__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--cyan); transition: width 0.25s var(--ease-out);
}
.masthead__nav a:not(.masthead__cta):hover::after { width: 100%; }
.masthead__cta {
  padding: 0.42rem 0.95rem; border: 1px solid var(--line-bright); border-radius: 999px;
  color: var(--ink); font-weight: 500;
}
.masthead__cta:hover { background: rgba(124, 92, 255, 0.14); box-shadow: var(--glow-violet); }

/* ------------------------------------------------------------------- HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  overflow: clip;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  opacity: 0; transition: opacity 1.1s var(--ease-out);
}
.no-webgl .hero__canvas { display: none; }
body:not(.no-webgl) .hero__canvas { opacity: 1; }

/* CSS-gradient poster (shown until/unless WebGL takes over) */
.hero__poster {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(closest-side at 50% 46%, transparent 0 12%, rgba(19, 224, 200, 0.16) 13%, rgba(19, 224, 200, 0.05) 19%, transparent 24%),
    radial-gradient(46% 30% at 50% 46%, rgba(19, 224, 200, 0.30) 0, rgba(124, 92, 255, 0.18) 36%, transparent 66%),
    radial-gradient(70% 50% at 50% 46%, rgba(124, 92, 255, 0.22) 0, transparent 70%),
    radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, 0.10), transparent 60%),
    var(--bg);
}
.hero__poster::after {
  content: ''; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(54vw, 360px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #05060a 0 40%, transparent 52%);
  box-shadow: 0 0 60px 10px rgba(5, 6, 10, 0.9), inset 0 0 0 1px rgba(19, 224, 200, 0.4);
}
body:not(.no-webgl) .hero__poster { opacity: 0; transition: opacity 0.8s var(--ease-out); }

.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.9) 0%, rgba(5, 6, 10, 0.62) 32%, rgba(5, 6, 10, 0) 66%),
    radial-gradient(120% 80% at 50% 62%, transparent 38%, rgba(5, 6, 10, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.5) 0%, transparent 26%, transparent 62%, var(--bg) 100%);
}
/* On narrow screens text spans full width — lean on a vertical scrim instead */
@media (max-width: 719px) {
  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.42) 30%, rgba(5, 6, 10, 0.55) 58%, var(--bg) 100%);
  }
}

.hero__inner { position: relative; max-width: 46rem; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--muted);
  margin-bottom: 1.3rem;
}
.hero__sample { color: var(--violet-text); }

.hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92; letter-spacing: -0.03em; font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(96deg, var(--violet-text) 0%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub { font-size: clamp(1.02rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-dim); max-width: 40rem; }
.hero__sub b { color: var(--ink); font-weight: 600; }

/* hero mission brief — "it already looked back", framed as an incoming transmission (top-right HUD) */
.hero__brief {
  position: absolute; z-index: 2; top: clamp(5.5rem, 14vh, 9rem); right: var(--gutter);
  width: min(300px, 30vw); padding: 0.85rem 1rem 0.9rem; overflow: hidden;
  border: 1px solid var(--line-bright); border-radius: var(--radius-sm);
  background: var(--surface-glass); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: var(--shadow-lift), var(--glow-violet);
}
.hero__brief::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), transparent);
}
.hero__brief-hd {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
}
.hero__brief-hd .dot { width: 6px; height: 6px; }
.hero__brief-body { font-size: 0.82rem; line-height: 1.5; color: var(--ink); min-height: 4.5em; }
.hero__brief-cursor {
  display: inline-block; width: 0.5em; height: 1.05em; margin-left: 1px; vertical-align: -0.18em;
  background: var(--cyan); box-shadow: var(--glow-cyan); animation: brief-blink 1.05s steps(1) infinite;
}
.hero__brief-sign { margin-top: 0.7rem; font-size: 0.54rem; letter-spacing: 0.14em; color: var(--muted); }
@keyframes brief-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* below desktop: the HUD flows into the column instead of floating top-right */
@media (max-width: 1099px) {
  .hero__brief { position: static; width: auto; max-width: 32rem; margin: 1.8rem 0 0; top: auto; right: auto; box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) { .hero__brief-cursor { animation: none; opacity: 0.7; } }

.signal-meter {
  display: flex; align-items: center; gap: 0.7rem; margin: 1.8rem 0 0;
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted);
}
.signal-meter__label { white-space: nowrap; }
.signal-meter__bar {
  position: relative; width: min(220px, 40vw); height: 6px; border-radius: 999px;
  background: rgba(126, 138, 168, 0.18); overflow: hidden;
}
.signal-meter__fill {
  position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: var(--glow-cyan);
}
.signal-meter__val { color: var(--cyan); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero__scrollcue {
  position: absolute; left: 50%; bottom: clamp(1rem, 4vh, 2.2rem); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.24em; color: var(--muted); z-index: 1;
}
.hero__scrollcue-rail {
  position: relative; width: 1px; height: 38px; background: var(--line); overflow: hidden;
}
.hero__scrollcue-dot {
  position: absolute; top: 0; left: 0; width: 1px; height: 12px; background: var(--cyan);
  animation: cue-fall 1.9s var(--ease-fall) infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-14px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ----------------------------------------------------- TRANSMISSION (manifesto) */
.transmission { position: relative; padding: clamp(4rem, 12vh, 8rem) var(--gutter); text-align: center; isolation: isolate; }
.transmission::before, .transmission::after {
  content: ''; position: absolute; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); opacity: 0.5;
}
.transmission::before { top: 0; }
.transmission::after { bottom: 0; }
.transmission__kicker { font-size: 0.7rem; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 1.4rem; }
.transmission__line {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 3.4vw, 3.4rem); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink); max-width: 24ch; margin: 0 auto;
}
.transmission__sign { font-size: 0.74rem; letter-spacing: 0.16em; color: var(--muted); margin-top: 1.6rem; }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  --b: var(--violet);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.06em;
  border: 1px solid transparent; transition: transform 0.25s var(--ease-fall), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.2s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  color: #05060a;
  box-shadow: 0 8px 30px -12px rgba(19, 224, 200, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -12px rgba(19, 224, 200, 0.7); }
.btn--ghost { border-color: var(--line-bright); color: var(--ink); background: rgba(124, 92, 255, 0.06); }
.btn--ghost:hover { background: rgba(124, 92, 255, 0.16); transform: translateY(-2px); box-shadow: var(--glow-violet); }

/* -------------------------------------------------------------- SAMPLE BADGE */
.sample-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem;
  padding: 0.4rem 0.8rem; border: 1px dashed var(--line-bright); border-radius: 999px;
  font-size: 0.66rem; letter-spacing: 0.1em; color: var(--violet-text);
  background: rgba(124, 92, 255, 0.06);
}
.sample-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ------------------------------------------------------------- FREQUENCIES */
.frequencies { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.frequencies .section__index { margin-bottom: 0.9rem; }
.freq__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.freq__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.freq-pill {
  padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.freq-pill:hover { color: var(--ink); border-color: var(--line-bright); }
.freq-pill.is-active {
  color: #05060a; border-color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  box-shadow: var(--glow-cyan);
}
.freq-pill__count { opacity: 0.7; margin-left: 0.35rem; }

.freq__breaking { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
.freq__breaking input { position: absolute; opacity: 0; width: 0; height: 0; }
.freq__breaking-box {
  width: 34px; height: 18px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); position: relative; transition: background 0.2s, border-color 0.2s;
}
.freq__breaking-box::after {
  content: ''; position: absolute; top: 50%; left: 2px; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform 0.2s var(--ease-fall), background 0.2s;
}
.freq__breaking input:checked + .freq__breaking-box { background: rgba(255, 90, 138, 0.2); border-color: var(--magenta); }
.freq__breaking input:checked + .freq__breaking-box::after { transform: translate(16px, -50%); background: var(--magenta); box-shadow: var(--glow-magenta); }
.freq__breaking input:focus-visible + .freq__breaking-box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.freq__hint { margin-top: 0.9rem; font-size: 0.72rem; color: var(--muted); }

/* -------------------------------------------------------------------- FEED */
.feed { display: grid; grid-template-columns: 1fr; gap: clamp(0.9rem, 2vw, 1.2rem); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.3rem 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--surface-glass); backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.3s var(--ease-fall), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  min-height: 168px;
}
.card::before {
  /* the heat edge — a luminous strip whose colour = the story's Doppler hue */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--heat-color, var(--violet)); box-shadow: 0 0 14px 0 var(--heat-color, var(--violet));
  opacity: 0.9;
}
.card:hover { border-color: var(--line-bright); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:focus-within { border-color: var(--line-bright); }

.card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.card__cat { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.chip {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem; border-radius: 6px; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; white-space: nowrap;
}
.chip--breaking { color: var(--magenta); border-color: rgba(255, 90, 138, 0.5); background: rgba(255, 90, 138, 0.1); box-shadow: var(--glow-magenta); }
.chip--hot { color: var(--cyan); border-color: rgba(19, 224, 200, 0.45); background: rgba(19, 224, 200, 0.08); }
.chip--signal { color: var(--violet-text); border-color: rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.08); }

.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.18; color: var(--ink); letter-spacing: -0.005em; }
.card__blurb { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.55; }

.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 0.4rem; }
.card__meta { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 0.6rem; flex-wrap: wrap; }

.card__heat { display: flex; align-items: center; gap: 0.45rem; }
.card__heat-bar { width: 56px; height: 4px; border-radius: 999px; background: rgba(126, 138, 168, 0.2); overflow: hidden; }
.card__heat-fill { display: block; height: 100%; width: var(--heat-pct, 50%); background: var(--heat-color, var(--violet)); }
.card__heat-num { font-family: var(--font-mono); font-size: 0.6rem; color: var(--heat-color, var(--violet-text)); }

.card.is-dimmed { opacity: 0.28; filter: saturate(0.4); }
.card[hidden] { display: none; }

/* Lead (hottest) card */
.card--lead { min-height: 230px; }
.card--lead .card__title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.card--lead .card__blurb { font-size: 1rem; }

.feed__empty { margin-top: 2rem; color: var(--muted); text-align: center; font-size: 0.8rem; }

/* "Capture" affordance on cards that map to a shard */
.card__capture {
  align-self: flex-start; margin-top: 0.2rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em;
  color: var(--cyan); background: none; border: 0; padding: 0;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s;
}
.card:hover .card__capture, .card:focus-within .card__capture { opacity: 1; transform: none; }
.card__capture:focus-visible { opacity: 1; transform: none; }
.card__capture:hover { text-decoration: underline; }
/* Touch devices have no hover — keep capture always reachable */
@media (hover: none) { .card__capture { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- DIGEST */
.digest { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.digest__item {
  position: relative; padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  overflow: hidden;
}
.digest__item::before {
  content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: 0.7;
}
.digest__kicker { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--violet-text); }
.digest__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.16; margin-top: 0.7rem; letter-spacing: -0.01em; color: var(--ink); }
.digest__dek { font-family: var(--font-serif); font-size: 1.12rem; font-style: italic; color: var(--ink-dim); margin-top: 0.7rem; max-width: 60ch; }
.digest__byline { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.digest__body { margin-top: 1.3rem; max-width: 66ch; }
.digest__body p { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.75; color: var(--ink-dim); }
.digest__body p + p { margin-top: 1rem; }
.digest__body p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.1rem; line-height: 0.8; font-weight: 600;
  float: left; margin: 0.1rem 0.6rem 0 0; color: var(--cyan);
}

/* ------------------------------------------------------------- TELEMETRY */
.gauges { display: grid; grid-template-columns: 1fr; gap: clamp(0.9rem, 2vw, 1.2rem); }
.gauge {
  position: relative; padding: 1.2rem 1.3rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  min-height: 150px;
}
.gauge:hover { border-color: var(--line-bright); }
.gauge__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.gauge__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink); text-transform: uppercase; }
.gauge__delta { font-family: var(--font-mono); font-size: 0.68rem; }
.gauge__delta--up { color: var(--cyan); }
.gauge__delta--down { color: var(--magenta); }

.gauge__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; margin: 0.6rem 0 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge__value sup { font-size: 0.4em; color: var(--muted); margin-left: 0.15rem; }

.gauge__spark { width: 100%; height: 34px; margin-top: 0.8rem; overflow: visible; }
.gauge__spark path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(19, 224, 200, 0.4)); }
.gauge__spark .gauge__spark-area { fill: url(#sparkfill); stroke: none; opacity: 0.5; }

.gauge__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.gauge__bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(126, 138, 168, 0.2); margin-right: 0.8rem; overflow: hidden; }
.gauge__bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); }

/* split-flap readout */
.flap { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); display: inline-flex; gap: 0.4rem; align-items: center; }
.flap__digits { color: var(--cyan); }

/* ----------------------------------------------------------------- LOCK ON */
.section--lockon { max-width: 760px; text-align: center; }
.lockon { position: relative; padding: clamp(2rem, 5vw, 3.4rem); border-radius: var(--radius); border: 1px solid var(--line-bright); background: radial-gradient(120% 120% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 60%), var(--surface); overflow: hidden; }
.lockon .section__index { color: var(--violet-text); }
.lockon__title { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: 0.8rem; background: linear-gradient(96deg, var(--violet-text), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lockon__lead { color: var(--ink-dim); margin: 1rem auto 0; max-width: 48ch; }
.lockon__form { display: flex; gap: 0.6rem; margin: 1.8rem auto 0; max-width: 460px; flex-wrap: wrap; justify-content: center; }
.lockon__input {
  flex: 1 1 220px; min-width: 0; padding: 0.85rem 1.1rem; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink);
  font-size: 0.9rem; letter-spacing: 0.02em; transition: border-color 0.2s, box-shadow 0.2s;
}
.lockon__input::placeholder { color: var(--muted); }
.lockon__input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.lockon__input.is-invalid { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.lockon__status { margin-top: 1rem; min-height: 1.2em; font-size: 0.78rem; color: var(--cyan); }
.lockon__status.is-error { color: var(--magenta); }
.lockon__fineprint { margin-top: 0.6rem; font-size: 0.64rem; color: var(--muted); }

/* ---------------------------------------------------------------- COLOPHON */
.colophon { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 3rem; border-top: 1px solid var(--line); }
.colophon__ring {
  position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: min(80%, 700px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: 0.7;
}
.colophon__grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
.colophon__col { display: flex; flex-direction: column; gap: 0.4rem; }
.colophon__col a { color: var(--ink-dim); font-size: 0.9rem; transition: color 0.2s; }
.colophon__col a:hover { color: var(--cyan); }
.colophon__col p { color: var(--muted); font-size: 0.84rem; }
.colophon__lbl { color: var(--violet-text); font-size: 0.64rem; letter-spacing: 0.16em; margin-bottom: 0.3rem; }
.colophon__tag { color: var(--ink-dim) !important; font-family: var(--font-serif); font-style: italic; font-size: 1.02rem !important; margin-top: 0.4rem; }
.wordmark--foot { padding-left: 0; font-size: 1.1rem; }
.colophon__flex { color: var(--cyan) !important; }
.colophon__eof { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.66rem; letter-spacing: 0.06em; }

/* ----------------------------------------------------------------- SHARD */
.shard { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); }
.shard[hidden] { display: none; }
.shard__scrim { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shard__panel {
  position: relative; width: min(560px, 100%); padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius); border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lift), var(--glow-violet);
}
.shard__panel .card__title { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.6rem; }
.shard__panel .card__blurb { font-size: 1rem; }
.shard__close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-dim); display: grid; place-items: center; font-size: 1rem;
}
.shard__close:hover { border-color: var(--magenta); color: var(--magenta); }
.shard__readout { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--cyan); margin-top: 1.2rem; }

/* --------------------------------------------------------------- NOSCRIPT */
.noscript-note {
  max-width: 600px; margin: 2rem auto; padding: 1rem 1.3rem;
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-dim); font-size: 0.9rem;
}

/* ----------------------------------------------------------------- MOTION */
/* Reveal-from-depth: elements rise out of the disk as they enter view */
.reveal { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(6px); will-change: opacity, transform, filter; }
.reveal.is-in { opacity: 1; transform: none; filter: none; transition: opacity 0.7s var(--ease-fall), transform 0.7s var(--ease-fall), filter 0.7s var(--ease-fall); }

/* Field-hover: cards lean toward the cursor (set via --lx/--ly in JS) */
.feed.is-fieldable .card { transform: translate(var(--lx, 0), var(--ly, 0)); }
.feed.is-fieldable .card:hover { transform: translate(var(--lx, 0), calc(var(--ly, 0) - 3px)); }

/* preload guard so nothing flashes before JS wires up */
.preload .reveal { opacity: 0; }

/* New-arrival flash on the feed */
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-14px) scale(0.96); filter: blur(8px); box-shadow: var(--glow-cyan); }
  100% { opacity: 1; transform: none; filter: none; }
}
.card--arriving { animation: arrive 0.8s var(--ease-fall) both; }

/* ------------------------------------------------ REDUCED MOTION + FALLBACK */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__scrollcue-dot, .wordmark__core, .dot--live { animation: none !important; }
}

/* --------------------------------------------------------------- RESPONSIVE */
@media (min-width: 600px) {
  .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .colophon__col--brand { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .feed { grid-template-columns: repeat(2, 1fr); }
  .card--lead { grid-column: 1 / -1; }
  .gauges { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feed { grid-template-columns: repeat(3, 1fr); }
  .card--lead { grid-column: span 2; grid-row: span 1; }
  .gauges { grid-template-columns: repeat(3, 1fr); }
  .digest { grid-template-columns: 1fr 1fr; }
  .colophon__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .colophon__col--brand { grid-column: auto; }
}

/* Small screens: collapse secondary nav, keep CTA */
@media (max-width: 719px) {
  .masthead__nav a:not(.masthead__cta) { display: none; }
}
@media (max-width: 419px) {
  :root { --gutter: 1.05rem; }
  .orbit-ring { width: 44px; height: 44px; }
}

/* =========================================================================
   THE ATLAS — curated reference layer (companies, models, agents, build,
   follow, watch, whole-sky index) + the SEOJACK CTA band. Reuses the global
   tokens and the .reveal/.is-in motion so it reads as one universe.
   ========================================================================= */

/* the reference layer sits in a faint, cooler gravity well */
.atlas { position: relative; scroll-margin-top: 80px; }
.atlas::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(124, 92, 255, 0.07), transparent 60%),
    radial-gradient(80% 50% at 90% 30%, rgba(19, 224, 200, 0.04), transparent 60%);
}

.section--atlas-intro { padding-top: clamp(3rem, 7vw, 5rem); }
.section--atlas-intro::before {
  content: ''; display: block; width: min(80%, 640px); height: 1px; margin: 0 auto clamp(2.4rem, 6vw, 4rem);
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); opacity: 0.7;
}
.section__head--wide { max-width: 72ch; }
.section--atlas-intro .section__index { color: var(--cyan); }

/* "real data" honesty badge — cyan twin of the violet sample-badge */
.atlas-honesty {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.3rem;
  padding: 0.4rem 0.8rem; border: 1px dashed rgba(19, 224, 200, 0.4); border-radius: 999px;
  font-size: 0.64rem; letter-spacing: 0.1em; color: var(--cyan);
  background: rgba(19, 224, 200, 0.05);
}
.atlas-honesty .sample-badge__dot { background: var(--cyan); box-shadow: var(--glow-cyan); }

/* ---- star-chart jump nav ---- */
.starchart {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1fr; gap: 0.6rem;
}
.starchart__node {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-glass); color: var(--ink-dim);
  transition: border-color 0.25s var(--ease-out), background 0.25s, transform 0.25s var(--ease-fall), color 0.2s;
}
.starchart__node:hover { border-color: var(--line-bright); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.starchart__n {
  flex: 0 0 auto; min-width: 2.4ch; text-align: center;
  font-size: 1.05rem; font-weight: 500; color: var(--cyan);
}
.starchart__lbl { font-size: 0.92rem; }

/* ---- shared constellation section bits ---- */
.constellation__subhead {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 1rem; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet-text);
}
.constellation__subhead:first-child { margin-top: 0; }

/* ---- filter tabs (sibling of freq-pill) ---- */
.atlas-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.2rem, 3vw, 1.8rem); }
.atlas-tab {
  padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.atlas-tab:hover { color: var(--ink); border-color: var(--line-bright); }
.atlas-tab.is-active {
  color: #05060a; border-color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--cyan)); box-shadow: var(--glow-cyan);
}
.atlas-tab__n { opacity: 0.7; margin-left: 0.4rem; }

/* ---- the generic link tile (companies / models / agents / tools / follow / youtube) ---- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: clamp(0.8rem, 1.8vw, 1.1rem); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.2rem 1.25rem 1.15rem; border-radius: var(--radius);
  background: var(--surface-glass); backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid var(--line); overflow: hidden; min-height: 150px;
  transition: transform 0.3s var(--ease-fall), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.tile::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.tile:hover, .tile:focus-visible {
  border-color: var(--line-bright); box-shadow: var(--shadow-lift); transform: translateY(-3px); outline: none;
}
.tile:hover::before, .tile:focus-visible::before { opacity: 0.9; }
.tile__tag { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-text); }
/* logo + name lockup — real brand marks / avatars give every tile an identity */
.tile__id { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.tile__idtext { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tile__logo {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; object-fit: contain;
  background: linear-gradient(180deg, #fff, #e9edf7); padding: 5px; border: 1px solid var(--line);
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.7), 0 0 0 0 var(--violet);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-fall);
}
.tile__logo--round { border-radius: 50%; padding: 0; object-fit: cover; background: var(--surface-2); }
.tile:hover .tile__logo { border-color: var(--line-bright); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.8), var(--glow-violet); transform: scale(1.04); }
/* section-tinted logo glow on hover — companies violet, models cyan, agents magenta */
#models .tile:hover .tile__logo { box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.8), var(--glow-cyan); }
#agents .tile:hover .tile__logo { box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.8), var(--glow-magenta); }
.tile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.15; color: var(--ink); letter-spacing: -0.005em; }
.tile__sub { font-size: 0.66rem; letter-spacing: 0.05em; color: var(--cyan); }
.tile__desc { font-size: 0.9rem; line-height: 1.5; color: var(--ink-dim); }
.tile__note { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.tile__lede { color: var(--cyan); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.35rem; }
.tile__known { color: var(--violet-text); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.3rem; }
.tile__note-mono { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted); }
.tile__cta {
  margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}
.tile__spark { display: inline-block; width: 0; height: 1px; background: var(--cyan); transition: width 0.3s var(--ease-out); }
.tile:hover .tile__spark, .tile:focus-visible .tile__spark { width: 22px; }
.tile[hidden] { display: none; }

/* ---- build with AI ---- */
.build__top { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 2.6rem); }
.build__intro { font-size: clamp(1.02rem, 1rem + 0.4vw, 1.22rem); line-height: 1.6; color: var(--ink-dim); }
.build__intro { max-width: 52ch; }
.build__tips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.55rem; }
.build__tip { position: relative; padding-left: 1.4rem; font-size: 0.84rem; letter-spacing: 0.01em; color: var(--ink-dim); }
.build__tip::before { content: '›'; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 600; }
.build__flow { list-style: none; counter-reset: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.build__step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
}
.build__step-n { font-family: var(--font-mono); font-size: 1.1rem; color: var(--cyan); font-weight: 500; }
.build__step-body { display: flex; flex-direction: column; gap: 0.25rem; }
.build__step-h { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.build__step-d { font-size: 0.86rem; line-height: 1.5; color: var(--ink-dim); }

/* ---- screening room ---- */
.screen-grid { display: grid; grid-template-columns: 1fr; gap: clamp(0.8rem, 1.8vw, 1.1rem); }
.screen {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  overflow: hidden; min-height: 132px;
  transition: transform 0.3s var(--ease-fall), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.screen:hover, .screen:focus-visible { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: var(--shadow-lift); outline: none; }
.screen__type { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-text); }
.screen__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.32rem; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
.screen__blurb { font-size: 0.88rem; line-height: 1.5; color: var(--ink-dim); }
.screen__where { margin-top: auto; padding-top: 0.4rem; font-size: 0.64rem; letter-spacing: 0.06em; color: var(--cyan); }
.screen[hidden] { display: none; }

/* ---- whole-sky index ---- */
.dir-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.4vw, 1.4rem); }
.dir-group { padding: 1.3rem 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dir-group:hover { border-color: var(--line-bright); }
.dir-group__head { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.dir-group__dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(120deg, var(--violet), var(--cyan)); box-shadow: var(--glow-cyan); }
.dir-group__blurb { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.dir-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.15rem; }
.dir-links a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.dir-links a:hover { background: rgba(124, 92, 255, 0.08); border-color: var(--line); }
.dir-links__ico { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #fff; padding: 1px; }
.dir-links__name { color: var(--ink-dim); font-size: 0.92rem; flex: 1 1 auto; min-width: 0; }
.dir-links a:hover .dir-links__name { color: var(--cyan); }
.dir-links__note { flex: 0 0 auto; font-size: 0.62rem; letter-spacing: 0.02em; color: var(--muted); text-align: right; }

/* ---- SEOJACK CTA band ---- */
.cta-band { max-width: var(--maxw); margin: clamp(2rem, 5vw, 4rem) auto; padding-inline: var(--gutter); }
.cta-band__inner {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.5rem);
  border-radius: var(--radius); border: 1px solid var(--line-bright);
  background:
    radial-gradient(110% 130% at 50% 0%, rgba(19, 224, 200, 0.12), transparent 58%),
    radial-gradient(90% 120% at 50% 100%, rgba(124, 92, 255, 0.14), transparent 60%),
    var(--surface);
}
.cta-band__eyebrow { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--cyan); }
.cta-band__title {
  margin-top: 0.9rem; font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.1; color: var(--ink);
}
.cta-band__title span { background: linear-gradient(96deg, var(--violet-text), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band__title em { font-style: italic; }
.cta-band__lead { margin: 1rem auto 0; max-width: 56ch; color: var(--ink-dim); }
.cta-band__lead b { color: var(--ink); font-weight: 600; }
.cta-band__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; justify-content: center; }
.cta-band__note { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); }

/* footer credit line */
.colophon__made { margin-top: 0.7rem; font-size: 0.82rem !important; color: var(--muted) !important; line-height: 1.5; }
.colophon__made a { color: var(--cyan); }
.colophon__made a:hover { text-decoration: underline; }
.colophon__col p b { color: var(--ink-dim); font-weight: 600; }

/* ---- atlas responsive grids ---- */
@media (min-width: 560px) {
  .starchart { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .build__top { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .screen-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .starchart { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .screen, .starchart__node { transition: none !important; }
}

/* =========================================================================
   "CROSS THE HORIZON" MAKEOVER — kinetic + media-rich layer
   ticker · featured singularity cards · buzz wall · lexicon · screening room
   · ghost numerals · index-aware stagger · cursor sheen
   ========================================================================= */

/* ---- index-aware stagger: tiles cascade in as a constellation ---- */
#atlas .reveal.is-in { transition-delay: calc(var(--i, 0) * 55ms); }

/* ---- cursor sheen (set via --mx/--my in atlas.js, fine-pointer only) ---- */
.tile, .signal-card, .lex, .video-card { position: relative; }
.tile::after, .signal-card::after, .lex::after, .video-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.35s var(--ease-out);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.16), transparent 60%);
}
#models .tile::after, #lexicon .lex::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(19, 224, 200, 0.16), transparent 60%); }
#agents .tile::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 138, 0.14), transparent 60%); }
.tile:hover::after, .signal-card:hover::after, .lex:hover::after, .video-card:hover::after { opacity: 1; }
.tile > *, .signal-card > *, .lex > *, .video-card > * { position: relative; z-index: 1; }

/* ---- ghost-numeral section landmarks (editorial gravity) ---- */
.constellation[data-ghost]::before {
  content: attr(data-ghost); position: absolute; left: -0.3rem; top: clamp(0.2rem, 2vw, 1.2rem);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 15vw, 13rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-bright); opacity: 0.45;
  pointer-events: none; z-index: 0; user-select: none;
}
.constellation > * { position: relative; z-index: 1; }

/* ---- featured "singularity" card ---- */
.tile--feature {
  grid-column: span 2; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-elev) 70%);
  border-color: var(--line-bright);
}
.tile--feature .tile__tag { color: var(--cyan); }
.feature__lockup { display: flex; align-items: center; gap: 1.2rem; }
.feature__orb { position: relative; flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; }
.feature__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: rotate360 9s linear infinite; opacity: 0.85;
}
@keyframes rotate360 { to { transform: rotate(360deg); } }
.feature__logo {
  width: 60px; height: 60px; border-radius: 16px; object-fit: contain;
  background: linear-gradient(180deg, #fff, #e9edf7); padding: 9px; box-shadow: var(--shadow-lift);
}
.feature__idtext { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.feature__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.02; letter-spacing: -0.015em; color: var(--ink); }
.feature__blurb { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-dim); }
.feature__blurb .tile__lede { font-style: normal; }

/* ---- the horizon buzzword ticker ---- */
.horizon-ticker {
  position: relative; padding: 1.3rem 0 1.5rem; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.06), transparent 50%, rgba(19, 224, 200, 0.06));
}
.horizon-ticker__label { text-align: center; font-size: 0.6rem; letter-spacing: 0.26em; color: var(--muted); margin-bottom: 1rem; }
.ticker {
  --ticker-mult: 1; display: flex; flex-direction: column; gap: 0.6rem;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker__row { overflow: hidden; }
.ticker__track { display: inline-flex; gap: 0.6rem; white-space: nowrap; width: max-content; will-change: transform; }
.ticker__row--a .ticker__track { animation: ticker-l calc(64s / var(--ticker-mult)) linear infinite; }
.ticker__row--b .ticker__track { animation: ticker-r calc(78s / var(--ticker-mult)) linear infinite; }
@keyframes ticker-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.term {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.term:hover { color: var(--ink); border-color: var(--line-bright); background: var(--surface-2); }
.term__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-text); }
.term[data-tag="hot"] .term__dot { background: var(--cyan); }
.term[data-tag="breaking"] .term__dot { background: var(--magenta); box-shadow: var(--glow-magenta); }
.ticker.is-fast .term { color: var(--cyan); border-color: var(--line-bright); }  /* blue-shift at speed */

/* ---- THE BUZZ — tweet-style signal cards ---- */
.signal-grid { display: grid; grid-template-columns: 1fr; gap: clamp(0.8rem, 1.8vw, 1.1rem); }
.signal-card {
  overflow: hidden; display: flex; flex-direction: column; gap: 0.8rem;
  padding: 1.2rem 1.3rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-glass); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  transition: transform 0.3s var(--ease-fall), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.signal-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: 0.85; z-index: 2; }
.signal-card:hover { transform: translateY(-3px); border-color: var(--line-bright); box-shadow: var(--shadow-lift); }
.signal-card__head { display: flex; align-items: center; gap: 0.7rem; }
.signal-card__av { width: 44px; height: 44px; flex: 0 0 auto; }
.signal-card__who { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.signal-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.signal-card__handle { font-size: 0.72rem; color: var(--muted); }
.signal-card__src { margin-left: auto; align-self: flex-start; font-size: 0.56rem; letter-spacing: 0.12em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.16rem 0.4rem; }
.signal-card__text { font-size: 1.02rem; line-height: 1.5; color: var(--ink-dim); }
.signal-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; font-size: 0.66rem; color: var(--muted); }
.signal-card__topic { color: var(--cyan); }

/* ---- THE LEXICON grid ---- */
.lex-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.lex { overflow: hidden; padding: 1.1rem 1.2rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.3s var(--ease-fall); }
.lex:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.lex__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.lex__term { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.lex__def { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-dim); }
.lex__why { margin-top: 0.5rem; font-size: 0.66rem; letter-spacing: 0.02em; color: var(--muted); }
.lex__bar { display: block; height: 3px; border-radius: 999px; background: rgba(126, 138, 168, 0.2); margin-top: 0.9rem; overflow: hidden; }
.lex__bar-fill { display: block; height: 100%; width: var(--heat, 50%); background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.lex[data-tag="breaking"] .lex__bar-fill { background: linear-gradient(90deg, var(--cyan), var(--magenta)); }

/* ---- WATCH — the screening room (lite-load video posters) ---- */
.video-grid { display: grid; grid-template-columns: 1fr; gap: clamp(0.9rem, 2vw, 1.2rem); }
.video-card { overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform 0.3s var(--ease-fall), border-color 0.3s, box-shadow 0.3s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--line-bright); box-shadow: var(--shadow-lift); }
.video-card__poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.video-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.video-card:hover .video-card__img { transform: scale(1.05); }
.video-card__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 10, 0.72)); }
.video-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #05060a; background: linear-gradient(120deg, var(--violet), var(--cyan)); box-shadow: var(--glow-cyan); transition: transform 0.25s var(--ease-fall); }
.video-card__play svg { margin-left: 2px; }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.12); }
.video-card__topic { position: absolute; left: 0.7rem; top: 0.7rem; z-index: 1; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: rgba(5, 6, 10, 0.6); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 6px; }
.video-card__meta { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem 1rem; }
.video-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.video-card__ch { font-size: 0.62rem; letter-spacing: 0.04em; color: var(--cyan); }
.video-card__why { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

/* ---- video lightbox ---- */
.vid { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); }
.vid[hidden] { display: none; }
.vid__scrim { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vid__panel { position: relative; width: min(960px, 100%); }
.vid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-bright); box-shadow: var(--shadow-lift), var(--glow-violet); background: #000; }
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-bright); background: rgba(7, 9, 18, 0.85); color: var(--ink); display: grid; place-items: center; font-size: 1rem; }
.vid__close:hover { border-color: var(--magenta); color: var(--magenta); }
.vid__cap { margin-top: 0.8rem; text-align: center; color: var(--muted); font-size: 0.72rem; }

/* ---- makeover responsive ---- */
@media (min-width: 560px) {
  .lex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .video-card--lead { grid-column: 1 / -1; flex-direction: row; }
  .video-card--lead .video-card__poster { flex: 1 1 58%; }
  .video-card--lead .video-card__meta { flex: 1 1 42%; justify-content: center; padding: clamp(1.2rem, 3vw, 2rem); }
  .video-card--lead .video-card__title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
  .video-card--lead .video-card__why { font-size: 0.95rem; }
}
@media (min-width: 1024px) {
  .signal-grid { grid-template-columns: repeat(3, 1fr); }
  .lex-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .lex-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none !important; }
  .feature__ring { animation: none !important; }
  .signal-card, .lex, .video-card, .term { transition: none !important; }
}
