:root {
  --bg: #05080f;
  --bg-2: #080c16;
  --text: #eef3fb;
  --muted: #9aabc2;
  --dim: #6b7c94;
  --line: rgba(130, 180, 230, 0.14);
  --blue: #3dd8ff;
  --blue-2: #7ee7ff;
  --shell: min(1120px, calc(100vw - 2.5rem));
  --radius: 1rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2 { margin: 0 0 1rem; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
strong { color: #fff; }
em { color: #e8eef8; font-style: italic; }

.shell { width: var(--shell); margin: 0 auto; }
.center { text-align: center; font-weight: 800; color: #eef6ff !important; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: 1rem; }

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.brand-word { font-size: 1.35rem; }
.brand-mark { color: var(--blue); font-size: 1.55rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  color: #03111d;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(61, 216, 255, 0.25); }
.button--ghost {
  border: 1px solid rgba(110, 217, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: none;
}
.button--ghost:hover { border-color: var(--blue); background: rgba(61, 216, 255, 0.06); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  color: #b7c3d4;
  font-size: 0.88rem;
  font-weight: 550;
  transition: color 0.2s, text-shadow 0.2s;
}
.site-nav a:hover { color: #fff; text-shadow: 0 0 18px rgba(61, 216, 255, 0.22); }
.site-nav a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(61, 216, 255, 0.45);
  outline-offset: 5px;
  color: var(--blue-2);
}
.site-nav--static {
  display: flex !important;
  position: static !important;
  flex-flow: row wrap !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 68px);
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.94) 0%, rgba(3, 7, 12, 0.78) 24%, rgba(3, 7, 12, 0.52) 42%, rgba(3, 7, 12, 0.18) 60%, rgba(3, 7, 12, 0.06) 100%),
    linear-gradient(180deg, rgba(3, 7, 12, 0.1), rgba(3, 7, 12, 0.4));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 6rem 0 4rem;
}
.hero-copy { max-width: 40rem; }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero .hero-x { color: var(--blue); font-size: inherit; letter-spacing: inherit; }
.hero-dek {
  margin: 0 0 1rem;
  color: #d4e8ff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.45;
}
.hero-body {
  max-width: 38rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.7rem 0 1.9rem; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin: 0;
}
.hero-facts div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(9, 14, 24, 0.5);
}
.hero-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-facts dd { margin: 0.35rem 0 0; color: var(--text); font-weight: 700; }

/* Mission status */
.status-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 18, 0.95);
}
.status-bar-inner { display: flex; flex-wrap: wrap; gap: 0; padding: 0.85rem 0; }
.status-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 6.5rem;
  padding: 0.45rem 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.status-cell:first-child { padding-left: 0; border-left: 0; }
.sk {
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sv { color: var(--blue-2); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em; }
.sv.muted { color: var(--dim); }

/* Homepage chapters */
.chapter { position: relative; padding: 5.5rem 0; }
.chapter--dark { background: var(--bg-2); }
.chapter-text { max-width: 34rem; }
.chapter-text p { color: var(--muted); font-size: 1.05rem; }
.chapter-text h2 { margin-bottom: 1.25rem; font-size: clamp(1.85rem, 3.8vw, 2.75rem); }
.chapter-text--center { margin: 0 auto; text-align: center; }
.chapter-text--narrow { max-width: 32rem; margin: 0 auto; text-align: center; }
.callout {
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--blue);
  background: rgba(61, 216, 255, 0.06);
  color: var(--blue-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-align: left;
}
.chapter-visual { margin: 0; }
.chapter-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}
.chapter-visual--wide { width: min(1000px, calc(100vw - 2.5rem)); margin: 2.75rem auto 0; }
.chapter--image-led {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3rem;
  width: var(--shell);
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}
.chapter--image-led .chapter-visual img { max-height: 640px; aspect-ratio: 4 / 5; }
.chapter--narrow { padding: 5rem 0 4rem; }
.chapter--narrow .chapter-text { max-width: 36rem; }
.chapter--center { padding: 5.5rem 0; text-align: center; }
.chapter--center .chapter-text { margin-right: auto; margin-left: auto; }
.chapter--split {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: center;
  gap: 3rem;
  width: var(--shell);
  margin: 0 auto;
}
.chapter--event {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  align-items: center;
  gap: 2.5rem;
  width: var(--shell);
  margin: 0 auto;
  padding: 5.5rem 0;
}
.event-panel { max-width: 28rem; }
.event-label {
  margin-bottom: 0.4rem;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.event-panel h2 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.event-panel p { color: var(--muted); }
.event-meta {
  margin-top: 1.5rem !important;
  color: var(--dim) !important;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.paradox { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; text-align: left; }
.paradox > div {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.paradox-k {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.paradox-v { color: var(--text); font-size: 1.02rem; font-weight: 700; }
.status-list { max-width: 22rem; margin: 1.5rem auto; padding: 0; list-style: none; text-align: left; }
.status-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

/* Recognition CTA */
.recognize {
  padding: 7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(ellipse at 50% 0%, rgba(61, 216, 255, 0.07), transparent 55%), var(--bg);
  text-align: center;
}
.recognize-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: 3.5rem;
}
.recognize-inner { width: auto; margin: 0; text-align: left; }
.recognize h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.recognize p { margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; }
.recognize-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; }
.recognize-visual { margin: 0; }
.recognize-visual img {
  width: 100%;
  max-height: 650px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 48%;
}

/* Closing image */
.closer { position: relative; display: flex; align-items: flex-end; min-height: 85vh; overflow: hidden; }
.closer-media { position: absolute; inset: 0; }
.closer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.closer-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.96) 0%, rgba(5, 8, 15, 0.55) 45%, rgba(5, 8, 15, 0.3) 100%);
}
.closer-content {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 0 0 5rem;
  text-align: center;
}
.closer-content p { margin-bottom: 1.1rem; color: #c5d2e4; font-size: 1.12rem; line-height: 1.75; }
.closer-content .muted { color: var(--dim); }
.closer-lead { max-width: 34rem; margin: 2rem auto 0 !important; }
.closer-q {
  margin-top: 1.5rem !important;
  color: #fff !important;
  font-size: clamp(1.7rem, 4vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 6, 12, 0.9);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner nav a, .footer-links a { color: var(--dim); font-size: 0.88rem; }
.footer-inner nav a:hover, .footer-links a:hover { color: var(--text); }
.footer-disc { width: 100%; margin: 0.5rem 0 0; color: var(--dim); font-size: 0.75rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; }
.footer-grid > div:first-child p { margin: 0.4rem 0 0; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-small { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 0.75rem; }

/* FILE X */
.lore-page { background: #040912; }
.lore-page .shell { padding-top: 2rem; }
.lore-hero { position: relative; display: grid; align-items: end; min-height: 55vh; overflow: clip; }
.lore-hero--complete { min-height: 68vh; }
.lore-hero-inner { position: relative; z-index: 1; max-width: 44rem; padding: 7rem 0 3rem; }
.lore-hero--complete .lore-hero-inner { max-width: 54rem; padding-bottom: 4.5rem; }
.lore-lead {
  color: #eef6ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.4;
}
.lore-prologue {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #07101d, #050a12);
}
.lore-reading { max-width: 850px; }
.lore-reading p { color: var(--muted); font-size: 1.08rem; }
.lore-reading blockquote,
.lore-chapter blockquote,
.lore-emotional blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--blue);
  background: rgba(17, 31, 49, 0.55);
  color: #f2f8ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.lore-index { padding: 4.5rem 0 5rem; }
.lore-index-heading { max-width: 720px; margin-bottom: 2rem; }
.lore-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.lore-index-grid a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(10, 18, 31, 0.55);
  color: #cbd8eb;
  transition: 0.2s ease;
}
.lore-index-grid a:hover, .lore-index-grid a:focus-visible {
  border-color: rgba(61, 216, 255, 0.6);
  background: rgba(15, 30, 48, 0.75);
  color: #fff;
}
.lore-index-grid b { color: var(--blue); letter-spacing: 0.12em; }
.lore-chapters { padding-bottom: 5rem; }
.lore-chapter {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 5.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  scroll-margin-top: 78px;
}
.lore-chapter-no {
  position: sticky;
  top: 105px;
  align-self: start;
  color: #17364c;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}
.lore-chapter-body { max-width: 850px; }
.lore-chapter-body h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.lore-chapter-body p { color: var(--muted); font-size: 1.06rem; }
.lore-chapter-body strong { color: #f3f7ff; }
.lore-chapter--accent { position: relative; }
.lore-chapter--accent::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: linear-gradient(90deg, rgba(61, 216, 255, 0.025), rgba(255, 154, 66, 0.02));
  content: "";
  transform: translateX(-50%);
}
.lore-evidence {
  max-width: 900px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #050a12;
  box-shadow: var(--shadow);
}
.lore-evidence--wide { max-width: 1050px; }
.lore-evidence img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; }
.lore-evidence figcaption { padding: 0.8rem 1rem; color: #7890a7; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; }
.lore-emotional { position: relative; display: grid; align-items: center; min-height: 82vh; overflow: hidden; }
.lore-emotional-inner { position: relative; z-index: 1; max-width: 800px; padding: 6rem 0; }
.lore-emotional-inner p { color: #d4deea; font-size: 1.06rem; }
.final-q { margin: 2rem 0 1rem !important; color: #fff !important; font-size: clamp(2rem, 4vw, 3.8rem) !important; font-weight: 800; line-height: 1.1; }

#status, #truth, #condition, #signal, #connection, #flight15, #wait, #recognize { scroll-margin-top: 78px; }

@media (max-width: 1250px) and (min-width: 961px) {
  .header-inner { gap: 0.7rem; }
  .site-nav { gap: 0.72rem; }
  .site-nav a { font-size: 0.86rem; }
  .header-cta { min-height: 2.7rem; padding-inline: 1rem; font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .site-nav:not(.site-nav--static) {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 8, 15, 0.97);
  }
  .site-nav.open { display: flex !important; }
  .site-nav--static { gap: 0.8rem; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { min-height: auto; }
  .hero-inner { padding: 4rem 0 3rem; }
  .hero-facts { grid-template-columns: 1fr; }

  .chapter--image-led,
  .chapter--split,
  .chapter--event {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: var(--shell);
  }
  .chapter--image-led .chapter-visual { order: -1; }
  .chapter--image-led .chapter-visual img { max-height: none; aspect-ratio: 16 / 10; }
  .paradox { grid-template-columns: 1fr; }
  .status-cell { min-width: 5.2rem; padding: 0.4rem 0.75rem; }
}

@media (max-width: 800px) {
  .lore-index-grid { grid-template-columns: 1fr; }
  .lore-chapter { grid-template-columns: 1fr; gap: 0.8rem; padding: 4rem 0; }
  .lore-chapter-no { position: static; font-size: 1.5rem; }
  .lore-evidence img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-small { grid-column: auto; }
}

@media (max-width: 760px) {
  .recognize-grid { grid-template-columns: 1fr; gap: 2rem; }
  .recognize-inner { text-align: center; }
  .recognize-actions { justify-content: center; }
  .recognize-visual img { max-height: 520px; }
}

@media (max-width: 640px) {
  .shell { width: min(100vw - 1.1rem, 1180px); }
  .button { width: 100%; }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(3, 7, 12, 0.18) 0%, rgba(3, 7, 12, 0.42) 38%, rgba(3, 7, 12, 0.88) 76%, rgba(3, 7, 12, 0.98) 100%);
  }
  .hero-media img { object-position: 68% center; }
  .hero-copy { padding-top: 17rem; }
  .hero-facts { grid-template-columns: 1fr; }

  .chapter { padding: 3.75rem 0; }
  .recognize { padding: 5rem 0; }
  .closer { min-height: 75vh; }

  .status-bar-inner { gap: 0.15rem 0; }
  .status-cell {
    width: 50%;
    padding: 0.5rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 0;
  }
  .status-cell:nth-child(1), .status-cell:nth-child(2) { border-top: 0; }

  .lore-page .shell { padding-top: 1rem; }
  .site-nav--static {
    max-width: 70vw;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .site-nav--static::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
