/* ==========================================================================
   SALEM SCROLL — Editorial Product System
   Shared by: salemscroll.html, salemscroll-youth.html,
              hermeneutics.html, hermeneutics-youth.html
   Zero framework. Native CSS only.
   ========================================================================== */

:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --paper-3: #e1d8c6;
  --sheet: #fbf9f4;
  --ink: #16130f;
  --ink-2: #3f3a32;
  --muted: #7d7466;
  --rule: rgba(22, 19, 15, 0.14);
  --rule-strong: rgba(22, 19, 15, 0.8);
  --oxblood: #8b1e1e;
  --oxblood-2: #b3261e;
  --gold: #9c6f22;
  --gold-soft: #d8b36a;
  --night: #0f0e0c;
  --night-2: #1a1814;
  --night-rule: rgba(243, 238, 228, 0.12);
  --signal: #7cffb2;

  --f-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-serif: 'Newsreader', Georgia, serif;
  --f-ui: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --f-script: 'Courier Prime', 'Courier New', monospace;
  --f-flourish: 'Great Vibes', cursive;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 2px; }

/* Paper grain — pure CSS, no image request */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(22,19,15,0.05) 1px, transparent 1px),
    radial-gradient(rgba(22,19,15,0.035) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Micro typography ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: rgba(243,238,228,0.55); }
.num { font-family: var(--f-mono); font-feature-settings: "tnum"; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header);
  background: rgba(243, 238, 228, 0.82);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__word { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; }
.brand__word em { font-style: italic; }
.brand__sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hdr__nav { display: flex; align-items: center; gap: 4px; font-family: var(--f-ui); font-size: 13px; }
.hdr__nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.hdr__nav a:hover { background: var(--paper-2); color: var(--ink); }
.hdr__nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.hdr__nav .sep { width: 1px; height: 18px; background: var(--rule); margin: 0 8px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--oxblood); }

.brand__word, .hdr__nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .brand__sub, .hdr__nav .hide-sm, .hdr__nav .sep { display: none; }
  .hdr__in { gap: 12px; }
  .brand__word { font-size: 20px; }
  .hdr__nav a { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 420px) { .hdr__nav .hide-xs { display: none; } }

/* ==========================================================================
   LAYOUT: chapter rail + content
   ========================================================================== */
.page { padding-top: var(--header); position: relative; z-index: 2; }
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.rail { position: relative; }
.rail__in { position: sticky; top: calc(var(--header) + 40px); padding-top: 8px; }
.rail__list { list-style: none; border-left: 1px solid var(--rule); }
.rail__list a {
  display: grid; grid-template-columns: 28px 1fr; gap: 6px; align-items: baseline;
  padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent;
  text-decoration: none; font-family: var(--f-ui); font-size: 13px; color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.rail__list a .num { font-size: 10px; letter-spacing: 0.08em; }
.rail__list a:hover { color: var(--ink); }
.rail__list a.is-active { color: var(--ink); border-left-color: var(--ink); }
.rail__meta { margin-top: 28px; font-family: var(--f-mono); font-size: 10px; line-height: 1.8; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
}

/* ==========================================================================
   HERO (case-study)
   ========================================================================== */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule-strong); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 36px; }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(48px, 9.4vw, 148px); line-height: 0.92; letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero__title em { font-style: italic; color: var(--oxblood); }
.hero__deck {
  margin-top: 36px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--ink-2);
  max-width: 40ch; font-weight: 300;
}
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule);
}
.facts > div { padding: 18px 20px 0 0; }
.facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-family: var(--f-ui); font-size: 14px; line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 18px; } }

/* Line reveal for hero title */
.split .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .ln > span { transform: none; }
.split.in .ln:nth-child(2) > span { transition-delay: 0.08s; }
.split.in .ln:nth-child(3) > span { transition-delay: 0.16s; }
.split.in .ln:nth-child(4) > span { transition-delay: 0.24s; }

/* Generic reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--rule); }
.sec:last-of-type { border-bottom: 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec__label { display: flex; align-items: center; gap: 14px; }
.sec__label .num { font-size: 11px; color: var(--oxblood); letter-spacing: 0.1em; }
.sec__label .line { flex: 0 0 40px; height: 1px; background: var(--ink); }
.sec__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch;
}
.sec__title em { font-style: italic; }
.sec__intro { font-size: 19px; color: var(--ink-2); max-width: 58ch; font-weight: 300; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.pillar { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); position: relative; }
.pillar:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--rule); }
.pillar:nth-child(even) { padding-left: 40px; }
.pillar__n { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.pillar h3 { font-family: var(--f-display); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 10px; }
.pillar p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(odd), .pillar:nth-child(even) { padding: 24px 0; border-right: 0; }
}

/* ==========================================================================
   STAGE 1 — BROADSHEET
   ========================================================================== */
