:root {
  --ink: #120d08;
  --ink-2: #1b130c;
  --ink-3: #2a1b10;
  --gold: #d7a85a;
  --gold-bright: #f4cf83;
  --copper: #9f6136;
  --parchment: #e8d5ae;
  --parchment-light: #f6e8c8;
  --parchment-dark: #c9aa77;
  --red: #5f2017;
  --muted: #c8b99e;
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif-body: "Cormorant Garamond", Georgia, serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 71, 33, .16), transparent 32rem),
    linear-gradient(180deg, #0b0806 0%, #16100b 45%, #0c0907 100%);
  color: #f5ead4;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .05;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.5) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--gold); 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;
}

/* Opening cover — cinematic zoom into Avalon */
.book-gate {
  --cover-w: min(92vw, calc(92vh * 0.6666667));
  --cover-h: min(92vh, calc(92vw * 1.5));
  --zoom-final: 3.08;
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(145, 88, 29, .18), transparent 34rem),
    #080604;
  opacity: 1;
  visibility: visible;
  transition: opacity .82s cubic-bezier(.22,.61,.36,1) 1.82s, visibility .82s linear 1.82s;
}
.gate-shadow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, transparent 0 18%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.9) 94%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28));
  z-index: 5;
  pointer-events: none;
  transition: opacity 1.4s ease .7s;
}
.gate-cover-wrap {
  position: relative;
  width: var(--cover-w);
  height: var(--cover-h);
  max-height: 94vh;
  z-index: 4;
  transform-origin: 51.5% 67%;
  will-change: transform, filter;
  filter: drop-shadow(0 34px 48px rgba(0,0,0,.74));
}
.gate-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(247, 206, 123, .18);
  transform: translateZ(0);
  filter: brightness(.94) saturate(1.03) contrast(1.03);
  backface-visibility: hidden;
}
.gate-cover__glow {
  position: absolute;
  left: 18%;
  right: 14%;
  top: 32%;
  bottom: 7%;
  border-radius: 45% 45% 22% 22%;
  background: radial-gradient(circle at 58% 39%, rgba(255, 208, 117, .22), transparent 42%);
  mix-blend-mode: screen;
  opacity: .1;
  pointer-events: none;
}
.book-gate.is-open .gate-cover-wrap {
  animation: gateZoomIntoAvalon 2.55s cubic-bezier(.18,.78,.12,1) forwards;
}
.book-gate.is-open .gate-cover {
  animation: gateCoverBloom 2.55s ease forwards;
}
.book-gate.is-open .gate-cover__glow {
  animation: gateGlow 2.25s ease forwards;
}
.book-gate.is-open .gate-shadow { opacity: .28; }
.book-gate.is-open { opacity: 0; visibility: hidden; }

@keyframes gateZoomIntoAvalon {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  18% { transform: scale(1.025) translate3d(0, 0, 0); }
  100% { transform: scale(var(--zoom-final)) translate3d(0, 0, 0); }
}
@keyframes gateCoverBloom {
  0% { filter: brightness(.94) saturate(1.03) contrast(1.03); }
  58% { filter: brightness(1.04) saturate(1.08) contrast(1.02); }
  100% { filter: brightness(1.12) saturate(1.08) contrast(.98) blur(.35px); }
}
@keyframes gateGlow {
  0% { opacity: .1; transform: scale(.95); }
  55% { opacity: .36; }
  100% { opacity: .58; transform: scale(1.28); }
}

/* Dust / magic */
.motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}
.mote {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(244, 207, 131, .8);
  box-shadow: 0 0 10px rgba(244, 207, 131, .95);
  animation: drift var(--dur) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: .8; }
  72% { opacity: .42; }
  100% { transform: translate3d(var(--x), -110vh, 0) scale(1.25); opacity: 0; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1500;
  background: rgba(0,0,0,.4);
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--gold-bright), var(--copper));
  box-shadow: 0 0 12px rgba(244, 207, 131, .58);
}

