@charset "UTF-8";

:root {
  --ink: #080b0b;
  --ink-soft: #0f1413;
  --ink-lift: #151b19;
  --bone: #e5dfcf;
  --bone-muted: #aba897;
  --line: rgba(229, 223, 207, .16);
  --line-strong: rgba(229, 223, 207, .32);
  --ember: #f07152;
  --ember-bright: #ff9b74;
  --moss: #7fa694;
  --danger: #d65342;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --header: 84px;
  --mouse-x: 0px;
  --mouse-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 78% 12%, rgba(67, 98, 86, .08), transparent 35rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { max-width: 100%; margin-top: 0; }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
p { overflow-wrap: break-word; }
::selection { background: var(--ember); color: var(--ink); }

.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;
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  transform: translateY(-180%); padding: .7rem 1rem; background: var(--bone); color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.reading-progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 2px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--ember), var(--ember-bright)); box-shadow: 0 0 12px var(--ember); }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header); padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, min-height .35s ease;
}
.site-header.is-scrolled { min-height: 68px; background: rgba(8, 11, 11, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--bone); text-decoration: none; }
.brand__sigil {
  display: grid; place-items: center; width: 39px; aspect-ratio: 1; border: 1px solid rgba(229, 223, 207, .48);
  font-family: var(--serif); font-size: 1.4rem; line-height: 1; transform: rotate(45deg);
}
.brand__sigil::first-letter { transform: rotate(-45deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 1.17rem; font-weight: 500; letter-spacing: .06em; line-height: 1; }
.brand small { margin-top: .32rem; color: var(--bone-muted); font-size: .58rem; letter-spacing: .18em; line-height: 1; text-transform: uppercase; }
.brand .brand__sigil { color: var(--ember-bright); }
.site-nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 2rem); }
.site-nav a { position: relative; color: rgba(229, 223, 207, .72); text-decoration: none; font-size: .72rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 -.7rem; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--bone); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; background: transparent; border: 1px solid var(--line); color: var(--bone); }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .25s, opacity .25s; }

