:root {
  color-scheme: dark;
  --void: #070504;
  --charcoal: #100b09;
  --obsidian: #17100d;
  --blood: #6e0f1b;
  --blood-bright: #a51625;
  --ember: #d36d25;
  --gold: #d6aa57;
  --old-gold: #8f6b2d;
  --bone: #efe0c0;
  --parchment: #cdb98a;
  --ash: #8c8170;
  --malachite: #0f4e45;
  --violet-black: #1b1119;
  --line: rgba(214, 170, 87, 0.28);
  --line-strong: rgba(214, 170, 87, 0.52);
  --shadow: rgba(0, 0, 0, 0.64);
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(110, 15, 27, 0.24), transparent 27rem),
    radial-gradient(circle at 82% 36%, rgba(15, 78, 69, 0.16), transparent 22rem),
    linear-gradient(180deg, #090604 0%, #130907 43%, #070504 100%);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(214, 170, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 170, 87, 0.035) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.fog-canvas,
.grain,
.cursor-glow,
.page-wipe,
.scroll-progress {
  position: fixed;
  pointer-events: none;
}

.fog-canvas {
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.grain {
  inset: 0;
  z-index: 45;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 5px);
  background-size: 4px 4px, 9px 100%;
  animation: grainShift 1.1s steps(2, end) infinite;
}

.cursor-glow {
  top: 0;
  left: 0;
  z-index: 8;
  width: 20rem;
  height: 20rem;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 170, 87, 0.2), rgba(165, 22, 37, 0.12) 34%, transparent 68%);
  transition: opacity 160ms ease;
}

.page-wipe {
  inset: -4%;
  z-index: 80;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 238, 196, 0.28) 48%, rgba(38, 15, 10, 0.96) 50%, #050302 54% 100%),
    linear-gradient(120deg, #1b0d08, #050302);
  transform-origin: left center;
  animation: pageWipe 1.28s var(--ease) forwards;
}

.scroll-progress {
  top: 0;
  left: 0;
  z-index: 70;
  width: var(--scroll, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--blood-bright), var(--gold), var(--malachite));
  box-shadow: 0 0 22px rgba(214, 170, 87, 0.64);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2rem));
  padding: 1rem 0;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.35rem 0.85rem 0.35rem 0.38rem;
  border: 1px solid rgba(214, 170, 87, 0.34);
  border-radius: 999px;
  background: rgba(7, 5, 4, 0.7);
  box-shadow: 0 1.5rem 4rem var(--shadow), inset 0 0 0 1px rgba(255, 238, 196, 0.05);
  color: var(--bone);
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(214, 170, 87, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(165, 22, 37, 0.5), transparent 55%),
    #150806;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand-text {
  color: var(--parchment);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 0.2rem;
  padding: 0.28rem;
  border: 1px solid rgba(214, 170, 87, 0.25);
  border-radius: 999px;
  background: rgba(7, 5, 4, 0.64);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--parchment);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(214, 170, 87, 0.12);
  color: var(--bone);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(214, 170, 87, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  padding: 8rem 1rem 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 170, 87, 0.24);
}

