:root {
  --bg: #04070b;
  --panel: rgba(5, 9, 14, 0.52);
  --line: rgba(120, 170, 255, 0.12);
  --text: #eef4ff;
  --muted: #ced8eb;
  --accent: #e8ae47;
  --cyan: #59bfff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rajdhani', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.18;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .35;
  z-index: 30;
}

.story-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 22px;
  z-index: 50;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.story-brand img {
  width: min(360px, 44vw);
  min-width: 170px;
}

.story-links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.story-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  height: var(--nav-h);
  font-size: clamp(1.02rem, 1vw, 1.15rem);
  color: rgba(239, 245, 255, 0.94);
  border-left: 1px solid rgba(89, 191, 255, 0.12);
}

.story-links a:last-child {
  border-right: 1px solid rgba(89, 191, 255, 0.12);
}

.story-links a:hover,
.story-links a.is-active {
  color: #8ed7ff;
}

.story-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(89, 191, 255, 0.18);
  border-radius: 14px;
  background: rgba(9, 14, 21, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.story-menu-toggle span {
  width: 20px;
  height: 2px;
  background: #eef4ff;
}

main { overflow: hidden; }

.story-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background-image: var(--scene-overlay), var(--scene-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.story-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.13) 100%);
  pointer-events: none;
}

.scene-inner {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100vw - 96px));
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(38px, 6vw, 92px) 0 clamp(44px, 6vw, 92px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 2vw, 36px);
  row-gap: 28px;
  align-content: center;
}

.scene-inner.narrow {
  width: min(1160px, calc(100vw - 96px));
}

.scene-inner.scene-inner-center {
  justify-items: center;
  text-align: center;
}

.scene-inner.medium-gap { row-gap: 34px; }

.scene-copy {
  position: relative;
  text-shadow: 0 4px 16px rgba(0,0,0,0.48);
}

.scene-copy h1,
.scene-copy h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.scene-copy h1 {
  font-size: clamp(2.65rem, 5vw, 4.8rem);
}

.scene-copy h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.3rem);
}

.scene-copy p,
.scene-copy blockquote p {
  margin: 0;
  font-size: clamp(1.72rem, 2vw, 2.2rem);
  line-height: 1.22;
  color: rgba(238,244,255,0.96);
}

.scene-copy-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scene-copy-left { grid-column: 1 / span 6; }
.scene-copy-right { grid-column: 7 / -1; }
.scene-copy-center { grid-column: 2 / span 10; max-width: 980px; }
.scene-copy-large { align-self: start; }
.scene-copy-body { align-self: start; }

.compact-heading { margin-top: 4vh; }
.centered-body { max-width: 880px; }
.centered-tight { max-width: 1040px; }
.right-title { margin-top: 3vh; }
.right-body { max-width: 740px; }
.long-left-body { max-width: 780px; }
.push-down { margin-top: 22vh; }
.signal-body { max-width: 760px; margin-top: 16vh; }

.quote-stack {
  max-width: 720px;
  margin-top: 5vh;
  gap: 30px;
}

.quote-stack .lead-in,
.quote-stack .excerpt {
  color: rgba(238,244,255,0.95);
}

.quote-stack blockquote {
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 3px solid rgba(255,255,255,0.28);
}

.quote-stack .excerpt {
  font-size: clamp(1.36rem, 1.65vw, 1.8rem);
  line-height: 1.28;
}

.back-top {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 2;
  font-size: clamp(1.2rem, 1.3vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(5, 8, 12, 0.52);
  backdrop-filter: blur(8px);
}

.back-top:hover {
  border-color: rgba(89, 191, 255, 0.35);
  color: #8ed7ff;
}

.story-cta {
  padding: 72px 24px 42px;
  background: radial-gradient(circle at top center, rgba(31, 71, 115, 0.22), transparent 40%), #04070b;
}

.story-cta-card {
  width: min(1420px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(7,11,16,0.94) 0%, rgba(4,8,13,0.88) 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.story-cta-kicker {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1vw, 1.1rem);
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

.story-cta-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.96;
  text-transform: none;
}

.story-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: #f1f3f7;
  color: #091019;
}
.btn-secondary,
.btn-ghost {
  background: rgba(10, 15, 23, 0.82);
  color: #edf4ff;
}
.btn:hover { transform: translateY(-1px); }

.story-footer {
  padding: 20px 24px 36px;
  text-align: center;
  color: rgba(221, 232, 244, 0.72);
  font-size: 1rem;
}

.story-footer img {
  width: min(240px, 54vw);
  margin: 0 auto 12px;
  opacity: 0.95;
}

@media (max-width: 1080px) {
  .story-menu-toggle { display: inline-flex; }
  .story-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    width: min(300px, calc(100vw - 36px));
    background: rgba(4, 8, 13, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .story-nav.is-open .story-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .story-links a,
  .story-links a:last-child {
    height: auto;
    min-height: 54px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0 18px;
  }
  .story-links a:first-child { border-top: 0; }

  .scene-inner {
    width: min(100vw - 44px, 1000px);
    grid-template-columns: 1fr;
    min-height: auto;
    align-content: start;
    padding-top: clamp(34px, 8vw, 60px);
    padding-bottom: clamp(40px, 10vw, 70px);
  }
  .scene-copy-left,
  .scene-copy-right,
  .scene-copy-center {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .scene-copy-body,
  .right-body,
  .long-left-body,
  .signal-body,
  .quote-stack,
  .centered-body,
  .centered-tight {
    max-width: 100%;
  }
  .push-down,
  .signal-body,
  .right-title,
  .quote-stack,
  .compact-heading { margin-top: 0; }
  .story-scene {
    min-height: auto;
    background-position: center center;
  }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }
  .story-nav { padding: 0 14px; }
  .story-brand img { min-width: 144px; width: 58vw; }
  .scene-inner { width: calc(100vw - 28px); }
  .scene-copy h1,
  .scene-copy h2 { line-height: 0.96; }
  .scene-copy p,
  .scene-copy blockquote p { font-size: clamp(1.28rem, 4.9vw, 1.58rem); line-height: 1.28; }
  .scene-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .scene-copy h2 { font-size: clamp(1.9rem, 8.3vw, 2.85rem); }
  .quote-stack blockquote { padding-left: 16px; }
  .story-cta-card h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .btn { width: 100%; font-size: 1.16rem; }
  .story-cta-actions { flex-direction: column; }
  .back-top { bottom: 12px; font-size: 1rem; }
}


/* V36: sync lore intro header with landing page and tighten story typography */
:root {
  --nav-h: 58px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-h);
  padding: 10px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.88));
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-brand img {
  display: block;
  width: clamp(132px, 10vw, 184px);
  height: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.2px;
  color: rgba(239, 245, 255, 0.94);
  transition: color .18s ease, opacity .18s ease;
}

