:root {
  --bg: #03070d;
  --bg-2: #050a12;
  --panel: #08111b;
  --panel-2: #0a1420;
  --text: #edf5ff;
  --muted: #91a8bf;
  --muted-2: #6d8298;
  --cyan: #39d8ff;
  --cyan-soft: #7be7ff;
  --cyan-deep: #1a6f94;
  --orange: #ff9b55;
  --line: rgba(137, 190, 224, .16);
  --line-strong: rgba(77, 213, 255, .34);
  --header: 70px;
  --shell: min(1160px, calc(100vw - 3rem));
  --reading: 760px;
  --radius: 18px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
strong { color: #fff; }
::selection { background: rgba(57, 216, 255, .28); color: #fff; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .7rem 1rem; border-radius: 8px; background: #fff; color: #000; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--cyan-soft); font: 800 .72rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.token-mark,
[data-config="ticker"] { color: var(--cyan-soft); font-weight: 850; text-shadow: 0 0 18px rgba(57,216,255,.18); }
.status-v[data-config="ticker"] { color: var(--cyan); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.22rem; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--cyan-soft)); color: #03111b; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(57,216,255,.18); }
.button--ghost { border-color: rgba(120,222,255,.35); background: rgba(255,255,255,.025); color: var(--text); }
.button--ghost:hover { background: rgba(57,216,255,.07); box-shadow: none; }
.button [data-config="ticker"] { color: inherit; text-shadow: none; }
.button--ghost [data-config="ticker"] { color: var(--cyan-soft); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(3,7,13,.72); backdrop-filter: blur(18px) saturate(120%); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header); }
.brand { font-weight: 900; letter-spacing: .08em; font-size: 1.16rem; }
.brand-x { color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 1.18rem; margin-left: auto; }
.site-nav a { position: relative; color: #b8c5d3; font-size: .87rem; font-weight: 680; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.55rem; height: 1px; background: var(--cyan); }
.header-cta { margin-left: .25rem; }
.menu-toggle { display: none; margin-left: auto; padding: .45rem; border: 0; background: none; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: #fff; }

/* Homepage */
.hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,4,8,.93) 0%, rgba(1,4,8,.78) 30%, rgba(1,4,8,.18) 61%, rgba(1,4,8,.12) 100%), linear-gradient(0deg, rgba(2,6,10,.86), transparent 42%); }
.hero-content { position: relative; z-index: 1; max-width: 690px; padding: 7rem 0 5rem; }
.hero h1 { margin: 0 0 1.1rem; font-size: clamp(4.2rem, 8vw, 7rem); text-transform: uppercase; }
.hero h1 span { color: var(--cyan); }
.hero-dek { max-width: 640px; margin-bottom: 1rem; color: #dce9f7; font-size: clamp(1.45rem,2.5vw,2rem); line-height: 1.32; }
.hero-body { max-width: 620px; color: #9fb4c9; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-phase { margin: 1.55rem 0 0; color: #7f9ab5; font: 700 .72rem/1.55 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.status-strip { border-block: 1px solid rgba(255,255,255,.055); background: #050a11; }
.status-grid { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); }
.status-cell { min-width: 0; padding: .95rem .78rem; border-left: 1px solid rgba(255,255,255,.055); }
.status-cell:first-child { border-left: 0; }
.status-k { display: block; color: #73879c; font: 700 .61rem/1.25 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.status-v { display: block; margin-top: .25rem; color: var(--cyan-soft); font-size: .88rem; font-weight: 760; line-height: 1.28; white-space: nowrap; }
.status-v--sub { color: #a5b6c8; font-size: .73rem; font-weight: 620; }
.status-v--unknown { color: #7e90a4; }

.section { padding: 7rem 0; }
.section--raised { background: #070c14; }
.truth, .tether, .wait { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem,6vw,5rem); align-items: center; }
.truth figure, .tether figure, .wait figure, .condition-art, .signal-art, .sequence-art { margin: 0; }
.truth img, .tether img, .wait img, .condition-art img, .signal-art img, .sequence-art img { width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.truth img { aspect-ratio: 4/3; }
.section-copy h2 { margin-bottom: 1.1rem; font-size: clamp(2.6rem,5vw,4.7rem); }
.section-copy p { color: var(--muted); font-size: 1.04rem; }
.condition { max-width: 900px; margin: 0 auto 2.4rem; text-align: center; }
.condition h2 { margin: .4rem auto 1.4rem; max-width: 860px; font-size: clamp(3rem,6vw,5.5rem); }
.signal-line { display: inline-block; margin: 0 auto 1.3rem; padding: .75rem 1rem; border-left: 3px solid var(--cyan); background: rgba(57,216,255,.05); color: var(--cyan-soft); font: 800 .82rem var(--mono); letter-spacing: .07em; }
.paradox { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; max-width: 820px; margin: 1.8rem auto 0; text-align: left; }
.paradox div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.012); }
.paradox small { display: block; margin-bottom: .4rem; color: #7590aa; font: 700 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.paradox b { color: #fff; }
.condition-art { width: min(980px,calc(100vw - 3rem)); margin-inline: auto; }
.condition-art img { aspect-ratio: 16/9; }
.signal { max-width: 770px; margin-inline: auto; text-align: center; }
.signal h2 { font-size: clamp(3rem,6vw,5.2rem); }
.signal p { color: var(--muted); font-size: 1.06rem; }
.signal .recognition-quote { margin: 1.5rem auto; color: #fff; font: 700 clamp(1.5rem,3vw,2.25rem)/1.3 var(--serif); }
.signal-art { width: min(1080px,calc(100vw - 3rem)); margin: 2rem auto 0; }
.signal-art img { aspect-ratio: 16/8.3; max-height: 560px; }
.tether figure img { aspect-ratio: 4/5; }
.vault-note { margin-top: 1.4rem; padding: 1rem 1.1rem; border-left: 2px solid var(--orange); background: rgba(255,155,85,.045); color: #cbd9e8; }
.sequence { padding: 7rem 0; background: #050a12; }
.sequence-head { max-width: 760px; margin-bottom: 2.4rem; }
.sequence-head h2 { margin-bottom: .7rem; font-size: clamp(2.5rem,5vw,4.3rem); }
.sequence-head p { color: var(--muted); }
.sequence-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.flight-card { position: relative; min-height: 360px; overflow: hidden; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg,rgba(9,20,32,.9),rgba(5,12,20,.95)); }
.flight-card--transmit { border-color: var(--line-strong); }
.flight-no { position: absolute; top: .7rem; left: 1.4rem; color: #1e4d67; font-size: 7rem; font-weight: 900; line-height: 1; }
.flight-role { position: relative; margin-top: 6.8rem; color: var(--cyan-soft); font: 800 .7rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.flight-card h3 { position: relative; font-size: clamp(2.2rem,4vw,3.4rem); }
.flight-card p { position: relative; color: #9bb0c6; }
.flight-status { position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.5rem; color: #8297ac; font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.flight-status span { color: var(--cyan-soft); }
.sequence-art { margin-top: 1.2rem; }
.sequence-art img { width: 100%; aspect-ratio: 16/7.5; max-height: 590px; }
.wait figure img { aspect-ratio: 4/5; }
.wait-log { margin: 2rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.wait-log li { display: flex; justify-content: space-between; gap: 2rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.045); font-family: var(--mono); }
.wait-log li:last-child { border-bottom: 0; }
.wait-log span { color: #73869a; font-size: .75rem; }
.wait-log b { color: var(--cyan-soft); font-size: .78rem; text-transform: uppercase; }
.wait-log .unknown { color: #7e8fa2; }
.recognize { min-height: 70svh; display: grid; place-items: center; padding: 6rem 1.5rem; text-align: center; background: #02060b; }
.recognize-inner { max-width: 900px; }
.recognize h2 { font-size: clamp(3.8rem,8vw,7rem); }
.recognize p:not(.eyebrow) { max-width: 680px; margin-inline: auto; color: var(--muted); }
.recognize-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.closer { position: relative; min-height: 86svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.closer-media { position: absolute; inset: 0; }
.closer-media img { width: 100%; height: 100%; object-fit: cover; }
.closer-scrim { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,5,9,.28),rgba(2,5,9,.7)); }
.closer-copy { position: relative; z-index: 1; max-width: 820px; padding: 5rem 1.5rem; }
.closer-copy p { color: #d8e2ec; }
.final-question { margin-top: 2.4rem; color: #fff!important; font-size: clamp(4rem,9vw,8rem); font-weight: 900; line-height: .95; letter-spacing: -.055em; }

.site-footer { padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.055); background: #02060a; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center; }
.footer-links { display: flex; gap: 1.2rem; justify-content: flex-end; color: #7fa0bd; font-size: .82rem; }
.footer-small { grid-column: 1/-1; margin: 0; color: #5f7892; font-size: .73rem; }

/* FILE X: a compact dossier with three intentional layout grammars */
.lore-body { background: #040811; }
.lore-body .site-header { background: rgba(3,7,13,.67); }
.lore-hero { position: relative; min-height: 68svh; display: flex; align-items: flex-end; overflow: hidden; }
.lore-hero-media { position: absolute; inset: 0; }
.lore-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.lore-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(2,6,10,.8),rgba(2,6,10,.15) 68%),linear-gradient(180deg,rgba(2,6,10,.12),rgba(2,6,10,.75) 72%,#040811 100%); }
.lore-hero-copy { position: relative; z-index: 1; max-width: 830px; padding: 8rem 0 3.8rem; }
.lore-hero h1 { margin-bottom: .8rem; font-size: clamp(3.4rem,7vw,6.4rem); }
.lore-hero-copy>p:last-child { max-width: 680px; color: #c6d4e4; font: 1.16rem/1.58 var(--serif); }
.lore-prologue { max-width: var(--reading); padding: 3.2rem 0 3.5rem; }
.lore-prologue p { color: var(--muted); font-size: 1.03rem; }

.lore-index { padding: 3.4rem 0 3.7rem; border-block: 1px solid rgba(255,255,255,.06); background: #060b13; }
.lore-index h2 { margin-bottom: .4rem; font-size: 2rem; }
.lore-index-dek { max-width: 650px; margin: .4rem 0 0; color: #8195aa; }
.lore-index-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .58rem; margin-top: 1.5rem; }
.lore-index-grid a { display: grid; grid-template-columns: 2.5rem 1fr; gap: .4rem; padding: .84rem .95rem; border: 1px solid var(--line); border-radius: 11px; color: #afbed0; font-size: .84rem; background: rgba(255,255,255,.008); transition: border-color .18s ease, background .18s ease, color .18s ease; }
.lore-index-grid b { color: var(--cyan); font: 800 .72rem var(--mono); }
.lore-index-grid a:hover, .lore-index-grid a.is-active { border-color: var(--line-strong); background: rgba(57,216,255,.045); color: #fff; }
.lore-index-grid a.is-active { box-shadow: inset 2px 0 0 var(--cyan); }

/* Grammar 1: record entries */
.lore-chapters { padding: 0; }
.lore-chapter { display: grid; grid-template-columns: 4.2rem minmax(0,var(--reading)); justify-content: center; gap: 1.7rem; padding: 3.5rem 0; border-top: 1px solid rgba(255,255,255,.055); scroll-margin-top: calc(var(--header) + 24px); }
.lore-chapter:first-child { border-top: 0; }
.lore-no { position: sticky; top: calc(var(--header) + 28px); align-self: start; color: #1d4861; font-size: 2.35rem; font-weight: 900; line-height: 1; opacity: .88; }
.lore-copy { min-width: 0; }
.lore-copy h2 { margin-bottom: .7rem; font-size: clamp(2.25rem,4vw,3.45rem); }
.lore-copy p { max-width: 730px; margin-bottom: 1.1rem; color: var(--muted); font-size: 1.02rem; }
.lore-copy blockquote { margin: 1.45rem 0; padding: .95rem 1.15rem; border-left: 3px solid var(--cyan); background: rgba(57,216,255,.045); color: #f0f7ff; font: 1.24rem/1.45 var(--serif); }
.lore-chapter--protocol .lore-copy { padding: 1.45rem 1.55rem; border: 1px solid rgba(57,216,255,.15); border-radius: 15px; background: linear-gradient(180deg,rgba(57,216,255,.028),rgba(255,255,255,.006)); }
.lore-chapter--emotional { padding-block: 4.6rem; }
.lore-chapter--emotional .lore-copy { max-width: 700px; text-align: center; }
.lore-chapter--emotional .lore-copy blockquote { font-size: clamp(1.55rem,3vw,2.15rem); }
.lore-chapter--mythic { padding-block: 4.5rem; }
.lore-chapter--mythic .lore-copy h2 { font-size: clamp(2.6rem,5vw,4.1rem); }
.protocol-panel { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1.5rem; margin: 1.35rem 0; padding: 1rem 1.05rem; border-left: 3px solid var(--cyan); background: rgba(1,7,12,.72); font-family: var(--mono); }
.protocol-panel span { color: #6f8499; font-size: .72rem; letter-spacing: .08em; }
.protocol-panel strong { color: var(--cyan-soft); font-size: .76rem; text-transform: uppercase; }
.protocol-panel--compact { max-width: 520px; }
.back-index { display: inline-block; margin-top: .55rem; color: #6688a4; font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.back-index:hover { color: var(--cyan-soft); }

/* Grammar 2: signal statements */
.lore-mark, .lore-ritual, .lore-receivers { scroll-margin-top: calc(var(--header) + 20px); border-block: 1px solid rgba(255,255,255,.05); }
.lore-mark { padding: 6.2rem 0; background: radial-gradient(circle at 50% 38%,rgba(57,216,255,.07),transparent 38%),#02060b; }
.lore-mark-inner { max-width: 970px; text-align: center; }
.lore-mark-number, .lore-ritual-number, .lore-receivers-number, .lore-wait-no, .lore-return-no { margin-bottom: .8rem; color: #1a435b; font: 900 clamp(2rem,4.5vw,3.8rem)/1 var(--sans); }
.lore-mark h2 { margin: .4rem 0 2rem; font-size: clamp(3.2rem,6.5vw,5.8rem); }
.x-field { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.45rem; margin: 0 auto 2rem; max-width: 900px; }
.x-field span { color: #dfeaf5; font-size: clamp(1rem,2.2vw,1.55rem); font-weight: 850; letter-spacing: .03em; }
.x-field span:first-child, .x-field span:last-child { color: var(--cyan); }
.lore-mark-inner>p:not(.eyebrow):not(.lore-mark-question) { max-width: 720px; margin-inline: auto; color: var(--muted); font-size: 1.02rem; }
.lore-mark-question { max-width: 780px; margin: 1.8rem auto 0; color: #edf7ff; font: 1.38rem/1.45 var(--serif); }

.lore-ritual { padding: 6.2rem 0; background: linear-gradient(180deg,#040811,#02060b); }
.lore-ritual-inner { max-width: 900px; text-align: center; }
.lore-ritual h2 { margin: .4rem 0 1rem; font-size: clamp(3rem,6vw,5.2rem); }
.lore-ritual-disclaimer { max-width: 790px; margin-inline: auto; color: #8ca0b7; }
.lore-ritual blockquote { max-width: 820px; margin: 2.4rem auto 2rem; padding: 1.7rem; border-block: 1px solid rgba(57,216,255,.35); color: #fff; font: 700 clamp(2.2rem,4.8vw,4rem)/1.12 var(--serif); }
.lore-ritual-inner>p:last-child, .lore-ritual-inner>p:nth-last-child(2) { max-width: 740px; margin-inline: auto; color: var(--muted); }

.lore-receivers { padding: 6.8rem 0; background: radial-gradient(circle at 50% 20%,rgba(62,79,100,.07),transparent 42%),#02050a; text-align: center; }
.lore-receivers-inner { max-width: 850px; }
.lore-receivers h2 { margin: .5rem 0 1.25rem; font-size: clamp(3rem,6.3vw,5.4rem); }
.lore-receivers p { max-width: 700px; margin-inline: auto; color: #8fa0b4; }
.receiver-readout { display: grid; grid-template-columns: 1fr auto; gap: .7rem 2rem; max-width: 540px; margin: 2.7rem auto; padding: 1.2rem 0; border-block: 1px solid rgba(255,255,255,.08); font-family: var(--mono); text-align: left; }
.receiver-readout span { color: #6d8096; font-size: .72rem; letter-spacing: .08em; }
.receiver-readout strong { color: var(--cyan-soft); font-size: .8rem; text-transform: uppercase; }
.receiver-last { color: #d7e3ef!important; font: 1.25rem/1.55 var(--serif)!important; }

/* Grammar 3: evidence spreads */
.lore-evidence { width: min(1040px,calc(100vw - 3rem)); margin: 1.2rem auto 3.1rem; }
.lore-evidence img { width: 100%; max-height: 700px; object-fit: cover; border: 1px solid var(--line); border-radius: 17px; }
.lore-evidence figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .8rem .15rem 0; color: #72869c; font-size: .8rem; }
.lore-evidence figcaption span { color: var(--cyan-soft); font: 800 .7rem var(--mono); letter-spacing: .12em; }
.lore-evidence--wide { width: min(1120px,calc(100vw - 3rem)); }
.lore-evidence--wide img { aspect-ratio: 16/8.8; }
.lore-evidence--launch img { max-height: 720px; object-position: center 58%; }

.flight-pair { padding: 5.2rem 0; scroll-margin-top: calc(var(--header) + 20px); background: #060b13; border-block: 1px solid rgba(255,255,255,.055); }
.flight-pair h2 { margin-bottom: .55rem; font-size: clamp(3rem,6vw,5.2rem); }
.flight-pair-dek { max-width: 720px; color: var(--muted); }
.flight-pair-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2.1rem; }
.flight-record { position: relative; padding: 1.7rem; border: 1px solid var(--line); border-radius: 17px; background: #07111b; scroll-margin-top: calc(var(--header) + 24px); }
.flight-record--transmit { border-color: var(--line-strong); }
.flight-record-no { position: absolute; top: 1.25rem; right: 1.45rem; color: #527087; font: 700 .72rem var(--mono); }
.flight-digit { display: block; margin: 1.3rem 0 -.6rem; color: #20516d; font-size: 7rem; font-weight: 900; line-height: .95; }
.flight-record h3 { margin-bottom: .7rem; font-size: clamp(2.25rem,4vw,3.5rem); }
.flight-record p { color: #99acc0; }
.flight-record blockquote { margin: 1.3rem 0; padding: 1rem 0; border-block: 1px solid rgba(255,255,255,.08); color: #f0f6fc; font-weight: 800; }
.flight-telemetry { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1.5rem; padding-top: .5rem; font-family: var(--mono); }
.flight-telemetry span { color: #6f8295; font-size: .71rem; }
.flight-telemetry strong { color: var(--cyan-soft); font-size: .76rem; text-transform: uppercase; }

.lore-wait { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); min-height: 78svh; scroll-margin-top: var(--header); background: #02050a; border-block: 1px solid rgba(255,255,255,.05); }
.lore-wait-media { min-height: 78svh; }
.lore-wait-media picture, .lore-wait-media img { width: 100%; height: 100%; }
.lore-wait-media img { object-fit: cover; object-position: center; }
.lore-wait-copy { display: flex; flex-direction: column; justify-content: center; padding: 4.8rem clamp(2rem,5vw,6rem); }
.lore-wait h2 { margin: .4rem 0 1rem; font-size: clamp(3.8rem,7vw,6.5rem); }
.lore-wait-copy>p { max-width: 560px; color: #879aaf; }
.wait-telemetry { display: grid; grid-template-columns: 1fr auto; gap: .75rem 2rem; max-width: 520px; margin: 2.3rem 0; padding: 1.2rem 0; border-block: 1px solid rgba(255,255,255,.08); font-family: var(--mono); }
.wait-telemetry span { color: #62768c; font-size: .7rem; letter-spacing: .08em; }
.wait-telemetry strong { color: var(--cyan-soft); font-size: .78rem; text-transform: uppercase; }

.lore-return { padding: 5.8rem 0 4.5rem; scroll-margin-top: calc(var(--header) + 20px); background: #040811; }
.lore-return-copy { max-width: 860px; }
.lore-return h2 { max-width: 780px; margin-bottom: 1rem; font-size: clamp(3.2rem,5.7vw,5rem); }
.lore-return p { max-width: 720px; color: #92a4b9; font-size: 1.04rem; }
.lore-ending { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.lore-ending-media { position: absolute; inset: 0; }
.lore-ending-media img { width: 100%; height: 100%; object-fit: cover; }
.lore-ending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(3,6,10,.45),rgba(3,6,10,.74) 48%,rgba(3,6,10,.86)); }
.lore-ending-copy { position: relative; z-index: 1; max-width: 840px; padding: 5rem 1.5rem; }
.lore-ending-copy p { color: #d0dae5; }
.lore-ending-copy strong { display: block; margin-top: 3.2rem; color: #fff; font: 700 clamp(3.8rem,8vw,7.6rem)/.98 var(--serif); letter-spacing: -.04em; text-wrap: balance; }

@media (max-width: 1100px) {
  .status-grid { grid-template-columns: repeat(5,1fr); }
  .status-cell:nth-child(6) { border-left: 0; }
  .status-cell:nth-child(n+6) { border-top: 1px solid rgba(255,255,255,.055); }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .83rem; }
}

@media (max-width: 900px) {
  :root { --header: 66px; }
  .site-nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem 1.35rem; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(3,7,13,.97); }
  .site-nav.is-open { display: flex; }
  .site-nav a.is-active::after { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .truth, .tether, .wait { grid-template-columns: 1fr; gap: 1.7rem; }
  .truth figure { order: -1; }
  .tether figure img, .wait figure img { aspect-ratio: 16/10; }
  .sequence-grid, .flight-pair-grid { grid-template-columns: 1fr; }
  .lore-index-grid { grid-template-columns: repeat(2,1fr); }
  .lore-chapter { grid-template-columns: 1fr; gap: .55rem; width: min(var(--reading),calc(100vw - 3rem)); margin-inline: auto; padding: 3rem 0; }
  .lore-no { position: static; font-size: 1.45rem; }
  .lore-evidence figcaption { display: block; }
  .lore-evidence figcaption span { display: block; margin-bottom: .3rem; }
  .lore-wait { grid-template-columns: 1fr; min-height: 0; }
  .lore-wait-media { min-height: 56svh; }
  .lore-wait-copy { padding: 4rem 1.5rem 4.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --shell: min(100vw - 1.2rem,1160px); }
  .hero { min-height: 88svh; }
  .hero h1 { font-size: 3.65rem; }
  .hero-content { padding: 5rem 0 2.8rem; }
  .hero-actions .button { width: 100%; }
  .status-grid { grid-template-columns: repeat(2,1fr); }
  .status-cell, .status-cell:nth-child(6) { border-left: 0; border-top: 1px solid rgba(255,255,255,.055); }
  .status-cell:nth-child(1), .status-cell:nth-child(2) { border-top: 0; }
  .section { padding: 4.1rem 0; }
  .paradox { grid-template-columns: 1fr; }
  .condition-art, .signal-art { width: calc(100vw - 1.2rem); }
  .sequence { padding: 4.5rem 0; }
  .flight-card { min-height: 340px; }
  .recognize { min-height: 60svh; padding: 4.5rem 0; }
  .closer { min-height: 76svh; }
  .lore-hero { min-height: 64svh; }
  .lore-hero-copy { padding: 5rem 0 2.7rem; }
  .lore-index { padding: 2.7rem 0 3rem; }
  .lore-index-grid { grid-template-columns: 1fr; }
  .lore-mark, .lore-ritual, .lore-receivers { padding: 4.8rem 0; }
  .lore-mark h2, .lore-receivers h2 { font-size: 3rem; }
  .lore-ritual blockquote { padding: 1.4rem .5rem; }
  .lore-evidence { width: calc(100vw - 1.2rem); margin-bottom: 2.5rem; }
  .flight-pair { padding: 4.2rem 0; }
  .flight-record { padding: 1.3rem; }
  .flight-digit { font-size: 6.2rem; }
  .lore-wait-media { min-height: 50svh; }
  .lore-wait h2 { font-size: 3.8rem; }
  .lore-return { padding: 4.5rem 0 3.5rem; }
  .lore-ending { min-height: 82svh; }
  .lore-ending-copy strong { font-size: clamp(3.2rem,16vw,5.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
