/* ==========================================================================
   TITANLORD — design system v4
   The blade of light. Palette sampled from the Book 1 cover
   (research/ART-STYLE.md v2); the rules below are the palette documentation.
   ========================================================================== */

@font-face{font-family:'Cinzel';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/cinzel.97f503ba.woff2') format('woff2');ascent-override:97.6%;descent-override:37.2%;line-gap-override:0%}@font-face{font-family:'Cinzel Fallback';src:local('Georgia');ascent-override:76.4%;descent-override:120.6%;line-gap-override:0%;size-adjust:72.2%}
@font-face{font-family:'Spectral';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/spectral-300.6a2d2d62.woff2') format('woff2');ascent-override:105.9%;descent-override:46.3%;line-gap-override:0%}@font-face{font-family:'Spectral Fallback';src:local('Georgia');ascent-override:74.6%;descent-override:135.1%;line-gap-override:0%;size-adjust:64.9%}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/spectral-400.d4877aef.woff2') format('woff2');ascent-override:105.9%;descent-override:46.3%;line-gap-override:0%}@font-face{font-family:'Spectral Fallback';src:local('Georgia');ascent-override:74.6%;descent-override:135.1%;line-gap-override:0%;size-adjust:64.9%}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Grounds: midnight blue family, never neutral grey. */
  --ink: #070A10;        /* the darkest sky, page base */
  --midnight: #0D1119;   /* dominant ground */
  --indigo: #162A3E;     /* lower sky, panel lift */
  --cobalt: #314D68;     /* haze, most common cover colour */
  --steel: #405781;      /* nebula body */
  --teal: #50767D;       /* mist band */

  /* Light and warmth. Bronze is structural (13.6% of the cover). */
  --sage: #A6C0A7;       /* the glow where blade meets earth; dusty, never neon */
  --bronze: #7A5635;
  --bronze-lit: #C08A4E;
  --brass: #968360;      /* hairlines only, not text */
  --gold: #EAE7B1;       /* subtitle gold, primary type accent */
  --gold-dim: #C9BE8A;   /* eyebrows, cites, numerals (10.58:1 on ink) */
  --blade: #FFFFFF;      /* reserved for light itself: glows, the blade */

  /* Text */
  --paper: #D6DEE8;      /* cool off-white body text */
  --paper-dim: #9AAABB;  /* secondary text (7:1 on midnight) */

  /* The three Powers (small glow accents only) */
  --veda: #6FA8E8;       /* azure */
  --pollus: #E8925A;     /* ember */
  --magnus: #A78FE0;     /* violet */

  /* Per-volume edge tints (covers 2 and 3 keep their own green) */
  --vol1: var(--gold);
  --vol2: #8FBF6A;
  --vol3: #7CCBA0;
  --vol0: var(--sage);

  --font-display: "Cinzel", "Cinzel Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Spectral", "Spectral Fallback", Georgia, serif;

  --wrap: 76rem;
  --wrap-narrow: 62rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-deep: 0 30px 80px rgba(2, 4, 8, 0.75);
  --shadow-card: 0 18px 50px rgba(2, 4, 8, 0.55);
  --glow-gold: 0 0 24px rgba(234, 231, 177, 0.16), 0 0 60px rgba(192, 138, 78, 0.10);
  --glow-blade: 0 0 18px rgba(214, 230, 255, 0.35), 0 0 70px rgba(166, 192, 167, 0.18);

  --radius: 14px;
  --hairline: 1px solid rgba(150, 131, 96, 0.28);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* One continuous night: a single fixed field the whole page floats over. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 72% 108%, rgba(80, 118, 125, 0.16), transparent 55%),
    radial-gradient(90% 70% at 12% -8%, rgba(64, 87, 129, 0.20), transparent 60%),
    linear-gradient(178deg, var(--ink) 0%, var(--midnight) 38%, #101623 62%, var(--indigo) 100%);
}
/* Film grain, baked flat (no blend modes). */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dim); text-decoration-color: rgba(201, 190, 138, 0.4); text-underline-offset: 0.22em; }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }

::selection { background: rgba(192, 138, 78, 0.35); color: #FFF6D9; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  transform: translateY(-300%);
  background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em;
  padding: 0.7rem 1.1rem; border-radius: 6px; text-decoration: none;
  transition: transform 0.2s ease;
}
.skip:focus-visible { transform: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.section { padding-block: clamp(5rem, 12vh, 9rem); }

/* The universal section opener: letterspaced eyebrow + trailing hairline. */
.eyebrow {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.6rem;
}
.eyebrow::after { content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, rgba(150, 131, 96, 0.55), transparent); }
.eyebrow .num { color: var(--bronze-lit); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.12;
  text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: 1.4rem; }
.lede {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  line-height: 1.7;
  color: var(--paper);
  max-width: 44rem;
  font-weight: 300;
}
.lede + .lede { margin-top: 1em; }
.dim { color: var(--paper-dim); }
.small { font-size: 0.92rem; }
.gold { color: var(--gold); }

/* --------------------------------------------------------------------------
   Buttons — one gold, one ghost, equal weight where consent is concerned
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  overflow: hidden;
  white-space: normal; text-align: center;
}
.btn .arw { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .arw { transform: translateX(4px); }

.btn-gold {
  background: linear-gradient(160deg, #F0E9BE 0%, var(--gold) 42%, #C9B872 100%);
  color: #171207;
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { transform: translateY(-2px); color: #171207;
  box-shadow: 0 0 32px rgba(234, 231, 177, 0.28), 0 0 90px rgba(192, 138, 78, 0.16), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn-gold:active { transform: translateY(0); }
.btn-gold::after {  /* the shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-gold:hover::after { left: 125%; }

.btn-ghost {
  border-color: rgba(150, 131, 96, 0.5);
  color: var(--gold);
  background: rgba(13, 17, 25, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(234, 231, 177, 0.07); transform: translateY(-2px); }

.btn-quiet {
  border: none; background: none; color: var(--gold-dim);
  font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.82rem; padding: 0.5rem 0.2rem; min-height: 44px; cursor: pointer;
}
.btn-quiet:hover { color: var(--gold); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.cta-note { font-size: 0.95rem; color: var(--paper-dim); flex-basis: 100%; margin-top: 0.35rem; }

@media (max-width: 560px) {
  .cta-row .btn { flex: 1 1 100%; width: 100%; }
  .cta-row .btn-ghost { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Progress hairline
   -------------------------------------------------------------------------- */
