/* ==========================================================================
   Speedmaster Gonzales™ — Unified Theme
   Mission Control design DNA, shared across the whole public site.
   The public site is the museum; Mission Control is the back office —
   same world, same light. Dark lunar identity throughout.
   ========================================================================== */

:root {
  /* Mission Control tokens (source of truth). Space speaks moon-silver;
     brass/gold is reserved for the Explorer room and the Circle key. */
  --space: #04060c;
  --ink: #ece5d8;
  --muted: #b3a795;
  --quiet: #7e7568;
  --line: rgba(160, 180, 210, .14);
  --panel: rgba(10, 15, 26, .78);
  --panel-solid: #0a0f1a;
  --brass: #b9c9e2;
  --brass-soft: #dfe8f5;
  --orange: #e8641b;
  --amber: #ffb454;
  --red: #e0685c;
  --green: #6fd08c;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* Legacy aliases used by existing public-site stylesheets */
  --accent: #b9c9e2;
  --accent-soft: #dfe8f5;
  --bg: #04060c;
}

html { background: #04060c; }

/* Guard for the full-bleed hero: 100vw must never create a horizontal
   scrollbar. `clip` (not hidden) keeps position: sticky working. */
html, body { overflow-x: clip; }

/* --------------------------------------------------------------------------
   Top navigation — slim console bar on every public page
   -------------------------------------------------------------------------- */
.sg-topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 11px clamp(16px, 4vw, 40px);
  background: rgba(4, 6, 12, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sg-topnav .sg-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; font-weight: 600; letter-spacing: .01em;
  color: var(--brass-soft); text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 14px rgba(232, 207, 159, .35);
}
.sg-topnav .sg-brand:hover { color: #fff; }
.sg-topnav .sg-navlinks {
  display: flex; gap: 4px 16px; flex-wrap: wrap; margin-left: auto;
}
.sg-topnav .sg-navlinks a {
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 1px solid transparent;
}
.sg-topnav .sg-navlinks a:hover { color: var(--brass-soft); border-bottom-color: var(--brass); }
@media (max-width: 760px) {
  /* Mobile header: brand + Circle key on one row, the section links in a
     single horizontally-scrollable row beneath — no more stacked tower. */
  .sg-topnav { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .sg-topnav .sg-brand { font-size: 17px; }
  .sg-topnav .sg-circle-key {
    margin-left: auto;
    font-size: 14px;
    padding: 6px 14px;
  }
  .sg-topnav .sg-navlinks {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px 16px;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sg-topnav .sg-navlinks::-webkit-scrollbar { display: none; }
  .sg-topnav .sg-navlinks a {
    flex: none;
    font-size: 10px; letter-spacing: .08em;
  }
}
/* The Circle key — not an eighth nav link but the door to the study:
   a distinct brass key, visually separated from the content tour. */
.sg-topnav .sg-circle-key {
  flex: none; margin-left: 4px; white-space: nowrap;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px; font-weight: 600; letter-spacing: .05em;
  color: #1c0d03; text-decoration: none;
  background: linear-gradient(180deg, #e8cf9f 0%, #cda56f 55%, #a8824a 100%);
  border: 1px solid rgba(255, 232, 185, .65);
  padding: 7px 18px; border-radius: 999px;
  box-shadow: 0 0 16px rgba(205, 165, 111, .35), inset 0 1px 0 rgba(255,255,255,.5);
}
.sg-topnav .sg-circle-key:hover {
  color: #1c0d03;
  box-shadow: 0 0 26px rgba(205, 165, 111, .65), inset 0 1px 0 rgba(255,255,255,.5);
}

/* --------------------------------------------------------------------------
   Kicker / eyebrow — the section label voice.
   Space reads like a console: mono, silver, prefixed with a comment mark.
   -------------------------------------------------------------------------- */
.sg-eyebrow {
  color: #b9c9e2;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(185, 201, 226, .35);
}
.sg-eyebrow::before {
  content: "// ";
  color: #6b7688;
  text-shadow: none;
}
.sg-kicker {
  color: var(--quiet); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   Buttons — Apollo console keys. Rectangular, mono-labelled, amber LED;
   they press like hardware. (The orange "solid" key is the commit switch.)
   -------------------------------------------------------------------------- */
.sg-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #1b2438 0%, #0e1524 55%, #080d18 100%);
  border: 1px solid rgba(160, 180, 210, .24);
  border-top-color: rgba(205, 225, 250, .38);
  padding: 11px 18px; border-radius: 4px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.sg-btn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--amber); box-shadow: 0 0 8px var(--amber);
}
.sg-btn:hover {
  border-color: var(--brass); transform: translateY(-1px); color: var(--brass-soft);
  box-shadow: 0 3px 0 rgba(0,0,0,.65), 0 10px 22px rgba(0,0,0,.5), 0 0 16px rgba(185,201,226,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.sg-btn:active { transform: translateY(2px); }
.sg-btn:focus-visible {
  outline: 2px solid #b9c9e2;
  outline-offset: 2px;
}
.sg-btn.solid {
  background: linear-gradient(180deg, #f07f2e 0%, #d55a12 60%, #b34a0e 100%);
  border-color: rgba(255, 170, 110, .55); border-top-color: rgba(255, 205, 160, .75);
  color: #1c0d03;
  box-shadow: 0 2px 0 rgba(0,0,0,.6), 0 8px 22px rgba(232, 100, 27, .45), inset 0 1px 0 rgba(255,255,255,.4);
}
.sg-btn.solid::before { background: #1c0d03; box-shadow: 0 0 8px rgba(28,13,3,.8); }
.sg-btn.solid:hover { border-color: #ffc890; color: #1c0d03;
  box-shadow: 0 3px 0 rgba(0,0,0,.6), 0 12px 28px rgba(232, 100, 27, .6), inset 0 1px 0 rgba(255,255,255,.45); }

/* --------------------------------------------------------------------------
   Cards — instrument panels. Sharp corners, hairline bezels, and a tiny
   calibration tick strip top-right, like the edge of a console module.
   -------------------------------------------------------------------------- */
.sg-card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 24, 39, .92), rgba(8, 12, 22, .94));
  border: 1px solid var(--line);
  border-radius: 6px; padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 32px rgba(0,0,0,.5);
}
.sg-card::before {
  content: ""; position: absolute; top: 9px; right: 12px;
  width: 34px; height: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(185,201,226,.5) 0 6px, transparent 6px 11px);
}
.sg-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.sg-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* --------------------------------------------------------------------------
   Pills — status / taxonomy tags
   -------------------------------------------------------------------------- */
.sg-pill {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  font-family: var(--mono); color: var(--brass-soft);
  border: 1px solid var(--brass); background: transparent;
}

/* --------------------------------------------------------------------------
   Tables — ledgers
   -------------------------------------------------------------------------- */
table.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sg-table th {
  text-align: left; color: var(--quiet); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; font-family: var(--mono);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.sg-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
table.sg-table tr:last-child td { border-bottom: none; }
table.sg-table td.num, table.sg-table th.num {
  font-family: var(--mono); font-weight: 600; color: var(--brass-soft);
  font-variant-numeric: tabular-nums; text-align: right;
}

/* --------------------------------------------------------------------------
   Footer — the sitemap deck
   -------------------------------------------------------------------------- */
.sg-footer {
  margin-top: 64px; padding: 44px clamp(20px, 5vw, 56px) 54px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 22, .6), rgba(4, 6, 12, .95));
}
.sg-sitemap {
  display: grid; gap: 26px 32px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 1160px; margin: 0 auto 30px;
}
.sg-sitemap h4 {
  margin: 0 0 12px; color: var(--brass-soft);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.sg-sitemap a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; padding: 4px 0; line-height: 1.5;
}
.sg-sitemap a:hover { color: var(--brass-soft); }
.sg-footer .sg-brandline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--brass-soft);
  margin: 0 0 8px; text-align: center;
}
.sg-footer .sg-fine {
  color: var(--quiet); font-size: 12.5px; line-height: 1.7;
  max-width: 760px; margin: 0 auto 8px; text-align: center;
}
.sg-footer .sg-fine a { color: var(--muted); }
.sg-footer .sg-fine a:hover { color: var(--brass-soft); }
.sg-footer .sg-top { text-align: center; margin-top: 18px; }
.sg-footer .sg-top a {
  color: var(--quiet); text-decoration: none; font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.sg-footer .sg-top a:hover { color: var(--brass-soft); }

@media (prefers-reduced-motion: reduce) {
  .sg-btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Theme toggle — Space / Explorer. One clear pill: moon dot for Space,
   compass dot for Explorer, sliding brass knob under the active room.
   Hidden on small screens where the header is already crowded.
   -------------------------------------------------------------------------- */
.sg-theme-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  padding: 3px;
  margin-left: 2px;
  cursor: pointer;
}
.sg-theme-toggle .sg-tt-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease;
}
.sg-theme-toggle .sg-tt-glyph {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}
.sg-theme-toggle .sg-tt-study .sg-tt-glyph {
  background: #c3d2ec;
  box-shadow: 0 0 8px rgba(195, 210, 236, .9);
}
.sg-theme-toggle .sg-tt-classic .sg-tt-glyph {
  /* Brass dot on purpose: it hints at the other room, which is warm. */
  background: #d9a95c;
  box-shadow: 0 0 8px rgba(217, 169, 92, .9);
}
.sg-theme-toggle .sg-tt-knob {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, #dfe8f5 0%, #b9c9e2 60%, #8fa3c4 100%);
  box-shadow: 0 0 14px rgba(185, 201, 226, .5);
  transition: transform .3s cubic-bezier(.55, .1, .25, 1.15), background-color .25s ease;
}
.sg-theme-toggle[aria-checked="true"] .sg-tt-knob {
  transform: translateX(100%);
  background: linear-gradient(180deg, #f2d9a4 0%, #d9a95c 60%, #a87c33 100%);
  box-shadow: 0 0 14px rgba(217, 169, 92, .55);
}
.sg-theme-toggle .sg-tt-opt.is-active { color: #1c0d03; }
.sg-theme-toggle:hover { border-color: var(--brass); }
.sg-theme-toggle:focus-visible {
  outline: 2px solid var(--brass-soft);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .sg-theme-toggle { display: none; }
}

/* Seamless room change: the lights dim, the theme swaps mid-fade,
   the lights come back up. Driven by theme-switch.js; skipped for
   prefers-reduced-motion. */
body { transition: opacity .17s ease; }
html.sg-theme-fading body { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* --------------------------------------------------------------------------
   Existing footer chrome, translated into Mission Control's voice
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3em;
  padding: 2.6em clamp(24px, 6vw, 58px) 3em;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; color: var(--brass-soft);
  text-shadow: 0 0 14px rgba(232, 207, 159, .35);
}
.site-footer p { margin: 0 0 8px; color: var(--quiet); font-size: 13.5px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px; margin: 0 0 20px;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   CTA band — homepage section teasers in the same voice
   -------------------------------------------------------------------------- */
.sg-band {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 58px);
  margin: 8px auto;
  max-width: 1160px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(185, 201, 226, .07), transparent 70%),
    transparent;
}
.sg-band h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -.02em;
  margin: 10px 0 12px; color: var(--ink);
}
.sg-band .sg-eyebrow { display: block; }
.sg-band-deck {
  color: var(--muted); font-size: 16.5px; line-height: 1.7;
  max-width: 620px; margin: 0 auto 22px;
}

/* --------------------------------------------------------------------------
   Section rules — calibration ticks. Page <style> blocks draw the hairline;
   the theme plants a small tick group straddling it, centered, like the
   index marks on an instrument bezel.
   -------------------------------------------------------------------------- */
.section-rule { position: relative; }
.section-rule::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 32px; height: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, rgba(185,201,226,.6) 0 8px, transparent 8px 12px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   SPACE identity — the default room is mission control.
   Ice-blue and moon-silver where the other room is brass and lamplight.
   -------------------------------------------------------------------------- */

/* Starlight over the hero band — two depth planes. A far field of tiny dim
   stars, and a near plane of brighter stars with a breath of glow, so the
   sky has the depth of the universe, not a flat speckle. Present, never loud. */
section.identity {
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(218,230,252,.9), transparent 62%),
    radial-gradient(1.5px 1.5px at 29% 60%, rgba(205,220,245,.62), transparent 60%),
    radial-gradient(2px 2px at 47% 14%, rgba(222,234,253,.85), transparent 62%),
    radial-gradient(1.5px 1.5px at 64% 74%, rgba(205,220,245,.58), transparent 60%),
    radial-gradient(2.5px 2.5px at 77% 26%, rgba(226,237,255,.9), rgba(180,200,240,.28) 46%, transparent 70%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(205,220,245,.62), transparent 60%),
    radial-gradient(1px 1px at 5% 48%, rgba(190,208,238,.42), transparent 60%),
    radial-gradient(1px 1px at 19% 82%, rgba(190,208,238,.34), transparent 60%),
    radial-gradient(1px 1px at 36% 38%, rgba(190,208,238,.38), transparent 60%),
    radial-gradient(1px 1px at 55% 8%, rgba(190,208,238,.36), transparent 60%),
    radial-gradient(1px 1px at 58% 90%, rgba(190,208,238,.32), transparent 60%),
    radial-gradient(1px 1px at 70% 46%, rgba(190,208,238,.4), transparent 60%),
    radial-gradient(1px 1px at 84% 84%, rgba(190,208,238,.34), transparent 60%),
    radial-gradient(1px 1px at 95% 34%, rgba(190,208,238,.4), transparent 60%),
    radial-gradient(70% 90% at 50% 0%, rgba(120, 150, 200, .05), transparent 70%);
  background-repeat: no-repeat;
}