.hero { position: relative; display: grid; align-items: center; min-height: 100svh; isolation: isolate; overflow: hidden; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 7, .9) 0%, rgba(5, 7, 7, .54) 46%, rgba(5, 7, 7, .18) 75%), linear-gradient(0deg, var(--ink) 0%, transparent 22%, rgba(0,0,0,.18) 100%); }
.hero__backdrop { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; scale: 1.07; translate: var(--mouse-x) var(--mouse-y); animation: hero-breathe 18s ease-in-out infinite alternate; filter: saturate(.8) contrast(1.08) brightness(.8); }
.hero__fog { position: absolute; inset: auto -20% 0; height: 45%; opacity: .18; filter: blur(45px); background: repeating-radial-gradient(ellipse at center, rgba(210,218,207,.48) 0 2%, transparent 10% 16%); mix-blend-mode: screen; }
.hero__fog--one { animation: fog-drift 23s linear infinite; }
.hero__fog--two { bottom: 15%; opacity: .09; animation: fog-drift 31s linear infinite reverse; }
.hero__scar { position: absolute; top: clamp(3.5rem, 7vh, 6rem); right: -4%; width: 74%; height: clamp(38px, 5vw, 70px); transform: rotate(-6deg); opacity: .46; clip-path: polygon(0 48%, 12% 43%, 21% 55%, 33% 45%, 47% 53%, 59% 39%, 71% 51%, 83% 41%, 100% 45%, 100% 55%, 85% 52%, 72% 60%, 60% 49%, 48% 61%, 34% 55%, 22% 64%, 10% 55%, 0 59%); background: linear-gradient(90deg, transparent 1%, rgba(232, 53, 33, .22) 10%, #ff7c58 46%, rgba(217, 36, 29, .45) 76%, transparent); filter: blur(.7px) drop-shadow(0 0 10px rgba(237, 61, 36, .7)); mix-blend-mode: screen; animation: scar-pulse 4.8s ease-in-out infinite; }
.particle-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; left: var(--x); top: 110%; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ember-bright); opacity: 0; box-shadow: 0 0 8px currentColor; animation: ember-rise var(--d) linear var(--delay) infinite; }
.hero__content { width: min(1100px, calc(100% - 3rem)); margin: calc(var(--header) * .65) auto 4rem; padding-right: 0; }
.eyebrow { margin-bottom: 1rem; color: var(--ember-bright); font-size: .68rem; font-weight: 700; letter-spacing: .24em; line-height: 1.4; text-transform: uppercase; }
.hero h1, .page-hero h1, .journal-cover h1, .lost-page h1 { margin-bottom: 1.55rem; font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 7.2vw, 8.2rem); letter-spacing: -.055em; line-height: .82; }
.hero h1 { width: 100%; max-width: 1050px; }
.hero h1 span { display: block; }
.hero h1 em, .page-hero h1 em, .journal-cover h1 em, .lost-page h1 em { color: var(--ember-bright); font-weight: 400; }
.hero__lede { max-width: 630px; color: rgba(229, 223, 207, .76); font-family: var(--serif); font-size: clamp(1.08rem, 2vw, 1.38rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 50px; padding: .75rem 1.35rem; border: 1px solid transparent; text-decoration: none; font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; transition: transform .25s, background .25s, border-color .25s, color .25s; }
.button:hover { transform: translateY(-3px); }
.button--ember { color: #160d0a; background: var(--ember-bright); }
.button--ember:hover { background: var(--bone); }
.button--ghost { color: var(--bone); border-color: var(--line-strong); background: rgba(8,11,11,.28); backdrop-filter: blur(8px); }
.button--ghost:hover { border-color: var(--bone); }
.hero__status { position: absolute; right: clamp(1.2rem, 4vw, 4.5rem); bottom: 3rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .75rem 0 .75rem 1rem; border-left: 1px solid var(--line-strong); }
.hero__status > span:first-child { color: var(--ember); font-family: var(--serif); font-size: 1.8rem; }
.hero__status p { margin: 0; color: var(--bone-muted); font-size: .68rem; line-height: 1.45; }
.hero__status strong { display: block; color: var(--bone); font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; margin-left: 1rem; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(214,83,66,.6); animation: pulse 2s infinite; }
.scroll-cue { position: absolute; left: clamp(1.2rem,4vw,4.5rem); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--bone-muted); text-decoration: none; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 55px; background: linear-gradient(var(--bone-muted), transparent); }

.section-shell { position: relative; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5.5rem, 11vw, 10rem) 0; }
.section-shell--wide { width: min(1360px, calc(100% - 2.5rem)); }
.section-shell--stacked { display: block; }
.section-number { position: absolute; right: 0; top: 4rem; color: rgba(229,223,207,.05); font-family: var(--serif); font-size: clamp(8rem,20vw,18rem); line-height: 1; }
.omen { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); min-height: 760px; }
.omen__copy { position: relative; z-index: 1; }
.omen h2, .chapter-tease h2, .section-heading h2, .archive-section h2 { margin-bottom: 1.4rem; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.omen__copy > p:last-child { max-width: 560px; color: var(--bone-muted); }
.cinematic-frame { position: relative; margin: 0; overflow: hidden; background: var(--ink-lift); cursor: zoom-in; }
.cinematic-frame::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.cinematic-frame img { width: 100%; height: 100%; object-fit: cover; transition: scale .75s cubic-bezier(.2,.65,.2,1), filter .4s; }
.cinematic-frame:hover img { scale: 1.035; }
.omen__image { aspect-ratio: 1.12; box-shadow: -36px 36px 0 rgba(229,223,207,.025); }
.omen__image figcaption { position: absolute; z-index: 3; inset: auto 0 0; display: flex; justify-content: space-between; gap: 1rem; padding: 2.8rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(5,7,7,.9)); color: var(--bone-muted); font-size: .68rem; }
.omen__image figcaption span { color: var(--ember-bright); letter-spacing: .15em; text-transform: uppercase; }