#scrollbar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-head.stuck {
  background: rgba(7, 10, 16, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(150, 131, 96, 0.22);
}
.head-in {
  display: flex; align-items: center; gap: 1.6rem;
  max-width: 88rem; margin-inline: auto;
  padding: 0.85rem var(--gutter);
}
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.18rem; letter-spacing: 0.26em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.wordmark b { color: var(--gold); font-weight: 700; }
.wordmark:hover { color: var(--paper); text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; list-style: none; }
.nav-links a {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-dim); text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--bronze-lit); }
.head-cta { margin-left: 0.6rem; min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.78rem; }

/* Disclosure nav under 940px (no JS needed, survives 200% zoom) */
.nav-menu { display: none; }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-menu { display: block; margin-left: auto; position: relative; }
  .nav-menu summary {
    list-style: none; cursor: pointer;
    font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); padding: 0.55rem 0.2rem; min-height: 44px;
    display: flex; align-items: center; gap: 0.55rem;
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary .bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .nav-menu summary .bars i { display: block; width: 20px; height: 1.5px; background: var(--gold); transition: transform 0.25s ease, opacity 0.2s; }
  .nav-menu[open] summary .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-menu[open] summary .bars i:nth-child(2) { transform: scaleX(0); }
  .nav-menu[open] summary .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-menu .menu-list {
    position: absolute; right: 0; top: calc(100% + 0.6rem);
    min-width: 15rem;
    background: rgba(10, 13, 20, 0.97);
    border: 1px solid rgba(150, 131, 96, 0.35); border-radius: 12px;
    box-shadow: var(--shadow-deep);
    list-style: none; padding: 0.6rem;
    display: grid; gap: 0.15rem;
  }
  .nav-menu .menu-list a {
    display: block; padding: 0.8rem 0.9rem; border-radius: 8px;
    font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--paper); text-decoration: none;
  }
  .nav-menu .menu-list a:hover { background: rgba(234, 231, 177, 0.07); color: var(--gold); }
  .head-cta { margin-left: 0.8rem; }
}
@media (max-width: 560px) {
  .head-cta .cta-long { display: none; }
}
@media (min-width: 561px) {
  .head-cta .cta-short { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid; align-items: end;
  position: relative;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 42%; }
.hero-art::after {  /* the reading scrim: type side falls to night */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.94) 0%, rgba(7, 10, 16, 0.72) 30%, rgba(7, 10, 16, 0.18) 58%, rgba(7, 10, 16, 0.32) 100%),
    linear-gradient(0deg, rgba(7, 10, 16, 0.95) 0%, transparent 26%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.55) 0%, transparent 22%);
}
@media (max-width: 700px) {
  .hero-art::after {
    background:
      linear-gradient(0deg, rgba(7, 10, 16, 0.96) 8%, rgba(7, 10, 16, 0.55) 42%, rgba(7, 10, 16, 0.25) 70%),
      linear-gradient(180deg, rgba(7, 10, 16, 0.6) 0%, transparent 25%);
  }
}
.hero-embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-in {
  position: relative; z-index: 2;
  max-width: 88rem; margin-inline: auto; width: 100%;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(3.5rem, 8vh, 5.5rem);
}
.hero-eyebrow { max-width: 46rem; flex-wrap: nowrap; white-space: nowrap; letter-spacing: 0.34em; font-size: 0.72rem; }
.hero-eyebrow::after { display: none; }
@media (max-width: 700px) {
  .hero-eyebrow { display: block; white-space: normal; letter-spacing: 0.24em; line-height: 2.1; }
  .hero-eyebrow span[aria-hidden="true"] { margin-inline: 0.4em; }
}
.hero-title {
  font-size: clamp(3.4rem, 1.8rem + 9vw, 8.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(166, 192, 167, 0.25), 0 0 90px rgba(64, 87, 129, 0.4);
  margin: 0.4rem 0 1.2rem;
  line-height: 1;
}
.hero-title .ltr { display: inline-block; }  /* split by JS only */
.hero-hook {
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem);
  font-style: italic; font-weight: 300;
  color: var(--gold);
  max-width: 34rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.hero-sub { max-width: 36rem; color: var(--paper); margin-bottom: 2rem; }
.hero-cta { margin-bottom: 0.9rem; }

.scrollcue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: #6E7F94;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.scrollcue::after {
  content: ""; width: 1px; height: 3.2rem;
  background: linear-gradient(180deg, var(--bronze-lit), transparent);
  animation: cue-drop 2.6s ease-in-out 6;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 700px) { .scrollcue { display: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot {
  border-top: var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(7, 10, 16, 0.65));
  padding: clamp(3.5rem, 8vh, 6rem) 0 2.5rem;
  position: relative;
}
.foot-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0.3em;
  color: var(--paper); text-decoration: none;
}
.foot-mark b { color: var(--gold); font-weight: 700; }
.foot-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 2.8rem 0;
}
.foot-col h3 {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 400; margin-bottom: 1.1rem;
}
.foot-col ul { list-style: none; display: grid; gap: 0.55rem; }
.foot-col a {
  color: var(--paper-dim); text-decoration: none; font-size: 0.98rem;
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(150, 131, 96, 0.18);
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline;
  font-size: 0.9rem; color: #758597;
}
.foot-bottom .motto { font-family: var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); font-size: 0.78rem; }
.foot-bottom button.linklike {
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em;
  text-decoration-color: rgba(201, 190, 138, 0.4); min-height: 44px;
}
.foot-bottom button.linklike:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Consent bar — bottom bar, not a wall; Accept and Decline at equal weight
   -------------------------------------------------------------------------- */
