/* ==========================================================================
   rapturenft.com , sacred-archive cinematic theme
   Near-black ground, gold leaf, Cinzel display, Fraunces italic scripture,
   Inter body. Built standalone: does not depend on jasonhaygood styles.css.
   ========================================================================== */

:root {
  --ink: #050403;
  --ink-2: #0c0906;
  --panel: #14100a;
  --panel-2: #1c150d;
  --line: rgba(212, 175, 91, 0.22);
  --line-soft: rgba(212, 175, 91, 0.12);
  --gold: #d4af5b;
  --gold-bright: #f3d98a;
  --gold-small: #e3c169;
  --gold-dim: #9c7f3f;
  --white: #f6f1e6;
  --dim: #cfc9bc;
  --dim-strong: #a89f89;
  --red: #8a2f2f;
  --glow: rgba(212, 175, 91, 0.35);
}
/* 2026-09-03 legibility pass (Jason directive): small gold labels/eyebrows
   and dim body copy were reading as low-contrast even where WCAG math
   technically cleared 4.5:1, because the design used the same muted tones
   at both small and large sizes. --dim/--dim-strong raised in luminance;
   --gold-small is the brighter gold reserved for small text (eyebrows,
   labels, refs, captions) while --gold/--gold-bright stay for large
   display titles and scripture. Minimum caption/footnote size is 13px. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }

body.rn-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,91,0.06), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(212,175,91,0.04), transparent 50%);
}

.rn-body a { color: inherit; text-decoration: none; }
.rn-body em {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  color: var(--gold-bright);
}
.rn-body strong { font-weight: 600; color: var(--white); }
.rn-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  .rn-body * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================ NAV */
.rn-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 40px;
  background: rgba(5,4,3,0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.rn-brand { display: flex; align-items: center; gap: 12px; }
.rn-brand-mark {
  width: 36px; height: 36px; display: block; object-fit: cover;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px;
  border-radius: 3px;
  box-shadow: 0 0 14px var(--glow), inset 0 0 8px rgba(212,175,91,0.15);
}
.rn-brand-sub { font-family: 'Cinzel', serif; color: var(--dim); font-size: 13px; letter-spacing: 1.5px; }
.rn-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rn-link { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; transition: color 0.2s; }
.rn-link:hover { color: var(--gold-bright); text-shadow: 0 0 12px var(--glow); }
@media (max-width: 760px) {
  .rn-nav { padding: 14px 18px; }
  .rn-brand-sub { display: none; }
  .rn-links {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100vw - 70px);
    scrollbar-width: none;
  }
  .rn-links::-webkit-scrollbar { display: none; }
  .rn-link { flex-shrink: 0; }
}

/* Revelation sub-nav: a small CSS-only dropdown (Beasts, Signs) off the
   Revelation link, desktop only. Hover or keyboard focus reveals it;
   :focus-within keeps it reachable by tab, not just a mouse. Declutters the
   primary row from 7 items to 3 (Gallery, Revelation, Ledger) -- Prophecies
   and Jason Haygood moved to footer + drawer only. */
.rn-nav-item { position: relative; display: flex; align-items: center; }
.rn-subnav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  display: flex; flex-direction: column; gap: 2px; min-width: 130px;
  background: rgba(5,4,3,0.94); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.rn-nav-item:hover .rn-subnav-drop,
.rn-nav-item:focus-within .rn-subnav-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.rn-sublink { padding: 8px 12px; border-radius: 4px; white-space: nowrap; }
.rn-sublink:hover { background: rgba(212,175,91,0.08); }
@media (max-width: 760px) {
  /* Dropdown is a desktop affordance; the drawer already lists Beasts/Signs
     directly beneath Revelation, so the hover mechanism just gets out of
     the way on touch rather than trying to be tapped open. */
  .rn-subnav-drop { display: none; }
}

/* External-link cue: a small subscript arrow after any nav/footer link that
   leaves rapturenft.com (theprophecyledger.com). Signals before the click
   that the destination is a different site. */
.rn-ext { font-size: 0.75em; margin-left: 3px; opacity: 0.75; vertical-align: super; }

/* Drawer sub-items (mobile): Beasts and Signs indent under Revelation to
   show the same grouping the desktop dropdown expresses. */
.rn-drawer-sub { padding-left: 34px !important; font-size: 0.92em; opacity: 0.88; }

/* Gold-rule section divider: a thin glowing gradient line in place of a flat
   border, used between the homepage's certainties / agree / disagree / doors
   sections for a more polished, less abrupt transition. */
