/* ═══════════════════════════════════════════════════════════════
   THE CHRONICLE OF NAVE — design system
   Palette and type modeled on mortalonline2.com:
   Marcellus SC / Marcellus display, near-black ground, antique gold.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #050507;
  --coal: #0a0a0d;
  --card: #0c0c10;
  --card-2: #08080b;
  --bone: #d9d2c2;
  --bone-dim: #a89f8c;
  --gold: #c9a86a;
  --gold-bright: #ecd096;
  --gold-dim: rgba(201, 168, 106, 0.35);
  --gold-faint: rgba(201, 168, 106, 0.14);
  --blood: #9c2b22;
  --blood-bright: #c94b3d;
  --serif: "EB Garamond", Georgia, serif;
  --display: "Marcellus SC", "Marcellus", serif;
  --display-lc: "Marcellus", serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --age-tint: var(--gold);
  --spine-x: clamp(28px, 9vw, 130px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #14100a; }

/* thin antique scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #060608; }
::-webkit-scrollbar-thumb { background: #2a2620; border-radius: 5px; border: 2px solid #060608; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

a { color: var(--gold); text-decoration: none; }

/* grain overlay for the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ─────────────── atmosphere: aura, dust, torchlight ───────────────
   Stack: aura (0) < dust canvas (1) < content (2) < grain (3) < torch (4) */
@property --chrome-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #c9a86a;
}
.aura-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 2.4s ease;
}
#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
main, footer { position: relative; z-index: 2; }
#torch {
  position: fixed;
  left: 0; top: 0;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(216, 178, 112, 0.075) 0%,
    rgba(216, 178, 112, 0.032) 32%,
    transparent 62%);
  /* era-tinted flame where color-mix is supported; the line above is the fallback */
  background: radial-gradient(circle,
    color-mix(in srgb, var(--chrome-tint) 8%, transparent) 0%,
    color-mix(in srgb, var(--chrome-tint) 3.4%, transparent) 32%,
    transparent 62%);
  opacity: 0;
  transition: opacity 1.2s ease, --chrome-tint 1.8s ease;
  will-change: transform;
  animation: torch-breathe 3.4s ease-in-out infinite;
}
body.torch-on #torch { opacity: 1; }
@keyframes torch-breathe {
  0%, 100% { filter: brightness(1); }
  47% { filter: brightness(0.86); }
  73% { filter: brightness(1.07); }
}

/* ─────────────── veil (first paint) ─────────────── */
#veil {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  pointer-events: none;
  animation: veil-lift 1.4s ease 0.15s forwards;
}
@keyframes veil-lift { to { opacity: 0; visibility: hidden; } }

/* ─────────────── top navigation ─────────────── */
#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 44px);
  height: 64px;
  background: linear-gradient(rgba(5, 5, 7, 0.0), rgba(5, 5, 7, 0.0));
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}
#topnav.scrolled {
  background: rgba(6, 6, 9, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 106, 0.14);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--bone);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
}
#topnav.scrolled .wordmark { opacity: 1; transform: none; }
.wordmark:hover { color: var(--gold-bright); }
.wordmark-star { color: var(--gold); font-size: 14px; }

.age-nav { display: flex; gap: 4px; }
.age-nav a {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.age-nav a:hover { color: var(--gold-bright); }
.age-nav a.active { color: var(--gold); border-bottom-color: var(--gold-dim); }
.age-nav .nav-roman { font-size: 15px; }
.age-nav .nav-name { display: none; }
@media (min-width: 1100px) {
  .age-nav .nav-name { display: inline; margin-left: 6px; font-size: 12px; letter-spacing: 0.16em; opacity: 0.75; }
}

/* nav action buttons (thread / ambience) */
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  padding: 7px 11px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.nav-btn:hover { color: var(--gold-bright); }
.nav-btn[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 106, 0.07);
}
.nav-btn-text { display: none; }
@media (min-width: 900px) { .nav-btn-text { display: inline; } }

.scroll-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7d6337, var(--gold), var(--gold-bright));
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--chrome-tint) 60%, #201a10),
    var(--chrome-tint),
    color-mix(in srgb, var(--chrome-tint) 65%, #fff));
  box-shadow: 0 0 8px rgba(201, 168, 106, 0.55);
  transition: width 0.1s linear, --chrome-tint 1.8s ease;
}