.tl-consent {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 150;
  width: min(46rem, calc(100vw - 2rem));
  background: rgba(10, 13, 20, 0.97);
  border: 1px solid rgba(150, 131, 96, 0.4);
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  padding: 1.1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.tl-consent[hidden] { display: none; }
.tl-consent p { flex: 1 1 20rem; font-size: 0.92rem; line-height: 1.55; color: var(--paper-dim); }
.tl-consent p a { color: var(--gold-dim); }
.tl-consent .consent-btns { display: flex; gap: 0.6rem; flex: 0 1 auto; }
.tl-consent .btn { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.78rem; }
@media (max-width: 560px) {
  .tl-consent { bottom: 0.5rem; padding: 0.9rem 1rem; }
  .tl-consent .consent-btns { flex: 1 1 100%; }
  .tl-consent .consent-btns .btn { flex: 1; }
}

/* Mobile dock CTA: appears after the hero, one thumb reach away */
.dock {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 90;
  display: none;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.dock.on { transform: none; }
.dock .btn { width: 100%; min-height: 52px; box-shadow: var(--shadow-deep), var(--glow-gold); }
@media (max-width: 560px) { .dock { display: block; } }

/* --------------------------------------------------------------------------
   Full-bleed plates (image bands with one line of weight)
   -------------------------------------------------------------------------- */
.plate {
  position: relative;
  min-height: min(88vh, 56rem);
  display: grid; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.plate-art { position: absolute; inset: -12% 0; z-index: -1; }
.plate-art img { width: 100%; height: 100%; object-fit: cover; }
.plate::before {  /* the reading scrim */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(0deg, rgba(7, 10, 16, 0.96) 4%, rgba(7, 10, 16, 0.25) 38%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.92) 2%, rgba(7, 10, 16, 0.2) 34%),
    radial-gradient(80% 90% at 50% 62%, transparent, rgba(7, 10, 16, 0.72) 100%);
}
.plate-in { position: relative; z-index: 1; text-align: center; padding: 6rem var(--gutter); }
.plate-q {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.8rem);
  line-height: 1.28; color: var(--paper);
  max-width: 62rem; margin-inline: auto;
  text-shadow: 0 2px 30px rgba(2, 4, 8, 0.9);
  text-wrap: balance;
}
.plate-q .em { color: var(--gold); }
.plate-cite {
  margin-top: 1.6rem;
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dim);
}

/* --------------------------------------------------------------------------
   Facts block ("What is Titanlord?") — the front-matter page
   -------------------------------------------------------------------------- */
.frontmatter { padding-block: clamp(3.5rem, 8vh, 5.5rem); }
.frontmatter-in {
  border-block: var(--hairline);
  padding-block: clamp(2.2rem, 5vh, 3.5rem);
  display: grid; gap: 2.2rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
@media (max-width: 900px) { .frontmatter-in { grid-template-columns: 1fr; } }
.frontmatter h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1rem; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem;
  font-size: 0.95rem;
}
.facts dt {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.15rem;
}
.facts dd { color: var(--paper); }
.facts dd .sub { color: var(--paper-dim); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Ledger — the count strip (real numbers only)
   -------------------------------------------------------------------------- */
.ledger { border-block: var(--hairline); }
.ledger-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.ledger .cell { padding: clamp(1.8rem, 4vh, 3rem) 1rem; }
.ledger .cell + .cell { border-left: 1px solid rgba(150, 131, 96, 0.22); }
.ledger .n {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem);
  color: var(--gold); line-height: 1.1;
}
.ledger .n.sage { color: var(--sage); }
.ledger .l {
  margin-top: 0.55rem;
  font-size: 0.88rem; line-height: 1.5; color: var(--paper-dim);
  max-width: 15rem; margin-inline: auto;
}
@media (max-width: 760px) {
  .ledger-in { grid-template-columns: 1fr 1fr; }
  .ledger .cell:nth-child(3) { border-left: none; }
  .ledger .cell:nth-child(n+3) { border-top: 1px solid rgba(150, 131, 96, 0.22); }
}

/* --------------------------------------------------------------------------
   Read the opening — manuscript teaser
   -------------------------------------------------------------------------- */
.read-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .read-grid { grid-template-columns: 1fr; } }
.read-side { position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .read-side { position: static; } }
.manuscript {
  background: linear-gradient(172deg, rgba(22, 42, 62, 0.35), rgba(13, 17, 25, 0.7));
  border: 1px solid rgba(150, 131, 96, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(234, 231, 177, 0.06);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
}
.manuscript .m-label {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 1.4rem; text-align: center;
}
.manuscript p { margin-bottom: 1.15em; }
.manuscript p:last-of-type { margin-bottom: 0; }
.manuscript .dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  float: left;
  line-height: 0.86;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold);
}
.manuscript .fade-tail {
  position: relative;
}
.manuscript .fade-tail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem;
  background: linear-gradient(180deg, transparent, #0B0F17 92%);
  pointer-events: none;
}
.manuscript .continue-line {
  position: relative; z-index: 1;
  text-align: center; padding-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   The Rule — pinned scene, the relic, three powers
   -------------------------------------------------------------------------- */
.rule-stage { position: relative; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 900px) { .rule-grid { grid-template-columns: 1fr; } }
.relic-col { position: relative; }
.relic-stick { position: sticky; top: 10vh; display: grid; justify-items: center; }
.relic-stack {
  position: relative;
  width: clamp(15rem, 30vw, 26rem);
  aspect-ratio: 4 / 5;
  transform: rotate(-21deg) translateY(4%);
  filter: drop-shadow(0 0 26px rgba(64, 87, 129, 0.35)) drop-shadow(0 24px 60px rgba(2, 4, 8, 0.6));
}
.relic-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.9s ease;
}
/* gate:ok — decorative image crossfade layers, not content. The base layer
   always shows; lit variants are duplicate art, never text. */
