/* Variant 1 — Cinematic */
:root {
  --ink: #070503;
  --ink-2: #0d0906;
  --ink-3: #15100a;
  --gold: #c9a24b;
  --gold-warm: #d9b05a;
  --gold-soft: #8a6a30;
  --amber: #e8b655;
  --amber-glow: rgba(232,182,85,0.5);
  --paper: #f2ead9;
  --paper-mute: #c8bfa8;
  --mute: #8a7f66;
  --edge: rgba(201,162,75,0.22);
  --edge-hot: rgba(201,162,75,0.6);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ink); color: var(--paper);
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  background-image:
    radial-gradient(ellipse at 20% 8%, rgba(201,162,75,0.06), transparent 55%),
    radial-gradient(ellipse at 80% 92%, rgba(201,162,75,0.05), transparent 60%);
}
img { display: block; max-width: 100%; }

/* Typography */
.display, h1, h2, h3 {
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-weight: 500; letter-spacing: 0.03em;
  color: var(--paper);
}
h1 { font-size: clamp(56px, 8vw, 120px); line-height: 1.02; margin: 0; }
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; margin: 0 0 24px; }
h3 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; letter-spacing: 0.05em; }
.serif-it { font-family: "Cormorant Garamond", serif; font-style: italic; }
.overline {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500;
}
.ui-label {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mute);
  font-weight: 500;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,5,3,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--edge);
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: "Cinzel", serif; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 13px; color: var(--paper);
  text-decoration: none;
}
.nav-brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--paper-mute);
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold); font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  background: transparent; cursor: pointer;
  transition: all 0.3s; font-weight: 500;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { padding: 16px 24px; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/covers/book-01.png');
  background-size: cover; background-position: center 30%;
  filter: brightness(0.55) saturate(1.1);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(7,5,3,0.4) 55%, var(--ink) 100%),
    linear-gradient(180deg, rgba(7,5,3,0.4) 0%, transparent 30%, transparent 60%, var(--ink) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
}
.hero-copy .overline { margin-bottom: 32px; display: inline-block; }
.hero-copy h1 {
  font-family: "Cinzel", serif;
  margin-bottom: 28px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.hero-copy h1 .gold { color: var(--amber); display: block; font-weight: 600; }
.hero-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: clamp(20px, 2.2vw, 26px);
  color: var(--paper-mute); max-width: 540px;
  line-height: 1.45; margin-bottom: 40px;
}
@media (max-width: 820px) { .hero-tagline { margin-left: auto; margin-right: auto; } }
.hero-meta {
  display: flex; gap: 32px; margin-bottom: 40px;
  font-family: "Inter", sans-serif; font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--paper-mute); font-weight: 500;
}
@media (max-width: 820px) { .hero-meta { justify-content: center; flex-wrap: wrap; } }
.hero-meta span { display: flex; align-items: center; gap: 10px; }
.hero-meta .dot {
  width: 4px; height: 4px; background: var(--gold);
  transform: rotate(45deg);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero-ctas { justify-content: center; } }
.btn-primary, .btn-ghost {
  padding: 16px 32px;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s; font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid;
}
.btn-primary {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 32px var(--amber-glow);
}
.btn-ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(242,234,217,0.3);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-cover-frame {
  position: relative; justify-self: end;
}
@media (max-width: 820px) { .hero-cover-frame { justify-self: center; } }
.hero-cover {
  width: 320px; max-width: 90vw;
  aspect-ratio: 2/3;
  background-size: cover; background-position: center;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(201,162,75,0.4),
    0 0 60px rgba(201,162,75,0.15);
  position: relative;
}
/* Neutralized — .cover-frame::before handles framing now */
.hero-cover-frame::before { content: none; }

/* ==============================================
   Shared cover ornament frame
   Applied to: single-hero cover + twin pillar covers
   ============================================== */
.cover-frame {
  position: relative;
  padding: 18px;
}
.cover-frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201,162,75,0.18);
  pointer-events: none;
}
.cover-frame::after {
  content: ""; position: absolute; inset: 10px;
  background:
    linear-gradient(var(--gold-soft),var(--gold-soft)) left top / 14px 1px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) left top / 1px 14px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) right top / 14px 1px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) right top / 1px 14px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--gold-soft),var(--gold-soft)) right bottom / 1px 14px no-repeat;
  pointer-events: none;
}
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--gold)); animation: scrollPulse 2.4s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Sections */
section {
  padding: 120px 48px;
  position: relative;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header .overline { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 20px;
  color: var(--paper-mute); max-width: 640px;
  margin: 0 auto; line-height: 1.6;
}
.ornament {
  width: 96px; height: 20px; margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-soft);
}
.ornament .diamond {
  width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}