/* ─────────────── thread of odinseed mode ─────────────── */
body.thread-mode .entry {
  transition:
    opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.7s ease,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
/* dim only entries that have already revealed, so the reveal choreography survives */
body.thread-mode .entry.in:not(.odinseed) { opacity: 0.13; filter: saturate(0.25); }
body.thread-mode .entry.in:not(.odinseed):hover { opacity: 0.55; filter: saturate(0.7); }
body.thread-mode .year-break { opacity: 0.35; }
body.thread-mode .entry.odinseed .entry-card {
  border-color: rgba(201, 168, 106, 0.5);
  box-shadow: 0 0 60px -18px rgba(201, 168, 106, 0.25);
}

#thread-nav {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(8, 8, 11, 0.88);
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.thread-mode #thread-nav { opacity: 1; transform: none; pointer-events: auto; }
#thread-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bone-dim);
  line-height: 1;
  padding: 8px 10px;
  transition: color 0.25s;
}
#thread-nav button:hover { color: var(--gold-bright); }
.t-chev {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.t-chev.up { transform: rotate(-135deg) translate(-2px, -2px); }
.t-chev.down { transform: rotate(45deg) translate(-2px, -2px); }
#thread-exit {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#thread-count {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding: 0 10px;
  white-space: nowrap;
}
#thread-exit { border-left: 1px solid rgba(201, 168, 106, 0.18) !important; }
@media (max-width: 700px) {
  #thread-nav { right: 50%; transform: translate(50%, 16px); }
  body.thread-mode #thread-nav { transform: translate(50%, 0); }
}

/* ─────────────── anno (year) indicator ─────────────── */
#anno {
  position: fixed;
  left: clamp(10px, 2vw, 28px);
  bottom: 26px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
#anno.visible { opacity: 1; transform: none; }
.anno-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.anno-year {
  font-family: var(--display);
  font-size: 26px;
  color: var(--chrome-tint, var(--gold));
  text-shadow: 0 0 18px rgba(201, 168, 106, 0.35);
  font-variant-numeric: tabular-nums;
  transition: color 1.4s ease;
}
@media (max-width: 900px) { #anno { display: none; } }

/* ─────────────── hero ─────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 118%, rgba(122, 62, 24, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% -12%, rgba(52, 62, 84, 0.25), transparent 65%),
    var(--ink);
}
#embers, #embers-end {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 90% at 50% 45%, transparent 55%, rgba(3, 3, 4, 0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.35s cubic-bezier(0.15, 0.6, 0.3, 1);
}

/* keyboard hint under the prefaces */
.kbd-hint {
  margin-top: 2.4em;
  text-align: center;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.kbd-hint kbd {
  font-family: var(--display);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 2px 7px;
  margin: 0 3px;
  background: rgba(201, 168, 106, 0.05);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.hero-eyebrow span { color: var(--gold); }

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 9.5vw, 118px);
  line-height: 1.04;
  letter-spacing: 0.06em;
  background: linear-gradient(175deg, #f4e5c0 8%, var(--gold) 46%, #8a6f3f 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(201, 168, 106, 0.18));
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: clamp(22px, 4vh, 38px) auto;
}
.orn-line {
  display: block;
  height: 1px;
  width: clamp(60px, 12vw, 150px);
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.orn-line:last-child { transform: scaleX(-1); }
.orn-diamond { color: var(--gold); font-size: 15px; line-height: 1; }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--bone-dim);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
}
.hero-dates {
  margin-top: clamp(16px, 3vh, 26px);
  font-family: var(--display);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.34em;
  color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bone-dim);
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--gold-bright); }
.cue-text {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.cue-chevron {
  width: 12px; height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: cue-drift 2.2s ease-in-out infinite;
}
@keyframes cue-drift {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* hero entrance */
.reveal-hero {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  animation: hero-in 1.4s cubic-bezier(0.19, 1, 0.22, 1) var(--d, 0s) forwards;
}
@keyframes hero-in { to { opacity: 1; transform: none; filter: none; } }

/* ─────────────── scroll reveals ───────────────
   Base reveal: quick, blur-free (blur on 120 cards reads as lag and
   re-rasterizes shadows). Blur stays reserved for the hero, the age
   dividers, and landmark entries — their exclusive signature. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* age dividers keep the slow blur-rise */
.age-divider .reveal:not(.in) { filter: blur(5px); }
.age-divider .reveal { transition-duration: 1.1s; }

/* tales drift out of the spine sideways */
.entry.tale.reveal:not(.in) { transform: translate(-24px, 12px); }

/* odinseed entries flare gold once as they arrive */
.entry.odinseed.reveal.in .entry-card { animation: odin-flare 1.7s ease 0.25s 1; }
@keyframes odin-flare {
  0% { box-shadow: none; }
  35% {
    box-shadow: 0 0 44px -6px rgba(201, 168, 106, 0.4), inset 0 0 34px rgba(201, 168, 106, 0.09);
    border-color: rgba(236, 208, 150, 0.65);
  }
  100% { box-shadow: none; }
}

/* landmarks alone keep the long cinematic blur-rise */
.entry.landmark.reveal { transition-duration: 1.4s; }
.entry.landmark.reveal:not(.in) { transform: translateY(46px); filter: blur(6px); }

/* ─────────────── tome sections (invocation / preface) ─────────────── */
.tome-section, #prefaces {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) 24px;
}
#invocation p {
  font-size: clamp(19px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.85;
  color: var(--bone);
  text-align: center;
  margin-bottom: 2.2em;
}
#invocation p:first-child::first-letter {
  font-family: var(--display);
  font-style: normal;
  font-size: 3.1em;
  line-height: 0.8;
  color: var(--gold);
  float: left;
  padding: 8px 12px 0 0;
}
#invocation p:last-child {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--gold);
  margin-bottom: 0;
}