.rn-gold-rule { height: 1px; margin: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ============================================================ ORNAMENT FRAME */
.rn-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.rn-frame::before, .rn-frame::after,
.rn-frame > .rn-corner-tl, .rn-frame > .rn-corner-br { display: none; }
.rn-corners { position: absolute; inset: 10px; pointer-events: none; }
.rn-corners::before, .rn-corners::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--gold);
}
.rn-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.rn-corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ============================================================ HERO
   2026-09-03 Grok-style cinematic pass (Jason directive): full-viewport
   video with the frame essentially unobscured. The old two-line title +
   verse block that used to sit over the art moved down into .rn-fold,
   directly below the fold, where it fades in on scroll. Over the video
   itself: only the brand mark/nav (already fixed, layered above via
   z-index) and one short line near the bottom. */
.rn-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.rn-hero-slides { position: absolute; inset: 0; z-index: 0; }
.rn-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s ease;
}
.rn-hero-slide.on { opacity: 1; }

/* Opening hero video (2026-09-03): the man stepping toward the angel,
   autoplay/muted/loop over the same position the Ken Burns slides used to
   own alone. JS (inline in index.html) decides whether this plays at all
   -- prefers-reduced-motion and Save-Data visitors never get a <video>
   element in the DOM to begin with, so the Ken Burns slides below run
   completely unmodified as the fallback for them. */
.rn-hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* Source clip is 16:9 and roughly center-composed (man + angel both sit
   near horizontal-center). On tall/narrow viewports object-fit:cover only
   crops the sides, so the figures stay fully in frame top-to-bottom at
   center; no vertical shift needed. Verified against 375x812. */
.rn-hero.rn-hero-has-video .rn-hero-slides,
.rn-hero.rn-hero-has-video .rn-hero-caption { display: none; }
/* Soft bottom-only scrim -- last ~25% of the frame, nothing across the
   rest of the video. Just enough for the bottom line + scroll cue to
   read; the art above it is otherwise completely unobscured. */
.rn-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%, transparent 74%,
    rgba(5,4,3,0.5) 88%, rgba(5,4,3,0.88) 100%);
}
.rn-hero-bottom {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding: 0 24px 64px;
}
.rn-hero-line {
  font-family: 'Cinzel', serif; font-weight: 600; color: var(--white);
  font-size: clamp(15px, 1.9vw, 20px); letter-spacing: 0.6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.85);
  opacity: 1; transition: opacity 1s ease;
}
.rn-hero-line.rn-pre-video { opacity: 0; }
.rn-hero-scrollcue {
  width: 22px; height: 36px; border: 1.5px solid rgba(246,241,230,0.55);
  border-radius: 12px; position: relative;
}
.rn-hero-scrollcue span {
  position: absolute; top: 6px; left: 50%; width: 4px; height: 8px;
  background: var(--gold-small); border-radius: 2px; transform: translateX(-50%);
  animation: rn-scrollcue 1.8s ease-in-out infinite;
}
@keyframes rn-scrollcue {
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .rn-hero-scrollcue span { animation: none; opacity: 1; } }

/* ---- Fold section: the full title/verse/CTA that used to sit over the
   video now lives here, directly below it, fading in on scroll (see
   .rn-fold-reveal in the general .rn-reveal rules further down). ---- */
.rn-fold { padding: 108px 0 84px; }
.rn-fold-inner { max-width: 900px; margin: 0 auto; }
.rn-hero-kicker {
  font-family: 'Cinzel', serif; color: var(--gold-small); font-size: 13px; font-weight: 600;
  letter-spacing: 4px; margin-bottom: 22px; text-shadow: 0 0 16px var(--glow);
}
.rn-hero-title {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 26px; text-wrap: balance;
  color: var(--white);
}
.rn-hero-verse {
  font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(17px, 2vw, 22px);
  color: var(--gold-bright); max-width: 680px; margin-bottom: 10px; line-height: 1.6;
}
.rn-hero-ref { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 3px; color: var(--dim); margin-bottom: 40px; }
.rn-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.rn-hero-caption {
  position: absolute; bottom: 22px; left: 40px; z-index: 2;
  font-size: 13px; letter-spacing: 1.5px; color: var(--dim-strong);
}
@media (max-width: 700px) {
  .rn-fold { padding: 76px 0 60px; }
  .rn-hero-bottom { padding: 0 20px 44px; }
  .rn-hero-caption { left: 22px; }
}

