/* Earth Exports · Ohio Outpost // Sol-3 — Cosmic Voyager / Deck 01 WILD restyle
   PUBLIC  = collector-traveler freighter lounge (Fresnel viewport, hull chrome)
   OUTPOST = amber phosphor trade console (hard CRT contrast)
   Canon palette anchors kept; Helion / star glow / warm practicals EXTENDED.
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* Brand locks */
  --teal: #00A896;
  --teal-deep: #028090;
  --teal-bright: #1BC4B0;
  --orange: #F77F00;
  --orange-hot: #FF8F1F;
  --offwhite: #E0E6ED;
  --cream: #E6E0D4;
  --cream-soft: #EDE8DE;
  --amber: #FFB000;
  --amber-dim: rgba(255, 176, 0, 0.45);
  --phosphor: #5BBEFF;
  --muted: #8B95A5;
  --redact: #3A4558;

  /* Deck / hull */
  --slate-deep: #0B0E14;
  --slate: #0D1117;
  --subdeck: #1C2331;
  --charcoal: #0B0E14;
  --charcoal-mid: #121820;
  --charcoal-lift: #1A222C;
  --border: #2E384C;
  --metal: #141A24;
  --metal-edge: #3A465C;
  --hull-cream: rgba(230, 224, 212, 0.12);

  /* Helion (ringheart) crystal accents — EXTENDED */
  --helion: #7B5CFF;
  --helion-hot: #A78BFF;
  --helion-glow: 0 0 24px rgba(123, 92, 255, 0.45), 0 0 48px rgba(123, 92, 255, 0.18);
  --star-glow: 0 0 20px rgba(91, 190, 255, 0.35);
  --warm-practical: #C4A574;

  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", "Consolas", monospace;

  --max: 1120px;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --glow-teal: 0 0 22px rgba(0, 168, 150, 0.35), 0 8px 28px rgba(0, 168, 150, 0.14);
  --glow-orange: 0 0 18px rgba(247, 127, 0, 0.35), 0 8px 24px rgba(247, 127, 0, 0.16);
  --glow-amber: 0 0 16px rgba(255, 176, 0, 0.28);
  --shadow-hull: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(230, 224, 212, 0.06);
}

/* —— Face tokens —— */
html[data-face="public"],
html:not([data-face]) {
  --face-bg: var(--slate-deep);
  --face-surface: linear-gradient(165deg, #151C28 0%, #0D121A 50%, #0A0E14 100%);
  --face-card: linear-gradient(160deg, #1A2330 0%, #121820 60%, #0E141C 100%);
  --face-ink: var(--cream-soft);
  --face-muted: #9AA5B4;
  --face-accent: var(--teal);
  --face-accent-2: var(--orange);
  --face-radius: 6px;
  --face-font: var(--font-sans);
  --face-heading: var(--font-display);
  --face-glow: var(--glow-teal);
}

html[data-face="outpost"] {
  --face-bg: #050608;
  --face-surface: linear-gradient(180deg, #0C1016 0%, #06080C 100%);
  --face-card: linear-gradient(160deg, #10161E 0%, #080B10 100%);
  --face-ink: #FFE8B0;
  --face-muted: #A89060;
  --face-accent: var(--amber);
  --face-accent-2: var(--teal);
  --face-radius: 4px;
  --face-font: var(--font-mono);
  --face-heading: var(--font-mono);
  --face-glow: var(--glow-amber);
  --border: #3A2E18;
  --muted: #A89060;
  --offwhite: #FFE8B0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--face-bg);
  color: var(--face-ink);
  font-family: var(--face-font);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background 0.45s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* ========== STARFIELD (CSS) ========== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0, 168, 150, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(123, 92, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(247, 127, 0, 0.07), transparent 50%),
    linear-gradient(180deg, #05070C 0%, #0B0E14 40%, #0D1117 100%);
}
.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  opacity: 0.85;
}
/* Layer 1 — fine stars */
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 35% 18%, #E0E6ED, transparent),
    radial-gradient(1px 1px at 48% 62%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 61% 28%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 71%, rgba(91,190,255,0.9), transparent),
    radial-gradient(1px 1px at 88% 44%, #fff, transparent),
    radial-gradient(1px 1px at 12% 78%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 88%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 93% 15%, rgba(167,139,255,0.85), transparent),
    radial-gradient(1px 1px at 41% 5%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 17% 55%, #fff, transparent),
    radial-gradient(1px 1px at 69% 48%, rgba(255,255,255,0.45), transparent),
    radial-gradient(2px 2px at 28% 92%, rgba(0,168,150,0.7), transparent),
    radial-gradient(1px 1px at 82% 82%, #fff, transparent);
  background-size: 320px 320px;
  animation: star-drift 120s linear infinite;
}
/* Layer 2 — brighter / Helion twinkles */
.starfield::after {
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(123,92,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 70% 10%, rgba(91,190,255,0.85), transparent),
    radial-gradient(2px 2px at 45% 70%, rgba(0,168,150,0.7), transparent),
    radial-gradient(1px 1px at 90% 55%, rgba(255,176,0,0.6), transparent),
    radial-gradient(2.5px 2.5px at 5% 90%, rgba(247,127,0,0.45), transparent);
  background-size: 480px 480px;
  animation: star-drift 180s linear infinite reverse;
  opacity: 0.7;
}
@keyframes star-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-320px); }
}
html[data-face="outpost"] .starfield {
  background: #050608;
  opacity: 0.35;
}
html[data-face="outpost"] .starfield::before,
html[data-face="outpost"] .starfield::after { opacity: 0.25; animation: none; }

body > *:not(.starfield):not(.crt-overlay) { position: relative; z-index: 1; }

/* Dual-face helpers */
.face-outpost-only { display: none !important; }
html[data-face="outpost"] .face-public-only { display: none !important; }
html[data-face="outpost"] p.face-outpost-only,
html[data-face="outpost"] div.face-outpost-only,
html[data-face="outpost"] section.face-outpost-only {
  display: block !important;
}
html[data-face="outpost"] span.face-outpost-only,
html[data-face="outpost"] em.face-outpost-only,
html[data-face="outpost"] strong.face-outpost-only,
html[data-face="outpost"] a.face-outpost-only {
  display: inline !important;
}
html[data-face="outpost"] ul.face-outpost-only,
html[data-face="outpost"] .stamp-row.face-outpost-only {
  display: flex !important;
}

/* CRT overlay — OUTPOST only, stronger amber phosphor */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 176, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.12) 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.7;
}
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(5, 6, 8, 0.65) 100%),
    linear-gradient(180deg, rgba(255,176,0,0.04), transparent 30%, rgba(255,176,0,0.03));
}
html[data-face="public"] .crt-overlay,
html:not([data-face]) .crt-overlay,
.crt-overlay[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .crt-overlay { opacity: 0.25; }
  .cursor-blink, .lounge-note, .boot-line, .led-pulse, .helion-gem, .starfield::before, .starfield::after {
    animation: none !important;
  }
  body { transition: none; }
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
html[data-face="outpost"] a { color: var(--amber); }
html[data-face="outpost"] a:hover { color: var(--teal-bright); }

img { max-width: 100%; height: auto; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--teal);
  background: rgba(0, 168, 150, 0.12);
  border: 1px solid rgba(0, 168, 150, 0.3);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
html[data-face="outpost"] code {
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.3);
}

.cursor-blink::after {
  content: "█";
  margin-left: 0.15em;
  color: var(--amber);
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========== SHIP CONSOLE STRIP (always visible PUBLIC chrome) ========== */
.ship-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.45rem 1.1rem;
  background:
    linear-gradient(180deg, #161C28 0%, #0E121A 100%);
  border-bottom: 1px solid rgba(0, 168, 150, 0.35);
  box-shadow: inset 0 -1px 0 rgba(247, 127, 0, 0.12), 0 4px 16px rgba(0,0,0,0.35);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 110;
}
.ship-console::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--helion), var(--orange));
}
.console-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(46, 56, 76, 0.9);
  background: rgba(11, 14, 20, 0.75);
  border-radius: 3px;
  color: var(--offwhite);
}
.console-chip .led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 168, 150, 0.8);
  flex-shrink: 0;
}
.console-chip .led.amber { background: var(--amber); box-shadow: 0 0 8px rgba(255,176,0,0.8); }
.console-chip .led.orange { background: var(--orange); box-shadow: 0 0 8px rgba(247,127,0,0.8); }
.console-chip .led.helion { background: var(--helion-hot); box-shadow: 0 0 10px rgba(123,92,255,0.9); }
.console-chip .led.pulse { animation: led-pulse 2.2s ease-in-out infinite; }
@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.console-chip strong { color: var(--teal-bright); font-weight: 600; }
.console-chip.hazard strong { color: var(--orange); }
.console-aboard {
  margin-left: auto;
  color: var(--cream);
  letter-spacing: 0.14em;
  opacity: 0.9;
}
.console-aboard span { color: var(--helion-hot); }
html[data-face="outpost"] .ship-console {
  background: #0A0804;
  border-bottom-color: rgba(255, 176, 0, 0.4);
  color: var(--amber);
  box-shadow: inset 0 -1px 0 rgba(255,176,0,0.15);
}
html[data-face="outpost"] .console-chip {
  border-color: rgba(255, 176, 0, 0.25);
  background: rgba(20, 14, 4, 0.8);
  color: #FFE8B0;
}
html[data-face="outpost"] .console-chip strong { color: var(--amber); }
html[data-face="outpost"] .console-aboard span { color: var(--teal); }

@media (max-width: 720px) {
  .console-aboard { width: 100%; margin-left: 0; margin-top: 0.15rem; }
  .ship-console { font-size: 0.58rem; gap: 0.35rem; }
}

/* Status bar — OUTPOST only */
.status-bar {
  display: none;
  background: rgba(8, 6, 2, 0.95);
  border-bottom: 1px solid rgba(255, 176, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  align-items: center;
}
html[data-face="outpost"] .status-bar { display: grid; }
.status-bar .sb-key { color: var(--amber); margin-right: 0.35rem; }
.status-bar .sb-val { color: #FFE8B0; }
.status-bar .sb-val.live {
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber-dim);
}
@media (max-width: 800px) {
  html[data-face="outpost"] .status-bar {
    grid-template-columns: 1fr 1fr;
    font-size: 0.6rem;
  }
}

/* Lounge note / deck welcome */
.lounge-note {
  background: linear-gradient(90deg, rgba(14, 47, 44, 0.75), rgba(18, 22, 28, 0.9) 40%, rgba(40, 22, 50, 0.55));
  border-bottom: 1px solid rgba(123, 92, 255, 0.25);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  padding: 0.55rem 1.25rem;
  text-align: center;
  color: var(--face-muted);
  letter-spacing: 0.02em;
}
html[data-face="outpost"] .lounge-note {
  background: linear-gradient(90deg, rgba(40, 28, 8, 0.95), rgba(12, 10, 4, 0.95));
  border-bottom-color: rgba(255, 176, 0, 0.25);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.lounge-note .ln-lead {
  color: var(--teal-bright);
  font-weight: 600;
  margin-right: 0.5rem;
  font-family: var(--font-display);
  text-shadow: 0 0 12px rgba(0, 168, 150, 0.35);
}
html[data-face="outpost"] .lounge-note .ln-lead {
  color: var(--amber);
  font-family: var(--font-mono);
  text-shadow: 0 0 10px var(--amber-dim);
}
.lounge-note .ln-tag {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.65rem;
  background: rgba(247, 127, 0, 0.12);
  border: 1px solid rgba(247, 127, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}
html[data-face="outpost"] .lounge-note .ln-tag {
  color: var(--teal);
  background: transparent;
  border: none;
  padding: 0;
}
.lounge-note.is-settling { opacity: 0.85; }
.lounge-note.is-settled { opacity: 1; }

/* ========== HEADER — hull / bridge chrome ========== */
.site-header {
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 56, 76, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
html[data-face="outpost"] .site-header {
  background: rgba(8, 6, 2, 0.94);
  border-bottom-color: rgba(255, 176, 0, 0.3);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 -1px 0 rgba(255,176,0,0.1);
}
.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    var(--teal) 0%, var(--teal-bright) 18%, transparent 35%,
    var(--helion) 50%, transparent 65%,
    var(--orange) 82%, transparent);
  box-shadow: 0 0 14px rgba(0, 168, 150, 0.4);
}
html[data-face="outpost"] .site-header::before {
  background: linear-gradient(90deg, var(--amber), transparent 40%, var(--teal) 70%, transparent);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand:hover .wordmark { color: var(--orange); }
html[data-face="outpost"] .brand:hover .wordmark { color: var(--amber); }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(247, 127, 0, 0.35)) drop-shadow(0 0 10px rgba(0, 168, 150, 0.25));
}
html[data-face="outpost"] .brand-logo {
  filter: drop-shadow(0 0 10px rgba(255, 176, 0, 0.4));
}
@media (min-width: 720px) {
  .brand-logo { width: 64px; height: 64px; }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
html[data-face="outpost"] .wordmark {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: #FFE8B0;
}
.wordmark .mark {
  color: var(--teal);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  text-transform: none;
}
html[data-face="outpost"] .wordmark .mark {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--amber);
}
html[data-face="outpost"] .wordmark .mark::before { content: "· "; color: var(--muted); }

.nav-toggle {
  display: none;
  background: var(--subdeck);
  border: 1px solid rgba(0, 168, 150, 0.4);
  color: var(--offwhite);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}
html[data-face="outpost"] .nav-toggle {
  border-color: rgba(255, 176, 0, 0.4);
  background: #1A1408;
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--face-muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  display: block;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--offwhite);
  border-color: rgba(0, 168, 150, 0.45);
  background: rgba(14, 47, 44, 0.55);
  text-decoration: none;
  box-shadow: 0 0 14px rgba(0, 168, 150, 0.15);
}
.site-nav a[aria-current="page"] {
  color: var(--teal-bright);
  border-color: rgba(247, 127, 0, 0.5);
  background: linear-gradient(135deg, rgba(14, 47, 44, 0.8), rgba(40, 22, 50, 0.4));
}
html[data-face="outpost"] .site-nav a:hover,
html[data-face="outpost"] .site-nav a[aria-current="page"] {
  color: #FFE8B0;
  background: #1A1408;
  border-color: rgba(255, 176, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.12);
}
html[data-face="outpost"] .site-nav a[aria-current="page"] { color: var(--amber); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0 0.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { clip-path: none; border-radius: 4px; }
}