.preface-block { margin-bottom: clamp(60px, 10vh, 100px); }
.preface-block h2, .epilogue-inner h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}
.preface-block .ornament { margin-top: 6px; margin-bottom: clamp(26px, 5vh, 44px); }
.preface-block p {
  margin-bottom: 1.5em;
  color: var(--bone);
  text-align: left;
}
.preface-block p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 2.9em;
  line-height: 0.8;
  color: var(--gold);
  float: left;
  padding: 7px 10px 0 0;
}

/* the ✦ thread callout */
.thread-callout {
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.07), rgba(201, 168, 106, 0.02));
  padding: 26px 30px;
  margin-top: 2em;
  position: relative;
}
.thread-callout::before {
  content: "\2726";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 0 14px;
  color: var(--gold);
  font-size: 17px;
}
.thread-callout p { margin: 0; font-style: italic; }
.thread-callout p::first-letter { all: unset; }

/* ─────────────── age dividers ─────────────── */
.age-divider {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px;
  overflow: hidden;
}
.age-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 60% at 50% 50%, var(--age-glow, rgba(201,168,106,0.10)), transparent 70%);
}
.age-roman-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%) scale(var(--zoom, 1));
  font-family: var(--display);
  font-size: clamp(210px, 44vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 106, 0.13);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.age-inner { position: relative; max-width: 880px; }
.age-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--age-tint);
  margin-bottom: 20px;
}
.age-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.14;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.age-range {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(15px, 1.9vw, 19px);
  letter-spacing: 0.3em;
  color: var(--age-tint);
}
.age-temper {
  margin: clamp(28px, 5vh, 46px) auto 0;
  max-width: 720px;
  font-style: italic;
  font-size: clamp(17px, 2vw, 20.5px);
  line-height: 1.8;
  color: var(--bone-dim);
}

/* ─────────────── timeline ─────────────── */
.timeline {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 24px 120px calc(var(--spine-x) + 24px);
}
.spine {
  position: absolute;
  left: var(--spine-x);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(201, 168, 106, 0.13);
}
.spine-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-dim), var(--gold));
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.5);
}

.entry {
  position: relative;
  margin: 0 0 clamp(48px, 8vh, 84px);
  max-width: 780px;
}

.entry::before {
  /* connective tick from spine to card */
  content: "";
  position: absolute;
  top: 26px;
  left: calc(-1 * (24px));
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.8s ease 0.25s;
}
.entry.in::before { opacity: 1; }