.relic-layer:not(.base) { opacity: 0; }
.relic-layer.lit { opacity: 1; }
.relic-cap {
  margin-top: 1.6rem; max-width: 20rem; text-align: center;
  font-size: 0.92rem; color: var(--paper-dim); font-style: italic;
}
@media (max-width: 900px) {
  .relic-stick { position: relative; top: 0; margin-bottom: 2rem; }
  .relic-stack { width: clamp(11rem, 44vw, 18rem); }
}
.rule-quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  line-height: 1.4; color: var(--paper);
  margin: 1.6rem 0 1rem;
  text-wrap: balance;
}
.rule-quote .em { color: var(--gold); }
.rule-cite { font-size: 0.82rem; color: var(--gold-dim); font-family: var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; max-width: 34rem; line-height: 1.8; }
.powers { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.power {
  border: 1px solid rgba(150, 131, 96, 0.3);
  border-left: 3px solid var(--c);
  border-radius: 12px;
  background: rgba(7, 10, 16, 0.72);
  padding: 1.3rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.power:hover, .power.hot { transform: translateX(6px); box-shadow: var(--shadow-card); }
.power h3 { font-size: 1.12rem; letter-spacing: 0.12em; }
.power h3 .dot { color: var(--c); }
.power .grant { color: var(--paper-dim); font-size: 0.98rem; margin-top: 0.35rem; }
.power.veda { --c: var(--veda); }
.power.pollus { --c: var(--pollus); }
.power.magnus { --c: var(--magnus); }
.rule-hedge { margin-top: 2rem; font-size: 0.95rem; color: var(--paper-dim); max-width: 38rem; }

/* --------------------------------------------------------------------------
   The cast — portrait cards
   -------------------------------------------------------------------------- */
.cast-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .cast-grid { grid-template-columns: 1fr; } }
.cast-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(150, 131, 96, 0.28);
  background: var(--midnight);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}
.cast-card:hover, .cast-card:focus-within { transform: translateY(-6px); border-color: rgba(234, 231, 177, 0.5); }
.cast-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cast-card:hover img { transform: scale(1.045); }
.cast-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 10, 16, 0.55) 62%, rgba(7, 10, 16, 0.94) 100%);
}
.cast-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.15rem 1.2rem; }
.cast-meta .c-label {
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dim); display: block; margin-bottom: 0.3rem;
}
.cast-meta h3 { font-size: 1.28rem; letter-spacing: 0.04em; }
.cast-meta .c-rule { width: 34px; height: 1px; background: var(--bronze-lit); margin: 0.5rem 0 0.6rem; }
.cast-meta p { font-size: 0.88rem; line-height: 1.55; color: var(--paper-dim); }
.cast-note {
  margin-top: 1.8rem; font-size: 0.98rem; color: var(--paper-dim); max-width: 44rem;
}
.cast-note strong { color: var(--gold); font-weight: 400; }

/* The sealed gate object */
.gate {
  margin-top: 1.6rem;
  border: 1px dashed rgba(192, 138, 78, 0.55);
  border-radius: var(--radius);
  background: rgba(122, 86, 53, 0.08);
  padding: 1.6rem 1.8rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.gate svg { flex: none; }
.gate .gate-text { flex: 1 1 18rem; }
.gate .gate-text h3 { font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.gate .gate-text p { font-size: 0.95rem; color: var(--paper-dim); }

/* --------------------------------------------------------------------------
   The door — the 3D cover fan, Book One forward
   -------------------------------------------------------------------------- */
.door {
  position: relative;
  perspective: 1400px;
  min-height: 30rem;
  display: grid; place-items: center;
}
.door-stack { position: relative; transform-style: preserve-3d; width: min(100%, 34rem); height: 30rem; }
.door-book {
  position: absolute; left: 50%; top: 50%;
  width: clamp(11rem, 15vw, 13.5rem);
  margin-left: calc(clamp(11rem, 15vw, 13.5rem) / -2);
  margin-top: -11rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(234, 231, 177, 0.14);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease, z-index 0s;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), calc(var(--dz, 0px) + var(--lift, 0px))) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  filter: brightness(var(--b, 1));
  background: var(--midnight);
}
.door-book[data-pos="0"] { --dz: 90px; z-index: 5; }
.door-book[data-pos="1"] { --dx: -46%; --dy: 4%; --dz: -40px; --ry: -14deg; --s: 0.88; --b: 0.66; z-index: 2; }
.door-book[data-pos="2"] { --dx: 46%; --dy: 4%; --dz: -40px; --ry: 14deg; --s: 0.88; --b: 0.66; z-index: 2; }
.door-book[data-pos="3"] { --dx: 0%; --dy: -22%; --dz: -130px; --s: 0.78; --b: 0.55; z-index: 1; }
.door-book img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; }
.door-book:hover, .door-book:focus-visible { --lift: 70px; --s: 1.03; --b: 1.06; z-index: 6; }
.door-caption {
  position: absolute; left: 0; right: 0; bottom: -0.5rem;
  text-align: center; font-size: 0.95rem; color: var(--gold-dim);
  font-family: var(--font-display); letter-spacing: 0.14em;
}
.door-caption span { display: none; }
.door-caption span.on { display: block; }
.door:has([data-pos="1"]:hover, [data-pos="1"]:focus-visible) .cap-0 { display: none; }
.door:has([data-pos="1"]:hover, [data-pos="1"]:focus-visible) .cap-1 { display: block; }
.door:has([data-pos="2"]:hover, [data-pos="2"]:focus-visible) .cap-0 { display: none; }
.door:has([data-pos="2"]:hover, [data-pos="2"]:focus-visible) .cap-2 { display: block; }
.door:has([data-pos="3"]:hover, [data-pos="3"]:focus-visible) .cap-0 { display: none; }
.door:has([data-pos="3"]:hover, [data-pos="3"]:focus-visible) .cap-3 { display: block; }

/* --------------------------------------------------------------------------
   Saga section — featured volume + shelf + order chooser
   -------------------------------------------------------------------------- */
