/* ─────────────────────────────────────────────────────────────────────────────
   Phase & LUCID — site, releases, and documentation.
   Zero frameworks, zero external fonts, dark-first with light-mode toggle.
   Palette derived directly from the official LUCID icon manifest
   (Sparkle crimson #FF1A10 -> #E00000 on cool graphite/aluminum slate).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --brand:          #e00000;
  --brand-hi:       #ff1a10;
  --link:           #ff5b4f;
  --brand-soft:     rgba(255, 26, 16, 0.20);
  --brand-tint:     rgba(255, 26, 16, 0.14);

  --void:           #111215;
  --surface:        #191b1f;
  --surface-raised: #232529;
  --border:         rgba(201, 205, 214, 0.10);
  --border-strong:  rgba(201, 205, 214, 0.19);

  --text:           #f1f3f6;
  --text-muted:     #b4b9c4;
  --text-dim:       #8f95a1;

  --note:           #60a5fa;
  --tip:            #4ade80;
  --important:      #c084fc;
  --warning:        #fbbf24;

  --pad-x:          clamp(16px, 5vw, 56px);
  --max:            1040px;
  --wide:           1180px;
  --read:           740px;
  --header:         57px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --brand:          #e00000;
    --brand-hi:       #ff1a10;
    --link:           #c80800;
    --brand-soft:     rgba(224, 0, 0, 0.11);
    --brand-tint:     rgba(224, 0, 0, 0.08);
    --void:           #f4f5f7;
    --surface:        #ffffff;
    --surface-raised: #e9ecf0;
    --border:         rgba(20, 21, 24, 0.09);
    --border-strong:  rgba(20, 21, 24, 0.18);
    --text:           #141518;
    --text-muted:     #43464e;
    --text-dim:       #5a5e67;
    --note:           #2563eb;
    --tip:            #15803d;
    --important:      #7c3aed;
    --warning:        #b45309;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --brand:          #e00000;
  --brand-hi:       #ff1a10;
  --link:           #c80800;
  --brand-soft:     rgba(224, 0, 0, 0.11);
  --brand-tint:     rgba(224, 0, 0, 0.08);
  --void:           #f4f5f7;
  --surface:        #ffffff;
  --surface-raised: #e9ecf0;
  --border:         rgba(20, 21, 24, 0.09);
  --border-strong:  rgba(20, 21, 24, 0.18);
  --text:           #141518;
  --text-muted:     #43464e;
  --text-dim:       #5a5e67;
  --note:           #2563eb;
  --tip:            #15803d;
  --important:      #7c3aed;
  --warning:        #b45309;
  color-scheme: light;
}

.only-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .only-light { display: block !important; }
  :root:not([data-theme="dark"]) .only-dark { display: none !important; }
}
:root[data-theme="light"] .only-light { display: block !important; }
:root[data-theme="light"] .only-dark { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p a, li a, td a, figcaption a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 55%, transparent);
}
p a:hover, li a:hover, td a:hover, figcaption a:hover { text-decoration-color: currentColor; }
.sidebar a, .palette a, .pager a, .footer a, .crumbs a, a.button, a.card { text-decoration: none; }
.footer a:hover, .crumbs a:hover, .pager a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 12px; z-index: 100;
  background: var(--surface-raised); color: var(--text);
  padding: 8px 12px; border-radius: 8px;
}

code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 7px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 500;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  white-space: nowrap;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 0 0 16px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p, li { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* ──────────── Header ──────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 8px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px 4px;
  margin-left: auto;
}
.nav > a,
.nav-trigger {
  color: var(--text-muted);
  font: inherit;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav > a:hover,
.nav-trigger:hover { color: var(--text); text-decoration: none; background: var(--surface-raised); }
.nav > a[aria-current="page"],
.nav-trigger[aria-current="page"] { color: var(--text); background: var(--surface-raised); }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-caret { opacity: 0.7; transition: transform 140ms ease; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown.open .nav-submenu { display: flex; }
@media (hover: hover) {
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu { display: flex; }
  .nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
}
.nav-submenu a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}
.nav-submenu a strong { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; }
.nav-submenu a span { font-size: 12.5px; color: var(--text-dim); line-height: 1.3; }
.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] { background: var(--surface-raised); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search-button {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 5px 8px 5px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.search-button:hover { color: var(--text); border-color: var(--text-dim); }
.search-button kbd, .palette kbd { font-size: 12px; padding: 0 6px; color: var(--text-dim); border-bottom-width: 1px; }
.theme-button {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; width: 34px; height: 32px; cursor: pointer; font-size: 15px;
}
.theme-button:hover { color: var(--text); border-color: var(--text-dim); }
.top-cta {
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.top-cta:hover { text-decoration: none; }
@media (max-width: 960px) { .search-label, .search-button kbd { display: none; } }
@media (max-width: 680px) {
  .top-inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    margin: 0;
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }
  .nav > a, .nav-trigger { flex: none; }
  .top-actions { margin-left: auto; }
}

/* ──────────── Footer ──────────── */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 28px var(--pad-x) 40px;
  text-align: center;
  font-size: 15px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  color: var(--text-dim);
}
.footer a { color: var(--text-muted); }
.footer .fine { flex-basis: 100%; font-size: 13px; color: var(--text-dim); margin: 8px 0 0; }