.entry-node {
  position: absolute;
  top: 26px;
  left: calc(-1 * (24px));
  transform: translate(-50%, -50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 1px solid var(--gold-dim);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.entry.in .entry-node {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.5);
}
.entry.odinseed .entry-node { background: var(--gold); }
.entry-node .node-star {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  color: #14100a;
  font-size: 8px;
  line-height: 1;
}

/* card */
.entry-card {
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid rgba(201, 168, 106, 0.14);
  padding: clamp(22px, 3.4vw, 38px) clamp(22px, 3.6vw, 42px);
  position: relative;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.18s ease-out;
}
.entry-card:hover {
  border-color: rgba(201, 168, 106, 0.32);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 168, 106, 0.06);
}
/* pointer-tracked sheen + 3D tilt (fine pointers only; JS sets the vars).
   The sheen answers in the ERA's color, not the torch's — the parchment
   replies cold-blue in Age I, blood-red in Age II, desert gold in Age V. */
.entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(236, 208, 150, 0.065), transparent 62%);
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--age-tint, #c9a86a) 8%, transparent), transparent 62%);
}
.entry-card:hover::after { opacity: 1; }
@media (pointer: fine) {
  .entry-card {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  }
  .entry-card:hover { --lift: -2px; }
}
/* coarse pointers get a one-shot light pass as each card arrives —
   the torch walks the page even where no cursor exists */
@media (pointer: coarse) {
  .entry-card::after {
    background: linear-gradient(115deg, transparent 30%, rgba(236, 208, 150, 0.055) 48%, transparent 66%);
    background: linear-gradient(115deg, transparent 30%,
      color-mix(in srgb, var(--age-tint, #c9a86a) 7%, transparent) 48%, transparent 66%);
    background-size: 100% 340%;
    background-position: 50% 130%;
  }
  .entry.in .entry-card::after { animation: card-pass 1.6s ease 0.35s 1; }
  @keyframes card-pass {
    0% { opacity: 0; background-position: 50% 130%; }
    35% { opacity: 1; }
    100% { opacity: 0; background-position: 50% -30%; }
  }
}
.entry.odinseed .entry-card {
  border-color: rgba(201, 168, 106, 0.3);
  background:
    linear-gradient(160deg, rgba(201, 168, 106, 0.05), transparent 40%),
    linear-gradient(160deg, var(--card), var(--card-2));
}
.entry.odinseed .entry-card:hover { border-color: rgba(201, 168, 106, 0.5); }

.entry-date {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--age-tint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.thread-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  padding: 3px 9px;
  background: rgba(201, 168, 106, 0.06);
}
.entry-title {
  font-family: var(--display-lc);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.22;
  color: var(--bone);
  margin-bottom: 14px;
  letter-spacing: 0.015em;
}
.entry.odinseed .entry-title { color: var(--gold-bright); }
.entry-body { color: rgba(217, 210, 194, 0.87); max-width: 66ch; }
.entry-body + .entry-body { margin-top: 0.9em; }
.entry-body em { color: var(--bone); }

/* ── landmark tier: the moments the whole chronicle turns on ── */
.entry.landmark { max-width: 860px; }
.entry.landmark .entry-card {
  border-color: rgba(201, 168, 106, 0.45);
  outline: 1px solid rgba(201, 168, 106, 0.16);
  outline-offset: 6px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(201, 168, 106, 0.09), transparent 65%),
    linear-gradient(160deg, var(--card), var(--card-2));
  padding-top: clamp(30px, 4.5vw, 48px);
}
.entry.landmark .entry-title {
  font-family: var(--display);
  font-size: clamp(29px, 4.2vw, 44px);
  letter-spacing: 0.07em;
  color: var(--gold-bright);
  text-shadow: 0 0 34px rgba(201, 168, 106, 0.28);
}
.entry.landmark .entry-node {
  width: 15px;
  height: 15px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201, 168, 106, 0.7);
}
/* landmark forging rule: a gold line drawn across the card top on arrival */
.entry.landmark .entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 14px rgba(236, 208, 150, 0.5);
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.19, 1, 0.22, 1) 0.55s;
}
.entry.landmark.in .entry-card::before { transform: scaleX(1); }