.saga-feature {
  display: grid; grid-template-columns: minmax(0, 30rem) 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
@media (max-width: 980px) { .saga-feature { grid-template-columns: 1fr; } }
.ghost-num {
  position: absolute; top: -4rem; left: -1.5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 20vw, 16rem);
  color: rgba(234, 231, 177, 0.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.saga-panel {
  border: 1px solid rgba(150, 131, 96, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 42, 62, 0.4), rgba(13, 17, 25, 0.72));
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.saga-panel .vol-tag {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.9rem; display: block;
}
.saga-panel h3 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); margin-bottom: 0.9rem; }
.saga-panel .blurb { color: var(--paper); margin-bottom: 1.3rem; max-width: 40rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; list-style: none; }
.chip {
  font-size: 0.8rem; letter-spacing: 0.06em;
  border: 1px solid rgba(150, 131, 96, 0.4);
  border-radius: 999px; padding: 0.32rem 0.85rem;
  color: var(--paper-dim);
  white-space: nowrap;
}
.chip.ku { color: var(--sage); border-color: rgba(166, 192, 167, 0.45); }
.chip.award { color: var(--gold); border-color: rgba(234, 231, 177, 0.45); }

/* The shelf */
.shelf-head {
  font-family: var(--font-display); letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--gold-dim); margin-bottom: 1.4rem;
}
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; list-style: none; }
@media (max-width: 860px) { .shelf { grid-template-columns: 1fr; } }
.shelf-card {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 1.1rem; align-items: center;
  border: 1px solid rgba(150, 131, 96, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 17, 25, 0.55);
  padding: 1rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
  position: relative;
}
.shelf-card:hover { transform: translateY(-4px); border-color: rgba(234, 231, 177, 0.5); background: rgba(22, 42, 62, 0.4); }
.shelf-card img { width: 5.2rem; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; }
.shelf-card .s-badge {
  position: absolute; top: -0.65rem; right: 0.9rem;
  font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  background: linear-gradient(160deg, #F0E9BE, var(--gold));
  color: #171207; border-radius: 999px; padding: 0.28rem 0.7rem;
}
.shelf-card h4 { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.shelf-card .s-meta { font-size: 0.82rem; color: var(--paper-dim); margin-bottom: 0.35rem; }
.shelf-card p { font-size: 0.9rem; color: var(--paper-dim); line-height: 1.55; }
.order-note { margin-top: 1.8rem; max-width: 46rem; color: var(--paper-dim); font-size: 0.98rem; }
.order-note strong { color: var(--gold); font-weight: 400; }

/* Order chooser (tabs + reordering shelf) */
.order-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.order-tab {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(13, 17, 25, 0.5);
  border: 1px solid rgba(150, 131, 96, 0.35);
  border-radius: 999px;
  padding: 0.65rem 1.3rem; min-height: 44px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.order-tab:hover { color: var(--gold); }
.order-tab[aria-selected="true"] {
  color: #171207; background: linear-gradient(160deg, #F0E9BE, var(--gold));
  border-color: transparent;
}
.order-tab .rec { font-size: 0.62rem; letter-spacing: 0.2em; opacity: 0.85; margin-left: 0.4rem; }
.order-seq { list-style: none; counter-reset: ord; display: grid; gap: 0.8rem; }
.order-seq li { counter-increment: ord; }
.order-item {
  display: grid; grid-template-columns: 3rem 4.4rem 1fr; gap: 1.1rem; align-items: center;
  border: 1px solid rgba(150, 131, 96, 0.28);
  background: rgba(13, 17, 25, 0.55);
  border-radius: 12px; padding: 0.8rem 1.1rem;
}
.order-item .ord-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--gold); text-align: center;
}
.order-item img { width: 4.4rem; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; }
.order-item h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 0.2rem; }
.order-item p { font-size: 0.9rem; color: var(--paper-dim); line-height: 1.5; }
.order-item .s-badge-static {
  display: inline-block; margin-left: 0.6rem;
  font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); border: 1px solid rgba(166, 192, 167, 0.5); border-radius: 999px; padding: 0.2rem 0.6rem;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Atlas teaser (homepage) and pins
   -------------------------------------------------------------------------- */
.atlas-teaser { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 980px) { .atlas-teaser { grid-template-columns: 1fr; } }
.mapframe {
  position: relative;
  border: 1px solid rgba(150, 131, 96, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: #1A2430;
}
.mapframe > img { width: 100%; height: auto; filter: saturate(0.88) brightness(0.94); }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(7, 10, 16, 0.86);
  border: 1px solid rgba(234, 231, 177, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.6rem 0.2rem 0.3rem;
  font-size: 0.78rem; color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s, transform 0.25s;
}
.pin:hover, .pin:focus-visible { border-color: var(--gold); transform: translate(-50%, -50%) scale(1.07); z-index: 5; }
.pin .pn {
  display: inline-grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--gold); color: #171207;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
}
.pin.contested { border-color: rgba(192, 138, 78, 0.9); }
.pin.contested .pn { background: var(--bronze-lit); }
.pin .plabel { text-shadow: 0 1px 8px rgba(2, 4, 8, 0.9); }
@media (max-width: 640px) { .pin .plabel { display: none; } .pin { padding: 0.3rem; } }
.map-legend { display: flex; gap: 1.4rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--paper-dim); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 0.45rem; }
.map-legend .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--gold); }
.map-legend .dot.c { background: var(--bronze-lit); }
.place-list { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.place-list li {
  display: flex; gap: 0.9rem; align-items: baseline;
  border-bottom: 1px solid rgba(150, 131, 96, 0.16);
  padding-bottom: 0.7rem;
}
.place-list .pn {
  flex: none; display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1px solid rgba(234, 231, 177, 0.45);
  color: var(--gold-dim);
  font-family: var(--font-display); font-size: 0.72rem;
}
.place-list .place-name { color: var(--paper); }
.place-list .place-note { color: var(--paper-dim); font-size: 0.88rem; display: block; }
.place-list li.contested {
  border: 1px solid rgba(192, 138, 78, 0.42);
  background: rgba(122, 86, 53, 0.14);
  border-radius: 8px; padding: 0.8rem;
}

/* --------------------------------------------------------------------------
   Manga band
   -------------------------------------------------------------------------- */
.manga-band { position: relative; overflow: hidden; }
.manga-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .manga-grid { grid-template-columns: 1fr; } }
.manga-peek {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(150, 131, 96, 0.35);
  box-shadow: var(--shadow-deep);
  transform: rotate(1.2deg);
}
.manga-peek img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0; max-width: 52rem; }
.faq-item { border-bottom: 1px solid rgba(150, 131, 96, 0.22); padding: 1.4rem 0; }
.faq-item h3 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; color: var(--paper);
  margin-bottom: 0.55rem;
}
.faq-item p { color: var(--paper-dim); max-width: 46rem; }
.faq-item p a { color: var(--gold-dim); }

