:root {
  --bg-main: #0a0a0c;
  --bg-secondary: #1a1614;
  --panel: #2d241e;
  --panel-soft: rgba(45, 36, 30, 0.8);
  --gold: #c5a059;
  --gold-bright: #e2c88a;
  --crimson: #6b1515;
  --text: #e8dcc6;
  --text-muted: rgba(232, 220, 198, 0.74);
  --shadow-gold: 0 0 12px rgba(197, 160, 89, 0.22), 0 0 28px rgba(197, 160, 89, 0.1);
  --shadow-crimson: 0 0 16px rgba(107, 21, 21, 0.28), 0 0 36px rgba(107, 21, 21, 0.14);
  --border: 1px solid rgba(197, 160, 89, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --section-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(197, 160, 89, 0.1), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(107, 21, 21, 0.05), transparent 20%),
    linear-gradient(180deg, #08080a 0%, #0a0a0c 20%, #100d0d 50%, #0a0a0c 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23c5a059' stroke-opacity='0.18'%3E%3Ccircle cx='210' cy='210' r='116'/%3E%3Ccircle cx='210' cy='210' r='84'/%3E%3Cpath d='M210 72v276M72 210h276M128 128l164 164M292 128 128 292'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 360px;
  mix-blend-mode: screen;
}

::selection {
  background: rgba(197, 160, 89, 0.28);
  color: #fff8ea;
}

a {
  color: inherit;
}

.cursor,
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cursor {
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.7));
}

.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 245, 215, 0.96), rgba(197, 160, 89, 0.82));
}

.cursor::before {
  width: 3px;
  height: 18px;
}

.cursor::after {
  width: 14px;
  height: 3px;
}

.cursor-aura {
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.22);
  background: radial-gradient(circle, rgba(197, 160, 89, 0.16), rgba(197, 160, 89, 0.02) 68%, transparent 72%);
}

.cursor-aura.active {
  width: 48px;
  height: 48px;
  border-color: rgba(107, 21, 21, 0.34);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.chapter {
  position: relative;
  padding: 7rem 1.5rem;
  overflow: clip;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.chapter-inner {
  width: min(100%, var(--section-max));
  margin: 0 auto;
  position: relative;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: 5rem 4rem;
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.5), rgba(10, 10, 12, 0.9)),
    radial-gradient(circle at 50% 15%, rgba(197, 160, 89, 0.06), transparent 20%);
}

.hero::before {
  background:
    radial-gradient(circle at 50% 20%, rgba(197, 160, 89, 0.1), transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.18) 35%, rgba(10, 10, 12, 0.78) 100%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-moon,
.hero-stars,
.hero-sea,
.hero-cliffs,
.hero-monk,
.hero-mist {
  position: absolute;
}

.hero-moon {
  top: 9%;
  left: 50%;
  width: min(56vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 248, 231, 0.84), rgba(197, 160, 89, 0.44) 38%, rgba(197, 160, 89, 0.06) 62%, transparent 72%);
  box-shadow: 0 0 90px rgba(197, 160, 89, 0.12);
}

.hero-stars {
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 8%, rgba(255,255,255,0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 13%, rgba(255,255,255,0.7) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 68% 11%, rgba(255,255,255,0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 16%, rgba(255,255,255,0.8) 0 1.4px, transparent 1.8px);
}

.hero-sea {
  inset: auto 0 0;
  height: 38vh;
  background:
    linear-gradient(180deg, rgba(17, 18, 27, 0) 0%, rgba(17, 18, 27, 0.24) 12%, rgba(11, 14, 23, 0.72) 40%, rgba(5, 7, 12, 0.98) 100%),
    repeating-linear-gradient(180deg, rgba(197, 160, 89, 0.06) 0 1px, transparent 1px 18px);
  clip-path: polygon(0 18%, 10% 21%, 18% 16%, 28% 24%, 40% 19%, 52% 26%, 62% 20%, 74% 28%, 86% 23%, 100% 29%, 100% 100%, 0 100%);
}

.hero-cliffs {
  left: -8%;
  bottom: 0;
  width: 116%;
  height: 35vh;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 9, 0.84) 10%, rgba(7, 7, 9, 1) 100%);
  clip-path: polygon(0 62%, 8% 50%, 13% 54%, 19% 42%, 25% 50%, 31% 38%, 40% 49%, 52% 35%, 61% 46%, 72% 33%, 81% 45%, 92% 37%, 100% 42%, 100% 100%, 0 100%);
}