/* ============================================================ BUTTONS */
.rn-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 2px; cursor: pointer;
  transition: all 0.22s ease; border: 1px solid transparent;
}
.rn-btn-gold {
  background: linear-gradient(135deg, #e9cd85, #b8903f);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset;
}
.rn-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--glow), 0 0 0 1px rgba(255,255,255,0.35) inset; }
.rn-btn-line { border-color: var(--gold-dim); color: var(--gold-bright); }
.rn-btn-line:hover { border-color: var(--gold); background: rgba(212,175,91,0.08); }

/* ============================================================ SECTIONS */
.rn-section { padding: 100px 0; border-top: 1px solid var(--line-soft); }
.rn-section.tight { padding: 70px 0; }
.rn-eyebrow { font-family: 'Cinzel', serif; color: var(--gold-small); font-size: 13px; font-weight: 700; letter-spacing: 3px; margin-bottom: 16px; }
.rn-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(28px, 4vw, 52px); line-height: 1.15; margin-bottom: 20px; text-wrap: balance; }
.rn-lead { font-size: 17px; color: var(--dim); max-width: 700px; margin-bottom: 44px; line-height: 1.65; text-wrap: pretty; }

/* ============================================================ SCRIPTURE CALLOUT */
.rn-verse-block {
  text-align: center; max-width: 760px; margin: 40px auto; padding: 8px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 20px;
}
.rn-verse-block .v { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(18px,2.4vw,26px); color: var(--gold-bright); line-height: 1.55; }
.rn-verse-block .r { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 3px; color: var(--dim-strong); margin-top: 16px; }

/* ============================================================ ART TILES */
.rn-art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px; margin: 8px 0 8px; }
.rn-art-tile { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--panel); }
.rn-art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: saturate(0.95) contrast(1.03); }
.rn-art-tile:hover img { transform: scale(1.05); filter: saturate(1.05) contrast(1.06); }
.rn-art-tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.rn-art-tile:hover::after { box-shadow: inset 0 0 0 1px var(--gold), 0 0 30px var(--glow); }
.rn-art-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 12px; color: var(--dim); background: linear-gradient(0deg, rgba(5,4,3,0.92), transparent); }
.rn-art-cap b { color: var(--gold-small); display: block; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 3px; }

.rn-fullbleed { position: relative; width: 100%; aspect-ratio: 16/8; overflow: hidden; margin: 20px 0; }
.rn-fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.rn-fullbleed .cap { position: absolute; left: 24px; bottom: 20px; font-size: 12px; color: var(--dim); text-shadow: 0 2px 8px rgba(0,0,0,0.8); }

/* ============================================================ PANEL / NUMERAL INFOGRAPHIC (Bo Polny slide language) */
.rn-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
  position: relative;
}
.rn-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.rn-num { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold-bright); font-size: 56px; line-height: 1; text-shadow: 0 0 20px var(--glow); }
.rn-num-label { font-size: 13px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; margin-top: 10px; }
.rn-num-ref { font-size: 13px; color: var(--dim-strong); margin-top: 4px; }

/* ============================================================ AGREE / DISAGREE GRID */
.rn-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.rn-view-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px 22px; }
.rn-view-card .vc-name { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold-bright); margin-bottom: 10px; letter-spacing: 0.4px; }
.rn-view-card p { font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.rn-view-card .vc-holders { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--dim-strong); }

/* ============================================================ THREE DOORS */
.rn-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rn-door { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.rn-door img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: saturate(0.9) brightness(0.75); }
.rn-door:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(0.85); }
.rn-door-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,4,3,0.95) 100%); }
.rn-door-label { position: absolute; left: 24px; right: 24px; bottom: 26px; }
.rn-door-label .dl-eyebrow { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 3px; color: var(--gold-small); margin-bottom: 8px; }
.rn-door-label .dl-title { font-family: 'Cinzel', serif; font-size: 24px; color: var(--white); }
.rn-door-label .dl-sub { font-size: 13px; color: var(--dim); margin-top: 8px; }
@media (max-width: 860px) { .rn-doors { grid-template-columns: 1fr; } .rn-door { aspect-ratio: 16/10; } }