main { flex: 1; width: 100%; position: relative; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  position: relative;
}

/* Soft CRT bezel around main (OUTPOST) */
html[data-face="outpost"] main {
  margin: 0.75rem 0.75rem 0;
  border: 3px solid #2A2010;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 0, 0.2),
    inset 0 0 60px rgba(255, 176, 0, 0.04),
    inset 0 0 40px rgba(0, 0, 0, 0.55),
    0 0 0 8px #080604,
    0 0 36px rgba(255, 176, 0, 0.1);
  overflow: hidden;
  background: var(--face-surface);
}
@media (min-width: 900px) {
  html[data-face="outpost"] main {
    margin: 1rem auto 0;
    max-width: calc(var(--max) + 2.5rem);
  }
}

/* ========== HERO — FRESNEL VIEWPORT / HULL FRAME (WILD) ========== */
.hero {
  padding: 1.5rem 1rem 2.5rem;
  position: relative;
  border-bottom: none;
  background: transparent;
}
html[data-face="outpost"] .hero {
  background:
    linear-gradient(180deg, rgba(255,176,0,0.07), transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px),
    #080604;
  border-bottom: 1px solid rgba(255, 176, 0, 0.2);
  padding: 2.5rem 1.25rem 2.5rem;
}

/* Viewport frame — PUBLIC */
.viewport-frame {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  padding: 14px;
  background:
    linear-gradient(145deg, #2A3344 0%, #1A222C 40%, #121820 100%);
  border: 1px solid rgba(230, 224, 212, 0.18);
  border-radius: 8px;
  box-shadow:
    var(--shadow-hull),
    inset 0 0 0 1px rgba(0, 168, 150, 0.15),
    0 0 40px rgba(123, 92, 255, 0.08);
}
.viewport-frame::before,
.viewport-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--orange);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.viewport-frame::before {
  top: 6px; left: 6px;
  border-width: 2px 0 0 2px;
}
.viewport-frame::after {
  bottom: 6px; right: 6px;
  border-width: 0 2px 2px 0;
}
.viewport-brackets {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 3;
}
.viewport-brackets::before,
.viewport-brackets::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--teal);
  border-style: solid;
}
.viewport-brackets::before {
  top: 0; right: 0;
  border-width: 2px 2px 0 0;
}
.viewport-brackets::after {
  bottom: 0; left: 0;
  border-width: 0 0 2px 2px;
}

/* Rivet dots on hull frame */
.hull-rivets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hull-rivets span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8B95A5, #2E384C);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.5);
}
.hull-rivets span:nth-child(1) { top: 10px; left: 40%; }
.hull-rivets span:nth-child(2) { top: 10px; left: 60%; }
.hull-rivets span:nth-child(3) { bottom: 10px; left: 40%; }
.hull-rivets span:nth-child(4) { bottom: 10px; left: 60%; }
.hull-rivets span:nth-child(5) { top: 40%; left: 8px; }
.hull-rivets span:nth-child(6) { top: 40%; right: 8px; }

/* Fresnel glass / star viewport */
.fresnel-glass {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(123, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0, 168, 150, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(247, 127, 0, 0.1), transparent 50%),
    linear-gradient(165deg, #0A1018 0%, #060A10 50%, #0C121A 100%);
  border: 1px solid rgba(0, 168, 150, 0.25);
  min-height: 320px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), inset 0 0 1px rgba(230, 224, 212, 0.15);
}
/* Fresnel ring overlays */
.fresnel-glass::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    repeating-radial-gradient(
      circle at 72% 28%,
      transparent 0,
      transparent 18px,
      rgba(91, 190, 255, 0.04) 19px,
      transparent 20px
    );
  pointer-events: none;
  opacity: 0.8;
}
.fresnel-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(230,224,212,0.06) 0%, transparent 35%, transparent 65%, rgba(123,92,255,0.05) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}
html[data-face="outpost"] .hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
html[data-face="outpost"] .viewport-frame,
html[data-face="outpost"] .fresnel-glass,
html[data-face="outpost"] .viewport-brackets,
html[data-face="outpost"] .hull-rivets,
html[data-face="outpost"] .cargo-tags,
html[data-face="outpost"] .prop-canister,
html[data-face="outpost"] .helion-cluster {
  display: none !important;
}
html[data-face="outpost"] .hero > .hero-inner,
html[data-face="outpost"] .hero .outpost-hero-fallback {
  display: block;
}

/* House plate stamp */
.house-plate {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, #2A3344, #1A222C);
  border: 1px solid rgba(230, 224, 212, 0.35);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 12px rgba(0,0,0,0.4),
    0 0 0 2px rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  transform: rotate(-1.5deg);
}
.house-plate .hp-house {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
}
.house-plate .hp-id {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
}
.house-plate .hp-loc {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--teal-bright);
  text-transform: uppercase;
}

/* Floating cargo tags */
.cargo-tags {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 4;
  max-width: 11rem;
}
.cargo-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  background: rgba(11, 14, 20, 0.82);
  border: 1px dashed rgba(0, 168, 150, 0.45);
  color: var(--teal-bright);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transform: rotate(2deg);
}
.cargo-tag:nth-child(2) {
  border-color: rgba(247, 127, 0, 0.5);
  color: var(--orange);
  transform: rotate(-1.5deg);
  margin-left: 0.75rem;
}
.cargo-tag:nth-child(3) {
  border-color: rgba(123, 92, 255, 0.5);
  color: var(--helion-hot);
  transform: rotate(1deg);
}
.cargo-tag strong { display: block; color: var(--cream); font-size: 0.62rem; margin-bottom: 0.1rem; }
@media (max-width: 720px) {
  .cargo-tags { position: static; max-width: none; flex-direction: row; flex-wrap: wrap; margin-bottom: 1rem; }
  .cargo-tag, .cargo-tag:nth-child(2), .cargo-tag:nth-child(3) {
    transform: none;
    margin-left: 0;
  }
}

/* Propagation canister decoration */
.prop-canister {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  width: 48px;
  height: 88px;
  z-index: 3;
  pointer-events: none;
}
.prop-canister .pc-body {
  position: absolute;
  inset: 12px 8px 8px;
  border-radius: 6px 6px 4px 4px;
  background:
    linear-gradient(180deg, rgba(0,168,150,0.25) 0%, rgba(14,47,44,0.5) 40%, rgba(20,40,30,0.7) 100%);
  border: 1px solid rgba(0, 168, 150, 0.5);
  box-shadow: inset 0 0 16px rgba(0,168,150,0.25), 0 0 12px rgba(0,168,150,0.2);
  overflow: hidden;
}
.prop-canister .pc-body::before {
  content: "";
  position: absolute;
  bottom: 8px; left: 20%; right: 20%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(40,180,100,0.55), transparent 70%);
  border-radius: 40% 40% 20% 20%;
}
.prop-canister .pc-cap {
  position: absolute;
  top: 4px; left: 4px; right: 4px;
  height: 14px;
  background: linear-gradient(180deg, #3A465C, #1A222C);
  border: 1px solid rgba(230,224,212,0.25);
  border-radius: 3px;
}
.prop-canister .pc-led {
  position: absolute;
  top: 8px; right: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0,168,150,0.9);
  animation: led-pulse 2.8s ease-in-out infinite;
}
@media (max-width: 720px) {
  .prop-canister { display: none; }
}

/* Helion crystal cluster */
.helion-cluster {
  position: absolute;
  top: 35%;
  right: 28%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
}
.helion-gem {
  width: 10px;
  height: 18px;
  background: linear-gradient(160deg, var(--helion-hot), var(--helion) 50%, #3D2A8A);
  clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
  box-shadow: var(--helion-glow);
  animation: helion-breathe 3.5s ease-in-out infinite;
  opacity: 0.85;
}
.helion-gem:nth-child(2) {
  height: 26px;
  width: 12px;
  animation-delay: 0.6s;
}
.helion-gem:nth-child(3) {
  height: 14px;
  width: 8px;
  animation-delay: 1.2s;
}
@keyframes helion-breathe {
  0%, 100% { filter: brightness(1); opacity: 0.75; }
  50% { filter: brightness(1.35); opacity: 1; }
}
@media (max-width: 720px) {
  .helion-cluster { right: 8%; top: auto; bottom: 20%; opacity: 0.6; }
}

html[data-face="outpost"] .hero::before {
  content: "TRADE CONSOLE · MERCHANT DESK · AMBER PHOSPHOR";
  display: block;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  opacity: 0.7;
}

/* Boot lines — outpost */
.boot-lines {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  margin: 0 0 1rem;
  line-height: 1.7;
  text-shadow: 0 0 8px var(--amber-dim);
}
html[data-face="outpost"] .boot-lines { display: block; }
.boot-lines .dim { color: var(--muted); opacity: 0.8; }

.sys-line {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--warm-practical);
  margin: 0 0 1rem;
}
html[data-face="outpost"] .sys-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-shadow: 0 0 6px var(--amber-dim);
}
.sys-line .prompt { color: var(--teal); }
html[data-face="outpost"] .sys-line .prompt { color: var(--amber); }
.sys-line .dim { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(14, 47, 44, 0.55);
  border: 1px solid rgba(0, 168, 150, 0.4);
  border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(247, 127, 0, 0.6);
  animation: led-pulse 2s ease-in-out infinite;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 168, 150, 0.5);
  color: var(--teal-bright);
  padding: 0.3rem 0.6rem;
  background: rgba(14, 47, 44, 0.45);
  border-radius: 2px;
}
html[data-face="outpost"] .stamp {
  border-width: 2px;
  border-radius: 3px;
  transform: rotate(-1.5deg);
  letter-spacing: 0.14em;
  background: rgba(255, 176, 0, 0.06);
  border-color: rgba(255, 176, 0, 0.45);
  color: var(--amber);
}
.stamp.hazard {
  border-color: rgba(247, 127, 0, 0.55);
  color: var(--orange);
  background: rgba(247, 127, 0, 0.1);
}
.stamp.amber {
  border-color: rgba(255, 176, 0, 0.55);
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
}
.stamp.inspected {
  border-color: rgba(91, 190, 255, 0.45);
  color: var(--phosphor);
  background: rgba(91, 190, 255, 0.08);
}
.stamp.embargoed {
  border-color: #E05A5A;
  color: #E05A5A;
  background: rgba(224, 90, 90, 0.08);
}
.stamp.house {
  border-style: solid;
  border-width: 1.5px;
  font-weight: 600;
}
.stamp.helion {
  border-color: rgba(123, 92, 255, 0.55);
  color: var(--helion-hot);
  background: rgba(123, 92, 255, 0.12);
  box-shadow: 0 0 12px rgba(123, 92, 255, 0.2);
}
html[data-face="outpost"] .stamp.hazard { transform: rotate(1.2deg); }
html[data-face="outpost"] .stamp.amber { transform: rotate(-2.5deg); }
html[data-face="outpost"] .stamp.inspected { transform: rotate(1.5deg); border-color: rgba(255,176,0,0.4); color: var(--amber); }
html[data-face="outpost"] .stamp.house { border-style: double; border-width: 3px; }

