/* ============================================================
   O EVANGELHO DE JOÃO — Estudo Bíblico Interativo
   Sistema visual: meia-noite, ouro do templo, pergaminho.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --midnight: #0a0c12;
  --midnight-2: #0d1019;
  --midnight-3: #12151f;
  --gold: #d8a657;
  --gold-soft: #e6c489;
  --gold-deep: #a9763a;
  --parchment: #ece5d6;
  --parchment-dim: #b8b0a0;
  --parchment-faint: #6f6a5f;
  --line: rgba(216, 166, 87, 0.18);
  --line-soft: rgba(236, 229, 214, 0.08);

  --serif-title: 'Cormorant Garamond', Georgia, serif;
  --serif-read: 'Spectral', Georgia, serif;
  --sans-ui: 'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1180px;
  --readw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--midnight);
  color: var(--parchment);
  font-family: var(--serif-read);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(216, 166, 87, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ---------- Background atmosphere ---------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(216, 166, 87, 0.10), transparent 60%),
    radial-gradient(900px 700px at 85% 110%, rgba(216, 166, 87, 0.05), transparent 55%),
    var(--midnight);
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(140% 120% at 50% 42%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Reading progress ---------- */
.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  box-shadow: 0 0 12px rgba(216, 166, 87, 0.6);
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(20px, 5vw, 56px);
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid rgba(236,229,214,0.08);
}
.site-header.scrolled {
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 5px;
  padding-bottom: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans-ui);
}
.brand-mark {
  width: 30px; height: 30px;
  flex: none;
}
.brand-text { line-height: 1.1; }
.brand-text .b-main {
  font-family: var(--serif-title);
  font-size: 21px;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.brand-text .b-sub {
  display: block;
  font-family: var(--sans-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--parchment-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 160;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--parchment);
  transition: transform 0.32s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(8, 10, 15, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(28px, 8vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu .mm-eyebrow {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.mobile-menu ol {
  list-style: none;
  counter-reset: mm;
}
.mobile-menu li { counter-increment: mm; margin: 2px 0; }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  font-family: var(--serif-title);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 500;
  color: var(--parchment);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu li a .mm-n {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  flex: none;
  width: 24px;
}
.mobile-menu li a.active { color: var(--gold-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.section { padding: clamp(40px, 6vw, 84px) 0; position: relative; }
.section.tight { padding: clamp(28px, 4vw, 52px) 0; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* ---------- Typography helpers ---------- */
.h-xl {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--parchment);
  text-wrap: balance;
}
.h-lg {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-md {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}
.italic-gold { font-style: italic; color: var(--gold-soft); }
.gold-text { color: var(--gold); }
.lede {
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.62;
  color: var(--parchment);
  font-weight: 300;
}
.body-text { color: var(--parchment-dim); }
.body-text p + p { margin-top: 1.15em; }
.body-text strong, .body-text b { color: var(--parchment); font-weight: 500; }
.body-text em { font-style: italic; color: var(--gold-soft); }

/* gold gradient text for big titles */
.grad-gold {
  background: linear-gradient(168deg, var(--gold-soft) 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px clamp(20px, 5vw, 48px) 90px;
  overflow: hidden;
}
.hero > .hero-rings {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(140vh, 1200px);
  height: min(140vh, 1200px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: clamp(58px, 15vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 26px 0 4px;
}
.hero-sub {
  font-family: var(--serif-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 36px);
  color: var(--parchment);
  max-width: 720px;
  margin: 22px auto 0;
  line-height: 1.4;
}
.hero-verse {
  font-family: var(--serif-read);
  font-style: italic;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--parchment-dim);
  max-width: 600px;
  margin: 30px auto 0;
}
.hero-verse cite {
  display: block;
  font-style: normal;
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(150deg, var(--gold-soft), var(--gold-deep));
  color: var(--midnight);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 30px rgba(216, 166, 87, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(216, 166, 87, 0.32);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--parchment);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-actions { margin-top: 46px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* scroll cue */
.scroll-cue {
  position: static;
  margin: 44px auto 0;
  font-family: var(--sans-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  pointer-events: none;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: cuepulse 2.4s ease-in-out infinite;
}
@keyframes cuepulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Chapter index (home) ---------- */
.index-list { list-style: none; counter-reset: chap; }
.index-item {
  counter-increment: chap;
  border-top: 1px solid var(--line-soft);
}
.index-item:last-child { border-bottom: 1px solid var(--line-soft); }
.index-item a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  padding: clamp(24px, 3.4vw, 38px) 8px;
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.index-item a:hover { background: rgba(216, 166, 87, 0.045); padding-left: 20px; }
.index-num {
  font-family: var(--serif-title);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  color: var(--gold);
  font-feature-settings: "lnum";
}
/* .index-num holds its number as text in HTML (counters render unreliably) */
.index-body .index-title {
  font-family: var(--serif-title);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--parchment);
  transition: color 0.3s ease;
}
.index-item a:hover .index-title { color: var(--gold-soft); }
.index-body .index-desc {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--parchment-dim);
  margin-top: 6px;
  max-width: 560px;
  line-height: 1.55;
}
.index-go {
  font-family: var(--sans-ui);
  color: var(--gold);
  font-size: 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s ease;
}
.index-item a:hover .index-go { opacity: 1; transform: none; }

/* ---------- Chapter hero ---------- */
.chapter-hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.chapter-hero .ch-num {
  font-family: var(--serif-title);
  font-size: clamp(110px, 26vw, 340px);
  font-weight: 500;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 166, 87, 0.30);
  position: absolute;
  top: 50%; right: clamp(-10px, 2vw, 40px);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.chapter-hero > .container { position: relative; z-index: 1; }
.ch-eyebrow { margin-bottom: 26px; }
.ch-title {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: clamp(44px, 8.5vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 14ch;
}
.ch-intro {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.6;
  color: var(--parchment-dim);
  font-weight: 300;
  max-width: 640px;
  margin-top: 30px;
}

/* ---------- Verse card ---------- */
.verse-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(216,166,87,0.035), rgba(216,166,87,0.01));
  padding: clamp(34px, 5vw, 60px) clamp(28px, 5vw, 64px) clamp(30px, 4vw, 50px);
  border-radius: 3px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.verse-card:hover {
  border-color: rgba(216, 166, 87, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.4);
}
.verse-card .quotemark {
  position: absolute;
  top: clamp(-14px, -1vw, -8px); left: clamp(18px, 4vw, 40px);
  font-family: var(--serif-title);
  font-size: clamp(90px, 14vw, 150px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.26;
  pointer-events: none;
}
.verse-card .verse-text {
  font-family: var(--serif-title);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.28;
  color: var(--parchment);
  position: relative;
}
.verse-card .verse-ref {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.verse-card .verse-ref::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

/* ---------- Pull quote ---------- */
.pull-quote {
  text-align: center;
  font-family: var(--serif-title);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--parchment);
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}
.pull-quote .accent { color: var(--gold-soft); }
.pull-quote-cite {
  display: block;
  text-align: center;
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 34px;
}

/* ---------- Parallel table (hinge) ---------- */
.parallel {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.parallel .hinge {
  background: linear-gradient(var(--line-soft), var(--line), var(--line-soft));
}
.parallel-side { padding: clamp(28px, 4vw, 48px); }
.parallel-side .ps-label {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.parallel-side .ps-title {
  font-family: var(--serif-title);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px;
}
.parallel-side .ps-text { color: var(--parchment-dim); font-size: 17px; line-height: 1.6; }

/* four-up comparison grid (gospels) */
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.quad-cell {
  padding: clamp(24px, 2.6vw, 40px) clamp(18px, 2vw, 30px);
  border-right: 1px solid var(--line-soft);
  transition: background 0.4s ease;
}
.quad-cell:last-child { border-right: none; }
.quad-cell.feature { background: rgba(216, 166, 87, 0.06); }
.quad-cell .q-book {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  margin-bottom: 14px;
}
.quad-cell.feature .q-book { color: var(--gold); }
.quad-cell .q-word {
  font-family: var(--serif-title);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}
.quad-cell.feature .q-word { color: var(--gold-soft); }
.quad-cell .q-desc { font-size: 15px; line-height: 1.5; color: var(--parchment-dim); }

/* ---------- Before -> after compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.compare-box {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(26px, 3.4vw, 42px);
  background: rgba(255,255,255,0.012);
}
.compare-box .cb-label {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  margin-bottom: 12px;
}
.compare-box.after .cb-label { color: var(--gold); }
.compare-box .cb-text {
  font-family: var(--serif-title);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.18;
}
.compare-box.after .cb-text { color: var(--gold-soft); }
.compare-arrow {
  font-family: var(--sans-ui);
  font-size: 26px;
  color: var(--gold);
  flex: none;
}

/* ---------- Big numbered list ---------- */
.big-list { list-style: none; counter-reset: bl; }
.big-item {
  counter-increment: bl;
  display: grid;
  grid-template-columns: clamp(60px, 9vw, 130px) 1fr;
  gap: clamp(18px, 4vw, 50px);
  align-items: start;
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line-soft);
}
.big-item:last-child { border-bottom: 1px solid var(--line-soft); }
.big-item .bl-num {
  font-family: var(--serif-title);
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 500;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
/* .bl-num holds its number as text in HTML */
.big-item .bl-ref {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.big-item .bl-title {
  font-family: var(--serif-title);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 10px;
  text-wrap: balance;
}
.big-item .bl-text { color: var(--parchment-dim); font-size: clamp(16px,1.8vw,18px); line-height: 1.6; max-width: 640px; }
.big-item .bl-quote {
  font-family: var(--serif-title);
  font-style: italic;
  color: var(--gold-soft);
  font-size: clamp(18px, 2vw, 22px);
}

/* ---------- Stat row (em números) ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.stat {
  background: var(--midnight);
  padding: clamp(30px, 4vw, 50px) clamp(16px, 2vw, 28px);
  text-align: center;
}
.stat .s-num {
  font-family: var(--serif-title);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.stat .s-label {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-top: 14px;
}

/* ---------- Acts / timeline ---------- */
.acts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; }
.act {
  background: var(--midnight);
  display: grid;
  grid-template-columns: clamp(70px, 10vw, 150px) 1fr;
  gap: clamp(18px, 4vw, 46px);
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 48px);
  transition: background 0.4s ease;
}
.act:hover { background: var(--midnight-3); }
.act .a-roman {
  font-family: var(--serif-title);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--gold);
}
.act .a-ref {
  font-family: var(--sans-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.act .a-title { font-family: var(--serif-title); font-size: clamp(24px,3vw,36px); font-weight: 600; line-height: 1.08; margin-bottom: 10px; }
.act .a-text { color: var(--parchment-dim); font-size: 16px; line-height: 1.6; max-width: 640px; }

/* ---------- Scene cards (cenas) ---------- */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.scene-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(30px, 3.5vw, 48px);
  background: linear-gradient(180deg, rgba(216,166,87,0.03), transparent);
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
.scene-card:hover { transform: translateY(-4px); border-color: rgba(216,166,87,0.4); }
.scene-card .sc-ref {
  font-family: var(--sans-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.scene-card .sc-title { font-family: var(--serif-title); font-size: clamp(26px,3vw,38px); font-weight: 600; line-height: 1.05; margin-bottom: 14px; }
.scene-card .sc-text { color: var(--parchment-dim); font-size: 16px; line-height: 1.62; }
.scene-card .sc-text em { font-style: italic; color: var(--gold-soft); }

/* ---------- SVG line-motif block ---------- */
.motif {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px,4vw,40px) 0;
}
.motif svg { width: clamp(80px, 12vw, 150px); height: auto; opacity: 0.75; }

/* ---------- Callout ---------- */
.callout {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px clamp(20px, 3vw, 34px);
  font-family: var(--serif-title);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--parchment);
}

/* ---------- Chapter footer nav ---------- */
.chapter-nav {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.chapter-nav a, .chapter-nav .cn-disabled {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 48px);
  transition: background 0.35s ease;
}
.chapter-nav a:hover { background: rgba(216, 166, 87, 0.05); }
.chapter-nav .cn-next { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.chapter-nav .cn-dir {
  font-family: var(--sans-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.chapter-nav .cn-title { font-family: var(--serif-title); font-size: clamp(22px, 3vw, 34px); font-weight: 600; line-height: 1.1; color: var(--parchment); }
.chapter-nav a:hover .cn-title { color: var(--gold-soft); }
.cn-disabled { opacity: 0.3; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}
.site-footer .f-mark { width: 38px; height: 38px; margin: 0 auto 22px; opacity: 0.8; }
.site-footer .f-title { font-family: var(--serif-title); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--parchment); margin-bottom: 8px; }
.site-footer .f-verse { font-family: var(--serif-read); font-style: italic; color: var(--parchment-dim); max-width: 480px; margin: 0 auto 24px; font-size: 16px; }
.site-footer .f-meta { font-family: var(--sans-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--parchment-faint); }

/* ---------- Reveal animation ---------- */
/* Content is visible by default. Hidden-start is only applied when JS has
   confirmed the animation loop is alive (html.js-reveal), so a throttled or
   frozen rendering context never leaves content invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal.d1 { transition-delay: 0.08s; }
.js-reveal .reveal.d2 { transition-delay: 0.16s; }
.js-reveal .reveal.d3 { transition-delay: 0.24s; }
.js-reveal .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue .line { animation: none; }
}

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; padding: clamp(14px,2.4vw,30px) 0; }
.divider .d-line { height: 1px; width: clamp(40px, 12vw, 120px); background: linear-gradient(90deg, transparent, var(--line)); }
.divider .d-line.r { background: linear-gradient(270deg, transparent, var(--line)); }
.divider .d-dot { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .parallel { grid-template-columns: 1fr; }
  .parallel .hinge { height: 1px; width: 100%; background: var(--line); }
  .quad { grid-template-columns: repeat(2, 1fr); }
  .quad-cell:nth-child(2) { border-right: none; }
  .quad-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); margin: 4px auto; }
  .index-item a { grid-template-columns: 54px 1fr; }
  .index-go { display: none; }
}
@media (max-width: 540px) {
  body { font-size: 18px; }
  .quad { grid-template-columns: 1fr; }
  .quad-cell { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .quad-cell:last-child { border-bottom: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .act { grid-template-columns: 1fr; gap: 12px; }
  .big-item { grid-template-columns: 1fr; gap: 8px; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav .cn-next { border-left: none; border-top: 1px solid var(--line); text-align: left; align-items: flex-start; }
}

/* ---------- Referências bíblicas em vermelho ---------- */
.verse-card .verse-ref,
.big-item .bl-ref,
.pull-quote-cite,
.hero-verse cite { color: #ff2d21; }
.verse-card .verse-ref::before { background: #ff2d21; }


/* ===== RESTYLE Meia-noite & Ouro (telão) — override ===== */
:root{
  --midnight:#060709; --midnight-2:#0d1019; --midnight-3:#12151f;
  --gold:#f0bd45; --gold-soft:#ffe09a; --gold-deep:#bb8230;
  --parchment:#f1ebde; --parchment-dim:#dcd5c6;
  --line:rgba(240,189,69,0.30); --line-soft:rgba(236,229,214,0.10);
  --accent:#f0bd45;
}
body{ font-size:22px; line-height:1.8; }
strong, b, .body-text strong, .body-text b{ color:var(--gold-soft); font-weight:600; }
em, .body-text em{ color:var(--gold-soft); }
.italic-gold{ color:var(--gold-soft); }
.verse-ref, .verse-card .verse-ref, .bl-ref, .pull-quote-cite, .hero-verse cite, .a-ref{ color:#ff2a1f; text-shadow:none; filter:none; }
.verse-card .verse-ref::before{ background:#ff2a1f; }
.eyebrow{ font-size:14px; }
.nav-links a{ font-size:14px; }
.btn{ font-size:15px; }
.index-desc, .sc-text{ font-size:19px; }