/* ============================================================ BEASTS BESTIARY */
.rn-beast-list { display: flex; flex-direction: column; gap: 4px; }
.rn-beast {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.rn-beast-art { position: relative; min-height: 320px; }
.rn-beast-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-beast-art.placeholder { display: grid; place-items: center; background: radial-gradient(ellipse at center, var(--panel-2), var(--ink)); }
.rn-beast-art.placeholder .rn-num { font-size: 44px; opacity: 0.5; }
.rn-beast-body { padding: 34px 32px; }
.rn-beast-ref { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 2.5px; color: var(--gold-small); margin-bottom: 10px; }
.rn-beast-name { font-family: 'Cinzel', serif; font-size: clamp(22px,3vw,32px); color: var(--white); margin-bottom: 14px; }
.rn-beast-verse { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 15px; line-height: 1.6; border-left: 2px solid var(--line); padding-left: 14px; margin: 0 0 16px; }
.rn-beast-body p.note { font-size: 13.5px; color: var(--dim); line-height: 1.65; margin-bottom: 12px; }
.rn-beast-body .kit { font-size: 12px; color: var(--dim-strong); border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.rn-beast-body .kit b { color: var(--gold); }
@media (max-width: 820px) { .rn-beast { grid-template-columns: 1fr; } .rn-beast-art { min-height: 220px; } }

/* ============================================================ STICKY SUBNAV */
.rn-subnav {
  position: sticky; top: 68px; z-index: 90;
  background: rgba(5,4,3,0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex; gap: 4px; overflow-x: auto; padding: 0 24px;
}
.rn-subnav a { padding: 14px 16px; font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--dim); white-space: nowrap; border-bottom: 2px solid transparent; }
.rn-subnav a:hover { color: var(--gold-small); border-bottom-color: var(--gold); }

/* ============================================================ FOOTER */
.rn-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--ink-2); }
.rn-footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 18px; }
.rn-footer-name { font-family: 'Cinzel', serif; font-size: 17px; color: var(--white); }
.rn-footer-sub { font-size: 13px; color: var(--dim-strong); margin-top: 4px; }
.rn-footer-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.rn-footer-links a { color: var(--dim); }
.rn-footer-links a:hover { color: var(--gold-bright); }
.rn-footer-meta { text-align: center; font-size: 13px; color: var(--dim-strong); padding-top: 20px; border-top: 1px solid var(--line-soft); letter-spacing: 1px; line-height: 1.8; }