.chapter-tease { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem,7vw,7rem); align-items: center; border-top: 1px solid var(--line); }
.chapter-tease__image { height: clamp(440px, 44vw, 620px); min-height: 0; }
.chapter-tease__copy { max-width: 520px; }
.chapter-tease__copy > p { color: var(--bone-muted); }
.field-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 2rem 0; border-top: 1px solid var(--line); }
.field-stats div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.field-stats div:nth-child(odd) { padding-right: 1rem; }
.field-stats dt { color: var(--bone-muted); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.field-stats dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.05rem; }
.field-stats .status-danger { color: var(--ember-bright); }
.text-link { display: inline-flex; gap: .8rem; color: var(--bone); text-decoration: none; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.text-link span { color: var(--ember); transition: translate .2s; }
.text-link:hover span { translate: .4rem; }

.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: clamp(2.5rem,6vw,5rem); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--bone-muted); }
.party { border-top: 1px solid var(--line); }
.party-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-bottom: 2.5rem; }
.party-card { position: relative; min-height: 430px; overflow: hidden; text-decoration: none; background: var(--ink-lift); }
.party-card::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(0deg, rgba(4,6,6,.96), transparent 60%); }
.party-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: scale .65s, filter .4s; }
.party-card:hover img { scale: 1.045; filter: saturate(.95); }
.party-card__copy { position: absolute; z-index: 3; inset: auto 1.1rem 1.1rem; }
.party-card__copy span { display: block; margin-bottom: .25rem; color: var(--ember-bright); font-size: .57rem; letter-spacing: .16em; text-transform: uppercase; }
.party-card__copy strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1; }
.centered { width: max-content; margin: 0 auto; }

.atlas { border-top: 1px solid var(--line); }
.atlas-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 330px; gap: .8rem; }
.atlas-card { position: relative; grid-column: span 1; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 1.6rem; text-decoration: none; background: #111; isolation: isolate; }
.atlas-card--wide { grid-column: span 2; }
.atlas-card::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--card-image) center/cover; transition: scale .7s, filter .4s; filter: saturate(.65) brightness(.7); }
.atlas-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(4,6,6,.96), transparent 70%); }
.atlas-card:hover::before { scale: 1.05; filter: saturate(.9) brightness(.78); }
.atlas-card span { color: var(--ember-bright); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.atlas-card strong { margin: .22rem 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1; }
.atlas-card small { color: var(--bone-muted); font-size: .78rem; }

.closing-quote { position: relative; display: grid; place-items: center; min-height: 75svh; overflow: hidden; padding: 6rem 1.25rem; text-align: center; }
.closing-quote__image { position: absolute; inset: 0; background: linear-gradient(rgba(5,7,7,.5), rgba(5,7,7,.9)), url('assets/images/places/firestorm-peak.webp') center/cover; filter: saturate(.5); }
.closing-quote blockquote { position: relative; max-width: 1000px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem,5.2vw,5rem); line-height: 1.05; }
.closing-quote cite { display: block; margin-top: 2rem; color: var(--ember-bright); font-family: var(--sans); font-size: .65rem; font-style: normal; letter-spacing: .16em; text-transform: uppercase; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 2rem; padding: 3rem clamp(1.25rem,4vw,4.5rem); border-top: 1px solid var(--line); color: var(--bone-muted); font-size: .7rem; }
.brand--footer { justify-self: start; }
.site-footer p { margin: 0; text-align: center; }
.site-credit { display: block; margin-top: .45rem; color: var(--ember-bright); font-size: .58rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.site-credit--lost { margin-top: 2.5rem; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 1.5rem; }
.site-footer nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; }