/* ──────────── Landing & Overview Pages ──────────── */

.page { display: block; }
.hero {
  padding: 48px var(--pad-x) 36px;
  text-align: center;
  background: radial-gradient(ellipse 760px 420px at 50% 0%, var(--brand-soft), transparent 70%);
}
.hero img.mark {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.42));
}
.hero h1 {
  font-size: clamp(40px, 7vw, 58px);
  margin: 0;
  letter-spacing: -0.025em;
}
.hero .tagline {
  font-size: clamp(20px, 2.6vw, 24px);
  color: var(--text);
  margin: 10px 0 18px;
}
.hero p.lede { max-width: 660px; margin: 0 auto 10px; }
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0 16px;
}
.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface-raised);
}
.button:hover { text-decoration: none; border-color: var(--text-dim); }
.button.primary { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); border-color: transparent; color: #fff; }
.button.primary:hover { filter: brightness(1.07); }
.status-note, .facts { font-size: 14px; color: var(--text-dim); margin: 0; }

section.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px var(--pad-x);
}
section.band + section.band { border-top: 1px solid var(--border); }
section.band > p, section.band .intro { max-width: var(--read); }
section.band .intro { font-size: 18px; }
section.band.narrow { max-width: calc(var(--read) + 2 * var(--pad-x)); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--text);
}
a.card:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-raised); }
.card h3 { margin: 4px 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 15.5px; }
.card .glyph {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--link);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card .glyph svg {
  width: 17px;
  height: 17px;
  display: block;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; font-size: 15.5px; }

.list { padding-left: 1.15em; }
.list li { margin: 7px 0; }
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px 40px;
}
.two h2 { margin-top: 0; }
.two h3:first-child { margin-top: 0; }
.handback { font-size: 19px; color: var(--text); }

.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--link);
  vertical-align: middle;
  margin-left: 6px;
}
.pill.ok { background: color-mix(in srgb, var(--tip) 16%, transparent); color: var(--tip); }
.pill.warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }

.cmd-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 0;
  overflow-x: auto;
}
.cmd-box code {
  color: var(--text);
  font-size: 14px;
  white-space: pre;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.metric .val {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.metric .lbl {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.release-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 18px;
}
.release-entry h3 { margin-top: 0; }
.release-meta { font-size: 13.5px; color: var(--text-dim); margin: -2px 0 12px; }

/* ──────────── Help & Reference Docs ──────────── */

.docs { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad-x); display: flex; gap: 40px; }
.sidebar {
  position: sticky; top: var(--header); align-self: flex-start;
  width: 260px; flex-shrink: 0;
  height: calc(100vh - var(--header)); overflow-y: auto;
  padding: 28px 4px 40px 0;
}
.sidebar h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 20px 0 6px 10px; }
.sidebar h4:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-muted); font-size: 14.5px; line-height: 1.35; }
.sidebar a:hover { background: var(--surface-raised); color: var(--text); text-decoration: none; }
.sidebar a[aria-current="page"] { background: var(--brand-tint); color: var(--text); font-weight: 600; }
.mobile-nav { display: none; margin: 16px 0 0; }
.mobile-nav summary {
  cursor: pointer; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 14.5px; background: var(--surface); color: var(--text);
}
@media (max-width: 960px) {
  .sidebar { display: none; }
  .mobile-nav { display: block; }
  .docs { display: block; }
  .mobile-nav .sidebar-body { padding: 12px 4px; }
}
main.doc { min-width: 0; flex: 1; max-width: 820px; padding: 32px 0 48px; }
.page.doc { margin: 0 auto; padding: 44px var(--pad-x) 64px; max-width: calc(var(--read) + 2 * var(--pad-x)); }
.crumbs { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.crumbs a { color: var(--text-muted); }
.doc-summary { font-size: 19px; color: var(--text-muted); margin: 0 0 22px; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pager a { display: flex; flex-direction: column; color: var(--text); }
.pager a span { color: var(--text-dim); font-size: 13px; }
.pager a.next { margin-left: auto; text-align: right; }
.contrib {
  margin-top: 24px; font-size: 14px; color: var(--text-muted);
  border-left: 3px solid var(--brand); background: var(--surface);
  border-radius: 0 10px 10px 0; padding: 12px 16px;
}

/* Prose */
.prose h1 { font-size: clamp(32px, 5vw, 42px); letter-spacing: -.02em; line-height: 1.15; margin: 4px 0 12px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; padding-top: 8px; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 5px 0; }
.prose code {
  background: var(--surface-raised); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere;
}
.prose pre {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }
.prose td { color: var(--text-muted); }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.prose kbd { font-size: 0.8em; }
.prose h2 a.anchor, .prose h3 a.anchor { visibility: hidden; margin-left: 6px; color: var(--text-dim); text-decoration: none; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { visibility: visible; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header) + 16px); }

/* Pandoc GFM alerts */
.prose div.note, .prose div.tip, .prose div.important, .prose div.warning, .prose div.caution {
  border-left: 3px solid var(--c); background: var(--surface);
  border-radius: 0 10px 10px 0; padding: 10px 18px; margin: 18px 0;
}
.prose div.note { --c: var(--note); }
.prose div.tip { --c: var(--tip); }
.prose div.important { --c: var(--important); }
.prose div.warning, .prose div.caution { --c: var(--warning); }
.prose div > .title p { margin: 2px 0 0; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.prose div.note p, .prose div.tip p, .prose div.important p, .prose div.warning p, .prose div.caution p { margin: 6px 0; }

.hub-group { margin: 32px 0; }
.hub-group h2 { font-size: 21px; margin: 0 0 10px; }
.hub-group .grid { margin-top: 12px; }
.hub-group .card h3 { margin-top: 0; }

/* ──────────── Search Palette ──────────── */

.palette { position: fixed; inset: 0; z-index: 60; display: none; }
.palette.open { display: block; }
.palette .scrim { position: absolute; inset: 0; background: rgba(8, 6, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.palette .panel {
  position: relative; margin: 12vh auto 0; width: min(640px, calc(100% - 32px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4); overflow: hidden;
}
.palette .field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding: 0 14px; color: var(--text-dim); }
.palette input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; padding: 14px 0; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.palette li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.palette li a:hover, .palette li a.active { background: var(--brand-tint); }
.palette .group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--link); margin-right: 8px; }
.palette .snippet { display: block; color: var(--text-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette .empty, .palette .hint { padding: 16px; color: var(--text-dim); font-size: 13.5px; text-align: center; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero img.mark { width: 96px; height: 96px; }
  section.band { padding: 38px var(--pad-x); }
}

/* ──────────── Interactive Globe Hero & 3-Act Narrative ──────────── */

.hero-globe {
  padding: clamp(32px, 5vw, 56px) var(--pad-x) clamp(36px, 5vw, 52px);
  background: radial-gradient(ellipse 880px 460px at 72% 28%, var(--brand-soft), transparent 72%);
  border-bottom: 1px solid var(--border);
}
.hero-globe-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 28px clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 14px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.09;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
  color: var(--text);
}
.hero-copy .lede {
  font-size: clamp(17px, 1.8vw, 18.5px);
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.hero-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-left: 4px;
  font-size: 15.5px;
  font-weight: 500;
}
.hero-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
}
.hero-links a:hover {
  color: var(--text);
  border-bottom-color: var(--link);
  text-decoration: none;
}

.globe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}
.globe-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
#phase-globe {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.globe-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-top: -10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  color: var(--text-muted);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.globe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.globe-dot.is-lucid { background: var(--link); }
.globe-dot.is-lumen { background: var(--warning); }
.globe-dot.is-plasm { background: var(--note); }
.globe-story {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.globe-kind {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.globe-kind.is-lucid { background: var(--brand-tint); color: var(--link); }
.globe-kind.is-lumen { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.globe-kind.is-plasm { background: color-mix(in srgb, var(--note) 16%, transparent); color: var(--note); }
.globe-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 42ch;
}

/* ──────────── Act Headers, Feature Splits & Story Callouts ──────────── */

.act-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--link);
}
.act-kicker .pill { margin-left: 0; text-transform: none; letter-spacing: 0; }
.act-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 40px;
  align-items: start;
  margin-top: 22px;
}
.act-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  padding: 20px 22px;
}
.story-card p { margin: 0; font-size: 16px; color: var(--text-muted); }
.story-card p + p { margin-top: 12px; }
.story-card .story-lead { color: var(--text); font-weight: 500; }

.status-banner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--warning);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 0 auto;
  max-width: var(--max);
}
.status-banner.is-info { border-left-color: var(--note); }
.status-banner h2, .status-banner h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  color: var(--text);
}
.status-banner p { margin: 0; font-size: 15.5px; }

/* ──────────── Cross-Platform Matrix Table ──────────── */

.matrix-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}
.platform-table th, .platform-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.platform-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--surface-raised);
}
.platform-table tbody tr:last-child th,
.platform-table tbody tr:last-child td { border-bottom: 0; }
.platform-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.platform-table td { color: var(--text-muted); }

.figure-block { margin: 24px 0 0; }
.figure-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
.figure-block figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

@media (max-width: 920px) {
  .hero-globe-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .globe-stage { max-width: 400px; }
  .act-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .globe-pill { font-size: 12.5px; padding: 6px 11px; gap: 7px; }
}