.redacted {
  display: inline-block;
  background: var(--redact);
  color: transparent;
  user-select: none;
  letter-spacing: 0.05em;
  border-radius: 2px;
  padding: 0 0.15em;
}
.redact-inline {
  color: var(--muted);
  background: linear-gradient(90deg, var(--redact), #2a3344 40%, var(--redact));
  padding: 0 0.2em;
  border-radius: 2px;
}

h1 {
  font-family: var(--face-heading);
  font-size: clamp(2.1rem, 5.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--offwhite);
}
html[data-face="outpost"] h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFE8B0;
  text-shadow: 0 0 18px var(--amber-dim);
}
html[data-face="public"] h1,
html:not([data-face]) h1 {
  text-shadow:
    0 0 32px rgba(0, 168, 150, 0.25),
    0 0 48px rgba(123, 92, 255, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.45);
}
h1 .rule {
  display: block;
  width: 5.5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--helion), var(--teal), transparent);
  margin-top: 0.9rem;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(123, 92, 255, 0.35);
}
html[data-face="outpost"] h1 .rule {
  height: 3px;
  width: 4.5rem;
  background: linear-gradient(90deg, var(--amber), var(--teal), transparent);
  box-shadow: 0 0 10px var(--amber-dim);
}

.lead {
  font-size: 1.22rem;
  color: var(--cream-soft);
  max-width: 38rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.45;
}
html[data-face="outpost"] .lead {
  font-size: 1.05rem;
  color: #FFE8B0;
  text-shadow: 0 0 6px rgba(255,176,0,0.15);
}
.lead.muted, .sub {
  color: var(--face-muted);
  font-size: 0.92rem;
  font-family: var(--font-sans);
}
html[data-face="outpost"] .lead.muted,
html[data-face="outpost"] .sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--face-muted);
  margin: 0 0 1.25rem;
}
html[data-face="outpost"] .meta-line {
  font-size: 0.7rem;
  color: var(--muted);
}

.body-copy {
  max-width: 40rem;
  color: #D5DCE6;
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
}
html[data-face="outpost"] .body-copy {
  color: #E8D8A8;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.body-copy p { margin: 0 0 1rem; }
.body-copy p:last-child { margin-bottom: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.45rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  background: transparent;
  color: inherit;
  border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
html[data-face="outpost"] .btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  clip-path: none;
  border-radius: 4px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
html[data-face="outpost"] .btn:hover { transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  color: #1A120C;
  border-color: var(--orange);
  box-shadow: var(--glow-orange);
}
.btn-primary:hover {
  background: transparent;
  color: var(--orange);
  box-shadow: var(--glow-orange);
}
.btn-secondary {
  background: rgba(14, 47, 44, 0.55);
  color: var(--offwhite);
  border-color: rgba(0, 168, 150, 0.55);
}
.btn-secondary:hover {
  background: var(--teal);
  color: #0C1210;
  box-shadow: var(--glow-teal);
}
html[data-face="outpost"] .btn-secondary {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}
html[data-face="outpost"] .btn-secondary:hover {
  background: var(--amber);
  color: #0A0804;
}

.section { margin: 2.5rem 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
html[data-face="outpost"] .section-label {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--amber);
}
.section-label::before {
  content: "◈ ";
  color: var(--helion-hot);
  opacity: 0.9;
}
html[data-face="outpost"] .section-label::before { content: "// "; color: var(--muted); }

h2 {
  font-family: var(--face-heading);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--offwhite);
}
html[data-face="outpost"] h2 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #FFE8B0;
}
h2 .rule {
  display: block;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--helion), var(--orange));
  margin-top: 0.55rem;
  border-radius: 2px;
}
html[data-face="outpost"] h2 .rule {
  height: 2px;
  background: var(--amber);
}
h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--offwhite);
  font-family: var(--face-heading);
  font-weight: 650;
}
html[data-face="outpost"] h3 { color: #FFE8B0; }

/* Lounge chips */
.lounge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.lounge-chips li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  background: rgba(11, 14, 20, 0.65);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 3px;
  color: var(--face-muted);
}
.lounge-chips li strong { color: var(--teal-bright); font-weight: 600; }
.lounge-chips li.hazard strong { color: var(--orange); }
.lounge-chips li.helion strong { color: var(--helion-hot); }

.dossier-marginalia {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-style: italic;
  max-width: 36rem;
}
.dossier-marginalia.vex-wink {
  border-left: 2px solid rgba(123, 92, 255, 0.5);
  padding-left: 0.75rem;
  color: #B8A8E0;
}
.dossier-marginalia.vex-wink::before {
  content: "◎ careful sales · ";
  color: var(--helion-hot);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

/* ========== BAY DOORS / CARGO CRATE TILES ========== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 860px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.95);
  border-radius: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hull);
}
/* Bay door rails */
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background:
    linear-gradient(180deg, #2A3344 0%, #1A222C 100%);
  border-bottom: 1px solid rgba(0, 168, 150, 0.35);
  z-index: 1;
}
.tile::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 8px;
  background: linear-gradient(90deg, #0B0E14, #3A465C, #0B0E14);
  border: 1px solid rgba(230, 224, 212, 0.2);
  border-radius: 2px;
  z-index: 2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
html[data-face="outpost"] .tile {
  border-color: rgba(255, 176, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
html[data-face="outpost"] .tile::before {
  background: linear-gradient(180deg, #2A2010, #1A1408);
  border-bottom-color: rgba(255, 176, 0, 0.35);
}
.tile:hover {
  border-color: rgba(0, 168, 150, 0.55);
  box-shadow: var(--glow-teal), 0 16px 36px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
html[data-face="outpost"] .tile:hover {
  border-color: rgba(255,176,0,0.5);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}
.tile a.tile-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 2.4rem 1.35rem 1.35rem;
  position: relative;
  z-index: 0;
}
.tile a.tile-link:hover { color: inherit; }
.tile-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
html[data-face="outpost"] .tile-id { color: var(--amber); }
html[data-face="public"] .tile-id::before,
html:not([data-face]) .tile-id::before { content: "BAY DOOR · "; color: var(--muted); }
html[data-face="outpost"] .tile-id::before { content: "LANE · "; color: var(--muted); }
.tile h3 { margin: 0; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--face-muted); font-size: 0.92rem; flex: 1; font-family: var(--font-sans); }
.tile .tile-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.5rem;
}
html[data-face="outpost"] .tile .tile-cta {
  font-size: 0.65rem;
  color: var(--amber);
}
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.tile-meta span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 2px;
  color: var(--muted);
}
.tile-meta span.ok { border-color: rgba(0,168,150,0.4); color: var(--teal-bright); }
.tile-meta span.warn { border-color: rgba(247,127,0,0.4); color: var(--orange); }

.proof-bar {
  background: linear-gradient(90deg, rgba(14, 47, 44, 0.55), rgba(18, 22, 28, 0.9), rgba(40, 22, 50, 0.4));
  border-top: 1px solid rgba(0, 168, 150, 0.2);
  border-bottom: 1px solid rgba(123, 92, 255, 0.15);
  padding: 1rem 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--face-muted);
}
html[data-face="outpost"] .proof-bar {
  background: #1A1408;
  border-color: rgba(255, 176, 0, 0.2);
  text-transform: uppercase;
  color: var(--muted);
}
.proof-bar .sep { color: rgba(230, 224, 212, 0.2); margin: 0 0.5rem; }

/* Booth / zone cards */
.booth-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .booth-intro { grid-template-columns: 1fr; }
}
.booth-card {
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 4px;
  padding: 1.5rem 1.35rem;
  position: relative;
  box-shadow: var(--shadow-hull);
}
.booth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--helion), var(--orange));
  border-radius: 4px 0 0 4px;
}
.booth-card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--orange), var(--warm-practical), var(--teal));
}
.fiction-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--helion-hot);
  background: rgba(123, 92, 255, 0.12);
  border: 1px solid rgba(123, 92, 255, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

/* Zone strip (Deck 01 flavor) */
.zone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem;
  background: rgba(11, 14, 20, 0.55);
  border: 1px solid rgba(46, 56, 76, 0.8);
  border-radius: 4px;
}
.zone-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(0, 168, 150, 0.3);
  background: rgba(14, 47, 44, 0.35);
  color: var(--teal-bright);
  border-radius: 3px;
}
.zone-chip.warm {
  border-color: rgba(196, 165, 116, 0.4);
  color: var(--warm-practical);
  background: rgba(196, 165, 116, 0.08);
}
.zone-chip.bridge {
  border-color: rgba(91, 190, 255, 0.35);
  color: var(--phosphor);
  background: rgba(91, 190, 255, 0.08);
}
.zone-chip.bar {
  border-color: rgba(247, 127, 0, 0.35);
  color: var(--orange);
  background: rgba(247, 127, 0, 0.08);
}
.zone-chip.obs {
  border-color: rgba(123, 92, 255, 0.4);
  color: var(--helion-hot);
  background: rgba(123, 92, 255, 0.1);
}

.panel {
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.25rem 0;
  position: relative;
  box-shadow: var(--shadow-hull);
}
html[data-face="outpost"] .panel {
  border-color: rgba(255, 176, 0, 0.25);
}
.panel::before {
  content: "HOUSE NOTE";
  position: absolute;
  top: 0.55rem;
  right: 0.85rem;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  opacity: 0.7;
  font-family: var(--font-mono);
}
html[data-face="outpost"] .panel::before {
  content: "RECORD";
  color: var(--amber);
}

.panel-disclaimer {
  border: 2px solid rgba(0, 168, 150, 0.45);
  background: rgba(20, 61, 58, 0.3);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  position: relative;
  border-radius: 4px;
}
.panel-disclaimer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--helion), var(--orange));
}
.panel-disclaimer .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  font-weight: 650;
}
.panel-disclaimer .label::before { content: "◈ "; color: var(--helion-hot); }

/* Page heroes (inner pages) */
.page-hero {
  padding: 2rem 1.25rem 1.5rem;
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(123, 92, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 40% at 5% 100%, rgba(0, 168, 150, 0.1), transparent 50%);
  border-bottom: 1px solid rgba(46, 56, 76, 0.7);
}
html[data-face="outpost"] .page-hero {
  background:
    linear-gradient(180deg, rgba(255,176,0,0.06), transparent 50%),
    #080604;
  border-bottom-color: rgba(255, 176, 0, 0.2);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(155deg, rgba(26, 34, 48, 0.92), rgba(14, 18, 28, 0.95));
  border: 1px solid rgba(0, 168, 150, 0.22);
  border-radius: 4px;
  box-shadow: var(--shadow-hull);
}
.page-hero-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--helion) 40%, transparent 55%, var(--orange) 85%, transparent);
}
html[data-face="outpost"] .page-hero-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
html[data-face="outpost"] .page-hero-inner::before { display: none; }

/* Hazard rail */
.hazard-rail {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--amber),
      var(--amber) 6px,
      #0A0804 6px,
      #0A0804 12px
    );
  opacity: 0.55;
}
html[data-face="outpost"] .hazard-rail { display: block; }