/* ============================================================ STATUS PILLS (shared with prophecyledger, kept for shared components) */
.rn-pill { display: inline-block; font-size: 13px; letter-spacing: 1px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); text-transform: uppercase; }
.rn-pill.hit { border-color: var(--gold); color: var(--gold-bright); }
.rn-pill.missed { border-color: rgba(138,47,47,0.6); color: #c98686; }
.rn-pill.pending { border-color: rgba(140,150,170,0.4); color: #9aa3b5; }
.rn-pill.debunked { border-color: rgba(138,47,47,0.6); color: #c98686; text-decoration: line-through; }

@media (max-width: 375px) { .rn-container { padding: 0 18px; } }

/* ============================================================
   COMPAT ALIASES , reskins pages still carrying jasonhaygood's
   legacy class names (.hero, .section-eyebrow, .venture-card, etc.)
   from cyan/gunmetal to this theme's gold-on-black by redefining the
   SAME custom-property names their old styles.css rules read from.
   Loaded AFTER styles.css so this :root wins the cascade. New pages
   (home, beasts) never read these legacy vars, so this is additive.
   ============================================================ */
:root {
  /* NOTE: --gold, --gold-bright, --white, --dim, --dim-strong, --line are
     already declared in the primary :root block at the top of this file
     with the values this site wants, so they are deliberately NOT
     redeclared here. A self-referencing custom property (e.g.
     "--gold: var(--gold);") is a cycle per the CSS spec and resolves to
     the guaranteed-invalid value, which silently breaks every rule that
     reads it (this shipped once, live, and rendered all hero/body text
     black , fixed 2026-09-03). Only names genuinely absent from the
     primary block are aliased below. */
  --navy-deep: var(--ink);
  --navy: var(--panel);
  --navy-light: var(--panel-2);
  --glow-soft: rgba(212, 175, 91, 0.28);
  --metal: linear-gradient(135deg, #f3e6bd 0%, #c9a94f 45%, #f6ecc9 70%, #ad8a3a 100%);
}
body:not(.rn-body) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
}
body:not(.rn-body) em { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); }

/* Scripture translation switcher (2026-09-03), shared with theprophecyledger.com. */
.translation-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 12px;
  flex-shrink: 0;
}
.translation-pill {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dim, #9a9488);
  background: transparent;
  border: 1px solid var(--line, rgba(212,175,91,0.25));
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.translation-pill:hover { color: var(--gold-bright, #e8c766); border-color: var(--gold, #d4af5b); }
.translation-pill.active {
  color: #0c0a06;
  background: var(--gold, #d4af5b);
  border-color: var(--gold, #d4af5b);
}
.scripture-notice {
  font-size: 13px;
  color: var(--dim-strong, #6b6459);
  line-height: 1.5;
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 16px;
  text-align: center;
}
@media (max-width: 760px) {
  .translation-switcher { margin-left: 0; order: 3; width: 100%; justify-content: center; padding-top: 8px; }
}
.r-verse .v-text::before { content: "\201C"; }
.r-verse .v-text::after { content: "\201D"; }

/* ============================================================ MOBILE FIRST
   Base padding/tap-target pass (2026-09-03, Jason directive): 375/414px
   gets real edge padding, no element tighter than 16px from the edge,
   tap targets >=44px, tables/wide content scroll in their own wrapper. */
@media (max-width: 480px) {
  .rn-container { padding: 0 20px; }
  body.rn-body { font-size: 16px; line-height: 1.6; }
}
.rn-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rn-btn, .rn-link, a.rn-link { min-height: 44px; display: inline-flex; align-items: center; }
.rn-links .rn-link { min-height: 44px; }

/* ============================================================ HAMBURGER + LEFT DRAWER
   Shared component (rapturenft.com + theprophecyledger.com carry matching
   markup/behavior, see jasonhaygood/rapture/_theme.css for the site-B
   variant and drawer.js for the shared logic). Hidden at desktop widths
   where the existing top nav already shows every link. */
.rn-hamburger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; flex-shrink: 0; margin-right: 12px;
}
.rn-hamburger span { display: block; width: 20px; height: 2px; background: var(--gold-small); border-radius: 2px; }
.rn-drawer-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,4,3,0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.rn-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.rn-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 301;
  width: min(84vw, 320px);
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(0,0,0,0.5);
  transform: translateX(-100%);
  transition: transform 0.26s ease;
  display: flex; flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}
.rn-drawer.open { transform: translateX(0); }
.rn-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 20px 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rn-drawer-brand { font-family: 'Cinzel', serif; color: var(--white); font-size: 15px; letter-spacing: 1.5px; }
.rn-drawer-close { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--gold-small); font-size: 22px; line-height: 1; cursor: pointer; }
.rn-drawer-links { display: flex; flex-direction: column; padding: 4px 8px; }
.rn-drawer-links a {
  color: var(--dim); font-size: 15px; font-weight: 600; letter-spacing: 0.6px;
  padding: 13px 12px; border-radius: 6px; min-height: 44px; display: flex; align-items: center;
}
.rn-drawer-links a:hover, .rn-drawer-links a:focus-visible { color: var(--gold-small); background: rgba(212,175,91,0.08); }
.rn-drawer .translation-switcher { margin: 16px 12px 4px; padding-top: 16px; border-top: 1px solid var(--line); justify-content: flex-start; flex-wrap: wrap; }
body.rn-drawer-lock { overflow: hidden; }

@media (max-width: 899px) {
  .rn-hamburger { display: flex; }
  .rn-nav .rn-links { display: none; }
  .rn-nav .translation-switcher { display: none; }
}
@media (min-width: 900px) {
  .rn-drawer, .rn-drawer-backdrop { display: none; }
}

/* ============================================================
   AMBIENT EFFECTS (2026-09-03) , scroll reveal, Ken Burns hero
   drift, gold-dust canvas, cursor halo, vignette pulse, cross-
   document view transitions. Paired JS: effects.js (desktop-only
   for dust/halo/parallax; reveal degrades to instant-visible).
   Every animated rule below has a prefers-reduced-motion escape.
   ============================================================ */

/* Slow Ken Burns drift on the hero background slide currently on screen.
   Pure CSS: .rn-hero already clips overflow, so a transform: scale on the
   slide itself never leaks past the hero bounds. */
.rn-hero-slide { transform-origin: 50% 50%; will-change: transform; }
.rn-hero-slide.on { animation: rn-kenburns 22s ease-in-out infinite alternate; }
@keyframes rn-kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.07) translate(-1.2%, -1%); }
}

/* Gold-dust particle canvas, hero only, injected by effects.js. Sits above
   the darkening scrim (same z-index, later in DOM order) and below the
   title/CTA block. screen blend keeps flecks from ever muddying the art. */
.rn-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }

/* Scroll reveal: panels, view cards, doors, beast rows, token panels, art
   tiles fade/rise/unblur into place once. Default state stays a real,
   already-laid-out element (no display:none, no height collapse) so a
   headless check or a paused tab never hides content that never reveals. */
.rn-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition: opacity .6s cubic-bezier(0.22,1,0.36,1), transform .6s cubic-bezier(0.22,1,0.36,1), filter .6s ease;
}
.rn-reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Stagger-in: children of the homepage certainty grid and the agree/disagree
   card grids rise in one after another rather than all at once, each riding
   the same .rn-reveal fade/rise/blur transition already wired up by
   effects.js's IntersectionObserver -- this only staggers the timing via
   transition-delay, per nth child, so no extra JS or markup is needed. */
.rn-panel-grid .rn-panel:nth-child(1) { transition-delay: 0ms; }
.rn-panel-grid .rn-panel:nth-child(2) { transition-delay: 90ms; }
.rn-panel-grid .rn-panel:nth-child(3) { transition-delay: 180ms; }
.rn-panel-grid .rn-panel:nth-child(4) { transition-delay: 270ms; }
.rn-views .rn-view-card:nth-child(1) { transition-delay: 0ms; }
.rn-views .rn-view-card:nth-child(2) { transition-delay: 90ms; }
.rn-views .rn-view-card:nth-child(3) { transition-delay: 180ms; }
.rn-views .rn-view-card:nth-child(4) { transition-delay: 270ms; }

/* Cursor halo on art tiles / doors, desktop pointer only (effects.js gates
   creation to hover:hover + pointer:fine + >=900px, so this CSS is inert
   dead weight, not a broken hover trap, on touch). */
.rn-art-tile, .rn-door { position: relative; }
.rn-halo {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(212,175,91,0.32), transparent 62%);
  mix-blend-mode: screen;
}
.rn-art-tile:hover .rn-halo, .rn-door:hover .rn-halo { opacity: 1; }

/* "Living token" hover/tap-to-play video crossfade (2026-09-03 test, 3 ids).
   Markup: a .rn-media wrapper around the existing <img>, plus a muted/looped
   <video preload="none"> with its real src deferred to data-src until
   effects.js activates it (no video weight loads unless it's about to play).
   .rn-media-fill is only used on .tc-hero, which was already position:
   relative + a fixed aspect-ratio and previously held the <img> directly. */
.rn-media { position: relative; }
.rn-media.rn-media-fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.rn-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.rn-media.rn-video-active .rn-media-video { opacity: 1; }
.rn-living-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(5,4,3,0.72); border: 1px solid var(--gold);
  padding: 4px 9px; border-radius: 3px; pointer-events: none;
}

/* Vignette pulse on token-page hero art (.tc-hero, from token_card_template.html). */
.tc-hero { position: relative; }
.tc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(5,4,3,0.58) 100%);
  animation: rn-vignette-pulse 7s ease-in-out infinite;
}
@keyframes rn-vignette-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Smooth page-to-token transitions where the browser supports cross-document
   View Transitions (Chrome/Edge 126+). Zero JS, no polyfill; browsers
   without support simply navigate as normal. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  .rn-hero-slide.on { animation: none; }
  .rn-dust { display: none; }
  .rn-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .rn-halo { display: none; }
  .tc-hero::after { animation: none; opacity: .85; }
}

/* ============================================================
   LEGIBILITY PASS 2 (2026-09-05, Jason: "some of the text is hard
   to read that's in darker font on this page").

   ROOT CAUSE, and why the 2026-09-03 pass did not catch it: the
   shared styles.css comes from jasonhaygood.com, where --glow is
   an opaque bright cyan (#5fd4ff) and is perfectly legible as a
   text color. rapturenft's theme.css redefines --glow as
   rgba(212,175,91,0.35) - a 35%-alpha GOLD meant for box-shadows.
   Every inherited rule that says `color: var(--glow)` therefore
   renders at roughly 1.9:1 against the panel: legible on the site
   it was written for, mud here. Page-local CSS then copied the
   idiom, which is why eyebrows, refs and kv labels across
   /revelation, /gallery and /signs all read as "darker font".

   FIX: --glow stays exactly as it is (it is correct for the
   shadows and borders that actually use it - those are untouched).
   Only TEXT uses were repointed to --gold-small, the bright gold
   the 2026-09-03 pass already reserved for small type, and the
   10-11px label sizes went to 12px. If you add a new small label,
   use --gold-small; never use --glow as a text color on this site.
   ============================================================ */
.hero-eyebrow { color: var(--gold-small); }