/* Hero creed — the tool-watch line under the descriptor. Quiet, confident. */
.hero-creed {
  margin: .9rem 0 0;
  font-size: 1.06rem;
  font-style: italic;
  letter-spacing: .05em;
  color: #d7e0f2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* Moon-glow on the brand wordmark: cool silver halo, not lamplight. */
.sg-topnav .sg-brand {
  text-shadow: 0 0 8px rgba(228, 238, 252, .55), 0 0 26px rgba(150, 175, 220, .35);
}
.footer-brand {
  text-shadow: 0 0 8px rgba(228, 238, 252, .5), 0 0 24px rgba(150, 175, 220, .3);
}

/* Mission-patch badges: circular, mono type, thin ice-blue ring. */
.sg-patch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  border: 1px solid rgba(195, 210, 236, .55);
  background: radial-gradient(circle at 50% 32%, rgba(32, 44, 70, .92), rgba(8, 12, 22, .96));
  box-shadow:
    inset 0 0 0 3px rgba(4, 6, 12, .9),
    inset 0 0 0 4px rgba(195, 210, 236, .28),
    0 0 20px rgba(150, 175, 220, .22);
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  color: #c3d2ec; line-height: 1.5; padding: 8px;
}

/* Theme-aware hero caption: the explorer caption only exists in the
   explorer room; the space caption is the default. */