/* Interior heroes */
.page-hero { position: relative; display: flex; align-items: end; min-height: min(82svh, 850px); padding: calc(var(--header) + 7rem) max(1.25rem, calc((100vw - var(--max)) / 2)) 6rem; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,7,7,.93) 0 35%, rgba(5,7,7,.38) 70%), linear-gradient(0deg, var(--ink), transparent 50%); }
.page-hero__image { position: absolute; z-index: -2; inset: 0; background-position: center 30%; background-size: cover; filter: saturate(.66) contrast(1.07); animation: hero-breathe 22s ease-in-out infinite alternate; }
.page-hero--characters .page-hero__image { background-image: url('assets/images/characters/tavian-exdecim.webp'); background-position: center 26%; }
.page-hero--places .page-hero__image { background-image: url('assets/images/places/mountain-trail.webp'); }
.page-hero--people .page-hero__image { background-image: url('assets/images/people/lost-expedition.webp'); }
.page-hero--bestiary .page-hero__image { background-image: url('assets/images/creatures/corrupted-bear.webp'); }
.page-hero--artifacts .page-hero__image { background-image: url('assets/images/artifacts/diary-and-claws.webp'); }
.page-hero__copy { width: min(820px, 90%); }
.page-hero h1 { margin-bottom: 1.7rem; font-size: clamp(3.8rem, 8vw, 7.6rem); }
.page-hero__copy > p:last-child { max-width: 580px; margin-bottom: 0; color: rgba(229,223,207,.72); font-family: var(--serif); font-size: 1.15rem; }
.page-hero__index { position: absolute; right: clamp(1.2rem,4vw,4rem); bottom: 3rem; color: var(--bone-muted); font-size: .58rem; letter-spacing: .22em; writing-mode: vertical-rl; }
.archive-section { min-height: 60vh; }