.hero-image,
.hero-image img,
.hero-shade,
.sigil-field,
.mote-field {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -8;
  background: #060403;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.1) contrast(1.08) brightness(0.88);
  transform: scale(1.035);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

.hero-shade {
  z-index: -7;
  background:
    radial-gradient(circle at 74% 40%, transparent 0 18rem, rgba(7, 5, 4, 0.46) 38rem),
    linear-gradient(90deg, rgba(7, 5, 4, 0.92) 0%, rgba(7, 5, 4, 0.7) 36%, rgba(7, 5, 4, 0.18) 76%, rgba(7, 5, 4, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 5, 4, 0.08) 0%, rgba(7, 5, 4, 0.38) 60%, rgba(7, 5, 4, 0.96) 100%);
}

.sigil-field {
  z-index: -5;
  overflow: hidden;
  opacity: 0.72;
}

.sigil-field span {
  position: absolute;
  display: block;
  border: 1px solid rgba(214, 170, 87, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(214, 170, 87, 0.08), 0 0 4rem rgba(214, 170, 87, 0.1);
  animation: sigilSpin 30s linear infinite;
}

.sigil-field span::before,
.sigil-field span::after {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(214, 170, 87, 0.18);
  content: "";
  transform: rotate(45deg);
}

.sigil-field span::after {
  inset: 31%;
  border-color: rgba(165, 22, 37, 0.2);
  border-radius: 50%;
  transform: rotate(0);
}

.sigil-field span:nth-child(1) {
  top: 14%;
  left: -8rem;
  width: 26rem;
  height: 26rem;
}

.sigil-field span:nth-child(2) {
  right: 18%;
  bottom: 5%;
  width: 18rem;
  height: 18rem;
  animation-direction: reverse;
  animation-duration: 22s;
}

.sigil-field span:nth-child(3) {
  top: 12%;
  right: -5rem;
  width: 14rem;
  height: 14rem;
  opacity: 0.55;
  animation-duration: 18s;
}

.mote {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(214, 170, 87, 0.82);
  opacity: 0;
  animation: moteRise var(--duration, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) minmax(17rem, 25rem);
  gap: 2rem;
  align-items: end;
  width: min(var(--max), 100%);
  min-height: calc(92svh - 12.5rem);
  margin: 0 auto;
}

.page-cue {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  z-index: 4;
  display: inline-grid;
  gap: 0.38rem;
  min-width: 10rem;
  justify-items: center;
  color: rgba(239, 224, 192, 0.78);
  font-size: 0.74rem;
  font-weight: 880;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.page-cue::after {
  display: block;
  width: 1px;
  height: 2.4rem;
  content: "";
  background: linear-gradient(var(--gold), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
}

.book-register {
  align-self: end;
  padding: 1rem;
  border-left: 1px solid rgba(214, 170, 87, 0.4);
  color: var(--ash);
}

.book-register p {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.book-register ol {
  display: grid;
  gap: 0.68rem;
  margin: 0;
  padding: 0 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.hero-copy {
  max-width: 43rem;
  padding-bottom: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

h1 {
  max-width: 8.8ch;
  color: #fff4d2;
  font-size: 7.8rem;
  line-height: 0.84;
  text-shadow:
    0 0 2rem rgba(214, 170, 87, 0.22),
    0 2.4rem 5rem rgba(0, 0, 0, 0.82);
  animation: titleFlicker 7s ease-in-out infinite;
}

.hero-copy p:not(.eyebrow) {
  max-width: 39rem;
  margin: 1.45rem 0 0;
  color: var(--parchment);
  font-size: 1.16rem;
  line-height: 1.75;
  text-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 880;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.copy-button:focus-visible,
.relic-button:focus-visible {
  outline: 3px solid rgba(239, 224, 192, 0.72);
  outline-offset: 3px;
}

.button-primary {
  border-color: rgba(255, 232, 176, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 220, 139, 0.96), rgba(211, 109, 37, 0.92) 42%, rgba(110, 15, 27, 0.96));
  color: #170704;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-primary::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  content: "";
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.38) 45%, transparent 62% 100%);
  transform: translateX(-125%);
  animation: bladeGlint 4.8s ease-in-out infinite;
}

.button-ghost {
  border-color: rgba(214, 170, 87, 0.34);
  background: rgba(7, 5, 4, 0.52);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(255, 238, 196, 0.04);
  backdrop-filter: blur(14px);
}

.hero-book {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  width: min(100%, 23rem);
  height: 28rem;
  place-items: end center;
  perspective: 1200px;
  transform: translateY(1rem);
}

.book-cover {
  position: relative;
  width: 16rem;
  height: 22rem;
  border: 1px solid rgba(214, 170, 87, 0.46);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 38%, rgba(214, 170, 87, 0.18), transparent 3.8rem),
    linear-gradient(90deg, rgba(255, 238, 196, 0.06), transparent 18% 82%, rgba(0, 0, 0, 0.42)),
    linear-gradient(135deg, #260b0b, #070403 34%, #160b0a 100%);
  box-shadow:
    1rem 2rem 4rem rgba(0, 0, 0, 0.74),
    inset 0 0 0 0.5rem rgba(214, 170, 87, 0.06),
    inset 0 0 0 1px rgba(255, 238, 196, 0.08);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(-4deg);
  transform-style: preserve-3d;
  animation: coverFloat 7s ease-in-out infinite;
}

.book-cover::before,
.book-cover::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(214, 170, 87, 0.4);
}

.book-cover::before {
  inset: 1rem;
  border-radius: 5px;
  box-shadow: inset 0 0 1.5rem rgba(214, 170, 87, 0.07);
}

.book-cover::after {
  inset: 4.5rem 2.9rem;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 47%, rgba(214, 170, 87, 0.56) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(214, 170, 87, 0.56) 48% 52%, transparent 53%),
    radial-gradient(circle, transparent 0 38%, rgba(214, 170, 87, 0.5) 39% 41%, transparent 42%);
  animation: glyphPulse 3.8s ease-in-out infinite;
}

.book-clasp {
  position: absolute;
  top: 2.3rem;
  right: -0.4rem;
  width: 1rem;
  height: 4.8rem;
  border: 1px solid rgba(255, 231, 175, 0.6);
  border-radius: 3px;
  background: linear-gradient(#d6aa57, #5c3f18);
  box-shadow: 0 0 1.3rem rgba(214, 170, 87, 0.34);
}

.book-glyph {
  position: absolute;
  inset: 3.2rem;
  border: 1px solid rgba(214, 170, 87, 0.34);
  border-radius: 50%;
}

.book-title {
  position: absolute;
  right: 0;
  bottom: 2.6rem;
  left: 0;
  color: rgba(255, 238, 196, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  text-align: center;
  text-shadow: 0 0 1.4rem rgba(214, 170, 87, 0.42);
}

.book-pages {
  position: absolute;
  right: 1.6rem;
  bottom: 2.7rem;
  z-index: -1;
  width: 13rem;
  height: 19rem;
  border-radius: 0 7px 7px 0;
  background: repeating-linear-gradient(180deg, #bfa875 0 2px, #49371f 2px 4px);
  box-shadow: 1.4rem 1.5rem 2.6rem rgba(0, 0, 0, 0.58);
  transform: rotateZ(-1deg);
}

.book-pages span {
  position: absolute;
  right: -0.1rem;
  width: 52%;
  height: 1px;
  background: rgba(255, 238, 196, 0.42);
  animation: pageScratch 2.6s ease-in-out infinite;
}

.book-pages span:nth-child(1) {
  top: 22%;
}

.book-pages span:nth-child(2) {
  top: 47%;
  animation-delay: 0.4s;
}

.book-pages span:nth-child(3) {
  top: 72%;
  animation-delay: 0.8s;
}

.candle {
  position: absolute;
  right: 0.3rem;
  top: 1.3rem;
  width: 2rem;
  height: 7rem;
  border-radius: 0.2rem 0.2rem 0.3rem 0.3rem;
  background: linear-gradient(90deg, #403019, #d8c494 35%, #735a2f 100%);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

.candle::after {
  position: absolute;
  right: 0.2rem;
  bottom: -0.28rem;
  left: 0.2rem;
  height: 0.35rem;
  border-radius: 50%;
  content: "";
  background: rgba(214, 170, 87, 0.28);
}

.wick {
  position: absolute;
  top: -0.28rem;
  left: 50%;
  width: 2px;
  height: 0.55rem;
  background: #140805;
  transform: translateX(-50%);
}

.flame {
  position: absolute;
  top: -2.55rem;
  left: 50%;
  width: 1.15rem;
  height: 2.25rem;
  border-radius: 50% 50% 48% 48%;
  background:
    radial-gradient(circle at 50% 68%, #fff1b8 0 18%, #f6aa34 34%, rgba(165, 22, 37, 0.92) 72%, transparent 74%);
  filter: blur(0.2px);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: flameDance 780ms ease-in-out infinite alternate;
}

.section-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.omen {
  position: relative;
  padding: 5rem 0 6.2rem;
  background:
    linear-gradient(180deg, rgba(7, 5, 4, 0.96), rgba(17, 8, 7, 0.98)),
    radial-gradient(circle at 80% 12%, rgba(110, 15, 27, 0.16), transparent 24rem);
}

.spread-shell {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.section-kicker {
  position: sticky;
  top: 6.6rem;
  color: var(--ash);
}

.section-kicker span {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 1px solid rgba(214, 170, 87, 0.38);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  box-shadow: inset 0 0 2rem rgba(214, 170, 87, 0.08);
}

.section-kicker p {
  margin: 1rem 0 0;
  line-height: 1.55;
}

.open-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 33rem;
  border: 1px solid rgba(80, 53, 26, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(52, 31, 16, 0.8) 49.9% 50.1%, transparent 50.4%),
    #1a100b;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 238, 196, 0.04);
  overflow: hidden;
}

.open-spread::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.28) 62%),
    repeating-linear-gradient(0deg, rgba(255, 238, 196, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.spread-page {
  position: relative;
  padding: 3rem;
  background:
    radial-gradient(circle at 34% 18%, rgba(214, 170, 87, 0.1), transparent 18rem),
    linear-gradient(135deg, rgba(210, 185, 135, 0.12), rgba(58, 35, 19, 0.18)),
    #1d120c;
}

.spread-left {
  border-right: 1px solid rgba(0, 0, 0, 0.48);
}

.folio {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  color: rgba(205, 185, 138, 0.52);
  font-size: 0.76rem;
  font-weight: 840;
}

.spread-page h2,
.section-heading h2,
.relic-copy h2,
.letter-copy h2 {
  color: #fff1c8;
  font-size: 4.7rem;
  line-height: 0.94;
  text-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.5);
}

.spread-page p:not(.eyebrow),
.spread-page blockquote,
.relic-copy p:not(.eyebrow),
.chapter-card p,
.letter-panel p,
.relic-panel p {
  color: var(--parchment);
  font-size: 1.02rem;
  line-height: 1.75;
}

.spread-page p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.3rem 0 0;
}

.spread-page blockquote {
  margin-top: 4rem;
  color: #f4e2b5;
  font-size: 1.65rem;
  line-height: 1.42;
}

.chapters {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 78, 69, 0.2), transparent 28rem),
    linear-gradient(180deg, #100807, #070504 82%);
}

.chapters::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(214, 170, 87, 0.08) 28.2% 28.4%, transparent 28.6%),
    linear-gradient(65deg, transparent 0 62%, rgba(110, 15, 27, 0.12) 62.2% 62.5%, transparent 62.7%);
  animation: arcaneSweep 12s ease-in-out infinite alternate;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 12rem minmax(0, 52rem);
  gap: 2rem;
  align-items: end;
}

.chapter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid rgba(214, 170, 87, 0.24);
  background: rgba(214, 170, 87, 0.2);
}

.chapter-card {
  position: relative;
  min-height: 22rem;
  padding: 1.2rem;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(239, 224, 192, 0.08), transparent 45%),
    linear-gradient(180deg, #1b0f0c, #090504);
  transition: transform 240ms var(--ease), background 240ms ease, color 240ms ease;
}

.chapter-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 24%), rgba(214, 170, 87, 0.22), transparent 12rem),
    linear-gradient(180deg, transparent, rgba(110, 15, 27, 0.16));
  opacity: 0;
  transition: opacity 220ms ease;
}

