:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --line: rgba(255, 255, 255, 0.07);
  --fg: #ededeb;
  --muted: #86868b;
  --faint: #4a4a4f;
  --earth: #7aa7ff;
  --hazard: #ff6a3d;
  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --display-tracking: -0.03em;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: #050505; color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Phone: full screen on a real phone, an iPhone-shaped frame (440 × 956 pt) on desktop */
:root { --safe-top: max(env(safe-area-inset-top), 20px); }
.phone { width: 100%; display: flex; justify-content: center; }
.app {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  background: var(--bg);
  padding: calc(var(--safe-top) + 4px) 20px 40px;
  overflow-x: hidden;
}
.phone-ui { display: none; }

@media (min-width: 520px) and (min-height: 560px) {
  body { align-items: center; padding: 24px 0; }
  .phone {
    --h: min(956px, calc(100dvh - 48px));
    --bezel: calc(var(--h) * 0.013);
    position: relative;
    height: var(--h);
    width: auto;
    aspect-ratio: 440 / 956;
    padding: var(--bezel);
    border-radius: calc(var(--h) * 0.07);
    background: linear-gradient(150deg, #3a3a3e 0%, #18181a 30%, #0d0d0e 60%, #2a2a2d 100%);
    box-shadow:
      0 0 0 1px #45454a,
      inset 0 0 0 1px rgba(255, 255, 255, .08),
      0 60px 140px rgba(0, 0, 0, .75);
  }
  .app {
    --safe-top: 58px;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    border-radius: calc(var(--h) * 0.058);
    scrollbar-width: none;
  }
  .app::-webkit-scrollbar { display: none; }

  /* status bar, Dynamic Island, home indicator */
  .phone-ui {
    display: flex;
    position: absolute;
    top: var(--bezel); left: var(--bezel); right: var(--bezel);
    height: 54px;
    padding: 4px 32px 0 40px;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    font: 600 15px/1 -apple-system, "SF Pro Text", var(--sans);
    letter-spacing: -0.01em;
  }
  .phone-ui .island {
    position: absolute; left: 50%; top: 11px;
    width: 124px; height: 36px; border-radius: 20px;
    background: #000; transform: translateX(-50%);
  }
  .phone-ui .icons { display: flex; gap: 6px; align-items: center; }
  .phone .phone-indicator {
    display: block; position: absolute; z-index: 5; pointer-events: none;
    left: 50%; bottom: calc(var(--bezel) + 8px);
    width: 36%; height: 5px; border-radius: 3px;
    background: rgba(255, 255, 255, .85); transform: translateX(-50%);
  }
}

.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Day list ---------- */
.top { padding: 8px 0 28px; }
.daynav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.daynav h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.daynav h1 span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.arrows { display: flex; gap: 6px; }
.arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.arrow:hover { color: var(--fg); border-color: rgba(255,255,255,.2); }

.summary { color: var(--muted); margin-top: 14px; }
.summary b { color: var(--fg); font-weight: 500; }
.summary .hz { color: var(--hazard); }

.list { list-style: none; border-top: 1px solid var(--line); }
.item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s;
}
.item:hover { opacity: .75; }
.item > svg { width: 40px; height: 40px; }
.item .name { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.item .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.item .dist { text-align: right; }
.item .dist b { font-family: var(--mono); font-weight: 400; font-size: 17px; }
.item .dist span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hazard); box-shadow: 0 0 10px var(--hazard); flex: none; }
.first-label { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 0 0; }