/* Bulkhead / rivets */
.bulkhead {
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-hull);
}
.bulkhead.holo-edge {
  border-color: rgba(0, 168, 150, 0.35);
  box-shadow: var(--shadow-hull), 0 0 24px rgba(0, 168, 150, 0.08);
}
.bulkhead-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.bulkhead-label span { color: var(--teal-bright); }
html[data-face="outpost"] .bulkhead-label span { color: var(--amber); }
.rivet-bl, .rivet-br {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8B95A5, #2E384C);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}
.rivet-bl { bottom: 10px; left: 10px; }
.rivet-br { bottom: 10px; right: 10px; }

/* Cargo rack / crates */
.cargo-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.cargo-crate {
  background: linear-gradient(165deg, #1E2834, #121820);
  border: 1px solid rgba(46, 56, 76, 0.95);
  border-radius: 4px;
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-hull);
}
.cargo-crate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0, var(--orange) 8px,
    #0B0E14 8px, #0B0E14 12px,
    var(--orange) 12px, var(--orange) 20px,
    #0B0E14 20px, #0B0E14 24px
  );
  opacity: 0.7;
}
.cargo-crate .slot {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.cargo-crate h3 { margin: 0.4rem 0 0.5rem; font-size: 1.05rem; }
.cargo-crate p { margin: 0; color: var(--face-muted); font-size: 0.9rem; }
.tariff-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(46, 56, 76, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.tariff-key { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.tariff-val { color: var(--orange); font-weight: 600; }

.badge, .status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid;
}
.status-filing {
  border-color: rgba(255, 176, 0, 0.45);
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
}

/* Query console / tables */
.query-console {
  background: rgba(11, 14, 20, 0.92);
  border: 1px solid rgba(0, 168, 150, 0.25);
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  border-radius: 4px;
  overflow: hidden;
}
html[data-face="outpost"] .query-console {
  background: #060402;
  border-color: rgba(255, 176, 0, 0.3);
}
.query-header {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(14, 47, 44, 0.45);
  border-bottom: 1px solid rgba(0, 168, 150, 0.25);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
html[data-face="outpost"] .query-header {
  background: rgba(40, 28, 8, 0.6);
  border-bottom-color: rgba(255, 176, 0, 0.25);
  color: var(--amber);
}
.qh-ok { color: var(--teal); }
html[data-face="outpost"] .qh-ok { color: var(--amber); }
.query-sql {
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--face-muted);
  border-bottom: 1px solid rgba(46, 56, 76, 0.6);
  white-space: pre-wrap;
}
.query-sql .kw { color: var(--helion-hot); }
.query-sql .str { color: var(--orange); }
html[data-face="outpost"] .query-sql .kw { color: var(--amber); }
.query-meta {
  padding: 0.4rem 0.85rem;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
table.data th,
table.data td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(46, 56, 76, 0.7);
}
table.data th {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(14, 20, 28, 0.6);
}
table.data .row-num { color: var(--muted); font-size: 0.75rem; width: 2.5rem; }
table.data .mono { font-family: var(--font-mono); color: var(--orange); }
html[data-face="outpost"] table.data th { color: var(--amber); background: rgba(26, 20, 8, 0.6); }
html[data-face="outpost"] table.data td { border-bottom-color: rgba(255,176,0,0.12); color: #E8D8A8; }

.hook-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hook-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(0, 168, 150, 0.35);
  background: rgba(14, 47, 44, 0.3);
  border-radius: 3px;
  color: var(--teal-bright);
}
.hook-list li.mystery {
  border-color: rgba(123, 92, 255, 0.45);
  color: var(--helion-hot);
  background: rgba(123, 92, 255, 0.1);
}

.filed-doc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.75rem;
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 4px;
  box-shadow: var(--shadow-hull);
}
@media (max-width: 720px) {
  .filed-doc { grid-template-columns: 1fr; }
}
.filed-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.filed-doc-meta .fdm-ok { color: var(--teal); }
.house-rule {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  border-left: 3px solid var(--orange);
  padding: 0.75rem 1rem;
  background: rgba(247, 127, 0, 0.06);
  margin: 0;
  color: var(--cream-soft);
}

/* Forms */
.console-bay {
  background: var(--face-card);
  border: 1px solid rgba(46, 56, 76, 0.9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-hull);
  margin: 1.25rem 0;
}
.form-chrome {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(14, 47, 44, 0.5);
  border-bottom: 1px solid rgba(0, 168, 150, 0.3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.form-chrome .fc-title { color: var(--orange); font-weight: 600; }
.form-body { padding: 1.25rem 1.35rem 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid rgba(46, 56, 76, 0.95);
  border-radius: 3px;
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 168, 150, 0.2);
}
html[data-face="outpost"] .field input,
html[data-face="outpost"] .field select,
html[data-face="outpost"] .field textarea {
  background: #0A0804;
  border-color: rgba(255, 176, 0, 0.3);
  color: #FFE8B0;
  font-family: var(--font-mono);
}
html[data-face="outpost"] .field input:focus,
html[data-face="outpost"] .field select:focus,
html[data-face="outpost"] .field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(255, 176, 0, 0.2);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0E121A, #080B10);
  border-top: 1px solid rgba(0, 168, 150, 0.2);
  margin-top: auto;
  padding: 2rem 1.25rem 1.5rem;
}
html[data-face="outpost"] .site-footer {
  background: #080604;
  border-top-color: rgba(255, 176, 0, 0.25);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-brand strong {
  display: block;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
html[data-face="outpost"] .footer-brand strong { color: #FFE8B0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--face-muted);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 48rem;
  line-height: 1.55;
  margin: 0;
}
.footer-disclaimer .fd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
html[data-face="outpost"] .footer-disclaimer .fd-label { color: var(--amber); }

.face-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
#face-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
#face-toggle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  background: rgba(14, 47, 44, 0.5);
  border: 1px solid rgba(0, 168, 150, 0.4);
  color: var(--teal-bright);
  border-radius: 3px;
  cursor: pointer;
}
#face-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}
html[data-face="outpost"] #face-toggle {
  background: #1A1408;
  border-color: rgba(255, 176, 0, 0.45);
  color: var(--amber);
}

/* F.R.A.N.K. wink — subtle footer note (kid-safe) */
.frank-wink {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.75;
  margin: 0.25rem 0 0;
}
.frank-wink span { color: var(--orange); }

/* Status badges used in archives */
.status-treaty { border-color: rgba(0,168,150,0.45); color: var(--teal); background: rgba(0,168,150,0.08); }
.status-observer { border-color: rgba(91,190,255,0.45); color: var(--phosphor); background: rgba(91,190,255,0.08); }
.status-restricted { border-color: rgba(247,127,0,0.45); color: var(--orange); background: rgba(247,127,0,0.08); }
.status-embargoed { border-color: #E05A5A; color: #E05A5A; background: rgba(224,90,90,0.08); }

/* ========== EARTH / UFO SIDE SWITCH — explicit tabs only ========== */
/* Header morph emblem (Sol-3 logo always kept) */
.side-emblem { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.side-emblem svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .45s ease, transform .55s cubic-bezier(.5,1.6,.4,1);
}
.side-emblem .em-ufo { opacity: 0; transform: translateY(8px) scale(.6) rotate(-15deg); }
html[data-side="ufo"] .side-emblem .em-earth { opacity: 0; transform: translateY(-8px) scale(.6) rotate(20deg); }
html[data-side="ufo"] .side-emblem .em-ufo { opacity: 1; transform: none; }
.side-tag { color: var(--teal-bright); transition: color .3s; }
html[data-side="ufo"] .side-tag { color: var(--orange); }
html[data-side="ufo"] .site-header::before {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-hot) 18%, transparent 35%, var(--helion) 50%, transparent 65%, var(--teal) 85%, transparent);
  box-shadow: 0 0 14px rgba(247,127,0,.45);
}
html[data-side="ufo"] .site-header { border-bottom-color: rgba(123,92,255,.45); }
html[data-side="ufo"] .brand-logo { filter: drop-shadow(0 0 12px rgba(123,92,255,.55)) drop-shadow(0 4px 14px rgba(247,127,0,.35)); }
.site-header, .brand-logo { transition: border-color .4s, filter .4s; }

/* Tab bar */
.side-switch { margin-bottom: 2.5rem; }
.side-tabs {
  display: flex; align-items: stretch; gap: .75rem;
  padding: .5rem; margin-bottom: 1rem;
  background: linear-gradient(180deg, #161C28, #0E121A);
  border: 1px solid rgba(46,56,76,.95); border-radius: 4px;
  box-shadow: var(--shadow-hull);
}
.side-tab {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .6rem; align-items: center; text-align: left;
  min-width: 11rem; padding: .7rem 1.1rem; cursor: pointer;
  font: inherit; color: var(--muted);
  background: rgba(11,14,20,.8);
  border: 1px solid rgba(46,56,76,.95); border-radius: 3px;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.side-tab-earth { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 1.8rem; }
.side-tab-ufo { margin-left: auto; text-align: right; grid-template-columns: 1fr auto;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); padding-left: 1.8rem; }
.side-tab-ufo .st-led { grid-column: 2; grid-row: 1 / span 2; }
.side-tab-ufo .st-name, .side-tab-ufo .st-sub { grid-column: 1; }
.st-led { grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; background: #2E384C; }
.st-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
.st-sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.side-tab:hover { color: var(--offwhite); border-color: rgba(230,224,212,.3); }
.side-tab:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 3px; }

.side-tab-earth[aria-selected="true"] {
  color: #E8FFFB; border-color: var(--teal);
  background: linear-gradient(135deg, rgba(0,168,150,.35), rgba(2,128,144,.18));
  box-shadow: var(--glow-teal), inset 0 0 0 1px rgba(27,196,176,.4);
}
.side-tab-earth[aria-selected="true"] .st-led { background: var(--teal-bright); box-shadow: 0 0 10px var(--teal); animation: led-pulse 2.2s infinite; }
.side-tab-ufo[aria-selected="true"] {
  color: #FFF1E0; border-color: var(--orange);
  background: linear-gradient(225deg, rgba(247,127,0,.32), rgba(123,92,255,.22));
  box-shadow: var(--glow-orange), 0 0 22px rgba(123,92,255,.25), inset 0 0 0 1px rgba(167,139,255,.4);
}
.side-tab-ufo[aria-selected="true"] .st-led { background: var(--orange); box-shadow: 0 0 10px var(--orange), 0 0 16px var(--helion); animation: led-pulse 2.2s infinite; }

/* Center rail shows which side is live (decorative, not clickable) */
.side-rail { flex: 1; align-self: center; position: relative; height: 4px; min-width: 2rem; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), #2E384C 45%, #2E384C 55%, var(--orange)); border-radius: 2px; opacity: .6; }
.side-rail-dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--teal-bright); box-shadow: 0 0 12px var(--teal); transition: left .45s cubic-bezier(.5,1.4,.4,1), background .3s, box-shadow .3s; }
html[data-side="ufo"] .side-rail-dot { left: calc(100% - 14px); background: var(--orange); box-shadow: 0 0 12px var(--orange), 0 0 18px var(--helion); }

.shelf { animation: shelf-in .35s ease; }
.shelf[hidden] { display: none; }
@keyframes shelf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.shelf:focus-visible { outline: 1px dashed var(--muted); outline-offset: 4px; }
.shelf-note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--face-muted); margin: 0 0 .85rem; }
.shelf-ufo .tile { border-color: rgba(123,92,255,.35); }
.shelf-ufo .tile::before { border-bottom-color: rgba(247,127,0,.45); }
.tile-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .tile-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .side-tab { min-width: 0; flex: 1; padding: .6rem .8rem; }
  .side-tab-earth { padding-right: 1.4rem; } .side-tab-ufo { padding-left: 1.4rem; }
  .side-rail { display: none; }
}