.hero-mist {
  inset: auto 0 0;
  height: 44vh;
  opacity: 0.55;
  background:
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 48% 78%, rgba(255, 255, 255, 0.1), transparent 18%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.hero-monk {
  left: 68%;
  bottom: 15vh;
  width: clamp(84px, 10vw, 138px);
  height: clamp(180px, 23vw, 260px);
  border-radius: 45% 45% 18% 18%;
  background:
    radial-gradient(circle at 50% 13%, rgba(17, 17, 19, 0.85) 0 19%, transparent 20%),
    linear-gradient(180deg, rgba(17, 17, 19, 0.98) 0 36%, rgba(6, 6, 7, 0.98) 36% 100%);
  clip-path: polygon(42% 0, 60% 0, 66% 8%, 69% 18%, 74% 28%, 82% 62%, 92% 100%, 8% 100%, 18% 62%, 26% 28%, 31% 18%, 34% 8%);
}

.hero-monk::before,
.hero-monk::after {
  content: "";
  position: absolute;
  background: rgba(7, 7, 9, 0.98);
}

.hero-monk::before {
  right: -18%;
  top: 8%;
  width: 6px;
  height: 105%;
  border-radius: 999px;
}

.hero-monk::after {
  inset: auto auto 20% 20%;
  width: 18%;
  height: 58%;
  transform: rotate(18deg);
  border-radius: 999px;
}

.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 1;
  padding-top: 5vh;
}

.hero-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.9rem, 8vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0e1bb;
  text-shadow:
    0 0 6px rgba(197, 160, 89, 0.28),
    0 0 16px rgba(197, 160, 89, 0.18),
    0 0 28px rgba(197, 160, 89, 0.12);
  animation: candle-flicker 5.2s infinite ease-in-out;
}

.hero-title span {
  display: block;
}

.hero-years {
  margin: 1.35rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: var(--shadow-gold);
}

.chapter-heading {
  margin-bottom: 2.8rem;
  max-width: 720px;
}

.chapter-kicker {
  margin: 0 0 0.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.28em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.chapter-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.04;
  color: #f0e1bb;
  text-shadow: var(--shadow-gold);
}

.chapter-intro {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

.scriptorium::before {
  background:
    linear-gradient(180deg, rgba(26, 22, 20, 0.86), rgba(10, 10, 12, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(197, 160, 89, 0.06), transparent 24%);
}

.scriptorium-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
}

.vellum-card {
  position: relative;
  min-height: 270px;
  padding: 1.5rem 1.35rem 1.4rem;
  background:
    linear-gradient(90deg, rgba(239, 230, 210, 0.02) 0%, rgba(239, 230, 210, 0.08) 49.2%, rgba(239, 230, 210, 0.02) 50.8%, rgba(239, 230, 210, 0.08) 100%),
    linear-gradient(180deg, rgba(45, 36, 30, 0.92), rgba(30, 23, 18, 0.96));
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.vellum-card::before,
.vellum-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vellum-card::before {
  inset: 14px;
  border-radius: calc(var(--radius-md) - 8px);
  border: 1px solid rgba(197, 160, 89, 0.1);
}

.vellum-card::after {
  inset: auto 50% 1rem auto;
  width: 1px;
  height: calc(100% - 2rem);
  background: linear-gradient(180deg, transparent, rgba(255, 250, 232, 0.14) 15%, rgba(0, 0, 0, 0.2) 55%, transparent);
  transform: translateX(50%);
}

.vellum-card:hover,
.vellum-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3), 0 0 16px rgba(197, 160, 89, 0.1);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.42);
  color: var(--gold-bright);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vellum-card h3 {
  margin: 1rem 0 0.6rem;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #f5e3b4;
}

.vellum-card p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.confessional {
  background:
    radial-gradient(circle at 50% 0%, rgba(107, 21, 21, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(24, 16, 17, 0.96) 54%, rgba(10, 10, 12, 0.9));
}

.confessional-shell {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: linear-gradient(135deg, rgba(53, 40, 31, 0.92) 0%, rgba(45, 36, 30, 0.92) 48%, rgba(33, 24, 21, 0.96) 50%, rgba(18, 15, 16, 0.96) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  transition: border-color 600ms ease, box-shadow 600ms ease, transform 600ms ease;
  overflow: hidden;
}

.confessional-shell::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
  background:
    radial-gradient(circle at left center, rgba(107, 21, 21, 0.22), transparent 30%),
    radial-gradient(circle at right center, rgba(107, 21, 21, 0.18), transparent 30%);
}

.confessional.is-awake .confessional-shell {
  border-color: rgba(107, 21, 21, 0.62);
  box-shadow: var(--shadow-crimson), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.confessional.is-awake .confessional-shell::before {
  opacity: 1;
}

.confessional-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
}

.confessional-panel,
.legacy-card,
.impact-card {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 160, 89, 0.18);
  overflow: hidden;
}