.backdrop-note-explorer { display: none; }

/* --------------------------------------------------------------------------
   SEAMLESS FIELD + FLOATING COPY/DATA
   One continuous deep-space backdrop across the whole page — no boxes,
   no seams. Panels, cards and data float above it on soft shadow.
   -------------------------------------------------------------------------- */

/* The page shell is not a box: the themed background flows straight through. */
.page-shell { background: transparent; box-shadow: none; }

/* Full-page deep field: vignette, nebula washes in ice-blue, violet and teal
   for the depth of the universe, then two planes of starlight, seamless
   top to bottom. */
body {
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 58%, rgba(0,0,0,.52) 100%),
    radial-gradient(90% 55% at 50% -6%, rgba(120,150,200,.10), transparent 62%),
    radial-gradient(70% 45% at 50% 108%, rgba(96,74,160,.08), transparent 62%),
    radial-gradient(58% 38% at 84% 30%, rgba(112,92,184,.07), transparent 65%),
    radial-gradient(52% 36% at 10% 64%, rgba(72,142,162,.06), transparent 65%),
    radial-gradient(40% 28% at 60% 78%, rgba(120,150,200,.05), transparent 65%),
    radial-gradient(1.5px 1.5px at 3% 30%, rgba(210,224,248,.6), transparent 60%),
    radial-gradient(2px 2px at 14% 6%, rgba(220,232,252,.7), transparent 62%),
    radial-gradient(1px 1px at 6% 12%, rgba(205,220,245,.55), transparent 60%),
    radial-gradient(1px 1px at 18% 44%, rgba(205,220,245,.32), transparent 60%),
    radial-gradient(1.5px 1.5px at 31% 8%, rgba(205,220,245,.5), transparent 60%),
    radial-gradient(1px 1px at 43% 66%, rgba(205,220,245,.3), transparent 60%),
    radial-gradient(1px 1px at 55% 28%, rgba(205,220,245,.42), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 82%, rgba(205,220,245,.36), transparent 60%),
    radial-gradient(1px 1px at 79% 15%, rgba(205,220,245,.48), transparent 60%),
    radial-gradient(1px 1px at 90% 55%, rgba(205,220,245,.34), transparent 60%),
    radial-gradient(1.5px 1.5px at 95% 88%, rgba(205,220,245,.4), transparent 60%),
    radial-gradient(1px 1px at 12% 78%, rgba(205,220,245,.3), transparent 60%),
    radial-gradient(1px 1px at 24% 26%, rgba(190,208,238,.34), transparent 60%),
    radial-gradient(1px 1px at 37% 52%, rgba(190,208,238,.3), transparent 60%),
    radial-gradient(1px 1px at 48% 4%, rgba(190,208,238,.36), transparent 60%),
    radial-gradient(1px 1px at 62% 48%, rgba(190,208,238,.32), transparent 60%),
    radial-gradient(1px 1px at 74% 68%, rgba(190,208,238,.3), transparent 60%),
    radial-gradient(1px 1px at 86% 36%, rgba(190,208,238,.34), transparent 60%),
    radial-gradient(1px 1px at 97% 70%, rgba(190,208,238,.3), transparent 60%),
    /* Photographic deep field — mirrors the Explorer room: the moonbase
       Earthrise backdrop, already shadowed like wallpaper, dimmed lightly
       and fixed so it holds while scrolling. */
    linear-gradient(rgba(4, 6, 12, .40), rgba(4, 6, 12, .52)),
    url("backdrop-moonbase.jpg?v=20260922") center top / cover no-repeat fixed,
    #04060c;
  background-repeat: no-repeat;
}