/* Outpost face variants */
html[data-face="outpost"] .side-tabs { background: #0A0804; border-color: rgba(255,176,0,.3); }
html[data-face="outpost"] .side-tab { background: #0A0804; font-family: var(--font-mono); }
html[data-face="outpost"] .st-name { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  .side-emblem svg, .side-rail-dot, .shelf { transition: none !important; animation: none !important; }
}

/* ================= BIG SCENE: Earth arc + sun ⇄ UFO ================= */
.scene {
  position: relative;
  height: 480px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(0, 168, 150, 0.22);
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(79,195,247,.10), transparent 60%);
}
.scene::after { /* fade scene into page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(11,14,20,.55));
}
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.scene-svg g, .scene-svg rect { transform-box: view-box; }

/* Earth: default full; on UFO flattens into saucer-shaped lens then fades */
.scene .earth {
  transform-origin: 720px 300px;
  transition: transform 1.05s cubic-bezier(.2,.75,.25,1) .2s, opacity .45s ease .15s;
}
html[data-side="ufo"] .scene .earth {
  transform: scale(.36, .055);
  opacity: 0;
  transition: transform .8s cubic-bezier(.45,0,.7,.55), opacity .35s ease .55s;
}
.scene .sun { transform-origin: 880px 318px; transition: opacity .8s ease .3s, transform 1s ease .2s; }
html[data-side="ufo"] .scene .sun { opacity: .1; transform: scale(.55); transition: opacity .6s ease, transform .8s ease; }
.scene .sky-ufo { opacity: 0; transition: opacity .8s ease; }
html[data-side="ufo"] .scene .sky-ufo { opacity: 1; transition-delay: .5s; }

/* UFO: hidden by default, expands out of the flattened Earth */
.scene .ufo {
  transform-origin: 720px 358px;
  transform: scale(.94, .35);
  opacity: 0;
  transition: opacity .3s ease, transform .45s ease;
}
html[data-side="ufo"] .scene .ufo {
  transform: none;
  opacity: 1;
  transition: opacity .35s ease .7s, transform .75s cubic-bezier(.3,1.6,.5,1) .7s;
}
.scene .ufo-fit { transform-origin: 720px 360px; }
.scene .dome { transform-origin: 720px 344px; transform: scaleY(0); transition: transform .3s ease; }
html[data-side="ufo"] .scene .dome { transform: none; transition: transform .55s cubic-bezier(.3,1.7,.5,1) 1.15s; }
html[data-side="ufo"] .scene .ufo-bob { animation: ufo-bob 3.4s ease-in-out 1.6s infinite; }
@keyframes ufo-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px) rotate(-.6deg); } }
.scene .beam, .scene .beam-glow { opacity: 0; transition: opacity .4s; }
html[data-side="ufo"] .scene .beam { animation: beam-pulse 2.6s ease-in-out 1.5s infinite both; }
html[data-side="ufo"] .scene .beam-glow { opacity: .55; transition: opacity .6s 1.3s; }
@keyframes beam-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.scene .rim-light { opacity: .12; }
html[data-side="ufo"] .scene .rim-light {
  animation: rim-chase 1.5s linear infinite;
  animation-delay: calc(1.2s + var(--i) * .1s);
}
@keyframes rim-chase { 0%,100% { opacity: .2; } 20% { opacity: 1; filter: drop-shadow(0 0 6px currentColor); } 45% { opacity: .35; } }

/* Title overlay in the sky above the limb */
.scene-title {
  position: absolute; z-index: 2; top: 28px; left: 50%; transform: translateX(-50%);
  width: min(760px, 92%); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.scene-title .house-plate { margin-bottom: .7rem; transform: rotate(-1.2deg); }
.scene-eyebrow {
  margin: 0 0 .35rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal-bright); text-shadow: 0 0 10px rgba(0,0,0,.9);
}
.scene-title h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem); margin: 0 0 .3rem; letter-spacing: -.015em;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 34px rgba(0,0,0,.75), 0 0 60px rgba(79,195,247,.25);
}
.scene-title .lead { margin: 0; max-width: none; text-shadow: 0 0 14px rgba(0,0,0,.95), 0 1px 2px rgba(0,0,0,.9); }
html[data-side="ufo"] .scene-eyebrow { color: var(--orange); }
html[data-side="ufo"] .scene-title h1 { text-shadow: 0 0 34px rgba(0,0,0,.75), 0 0 60px rgba(123,92,255,.35); }

/* Tabs on the LEFT and RIGHT edges of the scene */
.scene-tabs {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: block; background: none; border: 0; box-shadow: none; padding: 0; margin: 0;
}
.scene-tabs .side-tab {
  position: absolute; top: 52%; transform: translateY(-50%);
  pointer-events: auto; min-width: 10.5rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(11,14,20,.72);
}
.scene-tabs .side-tab-earth { left: clamp(.75rem, 2.5vw, 2rem); margin: 0; }
.scene-tabs .side-tab-ufo { right: clamp(.75rem, 2.5vw, 2rem); margin: 0; }
.scene-tabs .side-tab-earth[aria-selected="true"] { background: linear-gradient(135deg, rgba(0,168,150,.5), rgba(2,128,144,.3)); }
.scene-tabs .side-tab-ufo[aria-selected="true"] { background: linear-gradient(225deg, rgba(247,127,0,.5), rgba(123,92,255,.35)); }
.scene-tabs .side-tab::after { /* small edge arrow cue */
  font-family: var(--font-mono); font-size: .7rem; position: absolute; top: 50%; transform: translateY(-50%); opacity: .7;
}
.scene-tabs .side-tab-earth::after { content: "◀"; left: -1.1rem; color: var(--teal-bright); }
.scene-tabs .side-tab-ufo::after { content: "▶"; right: -1.1rem; color: var(--orange); }

/* Intro strip under the scene */
.scene-intro { border-bottom: 1px solid rgba(46,56,76,.6); background: rgba(11,14,20,.55); }
.scene-intro-inner {
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
}
.scene-intro .meta-line { margin: 0; }
.scene-intro .cta-row { margin: 0; }

.shelf { margin-bottom: 2.5rem; }
.lounge-copy { margin: 0 0 2.5rem; }
.tile-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .tile-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tile-grid-4 { grid-template-columns: 1fr; } }
.placeholder-badge {
  align-self: flex-start; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .5rem; border: 1px dashed rgba(196,165,116,.6); color: var(--warm-practical);
  background: rgba(196,165,116,.08); border-radius: 2px;
}
.tile-earth { border-color: rgba(0,168,150,.3); }
.tile-earth::before { border-bottom-color: rgba(0,168,150,.5); }
.tile-earth .tile-id::before { content: "" !important; }
.shelf-ufo .tile .tile-id::before { content: "BAY · " ; }

/* Outpost face: amber-tinted scene */
html[data-face="outpost"] .scene-svg { filter: sepia(.75) saturate(1.5) hue-rotate(-12deg) brightness(.85) contrast(1.1); }
html[data-face="outpost"] .scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.22) 2px 3px);
}
html[data-face="outpost"] .scene-title h1 { color: #FFE8B0; text-shadow: 0 0 20px var(--amber-dim), 0 0 30px rgba(0,0,0,.9); }
html[data-face="outpost"] .scene-eyebrow { color: var(--amber); }
.outpost-boot { margin-bottom: 1.5rem; }

/* Tablet / mobile */
@media (max-width: 900px) {
  .scene { height: 460px; }
  .scene .ufo-fit { transform: scale(.72); }
}
@media (max-width: 640px) {
  .scene { height: 480px; }
  .scene-title { top: 16px; }
  .scene-title .house-plate { padding: .35rem .6rem; margin-bottom: .45rem; }
  .scene-title .house-plate .hp-id { font-size: .8rem; }
  .scene-eyebrow { font-size: .56rem; letter-spacing: .12em; }
  .scene-title .lead { font-size: 1rem; }
  .scene .ufo-fit { transform: scale(.7) translateY(-70px); }
  .scene-tabs .side-tab { top: 236px; transform: none; min-width: 0; width: calc(50% - 1.2rem); padding: .5rem .7rem; }
  .scene-tabs .side-tab-earth { left: .6rem; padding-right: 1.3rem; }
  .scene-tabs .side-tab-ufo { right: .6rem; padding-left: 1.3rem; }
  .scene-tabs .side-tab::after { display: none; }
  .st-name { font-size: 1rem; }
}

/* Reduced motion: crossfade only */
@media (prefers-reduced-motion: reduce) {
  .scene .earth, .scene .ufo, .scene .sun, .scene .dome,
  html[data-side="ufo"] .scene .earth, html[data-side="ufo"] .scene .ufo,
  html[data-side="ufo"] .scene .sun, html[data-side="ufo"] .scene .dome {
    transform: none !important; transition: opacity .4s ease !important;
  }
  html[data-side="ufo"] .scene .ufo-bob, html[data-side="ufo"] .scene .beam, html[data-side="ufo"] .scene .rim-light { animation: none !important; }
  html[data-side="ufo"] .scene .beam { opacity: .8; }
  html[data-side="ufo"] .scene .rim-light { opacity: 1; }
}
/* non-link (placeholder) tiles share link-tile layout */
.tile div.tile-link { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 2.4rem 1.35rem 1.35rem; position: relative; }
.tile-earth .tile-id { color: var(--teal-bright); }
/* scene tablist overlay must stay transparent in every face */
html[data-face] .scene-tabs, .scene-tabs { background: none !important; border: 0 !important; box-shadow: none !important; }
html[data-face="outpost"] .btn-primary { color: #1A120C; }
html[data-face="outpost"] .btn-primary:hover { color: var(--orange); }

/* ================= PHOTOREAL SCENE (WebGL + static fallbacks) ================= */
.scene { height: 540px; background: none; }
.scene-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.scene.gl-ready .scene-gl { opacity: 1; }
.scene-fallback {
  position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; z-index: 0;
  transform: translateX(-50%);
  transition: opacity .6s ease; pointer-events: none; user-select: none;
}
.scene .fb-ufo { opacity: 0; }
html[data-side="ufo"] .scene .fb-ufo { opacity: 1; }
html[data-side="ufo"] .scene .fb-earth { opacity: 0; }
.scene.gl-ready .scene-fallback { opacity: 0 !important; transition: opacity .8s ease .2s; }
.scene::after { height: 24px; background: linear-gradient(180deg, transparent, rgba(11,14,20,.35)); z-index: 1; }
html[data-face="outpost"] .scene-gl,
html[data-face="outpost"] .scene-fallback { filter: sepia(.7) saturate(1.5) hue-rotate(-12deg) brightness(.9) contrast(1.08); }
.nasa-credit { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--muted); opacity: .8; margin: 0; }
@media (max-width: 900px) { .scene { height: 520px; } }
@media (max-width: 640px) { .scene { height: 480px; } }

/* ================= CLARITY PASS (newcomer-first) ================= */
/* Nav: plain labels, sector code kept as a small chip */
.nav-code { display: inline-block; margin-right: .38rem; padding: 0 .28rem; font-size: .58rem; line-height: 1.5;
  border: 1px solid rgba(0,168,150,.45); border-radius: 2px; color: var(--teal-bright); opacity: .85; }
html[data-face="outpost"] .nav-code { border-color: rgba(255,176,0,.45); color: var(--amber); }

/* "What this is" strip directly under the hero */
.scene-intro { background: linear-gradient(180deg, rgba(14,20,30,.92), rgba(11,14,20,.7)); }
.scene-intro-inner { padding: 1.15rem 1.25rem 1.25rem; align-items: center; }
.what-is { flex: 1 1 420px; max-width: 640px; }
.what-line { margin: 0 0 .3rem; font-size: 1.02rem; line-height: 1.5; color: var(--offwhite); }
.what-line strong { color: var(--teal-bright); font-weight: 700; }
.what-where { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--face-muted); }
.scene-intro .cta-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.btn-ghost.is-placeholder { cursor: default; color: var(--muted); background: transparent;
  border: 1px dashed rgba(196,165,116,.55); font-size: .72rem; }
.btn-ghost.is-placeholder:hover { transform: none; }
html[data-face="outpost"] .what-line strong { color: var(--amber); }

/* Tabs: plain names + hints */
.scene-tabs .side-tab { min-width: 12.5rem; }
.scene-tabs .st-name { font-size: 1rem; letter-spacing: .08em; }
.scene-tabs .st-sub { text-transform: none; letter-spacing: .04em; font-size: .68rem; opacity: .85; }

/* Title: no eyebrow now, a touch more air */
.scene-title { top: 34px; }

/* How it works */
.how-it-works { margin: 0 0 2rem; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-grid li { position: relative; padding: 1rem 1.1rem 1rem 3.2rem; background: linear-gradient(180deg, rgba(28,35,49,.7), rgba(13,17,23,.85));
  border: 1px solid rgba(46,56,76,.9); border-radius: 4px; }
.how-grid h3 { margin: 0 0 .25rem; font-size: 1rem; }
.how-grid p { margin: 0; font-size: .9rem; color: var(--face-muted); line-height: 1.45; }
.how-n { position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; color: #0B0E14; background: var(--teal-bright); border-radius: 50%;
  box-shadow: 0 0 12px rgba(0,168,150,.5); }
.how-grid li:nth-child(3) .how-n { background: var(--orange); box-shadow: 0 0 12px rgba(247,127,0,.5); }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }
html[data-face="outpost"] .how-n { background: var(--amber); }

/* The Story (collapsed lore) */
.story { margin: 0 0 2.5rem; border: 1px solid rgba(123,92,255,.35); border-radius: 4px;
  background: linear-gradient(135deg, rgba(40,22,50,.35), rgba(13,17,23,.85)); }