.nav-links a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,12,18,.62);
  color: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease;
}

.nav.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.story-scene {
  padding-top: var(--nav-h);
  background-size: cover;
  background-position: center center;
}

.scene-inner {
  width: min(1380px, calc(100vw - 116px));
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(32px, 4.6vw, 74px) 0 clamp(38px, 5vw, 80px);
  column-gap: clamp(22px, 2.5vw, 44px);
}

.scene-inner.narrow {
  width: min(1060px, calc(100vw - 116px));
}

.scene-copy h1 {
  font-size: clamp(2.2rem, 3.55vw, 4.05rem);
  line-height: .95;
}

.scene-copy h2 {
  font-size: clamp(2.05rem, 3.15vw, 3.65rem);
  line-height: .96;
}

.scene-copy p,
.scene-copy blockquote p {
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  line-height: 1.28;
}

.scene-copy-body {
  gap: 18px;
}

.quote-stack {
  max-width: 700px;
  gap: 22px;
  margin-top: 4vh;
}

.quote-stack .excerpt {
  font-size: clamp(1rem, 1.28vw, 1.25rem);
  line-height: 1.32;
}

.quote-stack blockquote {
  padding-left: 22px;
  border-left: 2px solid rgba(255,255,255,0.25);
}

.right-body,
.long-left-body,
.signal-body {
  max-width: 700px;
}

.push-down {
  margin-top: 17vh;
}

.signal-body {
  margin-top: 12vh;
}

#signal {
  background-position: center center;
}

/* Keep the final city text readable but less bulky. */
#signal .scene-copy p {
  max-width: 660px;
}

/* The clean crops are cinematic-wide frames; keep the key art centered and remove old footer/header artifacts. */
#earth,
#truth,
#create,
#drake,
#hope,
#infestation,
#dead {
  background-size: cover;
}

/* Mobile/tablet menu matches the landing page behavior. */
@media (max-width: 1280px) {
  .nav {
    padding-inline: 20px;
  }

  .nav-brand img {
    width: 132px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12.5px;
    letter-spacing: .8px;
  }

  .scene-inner {
    width: min(1320px, calc(100vw - 72px));
  }
}

@media (max-width: 980px) {
  .nav-brand img {
    width: 116px;
  }

  .nav-links {
    gap: 9px;
  }

  .nav-links a {
    font-size: 11.5px;
    letter-spacing: .65px;
  }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }

  .nav {
    min-height: var(--nav-h);
    padding: 12px 14px;
  }

  .nav-brand {
    position: relative;
    z-index: 34;
  }

  .nav-brand img {
    width: 128px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 12px auto 12px;
    z-index: 32;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(4,7,11,.96);
    box-shadow: 0 20px 60px rgba(0,0,0,.48);
    backdrop-filter: blur(16px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 18px;
    letter-spacing: 1.1px;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,.05);
  }

  .scene-inner {
    width: calc(100vw - 28px);
    padding-top: clamp(28px, 8vw, 52px);
    padding-bottom: clamp(38px, 10vw, 68px);
  }
}

@media (max-width: 720px) {
  .nav-brand img {
    width: 112px;
  }

  .scene-copy h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.7rem);
  }

  .scene-copy h2 {
    font-size: clamp(1.8rem, 7.8vw, 2.55rem);
  }

  .scene-copy p,
  .scene-copy blockquote p {
    font-size: clamp(1.08rem, 4.5vw, 1.34rem);
    line-height: 1.3;
  }
}