.chapter-card:hover {
  z-index: 2;
  transform: translateY(-0.55rem);
}

.chapter-card:hover::before {
  opacity: 1;
}

.chapter-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(214, 170, 87, 0.38);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
}

.chapter-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 7.5rem;
  color: #fff0c8;
  font-size: 2rem;
  line-height: 1.02;
}

.chapter-card p {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
}

.relics {
  position: relative;
  padding: 6rem 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(110, 15, 27, 0.28), transparent 24rem),
    radial-gradient(circle at 24% 74%, rgba(15, 78, 69, 0.22), transparent 26rem),
    linear-gradient(180deg, #070504, #140907 55%, #080504);
}

.relic-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(19rem, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.relic-copy p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.3rem 0 0;
}

.relic-stage {
  position: relative;
  min-height: 34rem;
  display: grid;
  align-items: center;
}

.relic-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.relic-orbit span {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(214, 170, 87, 0.18);
  border-radius: 50%;
  animation: sigilSpin 18s linear infinite;
}

.relic-orbit span:nth-child(2) {
  width: 25rem;
  height: 25rem;
  border-color: rgba(110, 15, 27, 0.28);
  animation-direction: reverse;
  animation-duration: 26s;
}

.relic-orbit span:nth-child(3) {
  width: 14rem;
  height: 14rem;
  border-color: rgba(15, 78, 69, 0.34);
  animation-duration: 12s;
}