/* Navigation */
.topbar {
  position: fixed;
  z-index: 1200;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .8rem .65rem 1.05rem;
  background: linear-gradient(180deg, rgba(30,20,12,.9), rgba(14,10,7,.92));
  border: 1px solid rgba(215,168,90,.34);
  border-radius: 8px;
  box-shadow: 0 15px 45px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  transition: top .25s ease, background .25s ease, border-color .25s ease;
}
.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: #171009;
  border: 1px solid rgba(215,168,90,.45);
}
.topbar::before { left: -6px; }
.topbar::after { right: -6px; }
.topbar.is-scrolled { top: 8px; background: rgba(12,8,5,.96); border-color: rgba(215,168,90,.48); }
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 150px;
}
.brand__logo {
  width: clamp(132px, 13vw, 178px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,.55));
  transition: transform .22s ease, filter .22s ease;
}
.brand:hover .brand__logo {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 5px 12px rgba(215,168,90,.22));
}
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .55rem .74rem;
  color: #decfb5;
  font-family: var(--serif-display);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav a:hover { color: var(--gold-bright); background: rgba(215,168,90,.08); transform: translateY(-1px); }
.nav .nav__menu {
  color: #1a1008;
  background: linear-gradient(180deg, #efc77d, #bd7e3d);
  border: 1px solid #f8daa1;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.2);
}
.nav .nav__menu:hover { color: #110a06; background: linear-gradient(180deg, #ffd994, #cc8d47); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -7% 0 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center;
  z-index: -4;
  will-change: transform;
  transform: scale(1.04);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8,5,3,.76), rgba(8,5,3,.15) 48%, rgba(8,5,3,.64)),
    linear-gradient(180deg, rgba(8,5,3,.43) 0 16%, rgba(8,5,3,.18) 55%, #0c0907 100%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  box-shadow: inset 0 0 180px rgba(0,0,0,.7);
}
.hero__content {
  width: min(100% - 32px, 900px);
  margin-top: 3rem;
  text-align: center;
  text-shadow: 0 3px 22px rgba(0,0,0,.9);
}
.eyebrow,
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.3rem;
  color: var(--gold-bright);
  font-family: var(--serif-display);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.eyebrow::before,
.eyebrow::after,
.chapter-kicker::before,
.chapter-kicker::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}
.hero h1 {
  margin: .45rem 0 .55rem;
  color: #fff5de;
  font-family: var(--serif-display);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: .01em;
}
.hero__lead {
  max-width: 640px;
  margin: 0 auto;
  color: #e6d8bf;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(215,168,90,.55);
  border-radius: 5px;
  font-family: var(--serif-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  transform: translateX(-130%) skewX(-25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(130%) skewX(-25deg); }
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  color: #1a0f07;
  background: linear-gradient(180deg, #f0cb82, #b67438);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 8px 24px rgba(87,45,14,.35);
}
.btn--gold:hover { box-shadow: inset 0 1px rgba(255,255,255,.55), 0 12px 30px rgba(170,104,43,.3); }
.btn--ghost { color: #f5e6c7; background: rgba(12,8,5,.62); backdrop-filter: blur(5px); }
.btn--ghost:hover { border-color: var(--gold-bright); }
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: .45rem;
  color: #d6c4a5;
  font-family: var(--serif-display);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(.5);transform-origin:top;opacity:.35} 50%{transform:scaleY(1);opacity:1} }

/* Chapters */
.chapter { position: relative; padding: 7rem 1rem; overflow: hidden; }
.parchment {
  color: #2a1b10;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.32), transparent 24rem),
    radial-gradient(circle at 82% 65%, rgba(117,71,29,.12), transparent 20rem),
    repeating-linear-gradient(4deg, rgba(97,66,34,.025) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #e8d4aa, #f3e3c1 45%, #dcc498);
}
.parchment::before,
.parchment::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  opacity: .34;
  background: linear-gradient(90deg, #2e1b0f, #6a4423 8%, #29180d 52%, #6a4423 90%, #2e1b0f);
  clip-path: polygon(0 35%, 4% 52%, 8% 32%, 14% 60%, 22% 36%, 32% 58%, 42% 38%, 54% 62%, 66% 35%, 78% 58%, 88% 33%, 95% 55%, 100% 40%, 100% 100%, 0 100%);
}
.parchment::before { top: 0; transform: rotate(180deg); }
.parchment::after { bottom: 0; }
.chapter--dark {
  color: #f4e8cf;
  background:
    radial-gradient(circle at 50% 0, rgba(114,65,28,.25), transparent 35rem),
    linear-gradient(180deg, #15100c, #0b0806);
}
.chapter__ornament {
  position: absolute;
  inset: 1rem auto auto 50%;
  transform: translateX(-50%);
  color: #6f421f;
  font-size: 1.2rem;
}
.section-head {
  width: min(100%, 760px);
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .chapter-kicker { margin-top: 0; color: #855326; }
.section-head--light .chapter-kicker,
.chapter--dark .chapter-kicker { color: var(--gold-bright); }
.section-head h2,
.cinematic-banner h2,
.feast h2,
.visit h2 {
  margin: .45rem 0 .65rem;
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
}
.section-head p { margin: 0 auto; max-width: 690px; font-size: 1.25rem; opacity: .84; }

.portrait-grid,
.square-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.photo-card,
.square-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #130e0a;
  border: 1px solid rgba(118,73,34,.62);
  box-shadow: 0 20px 45px rgba(45,25,10,.2);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: zoom-in;
}
.photo-card { aspect-ratio: .74; }
.square-card { aspect-ratio: 1; }
.photo-card::before,
.square-card::before,
.wide-frame::before,
.map-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(247, 213, 151, .45);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.2);
}
.photo-card img,
.square-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.photo-card:hover img,
.square-card:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.02); }
.photo-card figcaption,
.square-card figcaption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.3rem 1rem 1rem;
  color: #fff4db;
  text-align: center;
  text-shadow: 0 2px 9px #000;
  background: linear-gradient(transparent, rgba(7,5,3,.85));
}
.photo-card figcaption strong,
.square-card figcaption {
  font-family: var(--serif-display);
  font-size: .95rem;
  letter-spacing: .04em;
}
.photo-card figcaption span { display: block; margin-top: .12rem; font-size: .95rem; opacity: .82; }
.square-card figcaption { text-transform: uppercase; font-size: .75rem; letter-spacing: .09em; }