/* Featured book section */
.featured {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,162,75,0.08), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.featured-grid {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 64px;
  align-items: center;
}
@media (max-width: 820px) { .featured-grid { grid-template-columns: 1fr; gap: 48px; } }
.featured-cover {
  aspect-ratio: 2/3;
  background-image: url('assets/covers/book-01.png');
  background-size: cover; background-position: center;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 0 1px var(--edge-hot),
    0 0 80px rgba(201,162,75,0.25);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
.featured-cover:hover { transform: scale(1.02); }
.featured-copy .overline { margin-bottom: 20px; display: block; }
.featured-copy h2 {
  font-family: "Cinzel", serif; font-weight: 600;
  margin-bottom: 16px;
}
.featured-copy h2 .small {
  display: block; font-size: 14px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 16px; font-weight: 400;
}
.featured-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 24px;
  color: var(--paper-mute); line-height: 1.45;
  margin: 24px 0 32px;
  border-left: 1px solid var(--gold-soft);
  padding-left: 24px;
}
.blurb {
  font-size: 17px; line-height: 1.7; color: var(--paper);
}
.blurb p { margin: 0 0 1em; }
.blurb p:last-child { margin-bottom: 0; }
.blurb + .blurb { margin-top: 16px; }

.tropes {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0;
}
.trope {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  padding: 8px 14px;
  border: 1px solid var(--edge);
  background: rgba(201,162,75,0.04);
  font-weight: 500;
}

.excerpt-block {
  margin: 40px -4px 8px;
}
.excerpt-divider {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 0.4em;
  text-transform: uppercase;
}
.excerpt-divider::before,
.excerpt-divider::after {
  content: ""; flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}
.excerpt-divider span { flex: 0 0 auto; }
.excerpt-body {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 18px; line-height: 1.75; color: var(--paper);
  max-width: 60ch;
}
.excerpt-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.excerpt-body p:first-of-type::first-letter {
  font-family: "Cinzel", serif;
  font-size: 3.8em;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--gold);
  font-weight: 500;
}
.excerpt-body em { color: var(--paper); font-style: italic; }
.excerpt-heading {
  font-family: "Cinzel", serif;
  font-size: 13px; letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  text-align: center;
  font-weight: 500;
}
.excerpt-aside {
  text-align: center;
  font-size: 13px;
  color: var(--paper-mute);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
}

.meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 32px 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
@media (max-width: 640px) { .meta-grid { grid-template-columns: repeat(2, 1fr); } }
.meta-item .ui-label { margin-bottom: 8px; display: block; }
.meta-item .v {
  font-family: "Cinzel", serif; font-size: 15px;
  color: var(--paper); letter-spacing: 0.04em;
}

/* Triggers */
details.warnings {
  margin-top: 24px;
  border-top: 1px solid var(--edge);
  padding-top: 20px;
}
details.warnings summary {
  cursor: pointer; list-style: none;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
details.warnings summary::-webkit-details-marker { display: none; }
details.warnings summary::after {
  content: "+"; margin-left: auto;
  font-size: 16px; transition: transform 0.3s;
}
details.warnings[open] summary::after { transform: rotate(45deg); }
details.warnings ul {
  margin-top: 16px; padding-left: 20px;
  font-family: "EB Garamond", serif; font-size: 15px;
  color: var(--paper-mute); line-height: 1.7;
}
details.warnings li { margin-bottom: 6px; }

/* Books grid */
.books {
  background: var(--ink);
}
.books-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .books-grid { grid-template-columns: repeat(2, 1fr); } }

.book-card {
  cursor: pointer;
  background: transparent;
  border: none; padding: 0;
  text-align: left;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  font-family: inherit;
}
.book-card:hover { transform: translateY(-6px); }
.book-cover-wrap {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.8), 0 0 0 1px var(--edge);
  transition: box-shadow 0.4s;
}
.book-card:hover .book-cover-wrap {
  box-shadow: 0 24px 60px -15px rgba(0,0,0,0.9), 0 0 0 1px var(--edge-hot), 0 0 30px rgba(201,162,75,0.15);
}
.book-cover-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: filter 0.5s, transform 0.8s;
}
.book-card:hover .book-cover-img { transform: scale(1.04); }

.book-card.locked .book-cover-img { filter: brightness(0.35) saturate(0.5); }
.book-card.veiled .book-cover-img {
  filter: brightness(0) saturate(0);
  opacity: 0;
}
.book-card.veiled .book-cover-wrap {
  background:
    radial-gradient(ellipse at center, #1a120a 0%, #0a0604 80%),
    var(--ink);
}

.lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(7,5,3,0.3) 0%, rgba(7,5,3,0.7) 100%);
}
.lock-seal {
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: "Cinzel", serif; font-size: 11px;
  letter-spacing: 0.15em; color: var(--gold);
  font-weight: 600;
  background: rgba(7,5,3,0.6);
  backdrop-filter: blur(4px);
}
.lock-badge {
  font-family: "Inter", sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--edge-hot);
  background: rgba(7,5,3,0.7);
  font-weight: 500;
  text-align: center;
}
.veil-stamp {
  text-align: center;
  color: var(--gold);
}
.veil-stamp .rune {
  font-family: "Cinzel", serif;
  font-size: 40px; letter-spacing: 0.1em;
  opacity: 0.5;
}
.veil-stamp .text {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mute);
  margin-top: 12px;
  font-weight: 500;
}