.relic-panel {
  position: relative;
  z-index: 1;
  min-height: 20rem;
  padding: 2rem;
  border: 1px solid rgba(214, 170, 87, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(239, 224, 192, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(26, 12, 9, 0.84), rgba(7, 5, 4, 0.9));
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 238, 196, 0.04);
  backdrop-filter: blur(15px);
  transition: transform 260ms var(--ease), border-color 260ms ease;
}

.relic-panel.is-changing {
  transform: scale(0.985) rotateX(2deg);
  border-color: rgba(214, 170, 87, 0.7);
}

.panel-label {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 880;
  text-transform: uppercase;
}

.relic-panel h3 {
  color: #fff0c8;
  font-size: 2.6rem;
  line-height: 1;
}

.relic-panel p:not(.panel-label) {
  margin: 1.1rem 0 0;
}

.relic-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
}

.relic-button,
.copy-button {
  min-height: 2.9rem;
  border: 1px solid rgba(214, 170, 87, 0.28);
  border-radius: 999px;
  background: rgba(7, 5, 4, 0.62);
  color: var(--parchment);
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.relic-button:hover,
.copy-button:hover,
.relic-button.is-active {
  border-color: rgba(214, 170, 87, 0.62);
  background: rgba(214, 170, 87, 0.13);
  color: var(--bone);
  transform: translateY(-1px);
}

.incantation {
  overflow: hidden;
  border-block: 1px solid rgba(214, 170, 87, 0.22);
  background:
    linear-gradient(90deg, rgba(110, 15, 27, 0.32), rgba(15, 78, 69, 0.22), rgba(143, 107, 45, 0.22)),
    #090504;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 1.2rem;
  padding: 1.1rem 0;
  color: rgba(239, 224, 192, 0.78);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.marquee span::after {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 1rem rgba(214, 170, 87, 0.7);
}

.letter {
  position: relative;
  padding: 6rem 0;
  background:
    linear-gradient(180deg, #090504, rgba(20, 7, 6, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(214, 170, 87, 0.11), transparent 28rem);
}

.letter-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 30rem);
  gap: 3rem;
  align-items: center;
}

.letter-panel {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid rgba(214, 170, 87, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(239, 224, 192, 0.09), rgba(239, 224, 192, 0.025)),
    rgba(14, 7, 5, 0.86);
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.wax-seal {
  position: absolute;
  top: -1.45rem;
  right: 1.2rem;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 46% 54% 48% 52%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 189, 155, 0.28), transparent 34%),
    linear-gradient(135deg, #a51625, #4b080d);
  color: #f9d898;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 238, 196, 0.16);
  animation: waxPulse 3.2s ease-in-out infinite;
}

.email-link {
  color: #fff0c8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(214, 170, 87, 0.58);
  text-underline-offset: 0.24rem;
}

.copy-button {
  justify-self: start;
  min-width: 8.8rem;
  padding: 0 1rem;
}

.copy-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--ash);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(1rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(214, 170, 87, 0.2);
  background: #050302;
  color: var(--ash);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

@keyframes pageWipe {
  0% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(115%) skewX(-9deg);
    visibility: hidden;
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(1px, -1px, 0);
  }

  100% {
    transform: translate3d(-1px, 1px, 0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.035) translate3d(-0.4%, -0.2%, 0);
  }

  to {
    transform: scale(1.085) translate3d(0.7%, 0.3%, 0);
  }
}