.story > summary { cursor: pointer; list-style: none; padding: .9rem 1.1rem; display: flex; align-items: baseline; gap: .8rem; }
.story > summary::-webkit-details-marker { display: none; }
.story > summary::before { content: "▸"; color: var(--helion-soft, #A78BFF); transition: transform .2s; }
.story[open] > summary::before { transform: rotate(90deg); }
.story-k { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--offwhite); }
.story-hint { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story > summary:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 2px; }
.story-body { padding: 0 1.1rem 1.2rem; }
.story-body .lounge-chips, .story-body .zone-strip { margin: .8rem 0; }
html[data-face="outpost"] .story { border-color: rgba(255,176,0,.3); background: #0A0804; }

/* Mobile: trim decorative chrome so the hero lands sooner */
@media (max-width: 640px) {
  .ship-console .console-aboard, .ship-console .chip-helion { display: none; }
  .lounge-note { font-size: .78rem; padding: .45rem .9rem; }
  .lounge-note .ln-tag { display: none; }
  .scene-title { top: 18px; }
  .scene-tabs .side-tab { top: 206px; min-width: 0; }
  .scene-tabs .st-name { font-size: .88rem; letter-spacing: .05em; }
  .scene-tabs .st-sub { font-size: .62rem; }
  .what-line { font-size: .95rem; }
  .scene-intro .cta-row .btn { flex: 1 1 calc(50% - .55rem); text-align: center; justify-content: center; }
}
@media (min-width: 901px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; }
  .site-nav a { padding: .4rem .5rem; letter-spacing: .04em; white-space: nowrap; }
  .nav-code { margin-right: .3rem; }
}
@media (max-width: 640px) { .scene-tabs .st-sub { white-space: nowrap; font-size: .58rem; letter-spacing: .02em; } }
.shelf-ufo .tile .tile-id::before { content: none; }
.story-k { white-space: nowrap; }
.story > summary { flex-wrap: wrap; row-gap: .2rem; }

/* Stamp-only rule: hero house plate removed; re-balance the title in the sky */
.scene-title { top: 92px; }
.scene-title h1 { margin-bottom: .4rem; }
@media (max-width: 640px) { .scene-title { top: 58px; } }

/* ================= CARGO FEED (ship's log ticker · in-world fiction, decorative) ================= */
.cargo-feed {
  position: relative; z-index: 110;
  display: flex; align-items: center; gap: .7rem;
  height: 32px; padding: 0 0 0 1.1rem; overflow: hidden; contain: layout paint;
  background: linear-gradient(180deg, #161C28 0%, #0E121A 100%);
  border-bottom: 1px solid rgba(0,168,150,.35);
  box-shadow: inset 0 -1px 0 rgba(247,127,0,.12), 0 4px 16px rgba(0,0,0,.35);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; line-height: 1;
  color: var(--teal-bright);
}
.cargo-feed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--helion), var(--orange)); }
.cargo-feed:focus-visible { outline: 2px solid var(--offwhite); outline-offset: -2px; }
.cf-live { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .5rem;
  border: 1px solid rgba(247,127,0,.55); border-radius: 3px; background: rgba(247,127,0,.1);
  color: var(--orange); font-weight: 700; letter-spacing: .14em; }
.cf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(247,127,0,.9);
  animation: led-pulse 1.6s ease-in-out infinite; }