/* Character dossiers */
.character-dossiers { display: grid; gap: clamp(5rem,11vw,10rem); }
.character-dossier { display: grid; grid-template-columns: minmax(280px,.78fr) 1.22fr; gap: clamp(2.5rem,8vw,8rem); align-items: center; scroll-margin-top: 100px; }
.character-dossier:nth-child(even) { grid-template-columns: 1.22fr minmax(280px,.78fr); }
.character-dossier:nth-child(even) .character-dossier__portrait { order: 2; }
.character-dossier__portrait { position: relative; aspect-ratio: .72; margin: 0; overflow: hidden; background: var(--ink-lift); }
.character-dossier__portrait::before { content: attr(data-index); position: absolute; z-index: 3; top: .5rem; left: 1rem; color: rgba(229,223,207,.42); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.character-dossier__portrait::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); background: linear-gradient(0deg, rgba(7,10,9,.28), transparent 30%); }
.character-dossier__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.82); transition: scale .8s; }
.character-dossier__portrait:hover img { scale: 1.025; }
.character-dossier__role { color: var(--ember-bright); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.character-dossier h2 { margin: .4rem 0 1.4rem; font-family: var(--serif); font-size: clamp(3rem,6vw,5.8rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.character-dossier__hook { max-width: 650px; color: var(--bone); font-family: var(--serif); font-size: clamp(1.25rem,2.2vw,1.65rem); line-height: 1.45; }
.character-dossier__story { max-width: 680px; color: var(--bone-muted); }
.trait-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.7rem 0; padding: 0; list-style: none; }
.trait-list li { padding: .35rem .65rem; border: 1px solid var(--line); color: var(--bone-muted); font-size: .6rem; letter-spacing: .11em; text-transform: uppercase; }
.dossier-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 1.8rem; background: var(--line); border: 1px solid var(--line); }
.dossier-facts div { padding: .85rem; background: var(--ink); }
.dossier-facts span { display: block; color: var(--bone-muted); font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; }
.dossier-facts strong { display: block; margin-top: .2rem; font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.past-reference { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; align-items: center; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(240,113,82,.34); background: linear-gradient(90deg, rgba(240,113,82,.08), transparent); text-decoration: none; transition: border-color .25s, background .25s, transform .25s; }
.past-reference:hover { transform: translateY(-2px); border-color: var(--ember-bright); background: rgba(240,113,82,.1); }
.past-reference span { color: var(--ember-bright); font-size: .56rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.past-reference strong { grid-column: 1; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.past-reference i { grid-column: 2; grid-row: 1 / span 2; color: var(--ember-bright); font-style: normal; font-size: 1.3rem; transition: translate .2s; }
.past-reference:hover i { translate: .35rem; }

/* Journal */
.journal-cover { position: relative; min-height: 100svh; display: flex; align-items: end; padding: calc(var(--header) + 6rem) max(1.25rem, calc((100vw - var(--max)) / 2)) 8rem; overflow: hidden; isolation: isolate; }
.journal-cover::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,7,7,.85), rgba(5,7,7,.18) 78%), linear-gradient(0deg, var(--ink), transparent 38%); }
.journal-cover__image { position: absolute; z-index: -2; inset: 0; }
.journal-cover__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.8); animation: hero-breathe 20s ease-in-out infinite alternate; }
.journal-cover__copy { position: relative; z-index: 1; }
.journal-cover h1 { margin-bottom: 1.4rem; font-size: clamp(4.1rem,10vw,9rem); }
.journal-cover__copy > p:last-child { color: var(--bone-muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.journal-cover__meta { position: absolute; right: clamp(1.25rem,4vw,4.5rem); bottom: 3rem; display: flex; gap: 1.3rem; color: var(--bone-muted); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.journal-cover--incident .journal-cover__image img { object-position: center 52%; filter: saturate(.7) brightness(.62); }
.journal-cover--incident::after { background: linear-gradient(90deg, rgba(5,7,7,.9), rgba(5,7,7,.2) 74%), linear-gradient(0deg, var(--ink), transparent 48%); }
.record-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.record-breadcrumb a { color: var(--ember-bright); text-decoration: none; font-size: .63rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.record-breadcrumb p { max-width: 560px; margin: 0; color: var(--bone-muted); font-family: var(--serif); font-size: 1.05rem; text-align: right; }
.journal-reader { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: clamp(3rem,7vw,7rem); }
.journal-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.journal-filters { display: grid; gap: .3rem; margin-bottom: 2.2rem; }
.journal-filters button { padding: .6rem 0; border: 0; border-bottom: 1px solid var(--line); color: var(--bone-muted); background: transparent; text-align: left; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.journal-filters button:hover, .journal-filters button.is-active { color: var(--ember-bright); }
.journal-mini-index { display: grid; gap: .25rem; }
.journal-mini-index a { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; color: rgba(229,223,207,.5); text-decoration: none; font-family: var(--serif); font-size: .76rem; line-height: 1.3; }
.journal-mini-index a span { color: var(--ember); font-family: var(--sans); font-size: .55rem; letter-spacing: .08em; }
.journal-mini-index a:hover { color: var(--bone); }
.journal-flow { display: grid; gap: clamp(6rem,12vw,12rem); }
.journal-entry { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: clamp(2.5rem,6vw,6rem); align-items: center; scroll-margin-top: 100px; }
.journal-entry:nth-child(even) { grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); }
.journal-entry:nth-child(even) .journal-entry__image { order: 2; }
.journal-entry[hidden] { display: none; }
.journal-entry__image { aspect-ratio: 1.5; }
.journal-entry__index { display: inline-flex; align-items: center; gap: .7rem; color: var(--ember-bright); font-size: .61rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.journal-entry__index::before { content: ""; width: 28px; height: 1px; background: var(--ember); }
.journal-entry h2 { margin: .7rem 0 1.3rem; font-family: var(--serif); font-size: clamp(2.2rem,4.4vw,4rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.journal-entry__story p { color: var(--bone-muted); }
.journal-entry__story p:first-of-type::first-letter { float: left; margin: .1rem .38rem 0 0; color: var(--bone); font-family: var(--serif); font-size: 3.1rem; line-height: .75; }
.journal-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.journal-entry__tags span { color: rgba(229,223,207,.5); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.journal-entry__tags span::before { content: "#"; color: var(--ember); }

/* Archive cards */
.record-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.record-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--ink-soft); }
.record-card__image { aspect-ratio: 1.55; margin: 0; overflow: hidden; cursor: zoom-in; }
.record-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: scale .7s, filter .4s; }
.record-card:hover .record-card__image img { scale: 1.035; filter: saturate(.95); }
.record-card__copy { padding: clamp(1.4rem,3vw,2.5rem); }
.record-card__number { color: var(--ember-bright); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; }
.record-card h2 { margin: .45rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem,4vw,3.4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.record-card p { color: var(--bone-muted); }
.record-card dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 1.5rem 0 0; background: var(--line); }
.record-card dl div { padding: .7rem; background: var(--ink-soft); }
.record-card dt { color: rgba(229,223,207,.45); font-size: .55rem; letter-spacing: .13em; text-transform: uppercase; }
.record-card dd { margin: .2rem 0 0; font-family: var(--serif); font-size: .9rem; }
.record-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; }
.record-card--feature .record-card__image { aspect-ratio: auto; min-height: 600px; }
.record-card--feature .record-card__copy { align-self: center; }
.threat-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); border: 1px solid rgba(214,83,66,.28); background: linear-gradient(135deg, rgba(214,83,66,.07), transparent 45%), var(--ink-soft); }
.threat-card__image { min-height: 690px; }
.threat-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.threat-card__copy { min-width: 0; align-self: center; padding: clamp(2rem,4vw,4rem); }
.threat-rating { display: inline-flex; align-items: center; gap: .7rem; color: var(--danger); font-size: .61rem; letter-spacing: .15em; text-transform: uppercase; }
.threat-rating::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 15px var(--danger); }
.threat-card h2 { margin: .6rem 0 1.5rem; font-family: var(--serif); font-size: clamp(3.3rem,5vw,5.25rem); font-weight: 400; letter-spacing: -.05em; line-height: .88; overflow-wrap: normal; word-break: normal; hyphens: none; }
.threat-card__copy > p { color: var(--bone-muted); }
.field-notes { display: grid; gap: 0; margin-top: 2rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.field-notes li { position: relative; padding: .8rem 0 .8rem 1.5rem; border-bottom: 1px solid var(--line); color: var(--bone-muted); }
.field-notes li::before { content: "×"; position: absolute; left: 0; color: var(--danger); }

/* Lightbox and utilities */
.lightbox { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 2rem; border: 0; background: rgba(3,5,5,.94); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1500px, 95vw); max-height: 88vh; object-fit: contain; box-shadow: 0 24px 100px rgba(0,0,0,.8); }
.lightbox button { position: absolute; right: 1.3rem; top: 1.3rem; width: 46px; height: 46px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--bone); font-size: 1.4rem; cursor: pointer; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.lost-page { display: grid; place-items: center; min-height: 100svh; padding: 2rem; text-align: center; background: radial-gradient(circle at center, rgba(240,113,82,.08), transparent 36rem), var(--ink); }
.lost-page main { max-width: 850px; }
.lost-page h1 { margin-bottom: 2rem; }
.lost-page p:not(.eyebrow) { margin-bottom: 2rem; color: var(--bone-muted); }

@keyframes hero-breathe { from { scale: 1.06; } to { scale: 1.13; } }
@keyframes scar-pulse { 0%,100% { opacity: .58; filter: blur(1px) drop-shadow(0 0 9px rgba(237,61,36,.55)); } 50% { opacity: .9; filter: blur(.5px) drop-shadow(0 0 22px rgba(237,61,36,.9)); } }
@keyframes fog-drift { from { translate: -4% 0; } to { translate: 8% -2%; } }
@keyframes ember-rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 12% { opacity: .7; } 100% { transform: translate3d(var(--drift), -120vh, 0); opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(214,83,66,0); } 100% { box-shadow: 0 0 0 0 rgba(214,83,66,0); } }