@keyframes sigilSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes moteRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 12vh, 0) scale(0.7);
  }

  16%,
  70% {
    opacity: var(--opacity, 0.6);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--travel-x, 1rem), -18vh, 0) scale(1.16);
  }
}

@keyframes titleFlicker {
  0%,
  8%,
  11%,
  100% {
    text-shadow:
      0 0 2rem rgba(214, 170, 87, 0.22),
      0 2.4rem 5rem rgba(0, 0, 0, 0.82);
  }

  9%,
  10% {
    text-shadow:
      0 0 2.7rem rgba(214, 170, 87, 0.42),
      0 0 0.5rem rgba(165, 22, 37, 0.35),
      0 2.4rem 5rem rgba(0, 0, 0, 0.82);
  }
}

@keyframes bladeGlint {
  0%,
  54% {
    transform: translateX(-125%);
  }

  78%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes coverFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -0.45rem;
  }
}

@keyframes glyphPulse {
  0%,
  100% {
    box-shadow: 0 0 1.1rem rgba(214, 170, 87, 0.14);
  }

  50% {
    box-shadow: 0 0 2.4rem rgba(214, 170, 87, 0.36);
  }
}

@keyframes pageScratch {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(0);
  }

  50% {
    opacity: 0.8;
    transform: translateX(-0.4rem);
  }
}