.book-info { padding: 20px 4px 0; }
.book-num {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px; font-weight: 600;
}
.book-title {
  font-family: "Cinzel", serif; font-weight: 500;
  font-size: 16px; letter-spacing: 0.03em;
  color: var(--paper); margin-bottom: 6px;
  line-height: 1.25;
}
.book-meta {
  font-family: "EB Garamond", serif;
  font-style: italic; font-size: 14px;
  color: var(--mute);
}

/* World section */
.world {
  background: var(--ink-2);
  border-top: 1px solid var(--edge);
  padding-top: 140px; padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}
.world::before {
  content: "";
  position: absolute; top: -20%; left: 50%;
  width: 800px; height: 800px; transform: translateX(-50%);
  background-image: url('assets/brand/jackal-stamp.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.04;
  pointer-events: none;
}
.world .section-inner { position: relative; z-index: 2; }
.codex-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .codex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .codex-grid { grid-template-columns: 1fr; } }

.codex-card {
  padding: 32px 28px;
  border: 1px solid var(--edge);
  background: rgba(20,15,10,0.5);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.codex-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.codex-card:hover {
  border-color: var(--gold-soft);
  background: rgba(20,15,10,0.8);
  transform: translateY(-3px);
}
.codex-card:hover::before { opacity: 1; }
.codex-card .num {
  font-family: "Cinzel", serif;
  font-size: 13px; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 20px;
  font-weight: 600;
}
.codex-card h3 {
  font-family: "Cinzel", serif; font-size: 20px;
  margin: 0 0 14px; color: var(--paper);
  letter-spacing: 0.04em;
}
.codex-card .short {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 16px;
  color: var(--gold); margin-bottom: 12px;
}
.codex-card .body {
  font-size: 15px; color: var(--paper-mute);
  line-height: 1.65;
}

/* Characters */
.characters {
  background: var(--ink);
  border-top: 1px solid var(--edge);
}
.cast-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 960px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cast-grid { grid-template-columns: 1fr; } }

.cast-card {
  padding: 28px;
  background: var(--ink-2);
  border: 1px solid var(--edge);
  position: relative;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
  min-height: 240px;
}
.cast-card:hover { border-color: var(--gold-soft); }
.cast-name {
  font-family: "Cinzel", serif; font-size: 26px;
  color: var(--paper); font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}
.cast-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; color: var(--gold); font-size: 16px;
}
.cast-meta {
  display: flex; gap: 16px; font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mute);
  padding-bottom: 16px; border-bottom: 1px solid var(--edge);
  font-weight: 500;
}
.cast-desc {
  font-size: 15px; color: var(--paper-mute);
  line-height: 1.65; margin: 0;
  font-family: "EB Garamond", serif;
}
.cast-book {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
  margin-top: auto; padding-top: 12px;
  font-weight: 500;
}

/* Author / newsletter */
.author {
  background:
    radial-gradient(ellipse at center, rgba(201,162,75,0.06) 0%, transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  text-align: center;
}
.author-inner {
  max-width: 720px; margin: 0 auto;
}
.author img.logo {
  width: 140px; height: auto; margin: 0 auto 40px;
  opacity: 0.95;
}
.author-wordmark {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin: 0 auto 40px;
  color: var(--paper);
}
.author-wordmark .aw-initials {
  font-family: "Cinzel", serif;
  font-size: 13px; letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 500;
}
.author-wordmark .aw-name {
  font-family: "Cinzel", serif;
  font-size: 44px;
  letter-spacing: 0.22em;
  color: var(--paper);
  font-weight: 500;
  text-transform: uppercase;
}
.author-wordmark::after {
  content: "";
  width: 60px; height: 1px;
  background: var(--gold-soft);
  margin-top: 14px;
}
.author p.statement {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 22px;
  color: var(--paper-mute); line-height: 1.6;
  margin: 0 0 32px;
}
.author p.note {
  font-family: "EB Garamond", serif;
  font-size: 16px; color: var(--mute);
  line-height: 1.7; margin: 0 0 40px;
}

.signup-form {
  display: flex; gap: 0;
  max-width: 480px; margin: 0 auto;
  border: 1px solid var(--edge);
  background: rgba(7,5,3,0.6);
}
.signup-form input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--paper);
  font-family: "EB Garamond", serif;
  font-size: 15px; padding: 18px 20px;
}
.signup-form input::placeholder { color: var(--mute); font-style: italic; }
.signup-form button {
  background: var(--gold); color: var(--ink);
  border: none; padding: 0 28px;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; cursor: pointer;
  transition: background 0.3s;
}
.signup-form button:hover { background: var(--amber); }
.signup-success {
  color: var(--gold); font-style: italic;
  font-family: "Cormorant Garamond", serif; font-size: 18px;
  padding: 18px; border: 1px solid var(--edge);
  background: rgba(201,162,75,0.05);
  max-width: 480px; margin: 0 auto;
}