.confessional-panel {
  background: rgba(14, 13, 12, 0.28);
}

.psalter-texture {
  background:
    linear-gradient(180deg, rgba(239, 230, 210, 0.05), rgba(239, 230, 210, 0.01)),
    linear-gradient(90deg, rgba(239, 230, 210, 0.03) 0%, rgba(239, 230, 210, 0.1) 49%, rgba(239, 230, 210, 0.02) 51%, rgba(239, 230, 210, 0.06) 100%);
}

.battle-texture {
  background:
    radial-gradient(circle at 15% 18%, rgba(107, 21, 21, 0.18), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(107, 21, 21, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(16, 13, 14, 0.18), rgba(16, 13, 14, 0.44));
}

.confessional-panel h3,
.legacy-card h3,
.impact-card h3,
.loch-panel h3 {
  margin: 0 0 0.7rem;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.25rem;
  color: #f3dfaf;
  line-height: 1.2;
}

.confessional-panel p,
.legacy-card p,
.impact-card p,
.impact-card li,
.loch-panel p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.confessional-panel p + p,
.legacy-card p + p,
.loch-panel p + p {
  margin-top: 0.9rem;
}

.pull-quote {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-left: 3px solid rgba(107, 21, 21, 0.72);
  border-radius: 0 14px 14px 0;
  background: rgba(107, 21, 21, 0.12);
  color: #f1ded2;
  font-size: 1.12rem;
  line-height: 1.6;
}

.vow-band {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(107, 21, 21, 0.2), rgba(197, 160, 89, 0.08));
  border: 1px solid rgba(197, 160, 89, 0.14);
  font-size: 1.08rem;
  line-height: 1.7;
  color: #f0decd;
}

.loch {
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.98), rgba(3, 7, 15, 0.96) 50%, rgba(8, 11, 19, 1));
}

.loch::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(74, 119, 166, 0.06), transparent 20%),
    radial-gradient(circle at 86% 16%, rgba(74, 119, 166, 0.06), transparent 18%);
}

.loch-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.4rem;
  align-items: center;
}

.loch-stage {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  background:
    linear-gradient(180deg, rgba(15, 21, 35, 0.2) 0%, rgba(6, 16, 28, 0.46) 30%, rgba(5, 10, 20, 0.98) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 22%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.loch-stage::before,
.loch-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loch-stage::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 26%);
}

.loch-stage::after {
  background:
    linear-gradient(180deg, transparent 34%, rgba(4, 9, 19, 0.58) 58%, rgba(3, 7, 15, 0.96) 100%),
    repeating-linear-gradient(180deg, rgba(197, 160, 89, 0.03) 0 1px, transparent 1px 20px);
}

.mist-bank,
.water-lines,
.beast,
.cross-sign,
.shoreline {
  position: absolute;
}

.mist-bank {
  inset: auto -8% 8% -8%;
  height: 42%;
  background:
    radial-gradient(circle at 10% 52%, rgba(255,255,255,0.14), transparent 30%),
    radial-gradient(circle at 48% 30%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 88% 62%, rgba(255,255,255,0.1), transparent 26%);
  opacity: 0.7;
}

.water-lines {
  inset: auto 0 0;
  height: 58%;
  background:
    repeating-linear-gradient(180deg, rgba(67, 115, 158, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(8, 25, 45, 0.36), rgba(3, 10, 22, 0.95));
}

.shoreline {
  left: -5%;
  width: 110%;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.2), rgba(6, 6, 8, 0.96));
  clip-path: polygon(0 44%, 10% 54%, 18% 42%, 29% 58%, 44% 44%, 58% 60%, 70% 48%, 82% 56%, 100% 45%, 100% 100%, 0 100%);
}

.beast {
  left: 48%;
  bottom: 22%;
  width: min(40vw, 260px);
  height: 160px;
  background: radial-gradient(circle at 30% 45%, rgba(10, 18, 30, 0.94), rgba(2, 3, 6, 0.94) 60%, transparent 66%);
  opacity: 0.38;
  transform: translate(-50%, 36px) scale(0.84) rotate(-5deg);
  transition: transform 900ms ease, opacity 900ms ease;
}

.beast::before,
.beast::after {
  content: "";
  position: absolute;
  background: radial-gradient(circle, rgba(6, 12, 22, 0.94), transparent 64%);
}

.beast::before {
  inset: 8% 10% auto auto;
  width: 40%;
  height: 34%;
  transform: rotate(20deg);
}

.beast::after {
  inset: auto auto 10% 16%;
  width: 62%;
  height: 26%;
  transform: rotate(-14deg);
}