/* --------------------------------------------------------------------------
   Final ask
   -------------------------------------------------------------------------- */
.final-ask { text-align: center; }
.final-ask .h2 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); }
.final-ask .lede { margin-inline: auto; margin-bottom: 2.2rem; }
.final-ask .cta-row { justify-content: center; }
.final-ask .byline {
  margin-top: 2.6rem;
  font-family: var(--font-display); letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--gold-dim);
}

/* --------------------------------------------------------------------------
   Reveal primitives. Content is NEVER hidden by CSS: entrance from-states are
   set inline by JS (gsap.set / Motion) at init time, and js/main.js removes
   them again if the animation libraries fail to load. Shipped CSS carries no
   hidden states, so the whole page renders complete with JS off.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .scrollcue::after { animation: none; }
}

/* --------------------------------------------------------------------------
   The read page — "the reading surface should feel like a book"
   -------------------------------------------------------------------------- */
.read-page { padding-top: 5rem; }
.read-head { padding: clamp(3rem, 8vh, 5.5rem) 0 2.5rem; }
.read-head .h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem); margin-bottom: 1.2rem; }
.read-meta {
  margin-top: 1.2rem;
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-dim);
}
.resume-chip { margin-top: 1.2rem; }
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  pointer-events: none;
}
.read-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  transform-origin: 0 50%; transform: scaleX(0);
}
.read-body {
  padding: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 4rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.22rem);
  line-height: 1.85;
}
.read-body p { margin-bottom: 1.35em; }
.chapter-rule {
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sage);
  display: flex; align-items: center; gap: 1.2rem;
  margin: 2.6rem 0 1.9rem;
}
.chapter-rule::before, .chapter-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(166, 192, 167, 0.4));
}
.chapter-rule::after { background: linear-gradient(90deg, rgba(166, 192, 167, 0.4), transparent); }
.chapter-rule:first-child { margin-top: 0; }
.sample-end {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.12em;
  color: var(--gold-dim);
}
.sample-end::before {
  content: ""; display: block; width: 4.5rem; height: 1px;
  background: var(--sage); margin: 0 auto 1.4rem;
}
.read-ask {
  border: 1px solid rgba(150, 131, 96, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 42, 62, 0.4), rgba(13, 17, 25, 0.72));
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 6rem;
}
.read-buy { margin-top: 1.4rem; font-size: 0.95rem; color: var(--paper-dim); }

/* --------------------------------------------------------------------------
   Reading order page
   -------------------------------------------------------------------------- */
.ro-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2.5rem, 6vh, 4rem); }
.ro-answer {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  line-height: 1.65; color: var(--paper);
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
  max-width: 44rem;
}
.faq-more { margin-top: 0.6rem; }
.faq-more a { font-size: 0.92rem; }
.order-note .dim, .order-note.dim { color: var(--paper-dim); }

/* --------------------------------------------------------------------------
   Books hub + volume pages
   -------------------------------------------------------------------------- */
.books-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2rem, 5vh, 3.5rem); }
.book-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .book-cards { grid-template-columns: 1fr; } }
.book-card {
  position: relative;
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.4rem; align-items: center;
  border: 1px solid rgba(150, 131, 96, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 17, 25, 0.55);
  padding: 1.3rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}
.book-card:hover { transform: translateY(-5px); border-color: rgba(234, 231, 177, 0.55); background: rgba(22, 42, 62, 0.4); }
.book-card .s-badge { top: -0.65rem; right: 0.9rem; position: absolute; }
.book-card-cover img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 5px; box-shadow: var(--shadow-card); }
.book-card-body h3 { font-size: 1.35rem; margin: 0.35rem 0 0.5rem; }
.book-card-body .vol-tag {
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dim); display: block;
}
.book-hook { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
.book-card .s-meta { font-size: 0.82rem; color: var(--paper-dim); }

.book-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2.5rem, 6vh, 4rem); }
.book-hero-grid { display: grid; grid-template-columns: 21.5rem 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .book-hero-grid { grid-template-columns: 1fr; } }
.book-cover { position: sticky; top: 6rem; }
@media (max-width: 860px) { .book-cover { position: static; max-width: 20rem; } }
.book-cover img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-deep); border: 1px solid rgba(234, 231, 177, 0.14); }
.book-signpost {
  border-left: 3px solid var(--bronze-lit);
  background: rgba(122, 86, 53, 0.12);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.98rem; color: var(--paper);
  max-width: 42rem;
}
.book-signpost strong { color: var(--gold); font-weight: 400; }
.book-ratings { margin: 0.4rem 0 1.4rem; font-size: 0.95rem; }
.book-ratings a { color: var(--gold-dim); }
.book-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .book-facts-grid { grid-template-columns: 1fr; } }
.book-facts { align-content: start; }
.book-opening {
  margin: 1.6rem 0;
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.3rem;
}
.book-opening blockquote {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); line-height: 1.5;
}
.book-opening figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--paper-dim); }
.kept-back { margin-top: 2rem; }
.kept-title {
  font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 400; margin-bottom: 0.9rem;
}
.book-nav { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 5rem; }
.book-nav a {
  font-family: var(--font-display); letter-spacing: 0.1em; font-size: 0.92rem;
  color: var(--gold-dim); text-decoration: none; padding: 0.7rem 0;
}
.book-nav a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Atlas — deep-zoom viewer + dossier
   -------------------------------------------------------------------------- */