/* Footer */
footer {
  padding: 48px; text-align: center;
  background: var(--ink);
  border-top: 1px solid var(--edge);
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mute);
  font-weight: 500;
}
footer .row { margin-bottom: 12px; }
footer strong { color: var(--gold); font-weight: 500; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7,5,3,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--ink-2);
  border: 1px solid var(--edge);
  max-width: 980px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 48px;
  position: relative;
  animation: rise 0.45s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--edge);
  color: var(--paper-mute); cursor: pointer;
  font-size: 20px; font-family: "Inter", sans-serif;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }

.modal-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px;
  margin-top: 8px;
}
@media (max-width: 720px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-cover {
  aspect-ratio: 2/3;
  background-size: cover; background-position: center;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7), 0 0 0 1px var(--edge-hot);
  height: fit-content;
}
.modal-num {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; font-weight: 600;
}
.modal h2 {
  font-family: "Cinzel", serif; font-weight: 600;
  font-size: 32px; margin-bottom: 8px;
  line-height: 1.15;
}
.modal .fmc-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; color: var(--gold);
  font-size: 18px; margin-bottom: 20px;
}


/* ========================================================
 * Variant 1.5 additions
 * Sealed files · If You Loved · Threshold Map
 * ======================================================== */

/* ---------- Sealed files ---------- */
.book-card.sealed .book-cover-wrap {
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.8), 0 0 0 1px var(--edge);
}
.book-card.sealed:hover .book-cover-wrap {
  box-shadow: 0 24px 60px -15px rgba(0,0,0,0.9), 0 0 0 1px var(--edge-hot), 0 0 30px rgba(201,162,75,0.15);
}

.sealed-file {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,162,75,0.10), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(201,162,75,0.06), transparent 55%),
    linear-gradient(180deg, #130d08 0%, #0a0705 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sealed-file .sealed-grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,162,75,0.03) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(201,162,75,0.02) 0 1px, transparent 1px 12px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.sealed-file .sealed-corner {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--gold-soft); border-style: solid; border-width: 0;
  opacity: 0.8;
}
.sealed-file .sealed-corner.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.sealed-file .sealed-corner.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.sealed-file .sealed-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.sealed-file .sealed-corner.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.sealed-file .sealed-body {
  text-align: center; z-index: 2;
  padding: 0 20px;
  color: var(--paper-mute);
  max-width: 100%;
}
.sealed-roman {
  font-family: "Cinzel", serif;
  font-size: 44px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.18em;
  line-height: 1; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(201,162,75,0.4);
}
.sealed-verb {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 18px;
  color: var(--paper-mute); letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.sealed-rule {
  width: 40px; height: 1px; background: var(--gold-soft);
  margin: 12px auto;
}
.sealed-status {
  font-family: "Inter", sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500;
}

/* Wax seal */
.wax-seal {
  position: absolute; bottom: 18px; right: 18px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  z-index: 3;
}
.wax-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(232,182,85,0.9), rgba(138,106,48,0.85) 55%, rgba(95,60,20,0.9) 100%);
  border: 1px solid rgba(232,182,85,0.6);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    inset 0 1px 2px rgba(232,182,85,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wax-ring::before {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(7,5,3,0.5);
}
.wax-glyph {
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: rgba(7,5,3,0.85);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(232,182,85,0.3);
}

/* Veiled treatment inside sealed */
.book-card.sealed.veiled .sealed-file {
  background:
    repeating-linear-gradient(45deg, #0a0604 0 6px, #120a06 6px 12px);
}
.book-card.sealed.veiled .sealed-roman {
  color: var(--gold-soft);
  letter-spacing: 0.4em;
  font-size: 28px;
}
.book-card.sealed.veiled .sealed-status {
  color: var(--amber);
}

/* Book card meta tweaks */
.book-num {
  display: flex; align-items: center; gap: 10px;
}
.book-num-badge {
  font-size: 8px; letter-spacing: 0.24em;
  padding: 3px 7px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: rgba(232,182,85,0.08);
  font-weight: 600;
}
/* Announced (info visible, not yet on sale) */
.book-num-badge.announced-badge {
  border-color: rgba(201,162,75,0.45);
  color: var(--gold);
  background: rgba(201,162,75,0.07);
}
.book-card.sealed .book-title { color: var(--paper-mute); }
.book-title .muted-it {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-weight: 400;
  color: var(--mute); font-size: 14px;
  letter-spacing: 0;
}
.book-title .muted-strong {
  font-family: "Cinzel", serif;
  font-size: 14px; color: var(--paper-mute);
  letter-spacing: 0.04em;
}

/* ---------- If You Loved ---------- */
.loved {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,162,75,0.05), transparent 55%),
    var(--ink);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 120px 0;
}
.loved .section-inner { padding: 0 48px; }
.loved-statement {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.loved-statement .ornament { margin-bottom: 28px; }
.loved-lede {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.45;
  color: var(--paper);
  margin: 0 0 10px;
  font-weight: 400;
  text-wrap: balance;
}
.loved-lede em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.loved-tail {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--paper-mute);
  font-style: italic;
  margin: 0 auto;
  max-width: 62ch;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .loved { padding: 80px 0; }
  .loved .section-inner { padding: 0 24px; }
}