@keyframes flameDance {
  from {
    border-radius: 56% 44% 50% 50%;
    filter: blur(0.1px);
    transform: translateX(-50%) rotate(-4deg) scaleY(0.94);
  }

  to {
    border-radius: 42% 58% 48% 52%;
    filter: blur(0.45px);
    transform: translateX(-50%) rotate(5deg) scaleY(1.08);
  }
}

@keyframes arcaneSweep {
  from {
    opacity: 0.32;
    transform: translateX(-2rem);
  }

  to {
    opacity: 0.78;
    transform: translateX(2rem);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes waxPulse {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }

  50% {
    transform: rotate(2deg) scale(1.04);
  }
}

@keyframes cueDrop {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(-0.2rem);
  }

  50% {
    opacity: 1;
    transform: translateY(0.28rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.has-pointer .cursor-glow {
    opacity: 1;
  }
}

@media (max-width: 1060px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  }

  .book-register {
    display: none;
  }

  h1 {
    font-size: 6rem;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand-text {
    display: none;
  }

  .site-header {
    width: calc(100% - 1rem);
    padding-top: 0.7rem;
  }

  .site-nav a {
    min-height: 2.3rem;
    padding: 0 0.7rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 91svh;
    padding-top: 7.2rem;
  }

  .hero-image img {
    object-position: 61% center;
  }

  .hero-shell {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    padding-top: 28svh;
  }

  .hero-book {
    display: none;
  }

  h1 {
    font-size: 4.6rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .spread-shell,
  .section-heading,
  .relic-shell,
  .letter-shell {
    grid-template-columns: 1fr;
  }

  .section-kicker {
    position: static;
  }

  .open-spread {
    grid-template-columns: 1fr;
  }

  .spread-left {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.48);
  }

  .spread-page,
  .relic-panel {
    padding: 1.35rem;
  }

  .spread-page h2,
  .section-heading h2,
  .relic-copy h2,
  .letter-copy h2 {
    font-size: 3.3rem;
  }

  .spread-page blockquote {
    margin-top: 2.4rem;
    font-size: 1.35rem;
  }

  .relic-stage {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) {
    display: none;
  }

  h1 {
    font-size: 3.65rem;
  }

  .hero-copy {
    padding-top: 24svh;
  }

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

  .chapter-card {
    min-height: 15rem;
  }

  .chapter-card h3 {
    margin-top: 3.5rem;
  }

  .relic-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-link {
    font-size: 1.28rem;
  }

  .site-footer {
    display: grid;
  }
}

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

  .fog-canvas,
  .mote-field,
  .page-wipe {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