.broadsheet {
  background: var(--sheet); color: var(--ink);
  padding: clamp(24px, 4.5vw, 64px);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(22,19,15,0.35), 0 8px 24px -12px rgba(22,19,15,0.18);
  position: relative;
}
.bs__flag {
  text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: 14px;
}
.bs__flag-top, .bs__rail {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.bs__name {
  font-family: 'UnifrakturCook', var(--f-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 72px); line-height: 1; letter-spacing: 0; margin: 12px 0 6px;
}
.bs__rail { border-bottom: 3px double var(--ink); padding: 8px 0; margin-bottom: 32px; }
.bs__section { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 14px; }
.bs__hed {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.022em; max-width: 22ch;
}
.bs__dek {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--ink-2);
  margin: 20px 0 22px; max-width: 56ch;
}
.bs__byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--f-ui); font-size: 12px; color: var(--muted); margin-bottom: 28px;
}
.bs__byline b { color: var(--ink); font-weight: 600; }
.bs__body { columns: 2; column-gap: 40px; column-rule: 1px solid var(--rule); font-size: 17px; line-height: 1.7; }
.bs__body p { margin-bottom: 1em; hyphens: auto; text-align: justify; text-justify: inter-word; }
.bs__body p:first-child::first-letter {
  float: left; font-family: var(--f-display); font-weight: 600; font-size: 4.3em; line-height: 0.82;
  margin: 0.06em 0.08em 0 0; color: var(--ink);
}
.dateline { font-family: var(--f-ui); font-weight: 700; font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 760px) { .bs__body { columns: 1; } .bs__body p { text-align: left; } }

.bridge {
  margin: clamp(48px, 7vw, 88px) auto; max-width: 30ch; text-align: center;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; color: var(--ink-2);
  position: relative;
}
.bridge::before, .bridge::after { content: ""; display: block; width: 1px; height: 48px; background: var(--ink); margin: 0 auto 24px; opacity: 0.4; }
.bridge::after { margin: 24px auto 0; }

/* ==========================================================================
   STAGE 2 — TELEPLAY
   ========================================================================== */
.script {
  background: var(--sheet); color: #111;
  font-family: var(--f-script); font-size: 15px; line-height: 1.55;
  max-width: 820px; margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) clamp(20px, 7vw, 96px);
  box-shadow: 0 1px 0 var(--rule), 0 40px 80px -40px rgba(22,19,15,0.4);
  position: relative;
}
.script::before { /* three-hole punch */
  content: ""; position: absolute; left: 22px; top: 12%; bottom: 12%; width: 10px;
  background: radial-gradient(circle, var(--paper-3) 4px, transparent 5px) 0 0 / 10px 33.33% repeat-y;
  opacity: 0.9;
}
.script__pg { position: absolute; top: 24px; right: 32px; font-size: 13px; }
.script__title { text-align: center; text-transform: uppercase; font-weight: 700; margin-bottom: 40px; letter-spacing: 0.02em; }
.script__title .show { font-size: 17px; display: block; margin-bottom: 4px; }
.script__title small { display: block; font-weight: 400; font-size: 13px; margin-top: 8px; letter-spacing: 0.04em; }
.sampled {
  font-family: var(--f-flourish); font-weight: 400; text-transform: none;
  font-size: 2.1em; line-height: 0; color: var(--oxblood-2); vertical-align: -0.12em; margin: 0 0.08em;
}
.sc { font-weight: 700; text-transform: uppercase; margin: 28px 0 14px; }
.act { margin: 0 0 14px; }
.dlg { margin: 16px 0; padding: 0 16% 0 22%; }
.chr { text-transform: uppercase; padding-left: 22%; }
.par { padding-left: 11%; }
.trans { text-align: right; text-transform: uppercase; margin: 22px 0 0; }
.script .ln-rv { opacity: 0.08; transition: opacity 0.7s var(--ease); }
.script .ln-rv.in { opacity: 1; }
@media (max-width: 640px) {
  .script { font-size: 13.5px; }
  .script::before { display: none; }
  .dlg { padding: 0 4% 0 8%; } .chr { padding-left: 24%; } .par { padding-left: 12%; }
}

/* ==========================================================================
   STAGE 3 — DECODE & MIRROR
   ========================================================================== */