/* ── year milestones on the spine ── */
.year-break {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(56px, 9vh, 96px) 0;
  max-width: 780px;
}
.year-break::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.6);
}
.yb-text {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.yb-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* tale (undated interlude) variant */
.entry.tale .entry-card {
  background: linear-gradient(160deg, #0d0c09, #090807);
  border-style: dashed;
  border-color: rgba(201, 168, 106, 0.18);
}
.tale-kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.entry.tale .entry-node { border-radius: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; }

/* fate seal (keep destroyed / lost) */
.fate-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blood-bright);
  border: 1px solid rgba(156, 43, 34, 0.5);
  background: rgba(156, 43, 34, 0.08);
  padding: 7px 14px;
}
.fate-seal::before { content: "\2694\FE0E"; font-size: 14px; }

/* ─────────────── watch: media ─────────────── */
.watch {
  margin-top: 26px;
  border-top: 1px solid rgba(201, 168, 106, 0.12);
  padding-top: 20px;
}
.watch-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.watch-label::before { content: "\25B6\FE0E"; color: var(--age-tint); font-size: 9px; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (min-width: 720px) {
  .video-grid.multi { grid-template-columns: 1fr 1fr; }
}

.video-card {
  position: relative;
  border: 1px solid rgba(201, 168, 106, 0.16);
  background: #000;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.video-card:hover { border-color: rgba(201, 168, 106, 0.45); box-shadow: 0 10px 34px -12px rgba(0,0,0,0.8); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) brightness(0.85);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88));
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(236, 208, 150, 0.75);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s, box-shadow 0.4s;
  z-index: 2;
}
.play-btn::after {
  content: "";
  margin-left: 4px;
  border-left: 15px solid var(--gold-bright);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(20, 16, 10, 0.8);
  box-shadow: 0 0 30px rgba(201, 168, 106, 0.35);
}
.video-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 11px;
  z-index: 2;
}
.video-caption .vc-title {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--bone);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.video-caption .vc-source {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* non-video scroll links */
.link-scrolls { display: flex; flex-direction: column; gap: 9px; }
.link-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(201, 168, 106, 0.16);
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.045), transparent 55%);
  padding: 12px 18px;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.link-scroll:hover {
  border-color: rgba(201, 168, 106, 0.45);
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.1), transparent 70%);
  transform: translateX(4px);
}
.link-scroll .ls-icon {
  flex: 0 0 auto;
  color: var(--gold);
}
.link-scroll .ls-text {
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--bone);
  line-height: 1.4;
}
.link-scroll .ls-source {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.link-scroll .ls-arrow {
  margin-left: auto;
  color: var(--bone-dim);
  font-size: 13px;
  transition: transform 0.35s, color 0.35s;
}
.link-scroll:hover .ls-arrow { transform: translate(3px, -3px); color: var(--gold-bright); }

/* ─────────────── epilogue ─────────────── */
#epilogue {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(122, 62, 24, 0.18), transparent 65%),
    var(--ink);
}
.epilogue-inner { position: relative; z-index: 2; max-width: 760px; }
.epilogue-inner p {
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  color: var(--bone-dim);
  margin: 1.4em 0;
  line-height: 1.85;
}
.epilogue-mark { color: var(--bone) !important; }
.epilogue-mark em { color: var(--gold); }
.back-to-top {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid rgba(201, 168, 106, 0.25);
  padding: 13px 26px;
  transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.back-to-top:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(201, 168, 106, 0.06); }

footer {
  border-top: 1px solid rgba(201, 168, 106, 0.1);
  padding: 44px 24px 54px;
  text-align: center;
}
footer p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #7d7668;
  max-width: 720px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

/* ─────────────── responsive ─────────────── */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wordmark-text { display: none; }
  .wordmark { opacity: 1; transform: none; }
  .age-nav { gap: 0; }
  .age-nav a { padding: 8px 7px; }
  .timeline { padding-left: calc(var(--spine-x) + 18px); padding-right: 16px; }
  .entry::before { left: -18px; width: 18px; }
  .entry-node { left: -18px; }
  .year-break::before { left: -18px; }
}

/* ─────────────── reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .cue-chevron { animation: none; }
  #veil { animation-duration: 0.2s; }
  #atmosphere, #torch { display: none; }
  .entry-card, .hero-inner, .age-roman-bg { transform: none !important; }
  .entry.odinseed.reveal.in .entry-card { animation: none; }
  .entry.landmark .entry-card::before { transition: none; transform: scaleX(1); }
  .entry.in .entry-card::after { animation: none; }
}