.skeleton { height: 73px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 22px 0 22px 54px;
  background: linear-gradient(90deg, #161618 0%, #202023 50%, #161618 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { color: var(--faint); font-size: 12px; margin-top: 28px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Error ---------- */
.error { padding: 40px 0; color: var(--muted); }
.error h2 { color: var(--fg); font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.keyform { display: flex; gap: 8px; margin-top: 20px; }
.keyform input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--fg); padding: 12px 14px; font-family: var(--mono); font-size: 13px;
}
.btn { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.btn:hover { border-color: rgba(255,255,255,.25); }

/* ---------- Asteroid screen ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; }
.back { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.back:hover { color: var(--fg); }

.hero { text-align: center; padding: 12px 0 32px; }
.rock-big { width: 168px; height: 168px; margin: 8px auto 28px; position: relative; }
.rock-big svg { width: 100%; height: 100%; animation: spin 90s linear infinite; }
.rock-big::after {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 60%);
  pointer-events: none;
}
.hazard .rock-big::after { background: radial-gradient(circle, rgba(255,106,61,.14), transparent 60%); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero h1 { font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: var(--display-tracking); line-height: 1.05; margin-top: 10px; }
.lede { color: var(--muted); margin: 14px auto 0; max-width: 310px; }
.lede b { color: var(--fg); font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 6px 12px;
  border-radius: 99px; border: 1px solid rgba(255,106,61,.35);
  color: var(--hazard); font-size: 12px;
}

.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stat { padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
.stat .v { font-family: var(--mono); font-size: 24px; letter-spacing: -0.04em; margin-top: 8px; line-height: 1.1; }
.stat .v small { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.stat .s { color: var(--muted); font-size: 12px; margin-top: 4px; }

.section { padding: 34px 0 6px; }
.section h2 { font-family: var(--mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.section p { color: var(--muted); font-size: 14px; }
.section p b { color: var(--fg); font-weight: 500; }

/* Size comparison */
.size-rows { display: grid; gap: 14px; }
.size-row .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.size-row .lbl span:last-child { font-family: var(--mono); color: var(--muted); }
.track { height: 6px; border-radius: 3px; background: #1a1a1c; position: relative; }
.track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--fg); }
.track i.range { background: linear-gradient(90deg, var(--fg) 0 var(--solid), rgba(237,237,235,.25) var(--solid) 100%); }
.track i.ref { background: var(--faint); }

/* Orbit */
.orbit { width: 100%; aspect-ratio: 1; display: block; }
.legend { display: flex; gap: 18px; justify-content: center; font-size: 12px; color: var(--muted); margin: 10px 0 18px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 14px 0; }
.fact + .fact { padding-left: 14px; border-left: 1px solid var(--line); }
.fact .v { font-family: var(--mono); font-size: 16px; margin-top: 4px; }

/* Approach timeline */
.timeline { width: 100%; height: 76px; display: block; margin-bottom: 12px; }

/* Orbit certainty */
.segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 4px 0 12px; }
.segments i { height: 6px; border-radius: 2px; background: #1d1d20; }
.segments i.on { background: var(--fg); }
.seg-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-family: var(--mono); margin-bottom: 14px; }

.ext {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 34px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px;
  color: var(--muted); font-size: 14px;
}
.ext:hover { color: var(--fg); border-color: rgba(255,255,255,.18); }

.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .rock-big svg, .fade, .skeleton::after { animation: none; }
}