.atlas-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2rem, 5vh, 3.5rem); }
.atlas-viewer {
  position: relative;
  height: min(80vh, 58rem);
  border: 1px solid rgba(150, 131, 96, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  background: #22303E;
  box-shadow: var(--shadow-deep);
  cursor: grab;
  touch-action: none;
}
.atlas-viewer.grabbing { cursor: grabbing; }
.atlas-viewer:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.atlas-fallback { width: 100%; height: 100%; object-fit: contain; }
.atlas-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.atlas-tiles, .atlas-pins { position: absolute; left: 0; top: 0; }
.atlas-pin {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transform-origin: 50% 100%;
  background: rgba(7, 10, 16, 0.88);
  border: 1px solid rgba(234, 231, 177, 0.45);
  border-radius: 999px;
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  color: var(--paper);
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.atlas-pin:hover, .atlas-pin:focus-visible { border-color: var(--gold); background: rgba(7, 10, 16, 0.96); z-index: 10; }
.atlas-pin-dot {
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(234, 231, 177, 0.7);
  flex: none;
}
.atlas-pin.contested { border-color: rgba(192, 138, 78, 0.9); }
.atlas-pin.contested .atlas-pin-dot { background: var(--bronze-lit); box-shadow: 0 0 10px rgba(192, 138, 78, 0.8); }
.atlas-pins.far .atlas-pin-label { display: none; }
.atlas-ui {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 20;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.atlas-ui button {
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px;
  border: 1px solid rgba(234, 231, 177, 0.4);
  background: rgba(7, 10, 16, 0.86);
  color: var(--gold);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.atlas-ui button:hover { border-color: var(--gold); transform: translateY(-1px); }
.atlas-hint {
  position: absolute; left: 0; right: 0; bottom: 0.9rem; z-index: 20;
  text-align: center;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(214, 222, 232, 0.85);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(2, 4, 8, 0.9);
}
.atlas-detail {
  position: relative;
  margin-top: 1.2rem;
  border: 1px solid rgba(150, 131, 96, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 42, 62, 0.5), rgba(13, 17, 25, 0.85));
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 3vw, 2rem);
  max-width: 62rem;
}
.atlas-detail h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.atlas-detail p { margin: 0.7rem 0; }
.atlas-detail-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: none; color: var(--paper-dim);
  font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0.3rem;
}
.atlas-detail-close:hover { color: var(--gold); }
.dossier-contested {
  border: 1px solid rgba(192, 138, 78, 0.42);
  background: rgba(122, 86, 53, 0.14);
  border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0;
}
.dossier-contested h4 {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bronze-lit); margin-bottom: 0.4rem;
}
.chip-contested { color: var(--bronze-lit); border-color: rgba(192, 138, 78, 0.55); }
.place-rows { list-style: none; display: grid; gap: 0; max-width: 70rem; }
.place-row {
  display: grid; grid-template-columns: minmax(12rem, 0.32fr) 1fr 1fr;
  gap: 1.4rem; align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(150, 131, 96, 0.18);
}
@media (max-width: 820px) { .place-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.place-row h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.place-row .place-sig { font-size: 0.95rem; }
.atlas-subhead {
  font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 400;
  margin: 3rem 0 0.8rem;
}
.map-notes { margin-top: 2rem; max-width: 52rem; }

/* --------------------------------------------------------------------------
   Simple pages (faq, about, privacy, terms)
   -------------------------------------------------------------------------- */
.simple-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(3rem, 8vh, 6rem); }
.prose-page h2 {
  font-size: 1.15rem; letter-spacing: 0.08em; color: var(--gold);
  margin: 2.2rem 0 0.7rem;
}
.prose-page p { margin-bottom: 1em; max-width: 46rem; }
.prose-page .linklike {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--gold-dim); cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.22em;
  text-decoration-color: rgba(201, 190, 138, 0.4);
}
.prose-page .linklike:hover { color: var(--gold); }
.prose-page strong { color: var(--gold); font-weight: 500; }


/* --------------------------------------------------------------------------
   Characters codex
   -------------------------------------------------------------------------- */
.codex-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2rem, 5vh, 3.5rem); }
.codex-group { padding-block: clamp(2.5rem, 6vh, 4rem); }
.codex-group-head { margin-bottom: 1.8rem; max-width: 46rem; }
.codex-grid {
  list-style: none;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) { .codex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .codex-grid { grid-template-columns: 1fr; } }
.codex-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(150, 131, 96, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 17, 25, 0.55);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.codex-card:hover { transform: translateY(-4px); border-color: rgba(234, 231, 177, 0.45); }
.codex-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--midnight); }
.codex-media img { width: 100%; height: 100%; object-fit: cover; }
.codex-art-label {
  position: absolute; left: 0.7rem; bottom: 0.7rem;
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(7, 10, 16, 0.85); color: var(--gold-dim);
  border: 1px solid rgba(150, 131, 96, 0.4); border-radius: 999px; padding: 0.25rem 0.6rem;
}
.codex-mono {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 90% at 50% 110%, rgba(64, 87, 129, 0.5), transparent 70%),
    linear-gradient(160deg, var(--indigo), var(--midnight));
}
.codex-mono span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.2rem; letter-spacing: 0.18em; color: var(--gold-dim);
  text-shadow: 0 0 30px rgba(234, 231, 177, 0.15);
}
.codex-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.codex-body h3 { font-size: 1.3rem; }
.codex-body .c-label { font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-dim); }
.codex-alleg { font-size: 0.82rem; color: var(--bronze-lit); letter-spacing: 0.08em; }
.codex-tag { font-style: italic; color: var(--gold); font-size: 0.98rem; }
.codex-bio { font-size: 0.93rem; color: var(--paper-dim); line-height: 1.65; }
.codex-quote { margin-top: 0.6rem; border-left: 2px solid var(--brass); padding-left: 0.9rem; }
.codex-quote blockquote { font-style: italic; color: var(--paper); font-size: 0.95rem; }
.codex-quote figcaption { font-size: 0.78rem; color: var(--paper-dim); margin-top: 0.25rem; }
.codex-quote.gated { margin-top: 1rem; }
.codex-gate { margin-top: auto; padding: 1rem 1.1rem; }
.codex-gate .gate-text h3 { font-size: 0.85rem; }
.codex-gate .gate-text p { font-size: 0.82rem; }
.codex-gate .gate-body { flex-basis: 100%; margin-top: 0.9rem; font-size: 0.92rem; color: var(--paper); border-top: 1px dashed rgba(192, 138, 78, 0.4); padding-top: 0.9rem; }
.codex-gate .btn { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.72rem; }