/* ---------- Threshold map ---------- */
.thresholds {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(201,162,75,0.06), transparent 55%),
    var(--ink-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.threshold-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .threshold-layout { grid-template-columns: 1fr; }
}

.map-frame {
  position: relative;
  padding: 20px;
  background: var(--ink);
  border: 1px solid var(--edge);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.map-frame::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--edge);
  pointer-events: none;
}
.map-inner {
  position: relative;
  width: 100%;
  background: #070503;
  overflow: hidden;
  line-height: 0;
}
.map-bg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.threshold-pin {
  position: absolute;
  background: none; border: none; padding: 0; cursor: pointer;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.pin-core {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); transition: all 0.25s;
  box-shadow: 0 0 12px rgba(232,182,85,0.6);
  z-index: 3; position: relative;
}
.pin-ring {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(201,162,75,0.4);
  animation: pinPulse 2.5s ease-in-out infinite;
}
.pin-label {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 8px; letter-spacing: 0.22em;
  color: var(--gold); font-weight: 600;
  padding: 2px 6px;
  background: rgba(7,5,3,0.8);
  border: 1px solid var(--edge);
  opacity: 0; transition: opacity 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.threshold-pin:hover .pin-label,
.threshold-pin.active .pin-label { opacity: 1; }
.threshold-pin:hover .pin-core { transform: scale(1.4); }
.threshold-pin.active .pin-core { transform: scale(1.6); box-shadow: 0 0 20px rgba(232,182,85,0.9); }

@keyframes pinPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.1; }
}