/* ---------- Term links ---------- */
.term { text-decoration: underline dotted rgba(255,255,255,.28); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.term:hover { color: var(--fg); text-decoration-color: currentColor; }
.hz .term { text-decoration-color: rgba(255,106,61,.5); }
.topline { display: flex; justify-content: space-between; align-items: center; }
.eyebrow.link { color: var(--fg); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; }
.eyebrow.link:hover { border-color: rgba(255,255,255,.25); }

/* ---------- Glossary ---------- */
.page-title { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin-top: 18px; }
.toc { margin-top: 28px; display: grid; gap: 18px; }
.toc-group { display: flex; flex-wrap: wrap; gap: 6px; }
.toc-group .eyebrow { width: 100%; margin-bottom: 2px; }
.toc-group a {
  font-size: 13px; padding: 6px 11px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s;
}
.toc-group a:hover { border-color: rgba(255,255,255,.25); }

.gl-group { padding-top: 22px; }
.gl-group-title {
  font-family: var(--mono); font-weight: 400; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  padding: 14px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: -20px; background: var(--bg); z-index: 1;
}
.term-card { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.term-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.15; }
.term-short { font-size: 16px; margin-top: 10px; }
.term-body { margin-top: 12px; display: grid; gap: 10px; }
.term-body p { color: var(--muted); font-size: 14px; }
.term-body b { color: var(--fg); font-weight: 500; }
.term-where { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.term-where .eyebrow { display: block; margin-bottom: 4px; font-size: 10px; }
.diagram { width: 100%; height: auto; display: block; margin: 18px 0 6px; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: rgba(122,167,255,.08); } 100% { background: transparent; } }

/* ---------- Home: Earth Shield ---------- */
.app.is-home { padding: 0; overflow: hidden; }
.home { container-type: inline-size; position: relative; height: 100dvh; overflow: hidden; background: #070708; }
@media (min-width: 520px) and (min-height: 560px) { .home { height: 100%; } }

.home-head { position: relative; z-index: 2; padding: calc(var(--safe-top) + 18px) 28px 0; }
.home-top { display: flex; justify-content: space-between; align-items: flex-start; }
.home-top h1 { font-size: min(46px, 12.5cqw); white-space: nowrap; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; margin-top: 6px;
  border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--fg); border-color: rgba(255,255,255,.4); }

.home-date, .home-sum { font-family: var(--mono); font-size: 14px; letter-spacing: -0.01em; }
.home-date { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.home-date a { color: var(--faint); padding: 2px 0; transition: color .2s; }
.home-date a:hover { color: var(--fg); }
.home-sum { margin-top: 18px; line-height: 1.5; }
.home-sum .term { text-decoration: underline solid rgba(255,255,255,.85); text-underline-offset: 4px; }
.scanning { color: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.earth {
  position: absolute; z-index: 0; border-radius: 50%; overflow: hidden;
  /* fallback globe while the photo loads or if EPIC is unavailable */
  background: radial-gradient(circle at 50% 8%, #4f86d9 0%, #1d4a8f 18%, #0b2148 45%, #050b18 75%);
  box-shadow: 0 0 40px 6px rgba(90, 160, 255, .45), 0 0 140px 30px rgba(60, 120, 255, .18);
}
.earth::after {   /* atmosphere rim */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 18px 4px rgba(150, 200, 255, .55), inset 0 0 60px 10px rgba(80, 150, 255, .25);
  pointer-events: none;
}
.earth img { position: absolute; max-width: none; opacity: 0; transition: opacity 1.2s ease; }
.earth img.loaded { opacity: 1; }

.field { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.ring-label { font: 9px var(--mono); fill: rgba(255,255,255,.3); letter-spacing: .04em; }
.obj-line { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.obj-line, .obj-dist { opacity: var(--focus, 0); }
.obj-dist { font: 10px var(--mono); fill: rgba(255,255,255,.75); text-anchor: middle; }
.obj-name { font: 10px var(--mono); fill: #fff; text-anchor: middle; letter-spacing: .02em; }
.obj .obj-dot { transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.obj:hover .obj-dot, .obj:focus .obj-dot { transform: scale(1.35); }
.obj.is-hazard .obj-line { stroke: rgba(255,106,61,.4); }
.obj.is-hazard .obj-name { fill: #ff8a63; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-tag {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 3px 8px;
}

/* Carousel */
.home { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.home.dragging { cursor: grabbing; }
.home.dragging .obj { pointer-events: none !important; }
.pager {
  position: absolute; z-index: 3; left: 50%; bottom: 62px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 99px;
  background: rgba(0, 0, 0, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  font: 11px var(--mono); letter-spacing: .04em; color: rgba(255, 255, 255, .8);
}
.pager[hidden] { display: none; }
.pager span { min-width: 64px; text-align: center; }
.pager button {
  width: 28px; height: 28px; border-radius: 50%; color: rgba(255,255,255,.6);
  transition: background .2s, color .2s;
}
.pager button:hover { background: rgba(255,255,255,.1); color: #fff; }
.earth img { will-change: transform; }

/* Orbit ring of each asteroid — fades in and out together with it */
.obj-orbit { fill: none; stroke: #fff; stroke-opacity: .12; pointer-events: none; }
.obj.is-hazard .obj-orbit { stroke: #ff6a3d; stroke-opacity: .22; }

/* Night Earth */
.earth canvas { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 1.2s ease; will-change: transform; }
.earth canvas.loaded { opacity: 1; }
.earth:not(.is-night) canvas, .earth.is-night img { display: none; }
.earth.is-night {
  background: radial-gradient(circle at 50% 6%, #0d1a33 0%, #060b17 30%, #03050b 60%);
  box-shadow: 0 0 36px 4px rgba(70, 130, 255, .4), 0 0 120px 24px rgba(40, 90, 220, .16);
}
.earth.is-night::after {
  box-shadow: inset 0 0 14px 3px rgba(130, 180, 255, .5), inset 0 0 50px 8px rgba(60, 120, 255, .18);
}

/* Home header: just the date */
.home-head { padding-top: calc(var(--safe-top) + 12px); }
.home-head .home-date { justify-content: center; margin-top: 0; gap: 16px; font-size: 13px; }
.home-head .home-date a { padding: 6px 4px; }

/* home indicator shows only inside the desktop phone frame */
.phone-indicator { display: none; }


/* ---------- Asteroid screen: flyby dossier ---------- */
.app.is-neo { padding-top: 0; --bar-h: calc(var(--safe-top) + 52px); }

.neo-bar {
  position: sticky; top: 0; z-index: 10;
  height: var(--bar-h);
  margin: 0 -20px calc(-1 * var(--bar-h));
  padding: var(--safe-top) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.neo-bar.is-stuck {
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.neo-bar-name {
  font-weight: 500; font-size: 15px; opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.neo-bar.is-stuck .neo-bar-name { opacity: 1; transform: none; }
.round-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s;
}
.round-btn:hover { background: rgba(255,255,255,.12); }
.round-btn.is-ghost { visibility: hidden; }

.neo-hero {
  position: relative; margin: 0 -20px; height: calc(var(--safe-top) + 300px);
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 60%, #121216 0%, #0b0b0c 60%);
}
.neo-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.neo-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.neo-hero .rock-big {
  position: absolute; left: 50%; top: calc(var(--safe-top) + 150px);
  width: 150px; height: 150px; margin: 0; transform: translate(-50%, -50%);
}
.neo-hero.is-hazard .rock-big::after { background: radial-gradient(circle, rgba(255,106,61,.18), transparent 60%); }

.neo-title { position: relative; z-index: 1; margin-top: -18px; padding-bottom: 8px; }
.neo-title h1 { font-family: var(--display); font-size: 42px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line);
}
.tag.mono { font-family: var(--mono); font-size: 11px; }
.tag.is-hazard { color: var(--hazard); border-color: rgba(255,106,61,.35); background: rgba(255,106,61,.06); }

.is-neo .section { padding: 36px 0 4px; border-top: 1px solid var(--line); margin-top: 28px; }
.is-neo .neo-title + .section { margin-top: 20px; }
.s-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.s-num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.is-neo .section .s-head h2 {
  font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
  text-transform: none; color: var(--fg); margin: 0;
}
.s-note { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.flyby-when { font-family: var(--mono); font-size: 15px; margin-bottom: 14px; }
.barcode { width: 100%; height: auto; display: block; overflow: visible; }
.bc-label { font: 9.5px var(--mono); fill: rgba(255,255,255,.45); }
.bc-label.is-strong { fill: #fff; }
.bc-caption { font-size: 12px; color: var(--faint); margin-top: 6px; }

.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.numbers.single { grid-template-columns: 1fr; margin-top: 0; padding-top: 0; border-top: 0; }
.numbers .big { font-family: var(--mono); font-size: 30px; letter-spacing: -0.045em; line-height: 1.1; margin-top: 6px; }
.numbers .big small { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.numbers .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

.size-art { width: 100%; height: auto; display: block; margin-top: 18px; }
.is-neo .note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.is-neo .note b { color: var(--fg); font-weight: 500; }

.orbit-wrap {
  border: 1px solid var(--line); border-radius: 22px; padding: 6px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 210, 122, .05), transparent 55%);
}
.is-neo .facts { margin-top: 16px; }
.is-neo .fact .v { font-size: 15px; }
.is-neo .timeline { height: auto; margin-bottom: 0; }

.q-word { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.is-neo .seg-scale { margin-bottom: 0; }

.is-neo .ext { margin-top: 40px; }
.is-neo .ext > span:first-child { display: flex; flex-direction: column; gap: 4px; color: var(--fg); }
.is-neo .ext .eyebrow { font-size: 10px; }

/* ---------- Asteroid card over the home screen ---------- */
.card-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.card-layer.open { pointer-events: auto; }
.neo-card {
  position: absolute; left: 50%; top: 27%; bottom: 20px;
  width: min(390px, calc(100% - 32px));
  display: flex; flex-direction: column;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 5, 8, .78) 0%, rgba(8, 14, 20, .5) 100%);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  container-type: inline-size;
  opacity: 0; transform: translate(-50%, 48px) scale(.97);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .25, 1);
}
.card-layer.open .neo-card { opacity: 1; transform: translate(-50%, 0); }

.card-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: rgba(255,255,255,.75);
  transition: background .2s, color .2s;
}
.card-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.card-scroll {
  flex: 1; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.card-scroll::-webkit-scrollbar { display: none; }
.neo-card .simple { padding: 44px 20px 12px; }
.neo-card .simple hr { margin: 30px auto; }
.neo-card .simple-head h1,
.neo-card .simple-fig .huge { font-size: min(54px, 14cqw); font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.neo-card .simple-head p { font-size: 13px; }
.neo-card .simple-fig p { font-size: 14px; margin-top: 14px; }
.neo-card .kicker { margin-bottom: 10px; }
.simple-loading { font: 11px var(--mono); color: var(--faint); letter-spacing: .04em; }

/* big figure + one sentence */
.simple { text-align: center; }
.simple-head h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.simple-head p { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-weight: 300; color: rgba(255,255,255,.85); }
.simple-head p .hz { color: var(--hazard); }
.simple hr { border: 0; height: 1px; width: 72%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); }
.simple .kicker { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.simple-fig .huge { font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.simple-fig p { margin-left: auto; margin-right: auto; max-width: 290px; font-weight: 300; line-height: 1.45; color: rgba(255,255,255,.85); }
.simple-foot { font-size: 12px; color: var(--faint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.card-cta {
  flex: none; margin: 8px 16px 16px; height: 56px; border-radius: 99px;
  display: grid; place-items: center;
  background: #fff; color: #050505; font-weight: 500; font-size: 15px;
  transition: transform .15s, background .2s;
}
.card-cta:hover { background: #e9e9e7; }
.card-cta:active { transform: scale(.98); }

.home .pager, .home .demo-tag { transition: opacity .3s; }
.home.card-open .pager, .home.card-open .demo-tag { opacity: 0; pointer-events: none; }

/* ---------- Zoom towards the asteroid while its card is open ---------- */
.scene {
  position: absolute; inset: 0; z-index: 0;
  transform-origin: 0 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.home .home-head { transition: opacity .4s; }
.home.card-open .home-head { opacity: 0; pointer-events: none; }
/* the other asteroids step back */
.obj > * { transition: opacity .4s; }
.home.card-open .obj:not(.is-focus) > * { opacity: .25; }
.home.card-open .obj.is-focus .obj-dist { opacity: 0; }