/* cinematic strip */
.cinematic-banner,
.feast {
  position: relative;
  min-height: 62svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.cinematic-banner img,
.feast > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  transition: transform 1.6s cubic-bezier(.2,.8,.2,1);
}
.cinematic-banner:hover img,
.feast:hover > img { transform: scale(1.025); }
.cinematic-banner__shade,
.feast__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(8,5,3,.86), rgba(8,5,3,.15) 48%, rgba(8,5,3,.66));
  box-shadow: inset 0 0 140px rgba(0,0,0,.7);
}
.cinematic-banner__copy,
.feast__content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}
.cinematic-banner__copy { text-align: left; }
.cinematic-banner__copy h2,
.feast__content h2 { color: #fff2d7; max-width: 760px; text-shadow: 0 3px 20px rgba(0,0,0,.8); }
.cinematic-banner__copy p,
.feast__content p { max-width: 600px; color: #decfb4; font-size: 1.3rem; text-shadow: 0 2px 10px #000; }

.center-action { width: min(100%, var(--max)); margin: 2.3rem auto 0; text-align: center; }

.wide-frame,
.map-frame,
.visit__visual {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(118,73,34,.6);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.wide-frame img,
.map-frame img,
.visit__visual img { width: 100%; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.wide-frame:hover img,
.map-frame:hover img { transform: scale(1.018); }
.wide-frame__label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  padding: .45rem .75rem;
  background: rgba(16,10,6,.78);
  color: #f2dba8;
  border: 1px solid rgba(215,168,90,.45);
  border-radius: 4px;
  font-family: var(--serif-display);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.quote-rune {
  width: min(100% - 32px, 800px);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  color: #6b421f;
  text-align: center;
}
.quote-rune blockquote { margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); font-style: italic; }

/* Lore spellbook */
.lore {
  position: relative;
  padding: 7rem 1rem 8rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(103,68,28,.28), transparent 30rem),
    linear-gradient(180deg, #0b0907, #171009 45%, #090705);
}
.lore__mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,232,189,.12), transparent 32%),
    radial-gradient(ellipse at 72% 62%, rgba(255,232,189,.08), transparent 26%);
  filter: blur(20px);
  animation: mist 9s ease-in-out infinite alternate;
}
@keyframes mist { to { transform: translate3d(3%, -2%, 0) scale(1.08); } }
.section-head--light { color: #f4e8d1; }
.spellbook {
  position: relative;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 28px 30px 34px;
  background:
    linear-gradient(90deg, rgba(73,38,16,.96), rgba(31,18,10,.98) 6%, rgba(50,27,12,.97) 49%, rgba(26,15,9,.98) 52%, rgba(63,34,15,.97) 94%, rgba(79,42,17,.96)),
    #2a170c;
  border: 2px solid #9c632e;
  border-radius: 18px 18px 26px 26px;
  box-shadow: 0 35px 90px rgba(0,0,0,.65), inset 0 0 40px rgba(0,0,0,.75), inset 0 1px rgba(255,255,255,.12);
}
.spellbook::before,
.spellbook::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 9px;
  border: 1px solid rgba(215,168,90,.36);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}