.threshold-pin.intact .pin-core { background: var(--amber); }
.threshold-pin.lost .pin-core { background: #7a2e22; box-shadow: 0 0 10px rgba(122,46,34,0.6); }
.threshold-pin.lost .pin-ring { border-color: rgba(122,46,34,0.5); }
.threshold-pin.contested .pin-core {
  background: conic-gradient(var(--amber) 0 50%, #7a2e22 50% 100%);
}
.threshold-pin.contested .pin-ring { border-color: rgba(201,162,75,0.5); }
.threshold-pin.hidden .pin-core {
  background: transparent;
  border: 1.5px dashed var(--gold);
  box-shadow: none;
  width: 10px; height: 10px;
}
.threshold-pin.hidden .pin-ring { animation-duration: 4s; opacity: 0.4; }

/* Panel */
.threshold-panel {
  padding: 32px;
  background: var(--ink);
  border: 1px solid var(--edge);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.panel-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 20px;
}
.panel-head .overline { display: block; margin-bottom: 14px; }
.legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-mute);
  font-weight: 500;
}
.l-item { display: flex; align-items: center; gap: 8px; }
.l-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.l-dot.intact { background: var(--amber); }
.l-dot.lost { background: #7a2e22; }
.l-dot.contested { background: conic-gradient(var(--amber) 0 50%, #7a2e22 50% 100%); }
.l-dot.hidden { background: transparent; border: 1.5px dashed var(--gold); width: 10px; height: 10px; }

.panel-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.panel-list button {
  width: 100%; display: grid;
  grid-template-columns: 16px 32px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 6px;
  background: transparent; border: none; border-bottom: 1px solid var(--edge);
  color: var(--paper); cursor: pointer;
  font-family: inherit; font-size: 15px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.panel-list button:hover {
  background: rgba(201,162,75,0.05);
  color: var(--gold);
}
.p-n {
  font-family: "Cinzel", serif; font-size: 12px;
  color: var(--gold); letter-spacing: 0.1em;
  font-weight: 600;
}
.p-city {
  font-family: "EB Garamond", serif;
  font-size: 15px;
}
.p-status {
  font-family: "Inter", sans-serif;
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
}
.p-status.intact { color: var(--amber); }
.p-status.lost { color: #b35544; }
.p-status.contested { color: #d9a450; }
.p-status.hidden { color: var(--mute); font-style: italic; letter-spacing: 0.12em; }

.panel-active { animation: fadeSlide 0.3s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.panel-n {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin-bottom: 10px;
}
.panel-city {
  font-family: "Cinzel", serif; font-weight: 500;
  font-size: 32px; color: var(--paper);
  letter-spacing: 0.04em; margin: 0 0 14px;
  line-height: 1.1;
}
.panel-status {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 500;
  padding: 6px 12px; display: inline-block;
  border: 1px solid;
  margin-bottom: 24px;
}
.panel-status.intact { color: var(--amber); border-color: var(--amber); background: rgba(232,182,85,0.06); }
.panel-status.lost { color: #b35544; border-color: #7a2e22; background: rgba(122,46,34,0.06); }
.panel-status.contested { color: #d9a450; border-color: var(--gold-soft); background: rgba(201,162,75,0.06); }
.panel-status.hidden { color: var(--mute); border-color: var(--mute); letter-spacing: 0.16em; font-style: italic; background: transparent; }

.panel-disg {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 20px;
  color: var(--paper-mute); line-height: 1.55;
  border-left: 1px solid var(--gold-soft);
  padding-left: 20px;
  margin: 0 0 32px;
}
.panel-back {
  margin-top: auto;
  align-self: flex-start;
  background: transparent; border: 1px solid var(--edge);
  color: var(--paper-mute);
  padding: 10px 16px;
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
}
.panel-back:hover { border-color: var(--gold); color: var(--gold); }


/* ========================================================
 * Variant 1.5 — Iteration 2
 * Abstract hero bg · cleaner sealed cards · unrecorded pins
 * ======================================================== */

/* Replace cover-as-background with layered abstract */
.hero-bg-abstract {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201,162,75,0.14), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(122,46,34,0.18), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(20,15,10,0.3), transparent 70%),
    linear-gradient(180deg, #080603 0%, #100a06 50%, #070503 100%);
  overflow: hidden;
}
.hero-bg-abstract::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,5,3,0.2) 0%, transparent 40%, var(--ink) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,162,75,0.02) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(201,162,75,0.015) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.hero-glyph {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: 70vmin; height: 70vmin;
  max-width: 680px; max-height: 680px;
  background-image: url('assets/brand/jackal-stamp-transparent.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.32;
  filter: drop-shadow(0 0 40px rgba(201,162,75,0.18));
  pointer-events: none;
  z-index: 1;
}
.hero-mist {
  position: absolute;
  left: -20%; right: -20%; bottom: -30%;
  height: 80%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201,162,75,0.1), transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(90,60,20,0.15), transparent 60%);
  filter: blur(60px);
  opacity: 0.6;
}

/* Hide the old hero-bg if it ever renders */
.hero .hero-bg { display: none; }

/* Hero cover caption */
.hero-cover-caption {
  margin-top: 20px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-cover-caption .overline { font-size: 10px; }
.hero-cover-caption .ccap-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--paper-mute);
  letter-spacing: 0.02em;
}

/* Sealed book card — mystery verb-only title */
.book-title .sealed-verb-only {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  line-height: 1.3;
}
.book-title .muted-it {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--mute);
  letter-spacing: 0.04em;
  font-size: 15px;
}
.book-card.sealed .book-meta {
  color: var(--gold-soft);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Unrecorded pin (replaces old 'hidden') */
.threshold-pin.unrecorded .pin-core {
  background: transparent;
  border: 1.5px dashed var(--gold);
  box-shadow: none;
  width: 10px; height: 10px;
}
.threshold-pin.unrecorded .pin-ring { animation-duration: 4s; opacity: 0.4; }

.l-dot.unrecorded {
  background: transparent;
  border: 1.5px dashed var(--gold);
}

.p-status.unrecorded {
  color: var(--mute);
  font-style: italic;
  letter-spacing: 0.12em;
}

.panel-status.unrecorded {
  color: var(--mute);
  border-color: var(--mute);
  letter-spacing: 0.16em;
  font-style: italic;
  background: transparent;
}

.legend-note {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
.legend-note em { color: var(--paper-mute); font-style: italic; }

/* Make sure the intact-only legend doesn't look cramped */
.panel-head .legend { grid-template-columns: 1fr 1fr; }


/* ========================================================
 * RESPONSIVE — mobile-first additions
 * Mobile  : ≤ 767px   (375–767px)
 * Tablet  : 768–1023px
 * Desktop : ≥ 1024px  (existing design — untouched)
 * ======================================================== */

/* ---------- Hamburger button (hidden on desktop) ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: none;
  cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.hb-line {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open .hb-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .hb-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Full-screen nav overlay ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,5,3,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.22s ease;
}
.nav-overlay-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 48px 24px;
  width: 100%; max-width: 480px;
}
.overlay-brand {
  margin-bottom: 32px;
  color: var(--gold);
}
.overlay-link {
  font-family: "Cinzel", serif;
  font-size: 20px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-mute);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--edge);
  width: 100%; text-align: center;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.overlay-link:last-of-type { border-bottom: none; }
.overlay-link.active { color: var(--gold); }
.overlay-link:active { color: var(--gold); }
.overlay-cta {
  margin-top: 40px;
  width: 100%; justify-content: center;
  padding: 18px 24px; font-size: 12px;
}

/* ---------- Modal rise-up animation (mobile) ---------- */
@keyframes riseUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
 * TABLET  768–1023px
 * ============================================================ */
@media (max-width: 1023px) {
  /* Nav: hide links, show hamburger */
  .nav-links { display: none !important; }
  .nav { padding: 16px 28px; }
  .nav-hamburger { display: flex; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Section padding */
  section { padding: 80px 32px; }
  .section-header { margin-bottom: 60px; }

  /* Hero */
  .hero { padding: 100px 32px 72px; }
  .hero-content { gap: 40px; }

  /* Featured: stack cover + copy on narrow tablet */
  .featured-grid { grid-template-columns: 1fr; gap: 40px; }
  .featured-cover { max-width: 300px; }

  /* Series: 2 columns on tablet */
  .books-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }

  /* Hide desktop nav-cta on tablet too (overlay has it) */
  .nav-cta { display: none; }

  /* Threshold panel min-height less aggressive */
  .threshold-panel { min-height: 360px; }
}

/* ============================================================
 * MOBILE  ≤ 767px
 * ============================================================ */
@media (max-width: 767px) {
  /* --- Section padding --- */
  section { padding: 48px 20px; }
  .section-header { margin-bottom: 40px; }
  .section-header p { font-size: 16px; }

  /* --- Nav --- */
  .nav { padding: 14px 20px; }
  .nav-cta { display: none; }

  /* --- Typography --- */
  h1 { font-size: clamp(36px, 10vw, 44px) !important; line-height: 1.05; }
  h2 { font-size: clamp(24px, 7vw, 34px); }
  h3 { font-size: 18px; }

  /* --- Hero --- */
  .hero { padding: 88px 20px 52px; min-height: auto; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  /* Move cover above copy */
  .hero-cover-frame {
    order: -1;
    justify-self: center;
  }
  .hero-cover { width: 180px; }
  .hero-cover-frame::before { inset: -12px; }
  .hero-copy .overline { margin-bottom: 20px; }
  .hero-tagline {
    font-size: 17px !important;
    max-width: 100%;
    margin-left: auto; margin-right: auto;
  }
  .hero-meta { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .hero-ctas { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 10px; }
  .scroll-cue { display: none; }

  /* --- Featured section --- */
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-cover { max-width: 200px; justify-self: center; }
  .featured-tagline { font-size: 18px; }
  .blurb { font-size: 16px; line-height: 1.65; }
  .trope { font-size: 9px; padding: 7px 12px; }

  /* --- Series grid: 2 cols → 1 col at very small --- */
  .books-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .book-info { padding: 14px 2px 0; }
  .book-title { font-size: 13px; }
  .book-meta { font-size: 12px; }
  .sealed-roman { font-size: 32px; }
  .sealed-verb { font-size: 14px; }

  /* --- World section --- */
  .world { padding-top: 48px; padding-bottom: 48px; }

  /* --- Threshold map --- */
  .threshold-layout { gap: 24px; }
  .map-frame { padding: 12px; }
  /* Larger touch targets for pins */
  .threshold-pin { width: 48px; height: 48px; }
  .pin-core { width: 12px; height: 12px; }
  .pin-ring { width: 28px; height: 28px; }
  /* Hide hover-only pin labels; list is the primary nav */
  .pin-label { display: none; }
  /* Panel list: bigger rows for fingers */
  .threshold-panel { min-height: auto; padding: 24px 20px; }
  .panel-list button { padding: 18px 8px; min-height: 60px; font-size: 16px; }
  .panel-city { font-size: 24px; }
  .panel-disg { font-size: 17px; }

  /* --- Characters --- */
  /* cast-grid already 1-col at ≤640px via existing rule */

  /* --- Author / signup --- */
  .author-wordmark .aw-name { font-size: 30px; letter-spacing: 0.18em; }
  .author p.statement { font-size: 18px; }
  .author p.note { font-size: 15px; }
  .signup-form {
    flex-direction: column;
    border: none; background: none;
    gap: 0;
  }
  .signup-form input {
    border: 1px solid var(--edge);
    background: rgba(7,5,3,0.6);
    padding: 16px 18px;
  }
  .signup-form button {
    padding: 16px;
    border: 1px solid var(--gold);
    margin-top: 8px;
  }

  /* --- Footer --- */
  footer { padding: 32px 20px; font-size: 9px; }

  /* --- If You Loved --- */
  .loved { padding: 48px 0; }
  .loved .section-inner { padding: 0 20px; }
  .loved-lede { font-size: clamp(18px, 5.5vw, 26px); }
  .loved-tail { font-size: 15px; }

  /* --- Meta grid in modal / featured --- */
  .meta-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px 0; margin: 16px 0 20px; }

  /* --- Modal: full-screen --- */
  .modal-backdrop {
    padding: 0;
    align-items: flex-start;
    background: rgba(7,5,3,0.96);
  }
  .modal {
    max-width: 100%;
    max-height: 100%;
    height: 100dvh;
    border: none;
    padding: 68px 20px 32px;
    animation: riseUp 0.35s cubic-bezier(.2,.8,.2,1);
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-close {
    top: 16px; right: 16px;
    width: 48px; height: 48px;
    font-size: 22px;
    /* Larger tap target */
    display: flex; align-items: center; justify-content: center;
  }
  .modal-grid { grid-template-columns: 1fr; gap: 20px; }
  .modal-cover { max-width: 140px; margin: 0 auto; display: block; }
  .modal h2 { font-size: clamp(20px, 6vw, 28px); }
  .modal .fmc-line { font-size: 16px; }
  .excerpt-body { font-size: 16px; }
  .excerpt-body p:first-of-type::first-letter { font-size: 3em; }
}

/* ---------- Extra small: ≤ 400px ---------- */
@media (max-width: 400px) {
  .books-grid { grid-template-columns: 1fr !important; }
  .hero-cover { width: 150px; }
  .overlay-link { font-size: 18px; }
}

/* ==============================================
   Twin Hero
   Auto-activates when 2+ books are available.
   ============================================== */
.hero-twin {
  align-items: flex-start;
  padding: 80px 48px 100px;
  justify-content: center;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1320px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 72px;
}
.hero-head {
  text-align: center; max-width: 820px;
}
.hero-head .overline { display: inline-block; margin-bottom: 28px; }
.hero-head h1 {
  font-family: "Cinzel", serif; font-weight: 500;
  font-size: clamp(56px, 8vw, 110px); line-height: 0.98;
  letter-spacing: 0.04em; margin: 0 0 24px;
  color: var(--paper);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-head h1 .gold { color: var(--amber); display: block; font-weight: 600; }
.twin-tagline {
  text-align: center; margin: 0 auto;
  font-size: clamp(17px, 1.8vw, 20px);
}

/* Twin grid */
.twin {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 72px; width: 100%; align-items: start;
}
.twin-divider {
  width: 1px; align-self: stretch; min-height: 480px;
  background: linear-gradient(180deg, transparent 0%, var(--edge) 20%, var(--edge) 80%, transparent 100%);
}

/* Pillar */
.pillar {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; position: relative;
}
.pillar-label {
  display: flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.pillar-label::before, .pillar-label::after {
  content: ""; width: 24px; height: 1px; background: var(--gold-soft);
}
.pillar-cover {
  width: 300px; max-width: 75vw; aspect-ratio: 2/3;
  background-size: cover; background-position: center;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(201,162,75,0.3);
  display: block;
}
.pillar-meta {
  text-align: center; max-width: 380px;
  display: flex; flex-direction: column; align-items: center;
}
.pillar-numeral {
  font-family: "Cinzel", serif; font-size: 13px; letter-spacing: 0.6em;
  color: var(--gold); margin-bottom: 10px; text-transform: uppercase; font-weight: 500;
}
.pillar-title {
  font-family: "Cinzel", serif; font-weight: 500;
  font-size: 26px; letter-spacing: 0.02em; line-height: 1.15;
  margin: 0 0 12px; color: var(--paper);
}
.pillar-sub {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 16px; color: var(--paper-mute);
  margin: 0 0 22px; line-height: 1.5;
}
.pillar-btn {
  padding: 15px 28px;
  font-family: "Inter", sans-serif; font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}

/* "Just Released" amber ribbon */
.latest-ribbon {
  position: absolute; top: 0; right: -6px;
  background: var(--amber); color: var(--ink);
  padding: 5px 12px;
  font-family: "Inter", sans-serif; font-size: 9px;
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 700;
  z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.latest-ribbon::after {
  content: ""; position: absolute;
  right: 0; bottom: -4px;
  border-left: 4px solid transparent;
  border-top: 4px solid #7a5e1e;
}

/* Bottom meta row in twin mode */
.twin-meta { gap: 44px; margin-bottom: 0; }

/* Twin responsive */
@media (max-width: 900px) {
  .hero-twin { padding: 80px 24px 80px; }
  .twin { grid-template-columns: 1fr; gap: 48px; }
  .twin-divider { display: none; }
  .hero-inner { gap: 48px; }
  .pillar-cover { width: 240px; }
  .pillar-title { font-size: 22px; }
  .latest-ribbon { top: -8px; right: 0; }
}
@media (max-width: 480px) {
  .pillar-cover { width: 200px; }
  .pillar-title { font-size: 20px; }
  .pillar-sub { font-size: 15px; }
}