/* ==========================================================================
   Manga reader page (/manga/)
   One stack of figures, presented two ways: [data-mode="scroll"] shows every
   page in a single column; [data-mode="paged"] shows one screen at a time in a
   near-black stage. All sixteen pages and the end card render without JS.
   ========================================================================== */

.manga-hero { padding: clamp(8rem, 18vh, 12rem) 0 clamp(2rem, 5vh, 3.5rem); }
.manga-reader-section { padding-bottom: clamp(3rem, 8vh, 5.5rem); }

.manga-reader {
  border: 1px solid rgba(150, 131, 96, 0.35);
  border-radius: var(--radius);
  background: #05070B;  /* the reader's own near black: the letterbox */
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

/* --- chrome: a solid near-black bar, never translucent -------------------- */
.mr-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.25rem; flex-wrap: wrap;
  padding: 0.65rem 1rem;
  background: #05070B;
  border-bottom: 1px solid rgba(150, 131, 96, 0.28);
}
.mr-title { display: flex; flex-direction: column; gap: 0.1rem; min-width: 11rem; }
.mr-name {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim);
}
.mr-credit { font-size: 0.8rem; color: var(--paper-dim); }
.mr-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mr-counter {
  font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.14em; color: var(--gold);
  min-width: 4.5rem; text-align: center;
}
.mr-btn {
  min-height: 44px; padding: 0.45rem 0.9rem;
  border: 1px solid rgba(150, 131, 96, 0.45); border-radius: 7px;
  background: transparent; color: var(--gold-dim);
  font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mr-btn:hover { color: var(--gold); border-color: var(--gold); }
.mr-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: rgba(234, 231, 177, 0.07); }

/* --- progress hairline: pace in sage, like the read page ------------------ */
.mr-progress { height: 2px; background: rgba(214, 222, 232, 0.07); }
.mr-progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  transform-origin: 0 50%; transform: scaleX(0.0588);
  transition: transform 0.25s ease;
}

/* --- the stack: all sixteen pages, 12px gutter, no page frames ------------ */
.mr-body { position: relative; }
.mr-stack {
  max-width: 56.25rem; margin-inline: auto;
  padding: 0.75rem; display: grid; gap: 0.75rem;
}
.mr-page { margin: 0; }
.mr-page picture { display: block; }
.mr-page img {
  width: 100%; height: auto;
  border-radius: 3px;
  background: #0A0E14;  /* placeholder ground while the page bitmap loads */
}
.mr-page figcaption {
  padding: 0.6rem 0.35rem 0.3rem;
  font-size: 0.88rem; line-height: 1.55; color: var(--paper-dim);
}
.mr-cap-credit { font-size: 0.78rem; color: rgba(154, 170, 187, 0.72); }

/* --- paged mode: one screen centred in the stage -------------------------- */
.manga-reader[data-mode="paged"] .mr-stack {
  max-width: none; min-height: 60vh;
  place-items: center; align-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.manga-reader[data-mode="paged"] .mr-page { display: none; }
.manga-reader[data-mode="paged"] .mr-page.is-current {
  display: grid; justify-items: center; gap: 0.55rem; margin: 0;
}
.manga-reader[data-mode="paged"] .mr-page.is-current img {
  width: auto; max-width: 100%; max-height: 80vh;
  box-shadow: var(--shadow-card);
}
.manga-reader[data-mode="paged"] .mr-page.is-current figcaption {
  text-align: center; max-width: 44rem;
}
.manga-reader[data-mode="paged"] .mr-end { display: none; }
.manga-reader[data-mode="paged"] .mr-end.is-current { display: block; width: 100%; }
.manga-reader[data-mode="paged"] .mr-note-flow { display: none; }

/* --- full width zoom inside paged mode: the stage scrolls vertically ------ */
.manga-reader[data-mode="paged"].is-zoomed .mr-body { max-height: 88vh; overflow-y: auto; }
.manga-reader[data-mode="paged"].is-zoomed .mr-stack { min-height: 0; place-items: start center; }
.manga-reader[data-mode="paged"].is-zoomed .mr-page.is-current { width: 100%; }
.manga-reader[data-mode="paged"].is-zoomed .mr-page.is-current img {
  width: 100%; max-width: none; max-height: none;
}

/* --- prev / next: floating over the stage, 48px targets ------------------- */
.mr-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(150, 131, 96, 0.5);
  background: rgba(5, 7, 11, 0.88); color: var(--gold);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.manga-reader[data-mode="paged"] .mr-nav { display: inline-flex; }
.mr-nav:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.mr-nav:disabled { color: var(--paper-dim); border-color: rgba(150, 131, 96, 0.25); cursor: default; }
.mr-prev { left: 0.75rem; }
.mr-next { right: 0.75rem; }
.manga-reader[data-mode="paged"].is-zoomed .mr-nav { top: 44vh; }

/* --- page change settle: a short fade plus a one percent scale ------------ */
@keyframes mrEnter {
  from { opacity: 0.01; transform: scale(0.99); }
  to { opacity: 1; transform: none; }
}
.mr-enter { animation: mrEnter 160ms ease-out; }

/* --- the quiet line from page 12 on: small, non-modal, not sticky --------- */
.mr-note {
  border-top: 1px solid rgba(150, 131, 96, 0.28);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  font-size: 0.88rem; color: var(--paper-dim); text-align: center;
  background: #05070B;
}
.mr-note a { color: var(--gold-dim); }
.mr-note[hidden] { display: none; }
.mr-note-flow { border-top: none; padding-top: 0.2rem; }

/* --- the seventeenth screen: the conversion card -------------------------- */
.mr-end {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.mr-end-eyebrow { justify-content: center; }
.mr-end-eyebrow::after { display: none; }
.mr-end-title { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); }
.mr-end-lede { margin: 0 auto 1.6rem; font-size: 1.05rem; }
.mr-end-cta { justify-content: center; }
.mr-end-tert { margin-top: 1.4rem; font-size: 0.95rem; }
.mr-end-credit {
  margin-top: 2rem;
  font-family: var(--font-display); font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim);
}