.cf-label { flex: none; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .6rem; }
.cf-viewport { flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.cf-track { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; white-space: nowrap; will-change: transform; }
.cargo-feed.cf-running .cf-track { animation: cf-scroll var(--cf-dur, 240s) linear infinite; }
.cargo-feed:hover .cf-track, .cargo-feed:focus-within .cf-track { animation-play-state: paused; }
@keyframes cf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cf-item { display: inline-flex; align-items: center; gap: .5rem; padding: 0 1.6rem 0 0; }
.cf-item::after { content: "◆"; margin-left: 1.1rem; font-size: .5rem; color: rgba(0,168,150,.45); }
.cf-tag { padding: .2rem .4rem; border-radius: 2px; font-weight: 700; letter-spacing: .12em; font-size: .58rem; }
.cf-tag.hz { color: #0B0E14; background: var(--orange); }
.cf-tag.hel { color: #F1ECFF; background: rgba(123,92,255,.55); border: 1px solid var(--helion-hot, #A78BFF); }
.cf-tag.tl { color: var(--teal-bright); border: 1px solid rgba(0,168,150,.6); }
.cf-text { color: var(--teal-bright); text-decoration: none; }
a.cf-text { border-bottom: 1px dotted rgba(0,168,150,.55); }
a.cf-text:hover { color: var(--offwhite); border-bottom-color: var(--offwhite); }
/* reduced motion: one static line, slow opacity-only rotation */
.cargo-feed.cf-static .cf-item { transition: opacity .4s ease; }
.cargo-feed.cf-static .cf-item.cf-fade { opacity: 0; }
.cargo-feed.cf-static .cf-item::after { content: none; }
.cargo-feed.cf-static .cf-viewport { -webkit-mask-image: none; mask-image: none; }
.cargo-feed.cf-static .cf-text { overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .cf-dot { animation: none; } .cargo-feed .cf-track { animation: none !important; } }
/* outpost face */
html[data-face="outpost"] .cargo-feed { background: #0A0804; border-bottom-color: rgba(255,176,0,.4); color: var(--amber); }
html[data-face="outpost"] .cf-text { color: #FFE8B0; }
html[data-face="outpost"] .cf-tag.tl { color: var(--amber); border-color: rgba(255,176,0,.5); }
/* mobile: same fixed height, shorter label */
@media (max-width: 640px) {
  .cargo-feed { height: 30px; gap: .5rem; padding-left: .8rem; font-size: .62rem; }
  .cf-label-x { display: none; }
  .cf-label { font-size: .56rem; letter-spacing: .08em; }
}

/* ================= INNER PAGES CLARITY PASS ================= */
.page-hero .page-what { color: var(--offwhite); font-size: 1.08rem; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.1rem; }
.page-hero .stamp-row { margin-top: .2rem; }
.cargo-crate .placeholder-badge { display: inline-block; margin-left: .5rem; vertical-align: middle; }
.crate-link { display: inline-block; margin-top: .7rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--teal-bright); text-decoration: none; border-bottom: 1px dotted rgba(0,168,150,.55); }
.crate-link:hover { color: var(--offwhite); }
.terms-h { margin-top: 2rem; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; margin: 0 0 2rem; }
.terms > div { padding: .8rem 1rem; border: 1px solid rgba(46,56,76,.9); border-left: 3px solid var(--teal); border-radius: 3px;
  background: rgba(13,17,23,.7); }
.terms dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: .3rem; }
.terms dd { margin: 0; font-size: .9rem; color: var(--face-muted); line-height: 1.45; }
html[data-face="outpost"] .terms > div { border-left-color: var(--amber); background: #0A0804; }
html[data-face="outpost"] .terms dt { color: var(--amber); }
.status-legend { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem .9rem; }
.status-legend li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--face-muted); }
.th-plain { font-weight: 400; opacity: .7; text-transform: none; letter-spacing: 0; }
.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; }
.plain-list li { text-transform: none; }
.story-body .bulkhead, .story-body .panel, .story-body .query-console, .story-body .filed-doc { margin-top: 1rem; }
.story-body .query-sql { margin: .8rem 0 0; }
@media (max-width: 640px) {
  .hero-cta .btn { flex: 1 1 calc(50% - .55rem); text-align: center; justify-content: center; }
  .page-hero .page-what { font-size: 1rem; }
}

/* inner pages: keep archive IDs on one line; tighter table on phones */
.data td.mono { white-space: nowrap; }
@media (max-width: 600px) {
  .data .th-plain { display: none; }
}
@media (max-width: 600px) {
  /* row number duplicates the archive ID; drop it so Status fits on phones */
  table.data .row-num { display: none; }
}
@media (max-width: 600px) {
  table.data td, table.data th { padding-left: .4rem; padding-right: .4rem; }
}

/* =========================================================
   STORY LAYERS (2026-09-25): provenance tags, Helion crystal,
   Vex transmission, canisters, dossiers, captain's log, 404.
   All optional flavor; collapsed or out of the main path.
   ========================================================= */

/* --- Helion crystal (footer trigger) --- */
.helion-crystal { display: inline-flex; align-items: center; gap: .35rem; margin-left: .5rem; padding: .1rem .45rem .1rem .3rem;
  background: rgba(123,92,255,.08); border: 1px solid rgba(167,139,255,.35); border-radius: 999px; color: var(--helion-hot);
  font: inherit; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; cursor: pointer; vertical-align: middle; }
.helion-crystal svg { width: 12px; height: 16px; filter: drop-shadow(0 0 4px rgba(123,92,255,.8)); }
.helion-crystal .hc-a { fill: #7B5CFF; } .helion-crystal .hc-b { fill: #C9B8FF; } .helion-crystal .hc-c { fill: #4A34B0; }
.helion-crystal:hover, .helion-crystal:focus-visible { border-color: var(--helion-hot); background: rgba(123,92,255,.18); outline: none; box-shadow: 0 0 0 2px rgba(167,139,255,.35); }
.helion-crystal.hc-ping svg { animation: hc-ping .45s ease-out; }
@keyframes hc-ping { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --- Provenance cargo tags --- */
.prov-tag { margin: .2rem 1.35rem 1.1rem; font-family: var(--font-mono); font-size: .7rem; color: var(--face-muted); position: relative; }
.cargo-crate .prov-tag { margin: .9rem 0 0; }
.prov-tag > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .6rem .22rem .45rem;
  border: 1px solid rgba(196,165,116,.45); border-radius: 2px 10px 10px 2px; background: rgba(196,165,116,.07); color: var(--warm-practical);
  letter-spacing: .1em; text-transform: uppercase; font-size: .6rem; }
.prov-tag > summary::-webkit-details-marker { display: none; }
.prov-tag > summary::after { content: "▸"; transition: transform .2s; }
.prov-tag[open] > summary::after { transform: rotate(90deg); }
.prov-tag .pt-hole { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--face-card, #121820); }
.prov-tag > summary:hover, .prov-tag > summary:focus-visible { border-color: var(--warm-practical); outline: none; background: rgba(196,165,116,.14); }
.prov-tag p { margin: .45rem 0 0; line-height: 1.45; font-size: .72rem; padding-left: .6rem; border-left: 2px dashed rgba(196,165,116,.35); }
.prov-tag p b { color: var(--warm-practical); font-weight: 600; }

/* --- Propagation canisters (Earth shelf) --- */
.canister { width: 64px; height: 100px; margin: -.6rem 0 .2rem; --cn: #3DDC97; --cn-soft: rgba(61,220,151,.22); }
.canister.cn-amber { --cn: #FFB347; --cn-soft: rgba(255,179,71,.2); }
.canister.cn-teal { --cn: #2FD4C0; --cn-soft: rgba(47,212,192,.2); }
.canister.cn-warm { --cn: #FFC870; --cn-soft: rgba(255,200,112,.2); }
.canister svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px var(--cn-soft)); }
.canister .cn-cap { fill: #2A3342; stroke: #58647A; stroke-width: 1; }
.canister .cn-glass { fill: rgba(224,230,237,.05); stroke: rgba(224,230,237,.45); stroke-width: 1.2; }
.canister .cn-fluid { fill: var(--cn-soft); animation: cn-glow 4s ease-in-out infinite; }
.canister .cn-sprout, .canister .cn-steam { fill: none; stroke: var(--cn); stroke-width: 2.2; stroke-linecap: round; }
.canister .cn-sprout { fill: var(--cn-soft); }
.canister .cn-item { fill: rgba(224,230,237,.12); stroke: var(--cn); stroke-width: 1.6; }
.canister .cn-flame { fill: var(--cn); }
.canister .cn-bub { fill: var(--cn); opacity: .7; animation: cn-rise 3.6s linear infinite; }
.canister .cn-bub.b2 { animation-delay: 1.2s; } .canister .cn-bub.b3 { animation-delay: 2.4s; }
.canister .cn-shine { fill: rgba(255,255,255,.18); }
.canister .cn-led { fill: var(--cn); }
@keyframes cn-glow { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes cn-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(-46px); opacity: 0; } }
.tile-earth:hover .canister svg { filter: drop-shadow(0 0 14px var(--cn-soft)); }
@media (prefers-reduced-motion: reduce) { .canister .cn-fluid, .canister .cn-bub { animation: none; } .canister .cn-bub { opacity: .5; } }

/* --- Vex transmission overlay --- */
.vex-ov { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 1rem;
  background: rgba(8,10,16,.72); opacity: 0; transition: opacity .3s ease; font-family: var(--font-sans); }
.vex-ov.in { opacity: 1; } .vex-ov.out { opacity: 0; }
.vex-scan { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(180deg, rgba(167,139,255,.10) 0 2px, transparent 2px 6px); animation: vex-scan 2.4s linear infinite; }
@keyframes vex-scan { from { background-position: 0 0; } to { background-position: 0 48px; } }
.vex-bar { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #FFD9A8; background: rgba(247,127,0,.16); border: 1px solid rgba(247,127,0,.5); border-radius: 3px; white-space: nowrap; }
.vex-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.vex-card { position: relative; width: min(520px, 92vw); padding: 1rem 1.1rem 1.1rem; border-radius: 6px;
  background: linear-gradient(165deg, #1A1530, #0F1220); border: 1px solid rgba(167,139,255,.55);
  box-shadow: 0 0 0 1px rgba(123,92,255,.2), 0 0 40px rgba(123,92,255,.25); transform-origin: center;
  opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .35s ease; }
.vex-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--helion-hot); margin-bottom: .7rem; }
.vex-q { color: var(--face-muted, #9AA5B4); }
.vex-body { display: flex; gap: 1rem; align-items: center; }
.vex-face { width: 104px; height: 104px; flex: none; border-radius: 8px; }
.vf-bg { fill: #221B3D; } .vf-coat { fill: #3B2F66; } .vf-collar { fill: #8A7BC8; } .vf-head { fill: #C9A98A; }
.vf-hat { fill: #2B2248; } .vf-brow { stroke: #3A2A20; stroke-width: 3; stroke-linecap: round; fill: none; }
.vf-eye { fill: #2A1E18; } .vf-mouth { stroke: #3A2A20; stroke-width: 2.5; fill: none; stroke-linecap: round; } .vf-gem { fill: #A78BFF; }
.vex-face { filter: saturate(.8) contrast(.95); }
.vex-text { min-width: 0; }
.vex-who { margin: 0 0 .25rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: #F1ECFF; }
.vex-who span { color: var(--face-muted, #9AA5B4); letter-spacing: .04em; }
.vex-line { margin: 0; min-height: 1.5em; font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 700; color: #FFFFFF; }
.vex-sub { margin: .4rem 0 0; font-size: .82rem; color: var(--face-muted, #9AA5B4); }
.vex-cut { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; border-radius: 6px;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #FFD9A8;
  background: rgba(15,18,32,.94); opacity: 0; transition: opacity .3s ease; }
.vex-ok { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 4px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: #CFFAF3; background: rgba(0,168,150,.18); border: 1px solid rgba(0,168,150,.6); opacity: 0; transition: opacity .4s ease; white-space: nowrap; }
.vex-ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright, #2FD4C0); }
.vex-close { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: #E0E6ED; background: rgba(28,35,49,.9); border: 1px solid rgba(224,230,237,.35); border-radius: 3px; padding: .35rem .6rem; cursor: pointer; }
.vex-close kbd { font-family: inherit; opacity: .7; margin-left: .3rem; }
.vex-close:focus-visible { outline: 2px solid var(--helion-hot); outline-offset: 2px; }
.vex-ov[data-phase="vex"] .vex-card { opacity: 1; transform: none; }
.vex-ov[data-phase="cut"] .vex-card { opacity: 1; transform: none; }
.vex-ov[data-phase="cut"] .vex-cut { opacity: 1; }
.vex-ov[data-phase="recover"] .vex-card { opacity: 0; transform: scaleY(.02); transition: transform .4s ease-in, opacity .5s ease .2s; }
.vex-ov[data-phase="recover"] .vex-cut { opacity: 1; }
.vex-ov[data-phase="recover"] .vex-ok { opacity: 1; }
.vex-ov[data-phase="recover"] .vex-scan, .vex-ov[data-phase="recover"] .vex-bar { opacity: 0; transition: opacity .4s; }
/* glitch: slow, low-contrast shift of the page (2.5 steps/s), no flashes */
html.vex-glitch main, html.vex-glitch .site-header { animation: vex-shift 1.2s steps(3, jump-none) 1; filter: hue-rotate(18deg) saturate(.85); transition: filter .4s; }
@keyframes vex-shift { 0% { transform: translateX(0); } 33% { transform: translateX(-6px); } 66% { transform: translateX(4px); } 100% { transform: translateX(0); } }
.vex-ov[data-phase="glitch"] .vex-bar { animation: vex-bar-in .5s ease-out; }
@keyframes vex-bar-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
html.vex-on { overflow: hidden; }
/* calm version (reduced motion): no scanline drift, no shift, simple fades */
.vex-calm .vex-scan { animation: none; opacity: .15; }
.vex-calm .vex-card, .vex-calm .vex-cut, .vex-calm .vex-ok, .vex-ov.vex-calm { transition: opacity .25s linear; transform: none !important; }
.vex-calm[data-phase="cut"] .vex-card { transform: none; }
@media (prefers-reduced-motion: reduce) { html.vex-glitch main, html.vex-glitch .site-header { animation: none; filter: none; } .vex-scan { animation: none; } }
@media (max-width: 600px) { .vex-body { flex-direction: column; text-align: center; } .vex-bar { top: 8%; font-size: .62rem; } .vex-ok { bottom: 8%; font-size: .64rem; } }

/* --- Alien Index dossiers --- */
.dossier-hint { margin: 0 0 .8rem; font-size: .9rem; color: var(--face-muted); }
.dossier-btn { all: unset; cursor: pointer; color: var(--off-white, #E0E6ED); border-bottom: 1px dashed rgba(167,139,255,.6); }
.dossier-btn:hover { color: var(--helion-hot); border-bottom-style: solid; }
.dossier-btn:focus-visible { outline: 2px solid var(--helion-hot); outline-offset: 3px; border-radius: 2px; }
.dossier-dlg { padding: 0; border: 0; background: transparent; max-width: min(560px, 94vw); width: 100%; color: #E0E6ED; }
.dossier-dlg::backdrop { background: rgba(6,8,12,.72); }
.dossier-card { position: relative; padding: 1.2rem 1.3rem 1.3rem; border-radius: 6px; background: linear-gradient(165deg, #1E2834, #10151D);
  border: 1px solid rgba(0,168,150,.45); box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(123,92,255,.15); max-height: 88vh; overflow: auto; }
.dossier-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dossier-id { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.dossier-x { font: inherit; font-size: 1rem; line-height: 1; padding: .35rem .55rem; color: #E0E6ED; background: rgba(28,35,49,.9); border: 1px solid rgba(224,230,237,.3); border-radius: 3px; cursor: pointer; }
.dossier-x:focus-visible { outline: 2px solid var(--helion-hot); outline-offset: 2px; }
.dossier-card h2 { margin: .5rem 0 .15rem; font-size: 1.5rem; }
.dossier-nick { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--face-muted, #9AA5B4); }
.dossier-dl { margin: .9rem 0 0; display: grid; gap: .55rem; }
.dossier-dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; }
.dossier-dl dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright, #2FD4C0); padding-top: .15rem; }
.dossier-dl dd { margin: 0; font-size: .92rem; line-height: 1.45; }
.dossier-note { margin: .9rem 0 0; padding: .6rem .75rem; border-left: 3px solid var(--helion); background: rgba(123,92,255,.08); font-size: .88rem; }
.dossier-note b { color: var(--helion-hot); }
.dossier-fine { margin: .7rem 0 0; font-size: .72rem; color: var(--face-muted, #9AA5B4); }
@media (max-width: 600px) { .dossier-dl > div { grid-template-columns: 1fr; gap: .1rem; } }

/* --- Captain's log --- */
.log-key { margin-bottom: 1rem; }
.log-list { list-style: none; margin: 0 0 2rem; padding: 0 0 0 1.2rem; border-left: 2px solid rgba(0,168,150,.35); display: grid; gap: 1.1rem; }
.log-entry { position: relative; padding: 1rem 1.15rem; background: linear-gradient(165deg, #1B2330, #121820); border: 1px solid rgba(46,56,76,.95); border-radius: 4px; }
.log-entry::before { content: ""; position: absolute; left: calc(-1.2rem - 7px); top: 1.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(0,168,150,.6); }
.log-entry h2 { margin: .2rem 0 .35rem; font-size: 1.15rem; }
.log-entry p { margin: 0 0 .45rem; }
.log-meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.log-ty { color: var(--face-muted); margin-left: .4rem; }
.log-captain { font-size: .86rem; color: var(--face-muted); font-style: italic; }
.log-captain span { font-style: normal; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--helion-hot); }

/* --- 404 / F.R.A.N.K. --- */
.nf-hero { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.frank-svg { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(0,168,150,.25)); }
.fk-bar { fill: #3A2A1E; } .fk-bar-top { fill: #6B4A2E; }
.fk-neck { fill: #58647A; } .fk-body { fill: #2A3342; stroke: #58647A; stroke-width: 2; }
.fk-tie { fill: var(--orange, #F77F00); } .fk-btn { fill: #C4A574; }
.fk-head { fill: #313B4D; stroke: #6B7890; stroke-width: 2; } .fk-visor { fill: #0D1117; stroke: #028090; stroke-width: 2; }
.fk-eye { fill: #2FD4C0; } .fk-grille { fill: #1C2331; stroke: #58647A; } .fk-grille-l { stroke: #58647A; stroke-width: 2; }
.fk-ant { stroke: #6B7890; stroke-width: 3; } .fk-ant-tip { fill: #FFB000; }
.fk-arm { fill: none; stroke: #58647A; stroke-width: 8; stroke-linecap: round; }
.fk-cup { fill: rgba(224,230,237,.2); stroke: #E0E6ED; stroke-width: 2; } .fk-rag { fill: #C4A574; }
.frank-svg .fk-eye { animation: fk-blink 6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fk-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.15); } }
.nf-quote { margin: 1rem 0 1.2rem; padding: .8rem 1rem; border-left: 3px solid var(--teal); background: rgba(0,168,150,.07); border-radius: 0 4px 4px 0; }
.nf-quote p { margin: 0; font-size: 1.02rem; }
.nf-quote .nf-cite { margin-top: .4rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--face-muted); }
.nf-more { margin: 1.5rem 0 2rem; }
@media (max-width: 700px) { .nf-hero { grid-template-columns: 1fr; gap: 1rem; } .nf-frank { max-width: 160px; } }
@media (prefers-reduced-motion: reduce) { .frank-svg .fk-eye { animation: none; } }
html body > div.vex-ov.vex-ov { position: fixed; z-index: 9000; }

/* --- Dock mechanic's pinned note (sector-04): scrawled grease-marker card --- */
.pin-note { position: relative; max-width: 640px; margin: 0 0 2rem; padding: .9rem 1.1rem 1rem; transform: rotate(-.6deg);
  background: linear-gradient(175deg, #E9DFC6, #D9CDAE); color: #26211A; border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 40px rgba(120,95,60,.18); font-family: "Segoe Print", "Bradley Hand", "Comic Neue", var(--font-sans); }
.pin-note > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.pin-note > summary::-webkit-details-marker { display: none; }
.pin-note .pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFB26B, #C45A00); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.pn-where { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #7A5B2E; width: 100%; }
.pn-title { font-weight: 700; font-size: 1.08rem; text-decoration: underline wavy rgba(38,33,26,.35); text-underline-offset: 4px; }
.pn-hint { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: #7A5B2E; }
.pin-note > summary:focus-visible { outline: 2px dashed #7A5B2E; outline-offset: 4px; }
.pn-rules { margin: .8rem 0 .2rem; padding-left: 1.4rem; display: grid; gap: .3rem; font-size: .95rem; line-height: 1.4; }
.pn-rules li::marker { font-weight: 700; color: #9A3B00; }
.pn-rules b { color: #1B1712; }
.pn-sig { margin: .4rem 0 0; text-align: right; font-style: italic; color: #5A4A33; }
/* 8 nav items: keep the wordmark on one line on desktop */
@media (min-width: 901px) {
  .site-nav a { padding: .4rem .38rem; letter-spacing: .02em; }
  .wordmark .mark { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .site-nav a { font-size: .66rem; padding: .35rem .3rem; }
  .nav-code { margin-right: .2rem; }
  .brand-logo { width: 56px; height: 56px; }
}
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; flex-wrap: wrap; gap: .2rem; padding: .5rem 0 .25rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { clip-path: none; border-radius: 4px; }
  nav { width: 100%; }
}

/* ================= DECLUTTER + IMAGES (2026-09-26) ================= */
/* Calmer body type: sans for reading, mono only for tiny accents */
.shelf-note, .what-where, .prov-tag p, .story-hint { font-family: var(--font-sans); letter-spacing: normal; text-transform: none; }
.shelf-note { font-size: .92rem; color: var(--muted); margin: 0 0 1.1rem; }
.what-where { font-size: .82rem; }
.story-hint { font-size: .78rem; }
.simple-h { font-family: var(--font-display); font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 700; color: var(--offwhite); margin: 2.2rem 0 .8rem; letter-spacing: .01em; }
.grid-note { margin: 1.4rem 0 1rem; color: var(--muted); font-size: .9rem; }
.page-hero .eyebrow { opacity: .8; }

/* Image slots: one aspect ratio per kind, never stretched */
.ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #0F1520; border-radius: 6px 6px 0 0; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Product grid (category pages + Earth shelf) */
.product-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.product-card { display: flex; flex-direction: column; min-width: 0; background: #111822; border: 1px solid #243044; border-radius: 8px; overflow: hidden; }
.pc-body { display: flex; flex-direction: column; gap: .45rem; padding: .95rem 1rem 1rem; flex: 1; }
.pc-lore { margin: 0; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.product-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; color: var(--offwhite); }
.pc-line { margin: 0; color: #B9C2CF; font-size: .95rem; line-height: 1.5; }
.pc-meta { margin: .2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.pc-price { color: var(--offwhite); font-weight: 600; font-size: .92rem; }
.product-card .prov-tag { margin: .35rem 0 0; }
.prov-tag p { font-size: .85rem; line-height: 1.5; }

/* Home: the three category tiles */
.cat-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 1rem; }
.cat-tile { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: #111822; border: 1px solid #243044; border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .2s; }
.cat-tile:hover, .cat-tile:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.cat-tile:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 2px; }
.cat-body { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1rem 1.05rem; }
.cat-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--offwhite); }
.cat-line { color: #B9C2CF; font-size: .95rem; }
.cat-go { margin-top: .3rem; color: var(--orange); font-weight: 600; font-size: .9rem; }

/* Find Us info cards, checklists */
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 1.6rem 0 2rem; }
.info-card { background: #111822; border: 1px solid #243044; border-radius: 8px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.info-card h3 { margin: 0; font-family: var(--font-display); color: var(--offwhite); font-size: 1.1rem; }
.info-card p { margin: 0; color: #B9C2CF; }
.check-list { margin: 0 0 2rem; padding-left: 1.2rem; color: #C9D1DC; line-height: 1.7; }
.check-list li::marker { color: var(--teal); }

/* About: picture + text */
.about-split { display: grid; gap: 1.4rem; align-items: start; margin: 1.8rem 0 2rem; }
.about-split .ph { border-radius: 8px; border: 1px solid #243044; }
.about-split .simple-h:first-child { margin-top: 0; }
.about-text p { color: #C9D1DC; line-height: 1.65; }
@media (min-width: 820px) { .about-split { grid-template-columns: 1fr 1fr; } }

/* Alien Index: phone-friendly species grid */
.status-legend { list-style: none; margin: 1.6rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .86rem; }
.status-legend li { display: flex; align-items: center; gap: .45rem; }
.species-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .species-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.species-grid li { min-width: 0; display: flex; }
.species-card { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: .4rem; background: #111822; border: 1px solid #243044; border-radius: 8px; overflow: hidden; padding: 0 0 .8rem; transition: border-color .2s, transform .2s; }
.species-card img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; background: #0F1520; }
.species-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.species-card:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 2px; }
.sc-name { padding: 0 .75rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--offwhite); line-height: 1.25; overflow-wrap: anywhere; }
.species-card .status { margin: 0 .75rem; align-self: flex-start; }
.dossier-img { display: block; width: 96px; height: 96px; border-radius: 8px; margin: 0 0 .6rem; object-fit: cover; }

/* Pinned note now lives inside the sector-04 story */
.story-body .pin-note { margin-top: 1.2rem; }

/* Quieter ticker: lower contrast, no pulsing dot */
.cargo-feed .cf-text { color: #8FB9B3; }
.cargo-feed .cf-tag { opacity: .7; }
.cargo-feed .cf-dot { animation: none; box-shadow: none; opacity: .7; }
.cargo-feed { opacity: .85; }


/* ================= LAUNCH READINESS (2026-09-26) ================= */
/* Home order: products first; later-from-Earth shelf is smaller */
.shelf-later .simple-h { font-size: clamp(1.1rem, 3vw, 1.3rem); }
.shelf-later { margin-top: .5rem; }

/* Notify signup */
.notify { margin: 2.4rem 0 1.6rem; padding: 1.3rem 1.2rem 1.1rem; border: 1px solid rgba(0,168,150,.4); border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,168,150,.12), rgba(2,128,144,.05) 60%, rgba(247,127,0,.06)); }
.notify .simple-h { margin-top: 0; }
.notify-lead { color: #C9D1DC; margin: 0 0 1rem; }
.notify-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.nf-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.nf-row input { flex: 1 1 200px; min-width: 0; padding: .75rem .85rem; border-radius: 6px; border: 1px solid #2E384C; background: #0B0E14; color: var(--offwhite); font: 1rem var(--font-sans); }
.nf-row input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.nf-row .btn { flex: 0 0 auto; }
.form-status:empty { display: none; }
.form-status { margin: .7rem 0 0; font-size: .92rem; }
.form-status.form-ok { color: #7BE0B5; }
.form-status.form-err { color: #FFB38A; }
.notify .form-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.more-link { margin: -1rem 0 2rem; }
.more-link a, .notify a, .policy a { color: var(--teal-bright); }

/* Policies page */
.draft-banner { margin: 1.4rem 0 1.2rem; padding: .9rem 1rem; border: 2px dashed var(--orange); border-radius: 8px; background: rgba(247,127,0,.08); color: #FFD9B0; }
.draft-banner strong { color: var(--orange); letter-spacing: .04em; }
.policy-toc { display: flex; flex-wrap: wrap; gap: .4rem .9rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .92rem; }
.policy { max-width: 46rem; margin: 0 0 1.8rem; color: #C9D1DC; line-height: 1.65; }
.policy h2 { font-family: var(--font-display); color: var(--offwhite); font-size: 1.3rem; margin: 0 0 .5rem; scroll-margin-top: 90px; }
.policy ul { padding-left: 1.2rem; margin: .4rem 0; }
.policy li { margin: .25rem 0; }
.policy-meta { color: var(--muted); font-size: .85rem; }

/* ================= VEX EARLY-ACCESS CHAT (2026-09-26) ================= */
html body > aside.vex-chat.vex-chat { position: fixed; z-index: 95; right: 12px; bottom: 12px; left: auto; }
.vex-chat { width: min(330px, calc(100vw - 24px)); max-height: min(60vh, 420px); overflow: auto; box-sizing: border-box;
  background: #10151F; border: 1px solid rgba(123,92,255,.55); border-radius: 14px; padding: .7rem .75rem .6rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 24px rgba(123,92,255,.18); color: var(--offwhite); font-family: var(--font-sans);
  transform: translateY(16px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.vex-chat.vc-in { transform: none; opacity: 1; }
.vex-chat.vc-calm { transition: none; transform: none; }
.vex-chat[hidden] { display: none; }
body:has(.nav-toggle[aria-expanded="true"]) .vex-chat { visibility: hidden; }
.vc-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.vc-avatar { width: 38px; height: 38px; flex: none; }
.vc-avatar .vf-bg { fill: #1C1830; stroke: rgba(167,139,255,.7); stroke-width: 3; }
.vc-avatar .vf-coat { fill: #2A2240; } .vc-avatar .vf-collar { fill: #3A2F58; }
.vc-avatar .vf-head { fill: #6FA89A; } .vc-avatar .vf-hat { fill: #1A1428; }
.vc-avatar .vf-eye { fill: #0B0E14; } .vc-avatar .vf-mouth { fill: none; stroke: #0B0E14; stroke-width: 3; stroke-linecap: round; }
.vc-avatar .vf-gem { fill: var(--helion-hot, #A78BFF); }
.vc-id { flex: 1; min-width: 0; }
.vc-title { margin: 0; font-weight: 700; font-size: .95rem; }
.vc-title span { font-weight: 500; color: var(--muted); font-size: .8rem; }
.vc-sub { margin: 0; font-size: .74rem; color: var(--teal-bright); }
.vc-x { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2E384C; background: transparent; color: var(--offwhite); cursor: pointer; font-size: .9rem; }
.vc-x:focus-visible, .vex-chat .btn:focus-visible, .vex-chat input:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 2px; }
.vc-log { display: flex; flex-direction: column; gap: .4rem; }
.vc-msg { margin: 0; padding: .5rem .7rem; border-radius: 12px 12px 12px 4px; background: #1C2331; font-size: .92rem; line-height: 1.4; align-self: flex-start; max-width: 92%; }
.vc-msg.vc-me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(0,168,150,.25); }
.vc-typing { margin: 0; display: inline-flex; gap: 4px; padding: .6rem .7rem; border-radius: 12px; background: #1C2331; align-self: flex-start; }
.vc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: vc-dot 1s infinite ease-in-out; }
.vc-typing span:nth-child(2) { animation-delay: .15s; } .vc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vc-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.vc-actions { display: flex; gap: .5rem; margin-top: .55rem; }
.vc-actions[hidden], .vc-form[hidden] { display: none; }
.vex-chat .btn { padding: .55rem .9rem; font-size: .8rem; min-height: 40px; }
.vc-form { margin-top: .55rem; }
.vc-row { display: flex; gap: .45rem; }
.vc-row input { flex: 1; min-width: 0; padding: .6rem .7rem; border-radius: 8px; border: 1px solid #2E384C; background: #0B0E14; color: var(--offwhite); font: .95rem var(--font-sans); }
.vc-note { margin: .55rem 0 0; font-size: .72rem; color: var(--muted); line-height: 1.4; }
.vc-note a { color: var(--teal-bright); }
.vex-chat .form-status { font-size: .8rem; margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) { .vex-chat { transition: none; transform: none; } .vc-typing span { animation: none; opacity: .7; } }
@media (max-width: 480px) { .vex-chat { max-height: 52vh; } .vc-avatar { width: 32px; height: 32px; } }

/* Footer reopen button */
.vex-chat-open { display: inline-flex; align-items: center; gap: .35rem; margin-left: .5rem; padding: .2rem .55rem .2rem .25rem;
  border-radius: 999px; border: 1px solid rgba(0,168,150,.5); background: rgba(0,168,150,.08); color: var(--teal-bright);
  font: 600 .72rem/1 var(--font-sans); cursor: pointer; vertical-align: middle; }
.vex-chat-open svg { width: 22px; height: 22px; }
.vex-chat-open:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 2px; }
@media (max-width: 480px) {
  .vex-chat { padding: .55rem .6rem .5rem; border-radius: 12px; }
  .vc-head { margin-bottom: .35rem; gap: .45rem; }
  .vc-title { font-size: .88rem; } .vc-sub { font-size: .7rem; }
  .vc-x { width: 30px; height: 30px; }
  .vc-msg { font-size: .85rem; padding: .42rem .6rem; }
  .vc-log { gap: .3rem; }
  .vex-chat .btn { min-height: 36px; padding: .45rem .8rem; font-size: .76rem; }
  .vc-actions, .vc-form { margin-top: .4rem; }
  .vc-note { font-size: .68rem; margin-top: .4rem; }
}

/* Earth goods / Space goods tabs (2026-09-27): only the chosen side's goods panel is shown; the panel that
   appears gets a short highlight (teal for Earth, orange for Space). No automatic scrolling. */
.goods-panel[hidden] { display: none !important; }
#shop, #shelf-earth { border-radius: 12px; transition: box-shadow .5s ease, background-color .5s ease; }
.goods-flash { box-shadow: 0 0 0 2px rgba(0,168,150,.8), 0 0 28px rgba(0,168,150,.3); background-color: rgba(0,168,150,.06); transition-duration: .15s; }
#shop.goods-flash { box-shadow: 0 0 0 2px rgba(247,127,0,.8), 0 0 28px rgba(123,92,255,.3); background-color: rgba(247,127,0,.05); }
.scene-tabs .side-tab { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { #shop, #shelf-earth { transition: none; } }