.spellbook::before { left: 12px; }
.spellbook::after { right: 12px; }
.spellbook__spine {
  position: absolute;
  top: 25px;
  bottom: 90px;
  left: 50%;
  width: 1px;
  z-index: 10;
  background: linear-gradient(transparent, rgba(255,232,196,.28) 8%, rgba(0,0,0,.65) 50%, rgba(255,232,196,.22) 92%, transparent);
  box-shadow: 0 0 14px rgba(0,0,0,.75);
  pointer-events: none;
  opacity: .5;
}
.spellbook__viewport {
  position: relative;
  aspect-ratio: .93;
  overflow: hidden;
  border-radius: 6px;
  background: #d8bc8d;
  border: 1px solid #7b4d24;
  box-shadow: inset 0 0 35px rgba(65,36,14,.35), 0 7px 24px rgba(0,0,0,.45);
  perspective: 1400px;
}
.lore-page {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: perspective(1400px) rotateY(12deg) translateX(7%) scale(.985);
  transform-origin: left center;
  transition: opacity .55s ease, transform .78s cubic-bezier(.2,.78,.18,1);
  pointer-events: none;
}
.lore-page.is-active {
  opacity: 1;
  transform: perspective(1400px) rotateY(0) translateX(0) scale(1);
  pointer-events: auto;
}
.lore-page.is-leaving {
  opacity: 0;
  transform: perspective(1400px) rotateY(-20deg) translateX(-9%) scale(.98);
}
.lore-page img { width: 100%; height: 100%; object-fit: contain; background: #d8bc8d; }
.spellbook__controls {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  color: #e7d4b4;
  text-align: center;
}
.spellbook__controls button {
  width: 48px;
  height: 44px;
  color: var(--gold-bright);
  background: #171009;
  border: 1px solid rgba(215,168,90,.45);
  border-radius: 5px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.spellbook__controls button:hover { transform: translateY(-2px); background: #23170e; border-color: var(--gold-bright); }
.spellbook__label { display: block; color: #a89171; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.spellbook__controls strong { font-family: var(--serif-display); font-size: .95rem; letter-spacing: .04em; }
.spellbook__dots { display: flex; justify-content: center; gap: .55rem; margin-top: .85rem; }
.spellbook__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(215,168,90,.55);
  background: transparent;
  cursor: pointer;
}
.spellbook__dots button.is-active { background: var(--gold); box-shadow: 0 0 10px rgba(215,168,90,.55); }

/* map */
.map-frame { background: #d5bd94; }
.map-frame__glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.13) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: mapGlint 8s ease-in-out infinite;
}
@keyframes mapGlint { 0%,68%{transform:translateX(-120%)} 82%,100%{transform:translateX(120%)} }

/* feast */
.feast { min-height: 72svh; }
.feast__shade { background: linear-gradient(90deg, rgba(8,5,3,.8), rgba(8,5,3,.3) 50%, rgba(8,5,3,.72)); }
.feast__content { text-align: left; }
.feast__content .btn { margin-top: .8rem; }

/* visit */
.visit {
  position: relative;
  padding: 6rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 2.2rem;
  align-items: center;
  width: min(100%, 1320px);
  margin: 0 auto;
}
.visit::before {
  content: "";
  position: fixed;
  inset: auto;
}
.visit__visual { width: 100%; margin: 0; }
.visit__content { color: #eadbc1; }
.visit__content .chapter-kicker { color: var(--gold-bright); }
.visit__content h2 { font-size: clamp(2rem, 4vw, 3.6rem); color: #fff0d1; }
.visit__content p { font-size: 1.16rem; color: #cdbd9f; }
.visit__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0; }
.visit__chips span {
  padding: .42rem .68rem;
  border: 1px solid rgba(215,168,90,.3);
  border-radius: 999px;
  color: #e6d4b5;
  background: rgba(215,168,90,.055);
  font-size: .9rem;
}
.visit__note { font-size: .88rem !important; opacity: .7; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2.2rem max(1rem, calc((100% - var(--max))/2));
  border-top: 1px solid rgba(215,168,90,.18);
  background: #080604;
  color: #a9987d;
}
.footer__brand { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; font-family: var(--serif-display); color: var(--gold); }
.footer__sigil { grid-row: 1 / 3; }
.footer__brand strong { letter-spacing: .13em; }
.footer__brand small { font-family: var(--serif-body); color: #a9987d; }
.footer p { margin: 0; font-style: italic; }
.footer > a { color: var(--gold); font-family: var(--serif-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.floating-menu {
  position: fixed;
  z-index: 1150;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .2rem;
  color: #1a0f07;
  background: radial-gradient(circle at 35% 30%, #f8daa1, #b67536 72%);
  border: 2px solid #f3cd86;
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 5px rgba(18,11,6,.55), 0 0 0 6px rgba(215,168,90,.3);
  font-family: var(--serif-display);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-menu:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 17px 40px rgba(0,0,0,.52), 0 0 0 5px rgba(18,11,6,.55), 0 0 18px rgba(244,207,131,.38); }
.floating-menu i { font-style: normal; }

/* lightbox */
.lightbox {
  width: min(96vw, 1080px);
  max-height: 94svh;
  padding: 0;
  border: 1px solid rgba(215,168,90,.58);
  border-radius: 8px;
  background: #0b0806;
  box-shadow: 0 30px 90px rgba(0,0,0,.78);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4,3,2,.88); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 90svh; object-fit: contain; }
.lightbox__close {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff1d3;
  background: rgba(8,5,3,.78);
  border: 1px solid rgba(215,168,90,.5);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

/* reveal system */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.99);
  transition: opacity .78s ease, transform .9s cubic-bezier(.16,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 960px) {
  body { font-size: 17px; }
  .topbar { width: calc(100% - 20px); }
  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    place-content: center;
    width: 42px;
    height: 38px;
    border: 1px solid rgba(215,168,90,.35);
    border-radius: 4px;
    background: rgba(215,168,90,.06);
    cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1px; background: var(--gold-bright); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(310px, calc(100vw - 20px));
    display: grid;
    padding: .65rem;
    background: rgba(12,8,5,.98);
    border: 1px solid rgba(215,168,90,.34);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(0,0,0,.46);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .22s ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a { padding: .8rem; }
  .brand__logo { width: 150px; height: 44px; }
  .portrait-grid, .square-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait-grid > :last-child, .square-grid > :last-child { grid-column: 1 / -1; width: calc(50% - .675rem); justify-self: center; }
  .visit { grid-template-columns: 1fr; }
  .visit__content { width: min(100%, 760px); margin-inline: auto; text-align: center; }
  .visit__chips { justify-content: center; }
}

@media (max-width: 680px) {
  .book-gate { --cover-w: min(94vw, calc(94vh * 0.6666667)); --cover-h: min(94vh, calc(94vw * 1.5)); --zoom-final: 1.72; }
  .chapter { padding: 5rem .8rem; }
  .hero__content { margin-top: 4rem; }
  .brand__logo { width: 132px; height: 40px; }
  .eyebrow::before, .eyebrow::after, .chapter-kicker::before, .chapter-kicker::after { width: 18px; }
  .portrait-grid, .square-grid { grid-template-columns: 1fr; gap: 1rem; }
  .portrait-grid > :last-child, .square-grid > :last-child { grid-column: auto; width: 100%; }
  .portrait-grid--coffee { max-width: 430px; }
  .square-grid { max-width: 500px; }
  .photo-card { aspect-ratio: .82; }
  .cinematic-banner, .feast { min-height: 72svh; }
  .cinematic-banner img { object-position: 55% center; }
  .cinematic-banner__copy, .feast__content { text-align: center; }
  .cinematic-banner__copy p, .feast__content p { margin-inline: auto; }
  .spellbook { padding: 18px 16px 22px; border-radius: 12px 12px 18px 18px; }
  .spellbook__spine { opacity: .22; }
  .spellbook__controls { grid-template-columns: 44px 1fr 44px; }
  .spellbook__controls button { width: 42px; height: 40px; }
  .quote-rune { grid-template-columns: 1fr; gap: .45rem; }
  .quote-rune > span { display: none; }
  .visit { padding: 4.5rem .8rem; }
  .visit__visual { cursor: default; }
  .footer { flex-direction: column; text-align: center; }
  .floating-menu { width: 72px; height: 72px; right: 12px; bottom: 12px; font-size: .57rem; }
}

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