@media (max-width: 1050px) {
  .site-nav { gap: 1rem; }
  .party-strip { grid-template-columns: repeat(3,1fr); }
  .party-card { min-height: 390px; }
  .party-card:nth-child(4), .party-card:nth-child(5) { grid-column: span 1; }
  .journal-reader { grid-template-columns: 165px 1fr; gap: 2.5rem; }
  .journal-entry, .journal-entry:nth-child(even) { grid-template-columns: 1fr; }
  .journal-entry:nth-child(even) .journal-entry__image { order: 0; }
  .threat-card { grid-template-columns: 1fr; }
  .threat-card__image { min-height: 520px; }
}

@media (max-width: 820px) {
  :root { --header: 70px; }
  .nav-toggle { display: block; position: relative; z-index: 3; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 5rem 2rem; background: rgba(8,11,11,.97); opacity: 0; visibility: hidden; transform: translateY(-1rem); transition: opacity .25s, visibility .25s, transform .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .site-nav a::after { bottom: -.2rem; }
  .hero__content { padding-right: 0; }
  .hero__status { display: none; }
  .hero h1 { font-size: clamp(3.4rem,15vw,6.8rem); }
  .omen, .chapter-tease { grid-template-columns: 1fr; }
  .omen { min-height: auto; }
  .omen__image { aspect-ratio: 1.25; }
  .chapter-tease__image { height: 420px; min-height: 0; }
  .chapter-tease__copy { max-width: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .party-strip { grid-template-columns: repeat(2,1fr); }
  .party-card:last-child { grid-column: 1 / -1; min-height: 480px; }
  .atlas-grid { grid-template-columns: repeat(2,1fr); }
  .atlas-card, .atlas-card--wide { grid-column: span 1; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .brand--footer, .site-footer nav { justify-self: center; justify-content: center; }
  .page-hero { width: 100%; max-width: 100%; min-height: 72svh; padding-bottom: 4rem; }
  .page-hero::after { background: linear-gradient(90deg, rgba(5,7,7,.88), rgba(5,7,7,.2)), linear-gradient(0deg,var(--ink),transparent 55%); }
  .page-hero__copy { flex: 0 1 auto; min-width: 0; width: calc(100vw - 2.5rem); max-width: calc(100vw - 2.5rem); }
  .page-hero__copy > p:last-child { width: 100%; max-width: 100%; }
  .page-hero__index { display: none; }
  .character-dossier, .character-dossier:nth-child(even) { grid-template-columns: 1fr; gap: 2rem; }
  .character-dossier:nth-child(even) .character-dossier__portrait { order: 0; }
  .character-dossier__portrait { max-height: 750px; }
  .journal-cover__meta { display: none; }
  .record-breadcrumb { display: block; }
  .record-breadcrumb p { margin-top: .8rem; text-align: left; }
  .journal-reader { grid-template-columns: 1fr; }
  .journal-sidebar { position: relative; top: auto; max-height: none; overflow: visible; }
  .journal-filters { display: flex; flex-wrap: wrap; }
  .journal-filters button { padding: .55rem .7rem; border: 1px solid var(--line); }
  .journal-mini-index { display: none; }
  .record-grid { grid-template-columns: 1fr; }
  .record-card--feature { grid-column: auto; grid-template-columns: 1fr; }
  .record-card--feature .record-card__image { min-height: auto; aspect-ratio: 1.5; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .hero__content { width: calc(100% - 2rem); margin-top: var(--header); }
  .hero__lede { font-size: 1rem; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .section-shell, .section-shell--wide { width: calc(100% - 2rem); padding: 5rem 0; }
  .section-heading, .section-heading > div, .section-heading h2 { min-width: 0; width: 100%; max-width: 100%; }
  .omen__image { aspect-ratio: 1; }
  .chapter-tease__image { height: 320px; min-height: 0; }
  .field-stats { grid-template-columns: 1fr; }
  .party-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .7rem; }
  .party-card, .party-card:last-child { flex: 0 0 78vw; min-height: 460px; grid-column: auto; scroll-snap-align: center; }
  .atlas-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .journal-cover { padding-bottom: 5rem; }
  .journal-entry__image { aspect-ratio: 1.15; }
  .journal-entry h2 { font-size: 2.45rem; }
  .dossier-facts { grid-template-columns: 1fr; }
  .record-card__image { aspect-ratio: 1.2; }
  .record-card dl { grid-template-columns: 1fr; }
  .threat-card__image { min-height: 390px; }
  .lightbox { padding: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__backdrop img, .page-hero__image, .journal-cover__image img { scale: 1.06; translate: 0; }
  .particle-field { display: none; }
}