/* Theme-aware hero: pure CSS swap driven by <html data-theme> — no JS
   timing involved. Full-bleed with no fade: the watch stays fully visible.
   Borderless full-bleed: breaks out of the 1160px page-shell to span the
   viewport edge to edge, on every page, in both rooms. */
.backdrop {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 16 / 10;
  min-height: 440px;
  max-height: 82vh;
  background: #0b0b0a url("backdrop.jpg?v=20260922") center 72% / cover no-repeat;
}
@media (max-width: 760px) {
  .backdrop { aspect-ratio: 1 / 1; min-height: 0; max-height: none; }
}

/* (ringed-world hero ornament removed 2026-09-22 per user request) */
.backdrop-note {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 11px;
  letter-spacing: .02em;
  color: rgba(235,230,220,.55);
  text-align: right;
  background: transparent;
}

/* Floating data: deeper levitation shadow on every instrument panel. */
.sg-card {
  box-shadow:
    0 34px 70px rgba(0,0,0,.55),
    0 6px 18px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* Seamless sections: bands are spacing + glow, never boxes. */
.sg-band { border-top: none; border-bottom: none; }
.sg-footer, .site-footer { border-top: none; }

/* Infinite scroll — true seamless feed (mobile).
   Inert everywhere unless [data-infinite] containers opt in.
   No visible counters, no end cards: the feed just flows.
   The status line is screen-reader-only; the feed closes with
   three quiet dots, never a box. */
[data-is-item][hidden] { display: none !important; }
.is-status {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-sentinel { min-height: 2px; }
.is-revealed { animation: is-rise .32s ease-out both; }
@keyframes is-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-revealed { animation: none; }
}
.is-endmark {
  margin: 30px 0 10px;
  text-align: center;
  color: var(--quiet, #7e7568);
  font-size: 18px;
  letter-spacing: .6em;
  text-indent: .6em;
  user-select: none;
}
.is-endmark::after { content: "\00B7\00B7\00B7"; }
.is-more-btn {
  display: block;
  margin: 14px auto 0;
  padding: 10px 22px;
  border: 1px solid var(--line, rgba(160,180,210,.14));
  border-radius: 4px;
  background: linear-gradient(180deg, #1b2438 0%, #0e1524 60%, #080d18 100%);
  color: var(--ink, #ece5d8);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
}
.is-more-btn:hover, .is-more-btn:focus-visible {
  border-color: var(--accent, #b9c9e2);
  color: var(--accent-soft, #dfe8f5);
  outline: none;
}
.is-more-btn:active { transform: translateY(2px); }
.hero-creed .creed-by{font-size:.62em;opacity:.75;letter-spacing:.14em;font-style:normal;white-space:nowrap;}

/* --------------------------------------------------------------------------
   Nav redesign 2026-09-22 — growth-plotted chrome.
   Top header: 4 links + one gold Subscribe CTA (never collapses).
   Inner pages (mobile): 5-tab bottom bar — Home / Market / Media /
   Valuation / Subscribe. Homepage keeps its section pill instead.
   -------------------------------------------------------------------------- */
.sg-topnav .sg-subscribe-cta {
  flex: none; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #1c0d03;
  background: linear-gradient(180deg, #f2dcaa 0%, #d9b47c 55%, #b28c52 100%);
  border: 1px solid rgba(255, 232, 185, .7);
  padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 0 18px rgba(217, 180, 124, .45), inset 0 1px 0 rgba(255,255,255,.55);
}
.sg-topnav .sg-subscribe-cta:hover {
  color: #1c0d03;
  box-shadow: 0 0 30px rgba(217, 180, 124, .75), inset 0 1px 0 rgba(255,255,255,.55);
}
/* "Members" seal — the paid membership, in the brand's voice. */
.sg-topnav .sg-subscribe-cta .sg-cta-tier {
  display: inline-block; margin-left: 8px; padding: 3px 8px 2px;
  font-size: 8.5px; letter-spacing: .18em;
  color: #f2dcaa; background: rgba(28, 13, 3, .8);
  border-radius: 999px; vertical-align: 2px; white-space: nowrap;
}

/* ---- Bottom tab bar (mobile only; inner pages) ---- */
.sg-tabbar { display: none; }
@media (max-width: 760px) {
  body.sg-has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sg-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 6, 12, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .sg-tabbar a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px 2px; text-decoration: none; color: var(--muted);
    font-family: var(--mono); font-size: 9.5px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    min-height: 48px; justify-content: center;
    position: relative;
  }
  .sg-tabbar a svg { width: 21px; height: 21px; }
  .sg-tabbar a[aria-current="page"] { color: var(--brass-soft); }
  .sg-tabbar a[aria-current="page"]::before {
    content: ""; position: absolute; top: 1px; left: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--brass); transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(205, 165, 111, .9);
  }
  .sg-tabbar a.sg-tab-subscribe { color: #e8cf9f; }
  .sg-tabbar a.sg-tab-subscribe[aria-current="page"] { color: #fff; }

  /* Mobile header rows: [brand + theme] / [4 links] — no header buttons on mobile */
  .sg-topnav .sg-subscribe-cta {
    display: none; /* mobile: the wide gold CTA is out — Subscribe lives in the tab bar; The Circle key stays */
  }
  .sg-topnav .sg-circle-key {
    display: none; /* mobile: The Circle key is out of the header too — /circle/ stays reachable via the footer */
  }
  .sg-topnav .sg-theme-toggle { order: 2; margin-left: auto; }
}