.cross-sign {
  top: 28%;
  left: 58%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.56);
  opacity: 0;
  transition: transform 800ms ease 140ms, opacity 800ms ease 140ms;
  background: radial-gradient(circle, rgba(255, 247, 221, 0.2), rgba(197, 160, 89, 0.06) 60%, transparent 68%);
}

.cross-sign::before,
.cross-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 212, 0.94), rgba(197, 160, 89, 0.84));
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.5);
}

.cross-sign::before {
  width: 8px;
  height: 62px;
}

.cross-sign::after {
  width: 52px;
  height: 8px;
}

.loch.is-awake .beast {
  opacity: 0.08;
  transform: translate(-50%, 74px) scale(0.48) rotate(6deg);
}

.loch.is-awake .cross-sign {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loch-panel {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: rgba(17, 22, 33, 0.48);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.loch-panel .pull-quote {
  border-left-color: rgba(197, 160, 89, 0.72);
  background: rgba(197, 160, 89, 0.08);
}

.legacy {
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(17, 12, 9, 0.94), rgba(20, 15, 11, 0.98));
}

.legacy-shell {
  position: relative;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(52, 40, 27, 0.96), rgba(34, 26, 20, 0.98));
  border: 1px solid rgba(197, 160, 89, 0.42);
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.14), 0 22px 52px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.legacy-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-lg) - 12px);
  border: 1px solid rgba(255, 235, 190, 0.14);
  pointer-events: none;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
}

.legacy-card,
.impact-card {
  background:
    linear-gradient(180deg, rgba(255, 244, 217, 0.02), transparent 24%),
    rgba(24, 19, 15, 0.44);
}

.legacy-quote {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(197, 160, 89, 0.07);
  font-size: clamp(1.16rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: #fff2cf;
}

.legacy-quote + .legacy-quote {
  margin-top: 1rem;
}

.legacy-body {
  margin-top: 1rem !important;
}

.illuminated-initial {
  float: left;
  margin: 0.12rem 0.7rem 0 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 3.6rem;
  line-height: 0.88;
  color: #f8df9f;
  text-shadow: var(--shadow-gold);
}

.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.impact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.impact-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.42);
  color: #f7dfac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

.impact-timeline {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 160, 89, 0.16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.timeline-pill {
  padding: 0.95rem 0.85rem;
  border-radius: 16px;
  background: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.12);
  text-align: center;
}

.timeline-pill strong {
  display: block;
  font-size: 1.08rem;
  color: #f2dca4;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.timeline-pill span {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-note {
  margin-top: 1.4rem;
  text-align: center;
  color: rgba(232, 220, 198, 0.62);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 70ms;
}

.delay-2 {
  transition-delay: 140ms;
}

.delay-3 {
  transition-delay: 210ms;
}

.delay-4 {
  transition-delay: 280ms;
}

@keyframes candle-flicker {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(197, 160, 89, 0.26),
      0 0 16px rgba(197, 160, 89, 0.18),
      0 0 28px rgba(197, 160, 89, 0.12);
  }
  20% {
    text-shadow:
      0 0 8px rgba(197, 160, 89, 0.32),
      0 0 18px rgba(197, 160, 89, 0.22),
      0 0 30px rgba(197, 160, 89, 0.14);
  }
  42% {
    text-shadow:
      0 0 5px rgba(197, 160, 89, 0.22),
      0 0 12px rgba(197, 160, 89, 0.14),
      0 0 22px rgba(197, 160, 89, 0.08);
  }
  68% {
    text-shadow:
      0 0 10px rgba(197, 160, 89, 0.34),
      0 0 22px rgba(197, 160, 89, 0.24),
      0 0 34px rgba(197, 160, 89, 0.16);
  }
}

@media (max-width: 1140px) {
  .scriptorium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-monk {
    left: 72%;
  }
}

@media (max-width: 900px) {
  .chapter {
    padding-block: 5.5rem;
  }

  .scriptorium-grid,
  .confessional-grid,
  .loch-layout,
  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-moon {
    top: 12%;
    width: min(62vw, 360px);
  }

  .hero-monk {
    left: 78%;
    bottom: 14vh;
  }

  .impact-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cursor,
  .cursor-aura {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.05rem, 10.6vw, 3.15rem);
    line-height: 1;
    letter-spacing: 0.03em;
  }

  .hero-years {
    letter-spacing: 0.18em;
  }

  .scriptorium-grid {
    grid-template-columns: 1fr;
  }

  .chapter {
    padding-inline: 1rem;
  }

  .vellum-card,
  .confessional-panel,
  .loch-panel,
  .legacy-card,
  .impact-card {
    padding: 1.15rem;
  }

  .loch-stage {
    min-height: 380px;
  }

  .hero-monk {
    left: 82%;
    width: 94px;
    height: 188px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-aura {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