.verse {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.verse blockquote {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 3.8vw, 52px); line-height: 1.15; letter-spacing: -0.015em; max-width: 26ch;
}
.verse blockquote::before { content: "\201C"; color: var(--gold); margin-left: -0.45em; }
.verse blockquote::after { content: "\201D"; color: var(--gold); }
.verse cite { font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.verse .lord { font-variant: small-caps; font-style: normal; letter-spacing: 0.02em; }

.mirror__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(48px, 6vw, 72px) 0 24px; flex-wrap: wrap; }
.mirror__head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
.mirror__head h3 em { font-style: italic; }
.mirror { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule-strong); }
.mcard { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--rule); position: relative; }
.mcard + .mcard { padding-left: 24px; border-left: 1px solid var(--rule); }
.mcard .num { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.mcard h4 { font-family: var(--f-ui); font-weight: 600; font-size: 16px; letter-spacing: -0.005em; margin: 10px 0 8px; }
.mcard p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) { .mcard + .mcard { padding-left: 0; border-left: 0; } }

/* ==========================================================================
   STAGE 4 — STUDY ENGINE (night mode panel)
   ========================================================================== */
.engine {
  background: var(--night); color: var(--paper);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.engine__side { padding: clamp(24px, 3.5vw, 44px); border-right: 1px solid var(--night-rule); display: flex; flex-direction: column; gap: 28px; }
.engine__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.engine__title em { font-style: italic; color: var(--gold-soft); }
.engine__blurb { font-size: 15px; color: rgba(243,238,228,0.62); line-height: 1.55; }
.meter { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,238,228,0.6); }
.meter__pips { display: flex; gap: 6px; }
.meter__pips i { width: 22px; height: 4px; border-radius: 2px; background: var(--signal); transition: background 0.4s, opacity 0.4s; }
.meter__pips i.spent { background: rgba(243,238,228,0.15); }
.queries { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--night-rule); }
.q {
  width: 100%; text-align: left; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 10px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--night-rule);
  font-family: var(--f-ui); font-size: 14.5px; line-height: 1.45; color: rgba(243,238,228,0.85);
  transition: color 0.2s, padding 0.3s var(--ease);
}
.q .num { font-size: 11px; color: rgba(243,238,228,0.4); padding-top: 2px; }
.q .arr { opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.3s var(--ease); padding-top: 2px; }
.q:hover { color: #fff; padding-left: 6px; }
.q:hover .arr { opacity: 1; transform: none; }
.q.is-active { color: #fff; }
.q.is-active .num { color: var(--signal); }
.q__tag { display: inline-block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; margin-bottom: 6px; border: 1px solid currentColor; }
.q--gold { color: var(--gold-soft); }
.q--gold:hover { color: #f1d49a; }
.q--free .q__tag { color: var(--signal); }
.engine__out { display: flex; flex-direction: column; min-height: 460px; background: var(--night-2); }
.out__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid var(--night-rule);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,238,228,0.45);
}
.out__bar .live { display: inline-flex; align-items: center; gap: 8px; }
.out__bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.out__paper {
  flex: 1; margin: 22px; padding: 28px 30px; background: var(--sheet); color: #111; border-radius: 2px;
  font-family: var(--f-script); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 20px 40px -20px rgba(0,0,0,0.6);
  position: relative;
}
.out__empty { color: #8b8478; font-style: italic; }
.out__paper .cmd { color: var(--oxblood); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: #111; vertical-align: -0.2em; margin-left: 1px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.out__hint { padding: 0 22px 18px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,238,228,0.35); }
@media (max-width: 960px) {
  .engine { grid-template-columns: 1fr; }
  .engine__side { border-right: 0; border-bottom: 1px solid var(--night-rule); }
  .engine__out { min-height: 380px; }
  .out__paper { margin: 16px; padding: 20px; font-size: 14px; }
}

/* ==========================================================================
   PAYWALL (native <dialog>)
   ========================================================================== */
dialog.paywall {
  margin: auto; border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(560px, calc(100vw - 32px));
}
dialog.paywall::backdrop { background: rgba(15,14,12,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.paywall[open] .pw { animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.pw { background: var(--sheet); padding: clamp(28px, 5vw, 48px); border-top: 4px solid var(--oxblood); }
.pw h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.02em; margin: 16px 0 12px; }
.pw h3 em { font-style: italic; color: var(--oxblood); }
.pw p { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }
.pw ul { list-style: none; border-top: 1px solid var(--rule); margin-bottom: 28px; }
.pw li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-ui); font-size: 14px; }
.pw li::before { content: "—"; color: var(--oxblood); }
.pw__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
.pw__price b { font-family: var(--f-display); font-weight: 400; font-size: 40px; color: var(--ink); letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  padding: 16px 24px; border-radius: 999px; text-decoration: none; transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--oxblood); }
.btn--ghost { border: 1px solid var(--rule-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.pw__close { display: block; margin: 16px auto 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pw__close:hover { color: var(--ink); }
.pw__note { margin-top: 12px; text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); min-height: 1em; }

/* ==========================================================================
   NEXT / FOOTER
   ========================================================================== */
.next {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong);
}
.next a {
  display: block; padding: clamp(28px, 4vw, 48px) 0; text-decoration: none; position: relative;
  transition: background 0.3s;
}
.next a + a { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 40px); }
.next .t { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.next .t em { font-style: italic; }
.next .t svg { transition: transform 0.4s var(--ease); flex: none; }
.next a:hover .t svg { transform: translateX(8px); }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } .next a + a { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

.ftr { background: var(--night); color: rgba(243,238,228,0.55); position: relative; z-index: 2; }
.ftr__in { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.ftr a { text-decoration: none; color: var(--paper); }
.ftr a:hover { color: var(--signal); }

/* ==========================================================================
   HERMENEUTICS (journal) components
   ========================================================================== */
.gauge { margin-top: 8px; }
.gauge__bar { display: flex; height: 56px; border: 1px solid var(--ink); overflow: hidden; }
.gauge__seg { display: flex; align-items: center; padding: 0 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; width: 0; transition: width 1.4s var(--ease); }
.gauge__seg--kjv { background: var(--ink); color: var(--paper); }
.gauge__seg--dra { background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, var(--paper-3) 6px 7px); color: var(--ink); }
.gauge.in .gauge__seg--kjv { width: var(--w); }
.gauge.in .gauge__seg--dra { width: var(--w); transition-delay: 0.15s; }
.gauge__legend { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
.gauge__legend b { color: var(--ink); font-weight: 600; }

.prose { max-width: 64ch; font-size: 19px; line-height: 1.7; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 600; }

.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.matrix__col { padding: 28px 32px 8px 0; }
.matrix__col + .matrix__col { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.matrix__col h3 { font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.matrix__col h3 .chip { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.chip--kjv { background: var(--ink); color: var(--paper); }
.chip--dra { border: 1px dashed var(--ink); }
.matrix dl > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.matrix dt { font-family: var(--f-display); font-size: 21px; font-weight: 500; margin-bottom: 4px; }
.matrix dd { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 760px) { .matrix { grid-template-columns: 1fr; } .matrix__col + .matrix__col { padding-left: 0; border-left: 0; } }

.pull { margin: clamp(48px, 6vw, 80px) 0; padding-left: clamp(20px, 4vw, 48px); border-left: 2px solid var(--oxblood); }
.pull p { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -0.015em; max-width: 30ch; }
.pull cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.anchor { background: var(--night); color: var(--paper); padding: clamp(28px, 4vw, 48px); margin: 32px 0; border-radius: 3px; }
.anchor blockquote { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin-top: 14px; max-width: 40ch; }
.anchor .lord { font-variant: small-caps; font-style: normal; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.opt { border: 1px solid var(--rule-strong); padding: 24px; background: var(--sheet); }
.opt .num { font-size: 11px; color: var(--oxblood); letter-spacing: 0.12em; text-transform: uppercase; }
.opt p { font-family: var(--f-display); font-weight: 600; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 10px; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }

.ladder { list-style: none; counter-reset: lv; border-top: 1px solid var(--rule-strong); }
.ladder li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ladder .lv { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxblood); }
.ladder h4 { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.ladder h4 small { display: block; font-family: var(--f-ui); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.ladder p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.ladder .ref { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
@media (max-width: 860px) { .ladder li { grid-template-columns: 1fr; gap: 8px; } }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.tier { padding: 26px 28px 30px 0; }
.tier + .tier { padding-left: 28px; border-left: 1px solid var(--rule); }
.tier h4 { font-family: var(--f-display); font-weight: 500; font-size: 24px; margin: 10px 0 14px; }
.tier ul { list-style: none; }
.tier li { font-family: var(--f-ui); font-size: 14px; padding: 9px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier + .tier { padding-left: 0; border-left: 0; } }

.care {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  border: 1px solid var(--oxblood); padding: 24px 28px; margin-top: 40px; background: rgba(139,30,30,0.04);
}
.care__icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--oxblood); display: grid; place-items: center; color: var(--oxblood); font-family: var(--f-mono); font-size: 14px; }
.care h4 { font-family: var(--f-ui); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.care p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .rv, .script .ln-rv { opacity: 1; transform: none; }
  .split .ln > span { transform: none; }
}
@media print {
  .hdr, .rail, .engine, .ftr, dialog { display: none !important; }
  body::before { display: none; }
}
