:root {
  color-scheme: dark;
  --stone: #080705;
  --stone-2: #11100c;
  --stone-3: #1c1711;
  --travertine: #2a2419;
  --marble: #3a3327;
  --ivory: #efe4ce;
  --muted: #b9ab8f;
  --quiet: #86765c;
  --gold: #c8a75f;
  --gold-bright: #f0d98d;
  --red: #74191d;
  --red-dark: #3a0c10;
  --blue: #211912;
  --blue-glass: #3c2d1d;
  --line: rgba(200, 167, 95, 0.34);
  --line-soft: rgba(200, 167, 95, 0.16);
  --shadow: rgba(0, 0, 0, 0.68);
  --max: 1180px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 28px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% -16%, rgba(240, 217, 141, 0.22), transparent 31rem),
    radial-gradient(ellipse at 50% 22%, rgba(80, 58, 35, 0.3), transparent 34rem),
    linear-gradient(90deg, rgba(42, 36, 25, 0.45) 0 9vw, transparent 9vw calc(91vw), rgba(42, 36, 25, 0.45) 91vw 100%),
    linear-gradient(180deg, #050403 0%, #0c0a07 36%, #050403 100%);
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(203, 178, 130, 0.12), transparent 12%, transparent 88%, rgba(203, 178, 130, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(200, 167, 95, 0.05) 118px 120px, transparent 120px 238px),
    repeating-linear-gradient(165deg, rgba(239, 228, 206, 0.018) 0 2px, transparent 2px 13px),
    radial-gradient(circle at 30% 16%, rgba(173, 142, 83, 0.09), transparent 18rem),
    radial-gradient(circle at 70% 38%, rgba(116, 25, 29, 0.11), transparent 22rem);
  opacity: 0.72;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0 20rem, rgba(0, 0, 0, 0.42) 44rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 16px);
  opacity: 0.58;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--stone-2);
  color: var(--ivory);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--nav-height);
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(240, 217, 141, 0.42);
  background:
    linear-gradient(180deg, rgba(13, 10, 7, 0.98), rgba(8, 7, 5, 0.94)),
    var(--stone);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.58);
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(200, 167, 95, 0.12), rgba(74, 50, 24, 0.18)),
    rgba(10, 8, 6, 0.86);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: lowercase;
}

.brand-mark {
  width: 18px;
  height: 28px;
  border: 1px solid var(--gold);
  border-bottom: 4px double var(--gold);
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(240, 217, 141, 0.18), rgba(116, 25, 29, 0.16));
}

.nav-scroll {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-scroll a,
.side-rail a {
  border: 1px solid rgba(200, 167, 95, 0.28);
  background:
    linear-gradient(180deg, rgba(200, 167, 95, 0.055), rgba(20, 16, 11, 0.84)),
    rgba(8, 8, 10, 0.68);
  color: var(--muted);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

.nav-scroll a {
  padding: 8px 11px;
}

.nav-scroll a::before {
  margin-right: 6px;
  color: rgba(200, 167, 95, 0.6);
  content: "†";
}

.nav-scroll a:hover,
.nav-scroll a:focus-visible,
.side-rail a:hover,
.side-rail a:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--gold-bright);
  color: var(--ivory);
  outline: 2px solid rgba(200, 167, 95, 0.24);
  outline-offset: 3px;
}

main {
  position: relative;
}

main::before,
main::after {
  position: fixed;
  top: var(--nav-height);
  bottom: 0;
  z-index: -1;
  width: min(8vw, 118px);
  border-inline: 1px solid rgba(200, 167, 95, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 36%, rgba(240, 217, 141, 0.08) 49%, transparent 62%, rgba(0, 0, 0, 0.38)),
    repeating-linear-gradient(180deg, rgba(200, 167, 95, 0.06) 0 1px, transparent 1px 82px),
    linear-gradient(180deg, rgba(58, 51, 39, 0.28), rgba(13, 10, 7, 0.08));
  content: "";
  opacity: 0.74;
}

main::before {
  left: 0;
}

main::after {
  right: 0;
}

.threshold,
.narthex,
.source-atlas,
.hidden-witnesses,
.doors,
.chapel-activities,
.nave,
.fragments,
.credits,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.threshold {
  display: grid;
  min-height: calc(100svh - var(--nav-height));
  align-items: center;
  padding: clamp(56px, 8vw, 112px) 0 78px;
}

.hero-shell {
  position: relative;
  display: grid;
  min-height: 640px;
  align-items: center;
  padding: clamp(48px, 8vw, 112px);
  border: 1px solid var(--line);
  border-radius: 24px 24px 8px 8px;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(240, 217, 141, 0.2), transparent 25rem),
    linear-gradient(90deg, rgba(200, 167, 95, 0.12), transparent 11%, transparent 89%, rgba(200, 167, 95, 0.12)),
    repeating-linear-gradient(0deg, rgba(239, 228, 206, 0.025) 0 1px, transparent 1px 19px),
    linear-gradient(180deg, rgba(53, 43, 29, 0.72), rgba(10, 8, 6, 0.94) 74%);
  box-shadow: inset 0 0 0 1px rgba(239, 228, 206, 0.045), inset 0 36px 110px rgba(240, 217, 141, 0.06), 0 42px 120px var(--shadow);
  overflow: hidden;
}

.hero-shell::before {
  position: absolute;
  left: 50%;
  bottom: -18%;
  z-index: 0;
  width: min(96%, 940px);
  height: 92%;
  transform: translateX(-50%);
  border: 2px solid rgba(200, 167, 95, 0.24);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.08), transparent 36%),
    linear-gradient(90deg, transparent 0 12%, rgba(200, 167, 95, 0.08) 12% 13%, transparent 13% 31%, rgba(200, 167, 95, 0.06) 31% 32%, transparent 32% 68%, rgba(200, 167, 95, 0.06) 68% 69%, transparent 69% 87%, rgba(200, 167, 95, 0.08) 87% 88%, transparent 88%);
  box-shadow: inset 0 0 0 14px rgba(0, 0, 0, 0.16);
  opacity: 0.52;
  pointer-events: none;
  content: "";
}

.hero-shell::after {
  position: absolute;
  right: clamp(22px, 6vw, 76px);
  bottom: clamp(22px, 6vw, 74px);
  width: clamp(110px, 18vw, 230px);
  height: clamp(210px, 25vw, 340px);
  border: 1px solid rgba(200, 167, 95, 0.28);
  border-radius: 999px 999px 6px 6px;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(200, 167, 95, 0.24) 31% 33%, transparent 33% 66%, rgba(200, 167, 95, 0.24) 66% 68%, transparent 68%),
    linear-gradient(180deg, rgba(85, 61, 36, 0.34), rgba(116, 25, 29, 0.16));
  content: "";
  opacity: 0.34;
}

.hero-copy-block {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.archive-label,
.section-number,
.source-kicker,
.tape-label {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.case-stamp,
.tape-label {
  padding: 4px 12px;
  border-top: 1px solid rgba(200, 167, 95, 0.34);
  border-bottom: 1px solid rgba(200, 167, 95, 0.24);
  background: rgba(8, 8, 10, 0.5);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3.1rem, 7.6vw, 7.45rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.94;
  text-shadow: 0 0 34px rgba(200, 167, 95, 0.16);
}

h1 span {
  display: block;
}

h1::first-letter,
h2::first-letter {
  color: var(--gold-bright);
}

h2 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin: 0 0 8px;
  color: var(--ivory);
  font-size: 1.25rem;
}

.subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  line-height: 1.25;
}

.hero-copy,
.notice p,
.source-plate p,
.scripture-plate p,
.metaphysics-note p,
.chapel-card p,
.activity-card p,
.activity-card li,
.secret-file p,
.credits li,
.unlock-message,
.unlock-route p {
  color: var(--muted);
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.74);
  color: var(--ivory);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
}

.primary {
  background: linear-gradient(180deg, rgba(200, 167, 95, 0.26), rgba(8, 8, 10, 0.84));
}

.secondary {
  background: rgba(54, 42, 27, 0.36);
}

.gothic-strip,
.gothic-divider,
.apse-light {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto;
}

.gothic-strip,
.gothic-divider {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, transparent, rgba(200, 167, 95, 0.12), transparent);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: lowercase;
}

.gothic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
}

.gothic-strip span::before,
.gothic-strip span::after {
  color: var(--red);
  content: " † ";
}

.apse-light {
  height: 110px;
  background:
    radial-gradient(ellipse at center, rgba(240, 217, 141, 0.26), transparent 58%),
    linear-gradient(90deg, transparent, rgba(200, 167, 95, 0.32), transparent);
  clip-path: polygon(0 52%, 43% 52%, 50% 0, 57% 52%, 100% 52%, 57% 62%, 50% 100%, 43% 62%);
  opacity: 0.74;
}

.narthex {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 14px;
}

.notice {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: center;
  padding: clamp(28px, 4vw, 54px);
  border-top: 1px solid rgba(240, 217, 141, 0.38);
  border-bottom: 1px solid rgba(119, 96, 58, 0.52);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.12), transparent 12%, transparent 88%, rgba(200, 167, 95, 0.12)),
    repeating-linear-gradient(168deg, rgba(239, 228, 206, 0.025) 0 2px, transparent 2px 15px),
    linear-gradient(180deg, rgba(68, 54, 33, 0.34), rgba(18, 14, 10, 0.84)),
    rgba(10, 9, 7, 0.88);
  box-shadow: inset 0 0 0 1px rgba(239, 228, 206, 0.028), 0 30px 80px rgba(0, 0, 0, 0.38);
}

.notice::before,
.source-atlas::before,
.hidden-witnesses::before,
.doors::before,
.chapel-activities::before,
.essay-section::before,
.closing-blade::before,
.fragments::before,
.credits::before,
.secret-page-shell::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(200, 167, 95, 0.14);
  border-radius: 130px 130px 0 0;
  pointer-events: none;
  content: "";
}

.notice h2 {
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(200, 167, 95, 0.34);
  text-align: center;
}

.thesis-card {
  grid-column: 1 / -1;
  min-height: 0;
  padding-inline: clamp(34px, 8vw, 104px);
}

.blade-text {
  color: var(--ivory) !important;
  font-size: 1.18rem;
}

.source-atlas,
.hidden-witnesses,
.doors,
.chapel-activities,
.fragments,
.credits {
  position: relative;
  margin-top: 58px;
  padding: clamp(34px, 6vw, 74px) clamp(22px, 5vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.08), transparent 10%, transparent 90%, rgba(200, 167, 95, 0.08)),
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.05), transparent 20rem),
    repeating-linear-gradient(173deg, rgba(239, 228, 206, 0.018) 0 2px, transparent 2px 17px),
    rgba(14, 11, 8, 0.78);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.breach-note {
  margin: 12px auto 0;
  color: var(--muted);
}

.source-grid {
  display: grid;
  gap: 18px;
}

.source-plate,
.scripture-plate,
.metaphysics-note {
  position: relative;
  max-width: 820px;
  margin: 22px auto;
  padding: 22px clamp(24px, 5vw, 58px);
  border-left: 1px solid rgba(200, 167, 95, 0.42);
  border-right: 1px solid rgba(200, 167, 95, 0.42);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.11), transparent 13%, transparent 87%, rgba(200, 167, 95, 0.11)),
    rgba(8, 8, 10, 0.74);
  box-shadow: inset 0 1px 0 rgba(240, 217, 141, 0.16), inset 0 -1px 0 rgba(240, 217, 141, 0.1);
  text-align: center;
}

.source-plate::before,
.scripture-plate::before,
.metaphysics-note::before {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 56px;
  height: 1px;
  background: var(--red);
  content: "";
  transform: translateX(-50%);
}

blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  color: var(--ivory);
  font-size: clamp(1.12rem, 2vw, 1.46rem);
  line-height: 1.45;
}

.source-plate blockquote,
.scripture-plate blockquote {
  max-width: 640px;
  margin-inline: auto;
  padding-left: 0;
  border-left: 0;
}

.hidden-witnesses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
  gap: 28px;
  align-items: center;
}

.witness-links {
  display: grid;
  gap: 10px;
}

.witness-links a {
  padding: 12px 14px;
}

.witness-sigil {
  position: absolute;
  right: clamp(24px, 6vw, 74px);
  bottom: 24px;
  color: rgba(200, 167, 95, 0.34);
  font-size: 2rem;
  letter-spacing: 0.18em;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
}

.door {
  position: relative;
  display: grid;
  min-height: 172px;
  align-content: end;
  justify-items: center;
  padding: 34px 14px 18px;
  border: 1px solid rgba(200, 167, 95, 0.35);
  border-bottom-width: 3px;
  border-radius: 999px 999px 8px 8px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(240, 217, 141, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(74, 56, 35, 0.42), rgba(9, 7, 5, 0.92) 74%);
  color: var(--ivory);
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(239, 228, 206, 0.025), 0 18px 46px rgba(0, 0, 0, 0.34);
}

.door::before {
  position: absolute;
  inset: 10px 10px 18px;
  border: 1px solid rgba(240, 217, 141, 0.16);
  border-radius: 999px 999px 6px 6px;
  pointer-events: none;
  content: "";
}

.door::after {
  position: absolute;
  top: 62px;
  color: rgba(200, 167, 95, 0.68);
  content: "side chapel";
  font-size: 0.64rem;
  font-variant: small-caps;
  letter-spacing: 0.13em;
}

.door span {
  position: absolute;
  top: 28px;
  color: rgba(240, 217, 141, 0.82);
  font-size: 0.74rem;
}

.door:hover,
.door:focus-visible {
  border-color: var(--gold-bright);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(240, 217, 141, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(200, 167, 95, 0.14), rgba(116, 25, 29, 0.1)),
    rgba(8, 8, 10, 0.92);
  outline: 2px solid rgba(200, 167, 95, 0.28);
  outline-offset: 3px;
}

.chapel-grid {
  display: grid;
  gap: 36px;
}

.chapel-card,
.mary-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  max-width: 990px;
  gap: clamp(20px, 4vw, 44px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border-top: 1px solid rgba(200, 167, 95, 0.42);
  border-bottom: 1px solid rgba(200, 167, 95, 0.25);
  background:
    linear-gradient(90deg, rgba(74, 56, 35, 0.26), transparent 46%),
    rgba(10, 8, 6, 0.8);
}

.chapel-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
}

.chapel-card:nth-child(even) figure {
  order: 2;
}

.chapel-card figure,
.art-plate {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(200, 167, 95, 0.58);
  border-radius: 999px 999px 4px 4px;
  background:
    linear-gradient(180deg, rgba(200, 167, 95, 0.11), rgba(8, 8, 10, 0.74)),
    var(--stone);
  box-shadow: inset 0 0 0 8px rgba(8, 8, 10, 0.72), inset 0 0 0 9px rgba(200, 167, 95, 0.22), 0 24px 60px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.chapel-card figure {
  min-height: 360px;
}

.chapel-card img,
.art-plate img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.86) sepia(0.18) brightness(0.9);
}

.hero-art {
  position: absolute;
  right: clamp(24px, 6vw, 76px);
  bottom: clamp(24px, 6vw, 76px);
  z-index: 1;
  width: clamp(170px, 23vw, 310px);
  opacity: 0.72;
}

.section-art {
  float: right;
  width: min(36%, 320px);
  margin: 0 0 24px 28px;
}

figcaption,
.relic-caption {
  padding: 10px 12px;
  border-top: 1px solid rgba(200, 167, 95, 0.26);
  background: rgba(8, 8, 10, 0.86);
  color: rgba(239, 228, 206, 0.72);
  font-size: 0.68rem;
  line-height: 1.35;
}

.chapel-card > div {
  display: grid;
  align-content: center;
  padding: clamp(8px, 2vw, 24px);
}

.chapel-card details,
details {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(200, 167, 95, 0.26);
  background: rgba(8, 8, 10, 0.58);
}

summary {
  color: var(--gold-bright);
  cursor: pointer;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.activity-card {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: start;
  padding: 30px 20px;
  border: 1px solid rgba(200, 167, 95, 0.26);
  border-radius: 999px 999px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(240, 217, 141, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(74, 56, 35, 0.18), rgba(8, 7, 5, 0.9));
}

.activity-card::before {
  position: absolute;
  inset: 11px 12px 16px;
  border: 1px solid rgba(200, 167, 95, 0.13);
  border-radius: 999px 999px 8px 8px;
  pointer-events: none;
  content: "";
}

.activity-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.candle-row {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.candle-row a {
  position: relative;
  display: grid;
  min-height: 78px;
  place-items: end center;
  padding: 14px 10px;
  border-radius: 999px 999px 6px 6px;
}

.candle-row a::before {
  position: absolute;
  top: 13px;
  width: 16px;
  height: 28px;
  border: 1px solid rgba(240, 217, 141, 0.56);
  border-radius: 10px 10px 2px 2px;
  background:
    radial-gradient(circle at 50% 14%, rgba(240, 217, 141, 0.96), transparent 24%),
    linear-gradient(180deg, rgba(200, 167, 95, 0.42), rgba(116, 25, 29, 0.18));
  box-shadow: 0 0 24px rgba(240, 217, 141, 0.28);
  content: "";
}

.lens-pair {
  display: grid;
  gap: 10px;
}

.lens-pair div {
  padding: 12px;
  border-top: 1px solid rgba(200, 167, 95, 0.22);
  border-bottom: 1px solid rgba(200, 167, 95, 0.12);
}

.nave {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  margin-top: 64px;
  padding-block: 26px 10px;
}

.nave::before {
  position: absolute;
  left: calc(170px + clamp(18px, 3vw, 34px));
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 167, 95, 0.28), transparent);
  content: "";
}

.side-rail {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  height: max-content;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 14px 14px;
  border-left: 1px solid rgba(200, 167, 95, 0.34);
}

.side-rail a {
  padding: 7px 10px;
}

.essay-stack {
  display: grid;
  gap: 38px;
}

.essay-section,
.closing-blade {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 76px) clamp(26px, 6vw, 78px);
  border: 1px solid rgba(200, 167, 95, 0.2);
  border-top-color: rgba(240, 217, 141, 0.38);
  border-bottom-color: rgba(96, 74, 42, 0.5);
  border-radius: 9px 9px 2px 2px;
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.08), transparent 10%, transparent 90%, rgba(200, 167, 95, 0.08)),
    radial-gradient(ellipse at 50% -8%, rgba(240, 217, 141, 0.08), transparent 19rem),
    repeating-linear-gradient(174deg, rgba(239, 228, 206, 0.018) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(39, 32, 22, 0.74), rgba(12, 10, 8, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(239, 228, 206, 0.022),
    inset 0 34px 90px rgba(240, 217, 141, 0.045),
    0 34px 90px rgba(0, 0, 0, 0.38);
}

.essay-section::before,
.closing-blade::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(200, 167, 95, 0.12);
  border-radius: 140px 140px 0 0;
  pointer-events: none;
  content: "";
}

.essay-section::after,
.closing-blade::after {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: rgba(116, 25, 29, 0.64);
  content: "subtextum";
  font-size: 0.68rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
}

.marginalia {
  position: absolute;
  z-index: 2;
  max-width: 190px;
  margin: 0;
  color: rgba(200, 167, 95, 0.64);
  font-size: 0.68rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: lowercase;
}

.marginalia-left {
  left: -34px;
  top: 34px;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
}

.marginalia-right {
  right: -34px;
  top: 34px;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right top;
}

.essay-section h2 {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 167, 95, 0.34);
  text-align: center;
}

.prose {
  position: relative;
  z-index: 1;
}

.prose p {
  margin: 16px 0;
}

.voice-list,
.against-list,
.chain {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.voice-list li,
.against-list li,
.topology-grid span,
.parallel-lines p,
.chain li,
.rebuke-grid article {
  border-bottom: 1px solid rgba(200, 167, 95, 0.2);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.075), transparent),
    rgba(8, 8, 10, 0.42);
}

.voice-list li,
.against-list li,
.chain li {
  padding: 11px 14px;
}

.topology-grid,
.parallel-lines,
.rebuke-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.topology-grid span,
.parallel-lines p {
  margin: 0;
  padding: 14px;
}

.chain {
  max-width: 420px;
  margin-inline: auto;
  counter-reset: chain;
}

.chain li {
  position: relative;
  text-align: center;
}

.chain li:not(:last-child)::after {
  position: absolute;
  left: 50%;
  bottom: -15px;
  color: var(--gold);
  content: "↓";
  transform: translateX(-50%);
}

.word-row {
  color: var(--ivory) !important;
  font-size: clamp(1.3rem, 3vw, 2rem) !important;
  line-height: 1.3;
}

.compact {
  max-width: 600px;
}

.rebuke-grid article {
  padding: 22px;
}

.rebuke-grid p {
  margin: 0 0 8px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.rebuke-grid blockquote {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.secret-file,
.sealed-gate {
  position: relative;
  max-width: 820px;
  margin: 34px auto;
  padding: 0;
  border-top: 1px solid rgba(116, 25, 29, 0.82);
  border-bottom: 1px solid rgba(116, 25, 29, 0.72);
  border-left: 5px solid var(--red);
  background:
    linear-gradient(110deg, rgba(116, 25, 29, 0.24), transparent 48%),
    radial-gradient(circle at 88% 16%, rgba(116, 25, 29, 0.16), transparent 12rem),
    rgba(5, 5, 7, 0.88);
  overflow: hidden;
}

.secret-file::before,
.sealed-gate::before {
  position: absolute;
  right: 14px;
  top: 12px;
  color: rgba(240, 217, 141, 0.44);
  content: "undertext / sigillum";
  font-size: 0.62rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.secret-file::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 70%, rgba(116, 25, 29, 0.2) 70% 72%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(200, 167, 95, 0.025) 0 1px, transparent 1px 18px);
  content: "";
}

.secret-file summary {
  min-height: 48px;
  padding: 15px 150px 15px 18px;
  border-bottom: 1px solid rgba(116, 25, 29, 0.36);
  color: var(--gold-bright);
  cursor: pointer;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.secret-file p {
  margin: 0;
  padding: 0 18px 16px;
}

.secret-file .clue-line,
.unlock-form.is-unsealed .unlock-message {
  color: var(--gold-bright);
}

.clue-fragment,
.redacted-line,
.clue-line {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(116, 25, 29, 0.72);
  background: rgba(116, 25, 29, 0.16);
  color: var(--gold-bright) !important;
  font-size: 0.7rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.sealed-gate {
  padding: clamp(22px, 4vw, 34px);
}

.sealed-gate::before {
  content: "sigillum clausum / phrase required";
}

.sealed-gate h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.unlock-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.unlock-form label {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.unlock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.unlock-row input {
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 167, 95, 0.36);
  background: rgba(3, 3, 5, 0.72);
  color: var(--ivory);
  font: inherit;
}

.unlock-row input:focus {
  border-color: var(--gold-bright);
  outline: 2px solid rgba(200, 167, 95, 0.2);
}

.unlock-message,
.unlock-route p {
  margin: 0;
}

.unlock-route {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(200, 167, 95, 0.44);
  background: rgba(54, 42, 27, 0.28);
}

.unlock-route[hidden] {
  display: none;
}

#sincere-practitioners {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(240, 217, 141, 0.13), transparent 20rem),
    linear-gradient(90deg, rgba(200, 167, 95, 0.1), transparent 13%, transparent 87%, rgba(200, 167, 95, 0.1)),
    rgba(10, 10, 13, 0.86);
}

.quote-grid {
  display: grid;
  max-width: 880px;
  gap: 14px;
  margin-inline: auto;
}

.quote-grid blockquote {
  min-height: 0;
  margin: 0;
  padding: 26px clamp(24px, 5vw, 58px);
  border: 0;
  border-top: 1px solid rgba(200, 167, 95, 0.34);
  border-bottom: 1px solid rgba(200, 167, 95, 0.24);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.12), transparent 12%, transparent 88%, rgba(200, 167, 95, 0.12)),
    rgba(9, 9, 12, 0.8);
}

.quote-grid blockquote::before {
  display: block;
  margin-bottom: 10px;
  color: rgba(200, 167, 95, 0.68);
  content: "✠";
  font-size: 1.35rem;
}

.credits ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.credits a {
  color: var(--gold-bright);
  text-decoration-color: rgba(200, 167, 95, 0.42);
  text-underline-offset: 3px;
}

.credits code {
  color: var(--ivory);
}

.site-footer {
  margin-top: 46px;
  padding: 0 0 54px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: lowercase;
}

.secret-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(200, 167, 95, 0.14), transparent 24rem),
    linear-gradient(180deg, #070709, #0c0c10);
}

.secret-page-main {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: clamp(32px, 6vw, 76px) clamp(20px, 6vw, 72px);
}

.secret-page-shell {
  position: relative;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border-top: 1px solid rgba(200, 167, 95, 0.38);
  border-bottom: 1px solid rgba(200, 167, 95, 0.22);
  background:
    linear-gradient(90deg, rgba(200, 167, 95, 0.1), transparent 13%, transparent 87%, rgba(200, 167, 95, 0.1)),
    rgba(8, 8, 10, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.secret-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin: 34px 0;
}

.secret-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.norea-file {
  border-left: 5px solid var(--red);
}

/* Sacred materials pass: the page should read as an interior, not a theme. */
body {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(234, 193, 112, 0.2), transparent 24rem),
    radial-gradient(ellipse at 50% 12%, rgba(0, 0, 0, 0) 0 20rem, rgba(0, 0, 0, 0.38) 42rem),
    linear-gradient(90deg, #090705 0 7vw, #1c1710 7vw 8vw, transparent 8vw 92vw, #1c1710 92vw 93vw, #090705 93vw 100%),
    repeating-linear-gradient(90deg, rgba(202, 174, 112, 0.045) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #070604 0%, #14100b 28%, #0a0805 100%);
}

body::before {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(240, 217, 141, 0.16), transparent 24rem),
    radial-gradient(ellipse at 18% 22%, rgba(104, 78, 45, 0.18), transparent 18rem),
    radial-gradient(ellipse at 84% 34%, rgba(116, 25, 29, 0.12), transparent 20rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 13%, transparent 87%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(165deg, rgba(239, 228, 206, 0.026) 0 1px, transparent 1px 19px),
    repeating-linear-gradient(24deg, rgba(88, 72, 48, 0.12) 0 2px, transparent 2px 34px);
  opacity: 0.78;
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.68)),
    radial-gradient(ellipse at 50% 0%, transparent 0 18rem, rgba(0, 0, 0, 0.5) 43rem),
    linear-gradient(180deg, rgba(220, 172, 88, 0.035), transparent 20rem),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 22px);
  opacity: 0.7;
}

main::before,
main::after {
  width: min(10vw, 142px);
  border-inline: 1px solid rgba(207, 177, 111, 0.14);
  background:
    radial-gradient(ellipse at 50% 4%, rgba(238, 200, 124, 0.12), transparent 9rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 30%, rgba(231, 201, 137, 0.06) 50%, transparent 70%, rgba(0, 0, 0, 0.48)),
    repeating-linear-gradient(180deg, rgba(208, 176, 111, 0.08) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(65, 52, 34, 0.36), rgba(9, 7, 5, 0.12));
}

.site-nav {
  border-bottom: 1px solid rgba(214, 180, 104, 0.42);
  background:
    linear-gradient(180deg, rgba(23, 18, 12, 0.98), rgba(8, 7, 5, 0.96)),
    repeating-linear-gradient(90deg, rgba(239, 228, 206, 0.025) 0 1px, transparent 1px 34px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
}

.nav-scroll a,
.side-rail a,
.button {
  border-color: rgba(199, 157, 78, 0.4);
  background:
    linear-gradient(180deg, rgba(91, 70, 40, 0.34), rgba(14, 10, 6, 0.82)),
    rgba(9, 7, 5, 0.82);
  box-shadow: inset 0 0 0 1px rgba(239, 228, 206, 0.03);
}

.threshold {
  isolation: isolate;
}

.hero-shell {
  border-color: rgba(210, 174, 95, 0.42);
  border-radius: 18px 18px 5px 5px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(237, 203, 132, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(168deg, rgba(239, 228, 206, 0.028) 0 1px, transparent 1px 21px),
    linear-gradient(180deg, rgba(65, 50, 29, 0.72), rgba(10, 8, 5, 0.94) 76%);
  box-shadow:
    inset 0 0 0 1px rgba(239, 228, 206, 0.04),
    inset 0 52px 130px rgba(237, 203, 132, 0.06),
    0 52px 120px rgba(0, 0, 0, 0.72);
}

.hero-shell::before {
  bottom: -10%;
  width: min(92%, 860px);
  height: 78%;
  border-color: rgba(210, 174, 95, 0.18);
  opacity: 0.38;
}

.hero-shell::after {
  opacity: 0.18;
}

.notice {
  border: 1px solid rgba(202, 174, 112, 0.34);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 244, 209, 0.08), transparent 18%, transparent 82%, rgba(255, 244, 209, 0.06)),
    repeating-linear-gradient(157deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 18px),
    radial-gradient(ellipse at 50% -10%, rgba(235, 210, 154, 0.1), transparent 12rem),
    linear-gradient(180deg, rgba(62, 53, 39, 0.82), rgba(20, 16, 10, 0.9));
  box-shadow:
    inset 0 0 0 8px rgba(0, 0, 0, 0.13),
    inset 0 0 0 9px rgba(202, 174, 112, 0.08),
    0 26px 70px rgba(0, 0, 0, 0.46);
}

.notice::before {
  inset: 14px;
  border-radius: 0;
  border-color: rgba(238, 211, 151, 0.16);
}

.notice.warning {
  background:
    linear-gradient(90deg, rgba(255, 244, 209, 0.07), transparent 16%, transparent 84%, rgba(255, 244, 209, 0.05)),
    repeating-linear-gradient(157deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(50, 43, 35, 0.86), rgba(15, 12, 8, 0.9));
}

.thesis-card {
  background:
    linear-gradient(90deg, rgba(129, 25, 28, 0.1), transparent 18%, transparent 82%, rgba(129, 25, 28, 0.08)),
    repeating-linear-gradient(1deg, rgba(76, 45, 22, 0.12) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(77, 61, 38, 0.9), rgba(22, 17, 10, 0.92));
}

.source-plate,
.scripture-plate,
.metaphysics-note,
.witness-file,
.secret-file,
.sealed-gate {
  border-color: rgba(198, 156, 82, 0.36);
  background:
    linear-gradient(90deg, rgba(239, 213, 155, 0.09), transparent 16%, transparent 84%, rgba(239, 213, 155, 0.08)),
    repeating-linear-gradient(178deg, rgba(98, 67, 32, 0.16) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, rgba(52, 38, 22, 0.84), rgba(12, 9, 6, 0.9));
}

.scripture-plate {
  background:
    linear-gradient(90deg, rgba(240, 217, 141, 0.12), transparent 18%, transparent 82%, rgba(240, 217, 141, 0.1)),
    repeating-linear-gradient(0deg, rgba(91, 56, 25, 0.12) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(91, 73, 43, 0.78), rgba(32, 24, 13, 0.9));
}

.door {
  border-radius: 999px 999px 4px 4px;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(240, 217, 141, 0.16), transparent 36%),
    repeating-linear-gradient(170deg, rgba(239, 228, 206, 0.022) 0 1px, transparent 1px 17px),
    linear-gradient(180deg, rgba(70, 53, 32, 0.6), rgba(9, 7, 5, 0.94) 74%);
}

.chapel-card,
.mary-card,
.activity-card {
  border: 1px solid rgba(202, 174, 112, 0.32);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.08), transparent 15rem),
    repeating-linear-gradient(168deg, rgba(239, 228, 206, 0.024) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(44, 35, 22, 0.86), rgba(11, 8, 5, 0.92));
  box-shadow: inset 0 0 0 1px rgba(239, 228, 206, 0.03), 0 28px 80px rgba(0, 0, 0, 0.42);
}

.chapel-card figure,
.mary-card figure,
.section-art,
.hero-art {
  border-color: rgba(211, 178, 101, 0.44);
  background:
    linear-gradient(180deg, rgba(240, 217, 141, 0.08), rgba(10, 8, 5, 0.86)),
    rgba(9, 7, 5, 0.9);
  box-shadow:
    inset 0 0 0 8px rgba(0, 0, 0, 0.18),
    inset 0 0 0 9px rgba(240, 217, 141, 0.08),
    0 26px 70px rgba(0, 0, 0, 0.48);
}

.nave {
  background:
    linear-gradient(90deg, transparent, rgba(206, 172, 103, 0.035) 16%, transparent 38%, transparent 62%, rgba(206, 172, 103, 0.035) 84%, transparent);
}

.essay-section,
.closing-blade {
  max-width: 980px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(220, 188, 121, 0.06), transparent 14%, transparent 86%, rgba(220, 188, 121, 0.06)),
    radial-gradient(ellipse at 50% -8%, rgba(240, 217, 141, 0.08), transparent 18rem),
    repeating-linear-gradient(168deg, rgba(239, 228, 206, 0.025) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, rgba(42, 33, 21, 0.82), rgba(12, 9, 6, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(240, 217, 141, 0.22),
    inset 0 -1px 0 rgba(202, 174, 112, 0.1),
    0 34px 90px rgba(0, 0, 0, 0.34);
}

.essay-section:nth-child(3n + 1) {
  margin-left: 0;
}

.essay-section:nth-child(3n + 2) {
  margin-right: 0;
  background:
    linear-gradient(90deg, rgba(129, 25, 28, 0.06), transparent 20%, transparent 88%, rgba(220, 188, 121, 0.06)),
    repeating-linear-gradient(174deg, rgba(239, 228, 206, 0.023) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(48, 38, 24, 0.78), rgba(13, 10, 7, 0.86));
}

.essay-section::before,
.closing-blade::before {
  inset: 18px;
  border-radius: 0;
  border-color: rgba(222, 190, 121, 0.12);
}

.essay-section h2,
.notice h2 {
  text-shadow: 0 0 24px rgba(240, 217, 141, 0.13);
}

.secret-file,
.sealed-gate {
  border-left: 5px solid rgba(116, 25, 29, 0.78);
  background:
    linear-gradient(105deg, rgba(116, 25, 29, 0.22), transparent 18%),
    repeating-linear-gradient(178deg, rgba(98, 67, 32, 0.14) 0 1px, transparent 1px 11px),
    linear-gradient(180deg, rgba(40, 24, 18, 0.9), rgba(9, 6, 5, 0.94));
}

.quote-grid blockquote {
  border-color: rgba(209, 174, 93, 0.36);
  background:
    linear-gradient(90deg, rgba(240, 217, 141, 0.1), transparent 20%, transparent 80%, rgba(240, 217, 141, 0.08)),
    repeating-linear-gradient(170deg, rgba(239, 228, 206, 0.024) 0 1px, transparent 1px 19px),
    linear-gradient(180deg, rgba(56, 45, 28, 0.84), rgba(13, 10, 6, 0.9));
}

/* Real-image material layer. */
body {
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.28), rgba(5, 4, 3, 0.84)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.14) 50%, rgba(0, 0, 0, 0.2) 78%, rgba(0, 0, 0, 0.76)),
    url("assets/rome-basilica-interior.jpg") center top / cover fixed,
    #090705;
}

body::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.66)),
    repeating-linear-gradient(165deg, rgba(239, 228, 206, 0.024) 0 1px, transparent 1px 23px);
  opacity: 0.72;
}

body::after {
  background:
    radial-gradient(ellipse at 50% 4%, transparent 0 17rem, rgba(0, 0, 0, 0.46) 44rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.66));
  opacity: 0.74;
}

.notice,
.source-plate,
.scripture-plate,
.metaphysics-note,
.witness-file,
.quote-grid blockquote {
  background:
    linear-gradient(180deg, rgba(29, 21, 12, 0.62), rgba(12, 8, 5, 0.84)),
    linear-gradient(90deg, rgba(240, 217, 141, 0.08), transparent 20%, transparent 80%, rgba(240, 217, 141, 0.08)),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: multiply, normal, luminosity;
}

.thesis-card,
.essay-section,
.closing-blade {
  background:
    linear-gradient(180deg, rgba(9, 7, 5, 0.62), rgba(9, 7, 5, 0.9)),
    linear-gradient(90deg, rgba(240, 217, 141, 0.07), transparent 16%, transparent 84%, rgba(240, 217, 141, 0.07)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: multiply, normal, soft-light;
}

.essay-section:nth-child(3n + 2) {
  background:
    linear-gradient(180deg, rgba(9, 7, 5, 0.68), rgba(9, 7, 5, 0.92)),
    linear-gradient(105deg, rgba(116, 25, 29, 0.12), transparent 26%),
    url("assets/durer-moneychangers.jpg") center / cover;
  background-blend-mode: multiply, normal, soft-light;
}

.secret-file,
.sealed-gate,
.unlock-route {
  background:
    linear-gradient(105deg, rgba(116, 25, 29, 0.28), transparent 20%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.72), rgba(5, 3, 3, 0.94)),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: normal, multiply, luminosity;
}

.door,
.activity-card,
.chapel-card,
.mary-card {
  background:
    radial-gradient(ellipse at 50% 6%, rgba(240, 217, 141, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(14, 10, 7, 0.46), rgba(7, 5, 4, 0.88)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.hero-shell {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.2), transparent 25rem),
    linear-gradient(180deg, rgba(8, 6, 4, 0.42), rgba(7, 5, 3, 0.88)),
    url("assets/rome-basilica-interior.jpg") center top / cover;
  background-blend-mode: normal, multiply, normal;
}

@media (max-width: 920px) {
  main::before,
  main::after,
  .nave::before {
    display: none;
  }

  .narthex,
  .door-grid,
  .activity-grid,
  .topology-grid,
  .parallel-lines,
  .rebuke-grid,
  .secret-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chapel-card,
  .chapel-card:nth-child(even),
  .mary-card {
    grid-template-columns: 1fr;
  }

  .chapel-card:nth-child(even) figure {
    order: 0;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    margin-top: 30px;
  }

  .section-art {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  .nave {
    grid-template-columns: 1fr;
  }

  .side-rail {
    display: none;
  }

  .marginalia,
  .witness-sigil {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --nav-height: 98px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .threshold,
  .narthex,
  .source-atlas,
  .hidden-witnesses,
  .doors,
  .chapel-activities,
  .nave,
  .fragments,
  .credits,
  .site-footer,
  .gothic-strip,
  .gothic-divider,
  .apse-light {
    width: min(100% - 48px, var(--max));
  }

  .hero-shell {
    min-height: 0;
    padding: 30px 22px;
    border-radius: 120px 120px 8px 8px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.45rem);
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .narthex,
  .hidden-witnesses,
  .door-grid,
  .activity-grid,
  .topology-grid,
  .parallel-lines,
  .rebuke-grid,
  .secret-page-grid,
  .unlock-row {
    grid-template-columns: 1fr;
  }

  .notice,
  .activity-card {
    min-height: 0;
  }

  .door {
    min-height: 118px;
  }

  .chapel-card figure {
    min-height: 240px;
  }

  .hero-actions,
  .secret-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .secret-file::before,
  .sealed-gate::before {
    position: static;
    display: block;
    padding: 12px 16px 0;
  }

  .secret-file summary {
    padding: 12px 16px 14px;
  }
}

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

@media (max-width: 920px) {
  main::before,
  main::after {
    display: block;
    width: 18px;
    opacity: 0.42;
  }

  .essay-section:nth-child(n) {
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .hero-shell {
    border-radius: 12px 12px 4px 4px;
  }

  .hero-shell::before {
    opacity: 0.2;
  }

  .notice,
  .essay-section,
  .closing-blade,
  .source-plate,
  .scripture-plate,
  .metaphysics-note,
  .chapel-card,
  .mary-card,
  .activity-card,
  .quote-grid blockquote {
    border-radius: 2px;
  }
}

/* Classical gothic shrine web pass: varied rooms, old-web relics, less uniformity. */
.shrine-relic-row {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: -8px auto 22px;
  padding: 10px;
  border-top: 3px double rgba(218, 183, 106, 0.36);
  border-bottom: 3px double rgba(218, 183, 106, 0.24);
  background:
    linear-gradient(90deg, transparent, rgba(12, 8, 5, 0.72), transparent),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: multiply, luminosity;
}

.shrine-relic-row a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px outset rgba(220, 188, 121, 0.42);
  background:
    linear-gradient(180deg, rgba(48, 34, 18, 0.72), rgba(11, 7, 4, 0.88)),
    url("assets/parchment-vellum.jpg") center / cover;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: lowercase;
}

.shrine-relic-row a::before {
  content: "x";
  color: rgba(191, 42, 42, 0.8);
  font-size: 0.85rem;
}

.site-nav {
  border-bottom: 3px ridge rgba(211, 178, 101, 0.42);
}

.brand,
.nav-scroll a {
  border-style: ridge;
}

.nav-scroll a:nth-child(3n + 1)::before {
  content: "i";
}

.nav-scroll a:nth-child(3n + 2)::before {
  content: "v";
}

.nav-scroll a:nth-child(3n)::before {
  content: "x";
}

.gothic-strip,
.gothic-divider {
  border-top: 4px double rgba(213, 179, 100, 0.34);
  border-bottom: 4px double rgba(213, 179, 100, 0.22);
  background:
    linear-gradient(90deg, rgba(9, 6, 4, 0.94), rgba(74, 51, 27, 0.38), rgba(9, 6, 4, 0.94)),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: multiply, luminosity;
}

.notice-grid {
  align-items: start;
}

.notice {
  border-style: ridge;
}

.notice.warning {
  transform: rotate(-0.35deg);
}

.notice:not(.warning):not(.thesis-card) {
  transform: translateY(18px) rotate(0.22deg);
}

.thesis-card {
  transform: rotate(-0.12deg);
  border: 8px double rgba(215, 182, 105, 0.28);
}

.thesis-card h2::before,
.thesis-card h2::after,
.section-heading h2::before,
.section-heading h2::after {
  color: rgba(174, 38, 39, 0.74);
  font-size: 0.55em;
  vertical-align: middle;
}

.thesis-card h2::before,
.section-heading h2::before {
  content: "iii ";
}

.thesis-card h2::after,
.section-heading h2::after {
  content: " iii";
}

.source-grid {
  gap: 18px;
}

.source-plate:nth-child(odd),
.scripture-plate:nth-child(odd) {
  transform: rotate(-0.22deg);
}

.source-plate:nth-child(even),
.scripture-plate:nth-child(even) {
  transform: translateY(12px) rotate(0.28deg);
}

.source-plate,
.scripture-plate,
.metaphysics-note {
  border-style: groove;
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 214, 0.05),
    inset 0 0 32px rgba(73, 42, 18, 0.45),
    0 22px 48px rgba(0, 0, 0, 0.34);
}

.door-grid {
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
}

.door {
  min-height: 152px;
  border-style: ridge;
}

.door:nth-child(1),
.door:nth-child(6),
.door:nth-child(10) {
  grid-column: span 4;
  min-height: 210px;
}

.door:nth-child(2),
.door:nth-child(5),
.door:nth-child(9),
.door:nth-child(11) {
  grid-column: span 3;
}

.door:nth-child(3),
.door:nth-child(4),
.door:nth-child(7),
.door:nth-child(8),
.door:nth-child(12) {
  grid-column: span 5;
}

.door:nth-child(odd) {
  transform: translateY(10px);
}

.door:nth-child(even) {
  transform: translateY(-8px);
}

.door:nth-child(4n + 1) {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(240, 217, 141, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(12, 8, 5, 0.42), rgba(7, 5, 4, 0.9)),
    url("assets/good-shepherd-catacomb.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.door:nth-child(4n + 2) {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(240, 217, 141, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(12, 8, 5, 0.52), rgba(7, 5, 4, 0.92)),
    url("assets/christ-pantocrator-sinai.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.door:nth-child(4n + 3) {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(240, 217, 141, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(12, 8, 5, 0.5), rgba(7, 5, 4, 0.92)),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: normal, multiply, luminosity;
}

.door:nth-child(4n) {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(240, 217, 141, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(12, 8, 5, 0.52), rgba(7, 5, 4, 0.92)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.chapel-card:nth-child(3n + 1),
.mary-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(9, 6, 4, 0.48), rgba(7, 5, 4, 0.9)),
    url("assets/jesus-washing-peters-feet.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.chapel-card:nth-child(3n + 2) {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(9, 6, 4, 0.5), rgba(7, 5, 4, 0.9)),
    url("assets/bloch-sermon-on-the-mount.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.chapel-card:nth-child(3n) {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 141, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(9, 6, 4, 0.5), rgba(7, 5, 4, 0.9)),
    url("assets/good-shepherd-catacomb.jpg") center / cover;
  background-blend-mode: normal, multiply, soft-light;
}

.activity-card:nth-child(odd) {
  transform: rotate(-0.2deg);
}

.activity-card:nth-child(even) {
  transform: translateY(18px) rotate(0.28deg);
}

.essay-section {
  border-top: 5px double rgba(211, 178, 101, 0.2);
  border-bottom: 5px double rgba(211, 178, 101, 0.12);
}

.essay-section:nth-child(4n + 1) {
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.62), rgba(7, 5, 4, 0.9)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: multiply, soft-light;
}

.essay-section:nth-child(4n + 2) {
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.66), rgba(7, 5, 4, 0.92)),
    url("assets/parchment-vellum.jpg") center / cover;
  background-blend-mode: multiply, luminosity;
}

.essay-section:nth-child(4n + 3) {
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.66), rgba(7, 5, 4, 0.92)),
    url("assets/durer-moneychangers.jpg") center / cover;
  background-blend-mode: multiply, soft-light;
}

.essay-section:nth-child(4n) {
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.64), rgba(7, 5, 4, 0.92)),
    url("assets/good-shepherd-catacomb.jpg") center / cover;
  background-blend-mode: multiply, soft-light;
}

.essay-section:nth-child(odd) {
  transform: rotate(-0.08deg);
}

.essay-section:nth-child(even) {
  transform: rotate(0.08deg);
}

.quote-grid blockquote:nth-child(3n + 1) {
  border-style: ridge;
}

.quote-grid blockquote:nth-child(3n + 2) {
  transform: translateY(14px);
  border-style: groove;
}

.quote-grid blockquote:nth-child(3n) {
  border-style: double;
  background:
    linear-gradient(180deg, rgba(11, 7, 5, 0.54), rgba(7, 5, 4, 0.9)),
    url("assets/christ-pantocrator-sinai.jpg") center / cover;
  background-blend-mode: multiply, soft-light;
}

.sealed-gate {
  border-style: inset;
  box-shadow:
    inset 0 0 0 1px rgba(240, 217, 141, 0.06),
    inset 18px 0 0 rgba(116, 25, 29, 0.34),
    0 32px 70px rgba(0, 0, 0, 0.46);
}

@media (max-width: 920px) {
  .door-grid {
    grid-template-columns: 1fr 1fr;
  }

  .door:nth-child(n) {
    grid-column: auto;
    transform: none;
  }

  .notice,
  .notice.warning,
  .thesis-card,
  .source-plate:nth-child(n),
  .scripture-plate:nth-child(n),
  .activity-card:nth-child(n),
  .essay-section:nth-child(n),
  .quote-grid blockquote:nth-child(n) {
    transform: none;
  }
}

@media (max-width: 620px) {
  .shrine-relic-row {
    width: min(100% - 32px, var(--max));
    justify-content: flex-start;
    overflow-x: auto;
  }

  .door-grid {
    grid-template-columns: 1fr;
  }
}

/* Neon White-inspired cathedral pass: bright heaven, ink text, red undercuts. */
:root {
  color-scheme: light;
  --stone: #f8fbff;
  --stone-2: #ffffff;
  --stone-3: #dfeef8;
  --ivory: #0d1018;
  --muted: #4a5a66;
  --quiet: #7b8994;
  --gold: #7fd7ff;
  --gold-bright: #ffffff;
  --red: #ff2f2f;
  --red-dark: #930d15;
  --blue: #aeeeff;
  --blue-glass: #e9f9ff;
  --line: rgba(12, 17, 26, 0.22);
  --line-soft: rgba(12, 17, 26, 0.1);
  --shadow: rgba(20, 51, 75, 0.2);
}

body {
  background:
    radial-gradient(circle at 24% 9%, rgba(255, 255, 255, 0.98), transparent 17rem),
    radial-gradient(circle at 78% 16%, rgba(116, 220, 255, 0.42), transparent 23rem),
    linear-gradient(135deg, rgba(255, 47, 47, 0.12) 0 1.2%, transparent 1.2% 49%, rgba(255, 47, 47, 0.16) 49% 50.4%, transparent 50.4%),
    linear-gradient(180deg, rgba(236, 250, 255, 0.82), rgba(255, 255, 255, 0.96) 34%, rgba(225, 244, 255, 0.9)),
    url("assets/rome-basilica-interior.jpg") center top / cover fixed;
  color: #11151d;
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(90deg, rgba(13, 18, 28, 0.04) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(13, 18, 28, 0.035) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 50% 0%, rgba(127, 215, 255, 0.28), transparent 26rem);
  opacity: 0.7;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 0 46%, rgba(255, 47, 47, 0.2) 46% 47.2%, transparent 47.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.78));
  opacity: 0.85;
}

main::before,
main::after {
  width: min(7vw, 86px);
  border-inline: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent),
    linear-gradient(90deg, transparent, rgba(127, 215, 255, 0.18), transparent);
  box-shadow: 0 0 34px rgba(127, 215, 255, 0.28);
}

.site-nav {
  border-bottom: 3px solid #10141f;
  background:
    linear-gradient(90deg, #ffffff 0 76%, #10141f 76% 100%);
  color: #10141f;
  box-shadow: 0 12px 0 rgba(255, 47, 47, 0.78), 0 26px 52px rgba(21, 74, 108, 0.22);
}

.brand,
.nav-scroll a,
.button,
.shrine-relic-row a {
  border: 2px solid #11151d;
  border-radius: 0;
  background: #ffffff;
  color: #11151d;
  box-shadow: 5px 5px 0 #11151d;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand {
  color: #11151d;
  text-transform: uppercase;
}

.brand-mark {
  border-color: #11151d;
  border-bottom-color: #ff2f2f;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #ffffff, #9be7ff);
}

.nav-scroll a::before,
.shrine-relic-row a::before {
  color: #ff2f2f;
  content: "/";
}

.nav-scroll a:hover,
.nav-scroll a:focus-visible,
.button:hover,
.button:focus-visible,
.shrine-relic-row a:hover,
.shrine-relic-row a:focus-visible {
  transform: translate(-2px, -2px);
  border-color: #ff2f2f;
  outline: 3px solid rgba(127, 215, 255, 0.6);
  box-shadow: 8px 8px 0 #ff2f2f, 0 0 28px rgba(127, 215, 255, 0.62);
}

.gothic-strip,
.gothic-divider,
.shrine-relic-row {
  border: 2px solid #11151d;
  background:
    linear-gradient(90deg, #ffffff, rgba(194, 239, 255, 0.94), #ffffff);
  color: #11151d;
  box-shadow: 8px 8px 0 rgba(17, 21, 29, 0.92);
}

.gothic-strip span,
.gothic-divider,
.archive-label,
.source-kicker,
.section-number,
.tape-label {
  color: #11151d;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-shell {
  min-height: 610px;
  border: 3px solid #11151d;
  border-radius: 0;
  background:
    linear-gradient(116deg, transparent 0 66%, rgba(255, 47, 47, 0.92) 66% 68%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(228, 248, 255, 0.82)),
    url("assets/christ-pantocrator-sinai.jpg") 90% center / 36% auto no-repeat,
    #ffffff;
  background-blend-mode: normal, normal, luminosity, normal;
  box-shadow: 16px 16px 0 #11151d, 0 0 68px rgba(127, 215, 255, 0.62);
  clip-path: polygon(0 0, 94% 0, 100% 11%, 100% 100%, 6% 100%, 0 89%);
}

.hero-shell::before {
  left: auto;
  right: 28px;
  bottom: 28px;
  width: min(34vw, 390px);
  height: min(52vw, 430px);
  transform: none;
  border: 2px solid rgba(17, 21, 29, 0.22);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(127, 215, 255, 0.36), transparent 38%),
    linear-gradient(45deg, transparent 0 46%, rgba(255, 47, 47, 0.72) 46% 49%, transparent 49%);
  box-shadow: none;
  opacity: 0.82;
}

.hero-shell::after {
  display: none;
}

.hero-copy-block {
  max-width: 700px;
}

.case-stamp {
  border: 2px solid #11151d;
  background: #11151d;
  color: #ffffff;
  box-shadow: 6px 6px 0 #ff2f2f;
}

h1,
h2,
h3 {
  color: #11151d;
  text-shadow: none;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 8.6vw, 8rem);
  line-height: 0.86;
}

h1::first-letter,
h2::first-letter {
  color: #ff2f2f;
}

.subtitle {
  color: #11151d;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy,
.notice p,
.source-plate p,
.scripture-plate p,
.metaphysics-note p,
.chapel-card p,
.activity-card p,
.prose p,
.credits li {
  color: #1f2a35;
}

.clue-fragment,
.blade-text,
.secret-file .clue-line {
  color: #ff2f2f !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.notice,
.thesis-card,
.source-plate,
.scripture-plate,
.metaphysics-note,
.chapel-card,
.mary-card,
.activity-card,
.quote-grid blockquote,
.credits {
  transform: none !important;
  border: 3px solid #11151d;
  border-radius: 0;
  background:
    linear-gradient(130deg, rgba(255, 47, 47, 0.12) 0 4%, transparent 4% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 248, 255, 0.88));
  background-blend-mode: normal;
  color: #11151d;
  box-shadow: 12px 12px 0 rgba(17, 21, 29, 0.94), 0 0 42px rgba(127, 215, 255, 0.32);
}

.notice::before,
.source-plate::before,
.scripture-plate::before,
.essay-section::before,
.closing-blade::before,
.fragments::before,
.credits::before {
  border: 1px solid rgba(17, 21, 29, 0.18);
  border-radius: 0;
}

.thesis-card {
  border-width: 4px;
  background:
    linear-gradient(116deg, transparent 0 84%, rgba(255, 47, 47, 0.88) 84% 86%, transparent 86%),
    linear-gradient(180deg, #ffffff, #eafdff);
}

.source-atlas,
.hidden-witnesses,
.doors,
.chapel-activities,
.fragments,
.credits {
  border: 0;
  background: transparent;
}

.door-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.door,
.door:nth-child(n) {
  grid-column: auto;
  min-height: 172px;
  transform: none;
  border: 3px solid #11151d;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 47, 47, 0.16) 0 8%, transparent 8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(209, 243, 255, 0.9)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: normal, normal, luminosity;
  color: #11151d;
  box-shadow: 9px 9px 0 #11151d;
  clip-path: polygon(0 0, 92% 0, 100% 13%, 100% 100%, 8% 100%, 0 88%);
}

.door::before {
  border-color: rgba(17, 21, 29, 0.18);
  border-radius: 0;
}

.door::after {
  color: #ff2f2f;
  content: "///";
}

.door:hover,
.door:focus-visible {
  transform: translate(-4px, -4px);
  background:
    linear-gradient(135deg, rgba(255, 47, 47, 0.24) 0 10%, transparent 10%),
    linear-gradient(180deg, #ffffff, #cbf5ff);
  box-shadow: 14px 14px 0 #ff2f2f, 0 0 42px rgba(127, 215, 255, 0.62);
}

.door span {
  color: #ff2f2f;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.chapel-card figure,
.mary-card figure,
.section-art,
.hero-art {
  border: 3px solid #11151d;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 10px 10px 0 #11151d, 0 0 36px rgba(127, 215, 255, 0.42);
}

.chapel-card img,
.mary-card img,
.section-art img,
.hero-art img {
  filter: contrast(1.08) saturate(0.72) brightness(1.16);
}

.relic-caption,
figcaption {
  background: #11151d;
  color: #ffffff;
}

.nave {
  background: transparent;
}

.side-rail {
  border-left: 4px solid #11151d;
}

.side-rail a {
  background: #ffffff;
}

.essay-section,
.closing-blade {
  transform: none !important;
  border: 3px solid #11151d;
  border-radius: 0;
  background:
    linear-gradient(118deg, transparent 0 86%, rgba(255, 47, 47, 0.8) 86% 88%, transparent 88%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(231, 248, 255, 0.86)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: normal, normal, luminosity;
  color: #11151d;
  box-shadow: 14px 14px 0 rgba(17, 21, 29, 0.96), 0 0 56px rgba(127, 215, 255, 0.3);
}

.essay-section:nth-child(even) {
  background:
    linear-gradient(118deg, transparent 0 80%, rgba(255, 47, 47, 0.88) 80% 82%, transparent 82%),
    linear-gradient(180deg, #11151d, #030407);
  color: #ffffff;
  box-shadow: 14px 14px 0 #ff2f2f, 0 0 46px rgba(17, 21, 29, 0.5);
}

.essay-section:nth-child(even) h2,
.essay-section:nth-child(even) h3,
.essay-section:nth-child(even) p,
.essay-section:nth-child(even) li,
.essay-section:nth-child(even) .prose p {
  color: #ffffff;
}

.essay-section:nth-child(even) .secret-file p,
.essay-section:nth-child(even) .scripture-plate p,
.essay-section:nth-child(even) .metaphysics-note p {
  color: #1f2a35;
}

.essay-section::after,
.closing-blade::after {
  color: #ff2f2f;
  content: "RED CUT";
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.secret-file,
.sealed-gate,
.unlock-route {
  border: 3px solid #ff2f2f;
  border-left-width: 10px;
  border-radius: 0;
  background:
    linear-gradient(118deg, transparent 0 75%, rgba(255, 47, 47, 0.5) 75% 78%, transparent 78%),
    linear-gradient(180deg, #11151d, #020305);
  color: #ffffff;
  box-shadow: 10px 10px 0 #ff2f2f;
}

.secret-file summary,
.sealed-gate h3,
.secret-file p,
.sealed-gate p {
  color: #ffffff;
}

.secret-file::before,
.sealed-gate::before {
  color: rgba(255, 255, 255, 0.56);
}

.quote-grid blockquote {
  min-height: 160px;
  color: #11151d;
  clip-path: polygon(0 0, 96% 0, 100% 14%, 100% 100%, 4% 100%, 0 86%);
}

.quote-grid blockquote::before {
  color: #ff2f2f;
}

.button.primary,
.primary {
  background: #11151d;
  color: #ffffff;
}

.button.secondary,
.secondary {
  background: #ffffff;
  color: #11151d;
}

input,
textarea {
  border: 3px solid #11151d;
  border-radius: 0;
  background: #ffffff;
  color: #11151d;
  box-shadow: 6px 6px 0 #11151d;
}

@media (max-width: 920px) {
  .site-nav {
    background: #ffffff;
  }

  main::before,
  main::after {
    display: none;
  }

  .hero-shell,
  .door,
  .quote-grid blockquote {
    clip-path: none;
  }
}

@media (max-width: 620px) {
  .hero-shell,
  .notice,
  .thesis-card,
  .essay-section,
  .closing-blade,
  .source-plate,
  .scripture-plate,
  .metaphysics-note,
  .chapel-card,
  .mary-card,
  .activity-card,
  .quote-grid blockquote,
  .secret-file,
  .sealed-gate {
    box-shadow: 7px 7px 0 rgba(17, 21, 29, 0.92);
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }
}

/* Dark Neon White readability pass. */
:root {
  color-scheme: dark;
  --stone: #050812;
  --stone-2: #09101f;
  --stone-3: #101a2b;
  --ivory: #f5fbff;
  --muted: #c7d7e6;
  --quiet: #91a4b5;
  --gold: #8cecff;
  --gold-bright: #ffffff;
  --red: #ff3434;
  --red-dark: #6e0710;
  --blue: #67dfff;
  --blue-glass: #13283a;
  --line: rgba(245, 251, 255, 0.36);
  --line-soft: rgba(245, 251, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.62);
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(123, 232, 255, 0.28), transparent 23rem),
    radial-gradient(circle at 82% 18%, rgba(255, 52, 52, 0.16), transparent 20rem),
    linear-gradient(116deg, transparent 0 48%, rgba(255, 52, 52, 0.18) 48% 49.2%, transparent 49.2%),
    linear-gradient(180deg, rgba(3, 5, 13, 0.82), rgba(5, 8, 18, 0.96)),
    url("assets/rome-basilica-interior.jpg") center top / cover fixed,
    #050812;
  color: var(--ivory);
}

body::before {
  background:
    repeating-linear-gradient(90deg, rgba(245, 251, 255, 0.045) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(245, 251, 255, 0.035) 0 1px, transparent 1px 58px),
    radial-gradient(circle at 50% 0%, rgba(140, 236, 255, 0.2), transparent 28rem);
  opacity: 0.55;
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(2, 4, 10, 0.12), rgba(2, 4, 10, 0.72));
  opacity: 0.9;
}

.site-nav {
  border-bottom: 3px solid #ffffff;
  background: #080d19;
  color: #ffffff;
  box-shadow: 0 8px 0 var(--red), 0 24px 46px rgba(0, 0, 0, 0.48);
}

.brand,
.nav-scroll a,
.button,
.shrine-relic-row a {
  border-color: #ffffff;
  background: #ffffff;
  color: #08101d;
  box-shadow: 5px 5px 0 rgba(255, 52, 52, 0.94);
}

.nav-scroll a:hover,
.nav-scroll a:focus-visible,
.button:hover,
.button:focus-visible,
.shrine-relic-row a:hover,
.shrine-relic-row a:focus-visible {
  background: #08101d;
  color: #ffffff;
  box-shadow: 8px 8px 0 var(--red), 0 0 30px rgba(140, 236, 255, 0.7);
}

.gothic-strip,
.gothic-divider,
.shrine-relic-row {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(90deg, rgba(8, 13, 25, 0.94), rgba(17, 32, 52, 0.9), rgba(8, 13, 25, 0.94));
  color: #ffffff;
  box-shadow: 8px 8px 0 rgba(255, 52, 52, 0.86);
}

.gothic-strip span,
.gothic-divider,
.archive-label,
.source-kicker,
.section-number,
.tape-label {
  color: #ffffff;
}

.hero-shell,
.notice,
.thesis-card,
.source-plate,
.scripture-plate,
.metaphysics-note,
.hidden-witnesses,
.chapel-card,
.mary-card,
.activity-card,
.essay-section,
.closing-blade,
.quote-grid blockquote,
.credits {
  border: 3px solid rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(128deg, rgba(255, 52, 52, 0.2) 0 5%, transparent 5% 100%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(5, 8, 18, 0.96)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  background-blend-mode: normal, normal, soft-light;
  color: #f5fbff;
  box-shadow: 12px 12px 0 rgba(255, 52, 52, 0.85), 0 0 46px rgba(140, 236, 255, 0.22);
}

.hero-shell {
  background:
    linear-gradient(116deg, transparent 0 68%, rgba(255, 52, 52, 0.78) 68% 70%, transparent 70%),
    linear-gradient(180deg, rgba(9, 16, 30, 0.92), rgba(4, 7, 16, 0.96)),
    url("assets/christ-pantocrator-sinai.jpg") 88% center / 36% auto no-repeat;
  background-blend-mode: normal, normal, luminosity;
}

h1,
h2,
h3,
.subtitle {
  color: #ffffff;
}

h1,
h2 {
  text-shadow: 0 0 22px rgba(140, 236, 255, 0.24);
}

h1::first-letter,
h2::first-letter {
  color: var(--red);
}

.hero-copy,
.notice p,
.source-plate p,
.scripture-plate p,
.metaphysics-note p,
.chapel-card p,
.activity-card p,
.prose p,
.credits li,
.essay-section p,
.closing-blade p,
.hidden-witnesses p {
  color: #e9f6ff;
}

.source-plate blockquote,
.scripture-plate blockquote,
blockquote {
  color: #ffffff;
}

.case-stamp {
  border-color: #ffffff;
  background: #ffffff;
  color: #08101d;
  box-shadow: 6px 6px 0 var(--red);
}

.hidden-witnesses {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  align-items: stretch;
  overflow: hidden;
  clip-path: polygon(0 0, 96% 0, 100% 12%, 100% 100%, 4% 100%, 0 88%);
}

.witness-links {
  align-content: center;
  gap: 18px;
}

.witness-links a {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 3px solid #ffffff;
  background:
    linear-gradient(112deg, transparent 0 72%, rgba(255, 52, 52, 0.98) 72% 76%, transparent 76%),
    linear-gradient(180deg, #ffffff, #dff8ff);
  color: #08101d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 7px 7px 0 rgba(255, 52, 52, 0.9), 0 0 28px rgba(140, 236, 255, 0.3);
  clip-path: polygon(0 0, 94% 0, 100% 18%, 100% 100%, 6% 100%, 0 82%);
}

.witness-links a::before {
  display: block;
  color: var(--red);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.witness-links a:first-child::before {
  content: "WITNESS / 01";
}

.witness-links a:nth-child(2)::before {
  content: "WITNESS / 02";
}

.witness-links a::after {
  color: var(--red);
  content: "OPEN";
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.witness-links a:hover,
.witness-links a:focus-visible {
  transform: translate(-3px, -3px);
  background:
    linear-gradient(112deg, transparent 0 72%, rgba(255, 52, 52, 0.98) 72% 76%, transparent 76%),
    linear-gradient(180deg, #08101d, #111d32);
  color: #ffffff;
  outline: 3px solid rgba(140, 236, 255, 0.72);
  box-shadow: 11px 11px 0 var(--red), 0 0 38px rgba(140, 236, 255, 0.7);
}

.door,
.door:nth-child(n),
.quote-grid blockquote {
  background:
    linear-gradient(135deg, rgba(255, 52, 52, 0.18) 0 8%, transparent 8%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(5, 8, 18, 0.98));
  color: #ffffff;
}

.door {
  border-color: #ffffff;
}

.door span,
.door::after {
  color: var(--red);
}

.secret-file,
.sealed-gate,
.unlock-route {
  background:
    linear-gradient(118deg, transparent 0 74%, rgba(255, 52, 52, 0.58) 74% 78%, transparent 78%),
    linear-gradient(180deg, #08040a, #010104);
  color: #ffffff;
}

.secret-file p,
.sealed-gate p,
.secret-file summary {
  color: #ffffff;
}

.essay-section:nth-child(even) .scripture-plate p,
.essay-section:nth-child(even) .metaphysics-note p,
.essay-section:nth-child(even) .source-plate p,
.essay-section:nth-child(even) .secret-file p {
  color: #ffffff;
}

input,
textarea {
  background: #08101d;
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 920px) {
  .hidden-witnesses {
    grid-template-columns: 1fr;
    clip-path: none;
  }
}

@media (max-width: 620px) {
  .witness-links a {
    min-height: 64px;
    padding: 14px 16px;
    font-size: 0.82rem;
  }
}

/* Multi-religion anthology pass */

body.atlas-page {
  color-scheme: dark;
  background:
    linear-gradient(90deg, rgba(6, 11, 20, 0.94), rgba(12, 9, 18, 0.84) 44%, rgba(19, 8, 9, 0.9)),
    #05070b;
  color: #f4efe6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.atlas-page::before {
  background:
    linear-gradient(90deg, rgba(82, 148, 186, 0.12), transparent 18%, transparent 82%, rgba(197, 68, 59, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(246, 239, 223, 0.05) 84px 86px, transparent 86px 168px),
    repeating-linear-gradient(0deg, rgba(246, 239, 223, 0.024) 0 1px, transparent 1px 12px);
  opacity: 0.92;
}

body.atlas-page::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68)),
    radial-gradient(ellipse at 50% 0%, transparent 0 26rem, rgba(0, 0, 0, 0.42) 58rem);
  opacity: 0.86;
}

.atlas-nav,
.christian-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 46px);
}

.atlas-nav {
  border-bottom: 1px solid rgba(244, 239, 230, 0.22);
  background: rgba(5, 7, 11, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.atlas-brand,
.atlas-nav-links,
.atlas-actions,
.christian-actions {
  display: flex;
  align-items: center;
}

.atlas-brand {
  gap: 10px;
  color: #f4efe6;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.atlas-brand-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e0bd62;
  box-shadow:
    9px 0 0 -3px #4d93b5,
    -9px 0 0 -3px #b7443c;
  transform: rotate(45deg);
}

.atlas-nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.atlas-nav-links a,
.atlas-button,
.built-route {
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 4px;
  color: #f4efe6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.atlas-nav-links a {
  padding: 8px 10px;
  background: rgba(244, 239, 230, 0.055);
}

.atlas-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 76px) clamp(18px, 4vw, 48px) 80px;
}

.atlas-hero {
  display: grid;
  min-height: calc(100svh - 110px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.atlas-hero-copy {
  max-width: 760px;
}

.atlas-label,
.christian-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atlas-label {
  color: #e0bd62;
}

.atlas-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  overflow-wrap: normal;
  word-break: normal;
}

.atlas-subtitle {
  max-width: 690px;
  margin: 28px 0 18px;
  color: #d9d1c3;
  font-size: clamp(1.18rem, 2.2vw, 1.62rem);
  line-height: 1.38;
}

.atlas-page p {
  color: #c6bdad;
}

.atlas-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.atlas-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 12px 16px;
}

.atlas-button.primary {
  border-color: rgba(224, 189, 98, 0.78);
  background: #e0bd62;
  color: #101017;
}

.atlas-button.secondary {
  background: rgba(77, 147, 181, 0.14);
}

.atlas-battle-art {
  min-height: 560px;
  margin: 0;
  border: 4px ridge #d6b04a;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 4px, transparent 4px 10px),
    #05070b;
  box-shadow:
    0 0 0 6px #120509,
    0 0 0 9px #e64c37,
    18px 18px 0 rgba(0, 0, 0, 0.76),
    0 0 90px rgba(230, 76, 55, 0.32);
  clip-path: polygon(0 0, 96% 0, 100% 7%, 100% 100%, 4% 100%, 0 92%);
  overflow: hidden;
  position: relative;
}

.atlas-battle-art::before,
.atlas-battle-art::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.atlas-battle-art::before {
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 45%, transparent 0 28%, rgba(0, 0, 0, 0.42) 74%);
  mix-blend-mode: screen;
  opacity: 0.36;
}

.atlas-battle-art::after {
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  inset: 12px;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.72);
}

.atlas-battle-art img {
  width: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  filter: contrast(1.18) saturate(1.18) brightness(0.84);
}

.atlas-battle-art figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 9px 12px;
  border: 2px solid #ffe18b;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(107, 13, 24, 0.9)),
    #05070b;
  color: #ffe18b;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000;
}

.atlas-section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.atlas-section-heading h2,
.sealed-panel h2,
.atlas-source-notes h2 {
  margin: 0 0 12px;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.built-sites,
.religion-catalog,
.sealed-panel,
.atlas-source-notes {
  padding: clamp(46px, 8vw, 84px) 0;
}

.built-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.built-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 8px;
  color: #fffaf0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.built-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.built-card.gnostic-card::before {
  background:
    linear-gradient(145deg, rgba(7, 5, 4, 0.4), rgba(68, 8, 12, 0.72)),
    url("assets/parchment-vellum.jpg") center / cover;
  filter: contrast(1.15) saturate(0.78) brightness(0.5);
}

.built-card.christian-card::before {
  background:
    linear-gradient(145deg, rgba(10, 22, 40, 0.3), rgba(235, 220, 172, 0.36)),
    url("assets/rome-basilica-interior.jpg") center / cover;
  filter: contrast(1.08) saturate(0.84) brightness(0.58);
}

.built-card h3 {
  max-width: 560px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}

.built-card p {
  max-width: 620px;
  margin: 0;
  color: #f4ead8;
  font-size: 1.04rem;
}

.built-status {
  color: #e0bd62;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.built-route {
  align-self: flex-start;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.36);
}

.religion-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.religion-door {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(3, 5, 9, 0.72);
  color: #f4efe6;
  text-decoration: none;
}

.religion-door:hover,
.religion-door:focus-visible {
  border-color: rgba(224, 189, 98, 0.78);
  transform: translateY(-2px);
}

.religion-door[data-status="sealed"] {
  border-color: rgba(183, 68, 60, 0.46);
  background:
    linear-gradient(135deg, rgba(183, 68, 60, 0.28) 0 12%, transparent 12%),
    repeating-linear-gradient(135deg, rgba(244, 239, 230, 0.045) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, rgba(37, 25, 31, 0.96), rgba(9, 11, 18, 0.94));
  opacity: 1;
  position: relative;
}

.religion-door[data-status="sealed"]::after {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(244, 239, 230, 0.26);
  background: rgba(183, 68, 60, 0.92);
  color: #fffaf0;
  content: "SEALED";
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.religion-door[data-status="sealed"] .door-swatch {
  opacity: 0.56;
  filter: grayscale(0.65);
}

.religion-door[data-status="sealed"] strong {
  color: #ded2c4;
}

.religion-door[data-status="sealed"] em {
  color: #f0a59e;
  font-weight: 800;
}

.door-number {
  color: #e0bd62;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.door-swatch {
  width: 100%;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e0bd62, #4d93b5);
}

.religion-door strong {
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.religion-door em {
  color: #bfb6a7;
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.35;
}

.religion-door.catholic .door-swatch { background: linear-gradient(90deg, #e7d28a, #9b1f2f); }
.religion-door.orthodox .door-swatch { background: linear-gradient(90deg, #d9a73f, #1d5c8a); }
.religion-door.protestant .door-swatch { background: linear-gradient(90deg, #f4efe6, #34495e); }
.religion-door.islam .door-swatch { background: linear-gradient(90deg, #0f6b4b, #d8c47b); }
.religion-door.judaism .door-swatch { background: linear-gradient(90deg, #1c5da8, #f4efe6); }
.religion-door.buddhism .door-swatch { background: linear-gradient(90deg, #f0a13a, #7b1e28); }
.religion-door.hindu .door-swatch { background: linear-gradient(90deg, #ef7d2d, #2a8f7a); }
.religion-door.mormon .door-swatch { background: linear-gradient(90deg, #235b91, #f0d890); }
.religion-door.jw .door-swatch { background: linear-gradient(90deg, #5d7282, #e8e1cf); }
.religion-door.scientology .door-swatch { background: linear-gradient(90deg, #111, #d23a2e); }
.religion-door.hermetic .door-swatch { background: linear-gradient(90deg, #1d1a1a, #c49a3a); }
.religion-door.kabbalah .door-swatch { background: linear-gradient(90deg, #5e2a7e, #d7b55a); }
.religion-door.theosophy .door-swatch { background: linear-gradient(90deg, #36508f, #b6659d); }
.religion-door.manichaeism .door-swatch { background: linear-gradient(90deg, #f7eeb7, #050505); }
.religion-door.zoroastrian .door-swatch { background: linear-gradient(90deg, #e85d2a, #f5d66d); }
.religion-door.mandaean .door-swatch { background: linear-gradient(90deg, #9ed3ea, #f3f0d8); }
.religion-door.pagan .door-swatch { background: linear-gradient(90deg, #2f7d4f, #a95f9e); }
.religion-door.satanism .door-swatch { background: linear-gradient(90deg, #050505, #b11324); }
.religion-door.newage .door-swatch { background: linear-gradient(90deg, #47a3a2, #d6b6ef); }
.religion-door.sikh .door-swatch { background: linear-gradient(90deg, #f28d2f, #1b4f8f); }
.religion-door.bahai .door-swatch { background: linear-gradient(90deg, #e2d59b, #5ca0c7); }
.religion-door.egyptian .door-swatch { background: linear-gradient(90deg, #c99a3e, #15606c); }
.religion-door.norse .door-swatch { background: linear-gradient(90deg, #5f7f89, #a8453c); }

.sealed-panel,
.atlas-source-notes {
  max-width: 920px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}

.atlas-source-notes ul {
  padding-left: 20px;
  color: #c6bdad;
}

.atlas-source-notes code {
  color: #e0bd62;
}

.atlas-return-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(240, 217, 141, 0.36);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

body.gnostic-page {
  background:
    linear-gradient(90deg, rgba(57, 5, 9, 0.44), transparent 13%, transparent 87%, rgba(57, 5, 9, 0.44)),
    radial-gradient(ellipse at 50% -12%, rgba(240, 217, 141, 0.24), transparent 30rem),
    #050403;
}

body.gnostic-page .hero-shell,
body.gnostic-page .notice,
body.gnostic-page .essay-section,
body.gnostic-page .source-plate,
body.gnostic-page .secret-page-shell {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 22px 80px rgba(0, 0, 0, 0.42);
}

.gnostic-knife {
  max-width: 620px;
  padding-left: 16px;
  border-left: 3px double var(--red);
  color: var(--gold-bright);
}

.gnostic-source-apparatus {
  max-width: var(--max);
  margin: clamp(42px, 8vw, 88px) auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(200, 167, 95, 0.34);
  background:
    linear-gradient(135deg, rgba(116, 25, 29, 0.26), rgba(8, 7, 5, 0.82)),
    rgba(13, 10, 7, 0.88);
  position: relative;
}

.gnostic-source-apparatus::before {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px dashed rgba(240, 217, 141, 0.24);
  content: "";
}

body.christian-page {
  color-scheme: light;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(13, 38, 70, 0.1) 0 12vw, transparent 12vw calc(88vw), rgba(116, 18, 31, 0.1) 88vw),
    linear-gradient(180deg, #f7f2e7 0%, #eee4d2 48%, #f7f2e7 100%);
  color: #172033;
  font-family: "Times New Roman", Georgia, serif;
  line-height: 1.64;
}

body.christian-page::before {
  background:
    linear-gradient(90deg, rgba(9, 42, 83, 0.08), transparent 24%, transparent 76%, rgba(116, 18, 31, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 116px, rgba(23, 32, 51, 0.04) 116px 118px, transparent 118px 232px),
    repeating-linear-gradient(0deg, rgba(23, 32, 51, 0.028) 0 1px, transparent 1px 14px);
  opacity: 1;
}

body.christian-page::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(222, 207, 176, 0.18)),
    radial-gradient(ellipse at 50% 0%, transparent 0 26rem, rgba(90, 70, 45, 0.16) 58rem);
  opacity: 1;
}

.christian-nav {
  border-bottom: 2px solid rgba(102, 30, 41, 0.42);
  background: rgba(247, 242, 231, 0.95);
  box-shadow: 0 16px 38px rgba(64, 45, 20, 0.16);
}

.christian-brand {
  flex: 0 0 auto;
  color: #681e2c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.christian-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.christian-nav nav a {
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 4px;
  color: #172033;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.christian-page main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 68px) clamp(18px, 4vw, 46px) 82px;
}

.christian-hero {
  min-height: calc(100svh - 118px);
  display: grid;
  align-items: center;
  gap: clamp(26px, 5vw, 60px);
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
}

.court-seal {
  width: min(28vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 8px double #b28c3f;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(229, 211, 172, 0.46)),
    #f6eddc;
  color: #681e2c;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 20px 60px rgba(64, 45, 20, 0.18);
}

.christian-label {
  color: #681e2c;
}

.christian-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #13213c;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
}

.christian-subtitle {
  max-width: 780px;
  margin: 28px 0;
  color: #33405b;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.42;
}

.christian-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.christian-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid rgba(23, 32, 51, 0.24);
  border-radius: 4px;
  color: #172033;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.christian-button.primary {
  border-color: #681e2c;
  background: #681e2c;
  color: #fffaf0;
}

.christian-button.secondary {
  background: rgba(178, 140, 63, 0.16);
}

.court-grid,
.christian-section,
.witness-panels,
.christian-sources {
  margin: clamp(38px, 7vw, 82px) 0;
}

.court-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
}

.court-major,
.court-aside,
.christian-section,
.witness-panels,
.christian-sources {
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(246, 237, 220, 0.86);
  box-shadow: 0 18px 44px rgba(64, 45, 20, 0.12);
}

.court-major,
.court-aside,
.christian-section,
.witness-panels,
.christian-sources {
  padding: clamp(22px, 4vw, 42px);
}

.christian-page h2 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #13213c;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.christian-page h3 {
  margin: 0 0 10px;
  color: #681e2c;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.christian-page p,
.christian-page li {
  color: #33405b;
}

.christian-page blockquote {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 4px double #b28c3f;
  background: rgba(255, 255, 255, 0.46);
  color: #172033;
  font-size: clamp(1.2rem, 2.4vw, 1.72rem);
  line-height: 1.28;
}

.argument-columns,
.witness-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.witness-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.argument-columns article,
.witness-grid article,
.christian-sources .source-plate {
  padding: 18px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.44);
}

.court-verdict {
  padding: 18px;
  border: 2px solid rgba(104, 30, 44, 0.34);
  background: rgba(104, 30, 44, 0.08);
  color: #172033;
  font-weight: 700;
}

.christian-unlock input {
  border-color: rgba(23, 32, 51, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #172033;
}

.christian-unlock .unlock-message {
  color: #681e2c;
}

.christian-sources .source-grid {
  margin-top: 20px;
}

.christian-sources .source-kicker {
  color: #681e2c;
}

@media (max-width: 980px) {
  .atlas-hero,
  .built-grid,
  .court-grid,
  .christian-hero {
    grid-template-columns: 1fr;
  }

  .religion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-battle-art,
  .atlas-battle-art img {
    min-height: 420px;
  }

  .court-seal {
    width: 180px;
  }

  .witness-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .atlas-nav,
  .christian-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-hero,
  .christian-hero {
    min-height: auto;
  }

  .religion-grid,
  .argument-columns {
    grid-template-columns: 1fr;
  }

  .atlas-battle-art,
  .atlas-battle-art img {
    min-height: 330px;
  }

  .built-card {
    min-height: 310px;
  }
}

body.gnostic-page .essay-section,
body.gnostic-page .essay-section:nth-child(n),
body.gnostic-page .closing-blade {
  background:
    linear-gradient(118deg, transparent 0 83%, rgba(255, 47, 47, 0.7) 83% 85%, transparent 85%),
    radial-gradient(circle at 18% 18%, rgba(127, 215, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(5, 8, 18, 0.98));
  background-blend-mode: normal;
}

body.gnostic-page #yaldabaoth {
  background:
    linear-gradient(118deg, transparent 0 83%, rgba(255, 47, 47, 0.72) 83% 85%, transparent 85%),
    radial-gradient(circle at 72% 18%, rgba(255, 47, 47, 0.16), transparent 18rem),
    radial-gradient(circle at 28% 72%, rgba(127, 215, 255, 0.18), transparent 20rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, #07111f, #02040a);
}

body.gnostic-page #world-wearing-christ {
  background:
    linear-gradient(118deg, transparent 0 80%, rgba(255, 47, 47, 0.76) 80% 82%, transparent 82%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.075)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 12px, transparent 12px 28px),
    linear-gradient(180deg, #101723, #020305);
}

/* 90s apocalyptic web-art pass */

body.atlas-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 216, 99, 0.16), transparent 20rem),
    radial-gradient(circle at 82% 12%, rgba(255, 47, 47, 0.18), transparent 22rem),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, #03030a, #17050a 44%, #02040b);
  font-family: "Times New Roman", Georgia, serif;
}

body.atlas-page::before {
  background:
    url("assets/parchment-vellum.jpg") center / 360px auto repeat,
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 225, 139, 0.08) 78px 80px, transparent 80px 156px);
  mix-blend-mode: overlay;
  opacity: 0.18;
}

body.atlas-page::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 10%, transparent 0 22rem, rgba(0, 0, 0, 0.54) 54rem);
  opacity: 0.72;
}

.atlas-nav {
  border-bottom: 3px ridge #ffe18b;
  background:
    linear-gradient(90deg, #03030a, #17050a 50%, #03030a),
    #03030a;
  box-shadow: 0 8px 0 #000, 0 0 48px rgba(255, 47, 47, 0.24);
}

.atlas-brand,
.atlas-nav-links a,
.atlas-button,
.built-route {
  font-family: "Courier New", monospace;
}

.atlas-nav-links a {
  border: 2px outset #4a5166;
  background: #0b0b16;
  color: #ffe18b;
  text-shadow: 1px 1px 0 #000;
}

.atlas-main {
  max-width: 1360px;
}

.atlas-hero {
  gap: clamp(22px, 4vw, 52px);
  grid-template-columns: minmax(320px, 0.74fr) minmax(420px, 1fr);
}

.atlas-hero-copy {
  padding: clamp(18px, 3vw, 30px);
  border: 3px double rgba(255, 225, 139, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 47, 47, 0.16) 0 10%, transparent 10%),
    rgba(4, 4, 12, 0.72);
  box-shadow: 10px 10px 0 #000, inset 0 0 50px rgba(255, 47, 47, 0.16);
  clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
}

.atlas-hero h1 {
  color: #fff7df;
  text-shadow:
    3px 3px 0 #000,
    0 0 18px rgba(255, 225, 139, 0.3),
    0 0 42px rgba(255, 47, 47, 0.2);
}

.atlas-label {
  color: #ffe18b;
  font-family: "Courier New", monospace;
  text-shadow: 2px 2px 0 #000;
}

.atlas-subtitle,
.atlas-page p {
  color: #f1e6d1;
}

.atlas-button.primary {
  border: 3px outset #ffe18b;
  background: #ffe18b;
  color: #130308;
  box-shadow: 5px 5px 0 #000;
}

.atlas-button.secondary {
  border: 3px outset #9ed3ea;
  background: #0d1728;
  color: #d9f4ff;
  box-shadow: 5px 5px 0 #000;
}

.atlas-section-heading,
.sealed-panel,
.atlas-source-notes {
  padding: clamp(18px, 3vw, 30px);
  border: 3px double rgba(255, 225, 139, 0.56);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 7px, transparent 7px 15px),
    rgba(4, 4, 12, 0.7);
  box-shadow: 8px 8px 0 #000;
}

.religion-catalog {
  padding-inline: clamp(10px, 2vw, 22px);
  border: 4px ridge #6b0d18;
  background:
    linear-gradient(180deg, rgba(107, 13, 24, 0.28), rgba(3, 3, 10, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 225, 139, 0.05) 0 1px, transparent 1px 22px);
  box-shadow: 14px 14px 0 #000, inset 0 0 70px rgba(255, 47, 47, 0.2);
}

.religion-door {
  border: 3px outset #26314b;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 225, 139, 0.13) 0 9%, transparent 9%),
    linear-gradient(180deg, rgba(11, 18, 33, 0.94), rgba(3, 5, 13, 0.94));
  box-shadow: 6px 6px 0 #000;
  clip-path: polygon(0 0, 94% 0, 100% 12%, 100% 100%, 6% 100%, 0 88%);
}

.religion-door[data-status="sealed"] {
  border: 3px outset #8d1d28;
  background:
    linear-gradient(135deg, rgba(255, 47, 47, 0.45) 0 16%, transparent 16%),
    repeating-linear-gradient(45deg, rgba(255, 225, 139, 0.08) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #271018, #06060d);
  box-shadow: 7px 7px 0 #000, inset 0 0 30px rgba(255, 47, 47, 0.22);
}

.religion-door[data-status="sealed"]::before {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: rgba(255, 225, 139, 0.48);
  content: "NOT BUILT";
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
}

.religion-door strong {
  text-shadow: 2px 2px 0 #000;
}

body.gnostic-page {
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 47, 47, 0.22), transparent 18rem),
    radial-gradient(circle at 82% 20%, rgba(127, 215, 255, 0.12), transparent 22rem),
    url("assets/parchment-vellum.jpg") center / 340px auto repeat,
    #020104;
  background-blend-mode: screen, screen, multiply, normal;
}

body.gnostic-page .site-nav {
  border-bottom: 5px solid #ff2f2f;
  background: #05050d;
  box-shadow: 0 8px 0 #000, 0 0 42px rgba(255, 47, 47, 0.38);
}

body.gnostic-page .brand,
body.gnostic-page .atlas-return-link,
body.gnostic-page .nav-scroll a {
  border-radius: 0;
  font-family: "Courier New", monospace;
  box-shadow: 4px 4px 0 #000;
}

body.gnostic-page .hero-shell,
body.gnostic-page .notice,
body.gnostic-page .source-plate,
body.gnostic-page .scripture-plate,
body.gnostic-page .metaphysics-note,
body.gnostic-page .hidden-witnesses,
body.gnostic-page .chapel-card,
body.gnostic-page .activity-card,
body.gnostic-page .essay-section,
body.gnostic-page .closing-blade,
body.gnostic-page .credits {
  border: 4px ridge #ff2f2f;
  border-radius: 0;
  box-shadow: 12px 12px 0 #000, inset 0 0 40px rgba(127, 215, 255, 0.1);
}

body.gnostic-page .hero-shell {
  background:
    linear-gradient(118deg, transparent 0 72%, rgba(255, 47, 47, 0.72) 72% 75%, transparent 75%),
    linear-gradient(180deg, rgba(5, 6, 16, 0.94), rgba(2, 1, 4, 0.96)),
    url("assets/atlas-angel-battle.jpg") 80% center / cover no-repeat;
  background-blend-mode: normal, normal, luminosity;
}

body.gnostic-page .essay-section h2,
body.gnostic-page .closing-blade h2 {
  text-shadow: 3px 3px 0 #000, 0 0 28px rgba(127, 215, 255, 0.22);
}

body.christian-page {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 225, 139, 0.18), transparent 22rem),
    repeating-linear-gradient(90deg, rgba(104, 30, 44, 0.1) 0 2px, transparent 2px 30px),
    url("assets/rome-basilica-interior.jpg") center / cover fixed,
    #12070a;
  background-blend-mode: screen, normal, multiply, normal;
  color: #fff1cf;
}

body.christian-page::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 18%, transparent 0 18rem, rgba(0, 0, 0, 0.64) 58rem);
}

.christian-nav {
  border-bottom: 5px ridge #ffe18b;
  background:
    linear-gradient(90deg, #21080d, #05050d 50%, #21080d),
    #05050d;
  box-shadow: 0 8px 0 #000;
}

.christian-brand,
.christian-nav nav a {
  color: #ffe18b;
  font-family: "Courier New", monospace;
  text-shadow: 2px 2px 0 #000;
}

.christian-nav nav a {
  border: 2px outset #ffe18b;
  background: #18070c;
}

.christian-hero,
.court-grid,
.christian-section,
.witness-panels,
.christian-sources {
  border: 4px ridge #ffe18b;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 225, 139, 0.12) 0 8%, transparent 8%),
    linear-gradient(180deg, rgba(22, 8, 13, 0.94), rgba(4, 4, 12, 0.96));
  box-shadow: 12px 12px 0 #000, inset 0 0 48px rgba(255, 225, 139, 0.12);
}

.christian-hero {
  min-height: calc(100svh - 118px);
  padding: clamp(18px, 4vw, 38px);
}

.court-seal {
  border-radius: 0;
  border: 6px double #ffe18b;
  background:
    linear-gradient(180deg, rgba(255, 225, 139, 0.28), rgba(104, 30, 44, 0.32)),
    #10050a;
  color: #ffe18b;
  box-shadow: 10px 10px 0 #000, 0 0 40px rgba(255, 225, 139, 0.18);
  clip-path: polygon(0 0, 90% 0, 100% 14%, 100% 100%, 10% 100%, 0 86%);
}

.christian-page h1,
.christian-page h2,
.christian-page h3,
.christian-page p,
.christian-page li {
  color: #fff1cf;
}

.christian-page h1,
.christian-page h2 {
  text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 225, 139, 0.18);
}

.christian-page blockquote,
.argument-columns article,
.witness-grid article,
.christian-sources .source-plate {
  border: 3px double #ffe18b;
  border-radius: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 7px, transparent 7px 15px),
    rgba(4, 4, 12, 0.72);
  box-shadow: 7px 7px 0 #000;
}

.christian-button.primary,
.christian-button.secondary {
  border: 3px outset #ffe18b;
  border-radius: 0;
  box-shadow: 5px 5px 0 #000;
  font-family: "Courier New", monospace;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.built-card.flow-one::before {
  background:
    linear-gradient(145deg, rgba(5, 7, 14, 0.26), rgba(149, 42, 31, 0.56)),
    url("assets/parchment-vellum.jpg") center / cover;
  filter: contrast(1.08) saturate(0.86) brightness(0.52);
}

.built-card.sealed-flow::before {
  background:
    linear-gradient(145deg, rgba(6, 6, 13, 0.72), rgba(99, 20, 31, 0.52)),
    repeating-linear-gradient(45deg, rgba(255, 225, 139, 0.12) 0 8px, transparent 8px 16px);
}

.built-card.sealed-flow {
  border-color: rgba(255, 71, 71, 0.38);
}

.built-card.sealed-flow::after {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 10px;
  border: 2px solid rgba(255, 225, 139, 0.5);
  color: #ffe18b;
  content: "SEALED";
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

@media (max-width: 980px) {
  .atlas-hero {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .atlas-battle-art,
  .atlas-battle-art img {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .atlas-hero-copy {
    clip-path: none;
  }

  .atlas-battle-art,
  .atlas-battle-art img {
    min-height: 300px;
  }
}

/* Readability pass: keep the occult styling, raise actual reading contrast. */

body.gnostic-page .hero-shell {
  min-height: min(760px, calc(100svh - 118px));
  padding-block: clamp(42px, 6vw, 78px);
  background:
    linear-gradient(118deg, transparent 0 72%, rgba(255, 47, 47, 0.64) 72% 75%, transparent 75%),
    linear-gradient(180deg, rgba(5, 6, 16, 0.98), rgba(2, 1, 4, 0.98)),
    url("assets/atlas-angel-battle.jpg") 80% center / cover no-repeat;
  background-blend-mode: normal, normal, luminosity;
}

body.gnostic-page .threshold {
  min-height: auto;
  padding-block: clamp(34px, 5vw, 58px) clamp(52px, 7vw, 78px);
}

body.gnostic-page .hero-shell h1 {
  font-size: clamp(3.6rem, 7.2vw, 6.9rem);
  line-height: 0.92;
  overflow-wrap: normal;
  word-break: normal;
}

body.gnostic-page .subtitle {
  color: #fff6e2;
  text-shadow: 2px 2px 0 #000;
}

body.gnostic-page .hero-copy,
body.gnostic-page .notice p,
body.gnostic-page .source-plate p,
body.gnostic-page .scripture-plate p,
body.gnostic-page .metaphysics-note p,
body.gnostic-page .chapel-card p,
body.gnostic-page .activity-card p,
body.gnostic-page .essay-section p,
body.gnostic-page .closing-blade p,
body.gnostic-page .credits li {
  color: #edf7ff;
}

body.gnostic-page .nav-scroll a {
  color: #07101d;
}

body.christian-page .christian-subtitle {
  color: #fff6df;
  text-shadow: 2px 2px 0 #000;
}

body.christian-page .christian-button.secondary {
  border-color: #ffe18b;
  background: rgba(255, 225, 139, 0.15);
  color: #fff6df;
  text-shadow: 2px 2px 0 #000;
}

body.christian-page .christian-button.secondary:hover,
body.christian-page .christian-button.secondary:focus-visible {
  background: rgba(255, 225, 139, 0.24);
}

/* Christian page readability palette: parchment panels, dark ink text. */

body.christian-page {
  color-scheme: light;
  background:
    linear-gradient(90deg, rgba(19, 32, 55, 0.1) 0 8vw, transparent 8vw calc(92vw), rgba(104, 30, 44, 0.1) 92vw),
    radial-gradient(circle at 50% 0, rgba(255, 225, 139, 0.2), transparent 24rem),
    url("assets/rome-basilica-interior.jpg") center / cover fixed,
    #efe3cf;
  background-blend-mode: normal, screen, soft-light, normal;
  color: #162033;
}

body.christian-page::before {
  background:
    linear-gradient(180deg, rgba(247, 239, 224, 0.78), rgba(239, 227, 207, 0.86)),
    repeating-linear-gradient(0deg, rgba(22, 32, 51, 0.045) 0 1px, transparent 1px 12px);
  opacity: 1;
}

body.christian-page::after {
  background:
    radial-gradient(ellipse at 50% 0, transparent 0 30rem, rgba(91, 65, 36, 0.18) 60rem),
    linear-gradient(90deg, rgba(22, 32, 51, 0.14), transparent 18%, transparent 82%, rgba(104, 30, 44, 0.12));
  opacity: 1;
}

body.christian-page .christian-nav {
  border-bottom: 4px double #681e2c;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(239, 227, 207, 0.96)),
    #f6eddd;
  box-shadow: 0 10px 28px rgba(64, 45, 20, 0.16);
}

body.christian-page .christian-brand,
body.christian-page .christian-nav nav a {
  color: #681e2c;
  text-shadow: none;
}

body.christian-page .christian-nav nav a {
  border: 2px outset rgba(104, 30, 44, 0.5);
  background: rgba(255, 250, 239, 0.88);
}

body.christian-page .christian-nav nav a:hover,
body.christian-page .christian-nav nav a:focus-visible {
  background: #681e2c;
  color: #fffaf0;
}

body.christian-page .christian-hero,
body.christian-page .court-grid,
body.christian-page .christian-section,
body.christian-page .witness-panels,
body.christian-page .christian-sources {
  border: 4px double #8a6a29;
  background:
    linear-gradient(135deg, rgba(104, 30, 44, 0.08) 0 8%, transparent 8%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.96), rgba(238, 224, 198, 0.96)),
    #f4ead8;
  box-shadow: 10px 10px 0 rgba(34, 24, 18, 0.22), inset 0 0 42px rgba(178, 140, 63, 0.14);
}

body.christian-page .christian-hero {
  min-height: auto;
  padding: clamp(24px, 5vw, 52px);
}

body.christian-page .court-seal {
  border: 6px double #8a6a29;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.72), rgba(229, 211, 172, 0.72)),
    #f5ead4;
  color: #681e2c;
  box-shadow: 8px 8px 0 rgba(34, 24, 18, 0.18);
}

body.christian-page h1,
body.christian-page h2 {
  color: #14213a;
  text-shadow: 1px 1px 0 #fffaf0;
}

body.christian-page h3 {
  color: #681e2c;
}

body.christian-page p,
body.christian-page li,
body.christian-page .christian-subtitle {
  color: #26344c;
  text-shadow: none;
}

body.christian-page .christian-label,
body.christian-page .source-kicker,
body.christian-page .christian-sources .source-kicker {
  color: #681e2c;
  text-shadow: none;
}

body.christian-page .argument-columns article,
body.christian-page .witness-grid article,
body.christian-page .christian-sources .source-plate,
body.christian-page blockquote {
  border: 2px double rgba(104, 30, 44, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 239, 0.44)),
    rgba(255, 250, 239, 0.72);
  box-shadow: 5px 5px 0 rgba(64, 45, 20, 0.12);
}

body.christian-page blockquote {
  color: #162033;
  border-left: 5px double #8a6a29;
}

body.christian-page .court-verdict {
  border-color: rgba(104, 30, 44, 0.5);
  background: rgba(104, 30, 44, 0.1);
  color: #172033;
}

body.christian-page .christian-button.primary {
  border-color: #681e2c;
  background: #681e2c;
  color: #fffaf0;
  text-shadow: none;
}

body.christian-page .christian-button.secondary {
  border-color: #14213a;
  background: #14213a;
  color: #fffaf0;
  text-shadow: none;
}

body.christian-page .christian-button.primary:hover,
body.christian-page .christian-button.primary:focus-visible,
body.christian-page .christian-button.secondary:hover,
body.christian-page .christian-button.secondary:focus-visible {
  filter: brightness(1.12);
}

body.christian-page .christian-unlock input {
  border-color: rgba(22, 32, 51, 0.42);
  background: rgba(255, 255, 255, 0.82);
  color: #162033;
}

@media (max-width: 760px) {
  body.gnostic-page .hero-shell h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  body.gnostic-page .hero-shell {
    min-height: auto;
  }
}

/* Christian sacred-dossier redesign. Keep this layer last so it wins over earlier page experiments. */

body.christian-page {
  --christian-ink: #14213a;
  --christian-muted: #2f3d58;
  --christian-maroon: #681e2c;
  --christian-lapis: #12345f;
  --christian-gold: #9d792d;
  --christian-paper: #f6ecd9;
  --christian-paper-deep: #e7d2ad;
  color-scheme: light;
  background:
    linear-gradient(90deg, rgba(18, 52, 95, 0.14) 0 7vw, transparent 7vw calc(93vw), rgba(104, 30, 44, 0.12) 93vw),
    radial-gradient(circle at 16% 8%, rgba(157, 121, 45, 0.24), transparent 22rem),
    radial-gradient(circle at 78% 10%, rgba(104, 30, 44, 0.16), transparent 24rem),
    url("assets/parchment-vellum.jpg") center / 420px auto repeat,
    #efe1c9;
  background-blend-mode: normal, multiply, multiply, soft-light, normal;
  color: var(--christian-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.66;
}

body.christian-page::before {
  background:
    repeating-linear-gradient(0deg, rgba(20, 33, 58, 0.045) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(104, 30, 44, 0.055) 96px 98px, transparent 98px 192px),
    linear-gradient(180deg, rgba(255, 249, 237, 0.72), rgba(239, 225, 201, 0.82));
  opacity: 1;
}

body.christian-page::after {
  background:
    radial-gradient(ellipse at 50% 0, transparent 0 33rem, rgba(79, 55, 28, 0.17) 66rem),
    linear-gradient(90deg, rgba(18, 52, 95, 0.12), transparent 15%, transparent 85%, rgba(104, 30, 44, 0.12));
  opacity: 1;
}

body.christian-page .christian-nav {
  min-height: auto;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 32px);
  border-bottom: 4px double var(--christian-maroon);
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(239, 225, 201, 0.96)),
    var(--christian-paper);
  box-shadow: 0 7px 0 rgba(83, 52, 31, 0.3), 0 18px 40px rgba(64, 45, 20, 0.14);
}

body.christian-page .christian-brand,
body.christian-page .christian-nav nav a,
body.christian-page .christian-button,
body.christian-page .christian-label,
body.christian-page .source-kicker,
body.christian-page .scripture-ref,
body.christian-page .charge-head,
body.christian-page .christian-hero-collage figcaption,
body.christian-page .christian-ledger-preview {
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.christian-page .christian-brand,
body.christian-page .christian-nav nav a {
  color: var(--christian-maroon);
  text-shadow: none;
}

body.christian-page .christian-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.christian-page .christian-nav nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 2px outset rgba(104, 30, 44, 0.46);
  border-radius: 0;
  background: rgba(255, 250, 239, 0.9);
  font-size: 0.72rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(64, 45, 20, 0.18);
}

body.christian-page .christian-nav nav a:hover,
body.christian-page .christian-nav nav a:focus-visible {
  background: var(--christian-maroon);
  color: #fff8e8;
}

body.christian-page main {
  width: min(100% - 28px, 1280px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 50px) 0 88px;
}

body.christian-page .christian-hero {
  min-height: min(760px, calc(100svh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding: clamp(18px, 3vw, 34px);
  border: 4px ridge var(--christian-gold);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(104, 30, 44, 0.11) 0 10%, transparent 10%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.94), rgba(232, 211, 174, 0.93)),
    var(--christian-paper);
  box-shadow: 13px 13px 0 rgba(36, 24, 16, 0.35), inset 0 0 54px rgba(157, 121, 45, 0.18);
}

body.christian-page .christian-hero-copy {
  padding: clamp(12px, 2vw, 20px);
}

body.christian-page h1,
body.christian-page h2 {
  color: var(--christian-ink);
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 1px 1px 0 #fffaf0, 0 0 20px rgba(157, 121, 45, 0.12);
}

body.christian-page h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 5.7vw, 6.15rem);
  line-height: 0.9;
}

body.christian-page h2 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4.6vw, 4.7rem);
  line-height: 0.96;
}

body.christian-page h3 {
  margin: 0 0 10px;
  color: var(--christian-maroon);
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  letter-spacing: 0;
}

body.christian-page p,
body.christian-page li,
body.christian-page .christian-subtitle {
  color: var(--christian-muted);
  text-shadow: none;
}

body.christian-page .christian-subtitle {
  max-width: 740px;
  margin: 28px 0;
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  line-height: 1.42;
}

body.christian-page .christian-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

body.christian-page .christian-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 3px outset var(--christian-gold);
  border-radius: 0;
  background: #fff8e8;
  color: var(--christian-ink);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 5px 5px 0 rgba(64, 45, 20, 0.24);
}

body.christian-page .christian-button.primary {
  border-color: var(--christian-maroon);
  background: var(--christian-maroon);
  color: #fff8e8;
}

body.christian-page .christian-button.secondary {
  border-color: var(--christian-lapis);
  background: var(--christian-lapis);
  color: #fff8e8;
}

body.christian-page .christian-button:hover,
body.christian-page .christian-button:focus-visible {
  filter: brightness(1.08);
  transform: translate(1px, 1px);
}

body.christian-page .christian-hero-collage {
  min-height: clamp(410px, 43vw, 620px);
  margin: 0;
  position: relative;
  border: 4px ridge var(--christian-gold);
  border-radius: 0;
  background:
    repeating-linear-gradient(135deg, rgba(104, 30, 44, 0.08) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #2b0f18, #10182b);
  box-shadow: 12px 12px 0 rgba(36, 24, 16, 0.38), inset 0 0 48px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

body.christian-page .christian-hero-collage::before,
body.christian-page .christian-hero-collage::after {
  position: absolute;
  pointer-events: none;
  content: "";
  z-index: 3;
}

body.christian-page .christian-hero-collage::before {
  inset: 12px;
  border: 1px dashed rgba(255, 248, 232, 0.48);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.34);
}

body.christian-page .christian-hero-collage::after {
  width: 96px;
  height: 36px;
  left: 44px;
  top: 18px;
  background: rgba(255, 248, 232, 0.62);
  box-shadow: 290px 26px 0 rgba(255, 248, 232, 0.5), 180px 500px 0 rgba(255, 248, 232, 0.46);
  transform: rotate(-4deg);
}

body.christian-page .christian-hero-collage img {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 3px double #fff8e8;
  background: #1a0b12;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.44);
}

body.christian-page .collage-main {
  width: calc(100% - 86px);
  height: calc(100% - 104px);
  left: 44px;
  top: 26px;
}

body.christian-page .collage-thumb {
  z-index: 2;
  width: 38%;
  height: 30%;
}

body.christian-page .collage-thumb-one {
  left: 18px;
  bottom: 56px;
  transform: rotate(-5deg);
}

body.christian-page .collage-thumb-two {
  right: 18px;
  top: 48px;
  transform: rotate(4deg);
}

body.christian-page .christian-hero-collage figcaption {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 9px 11px;
  border: 2px solid #fff8e8;
  background: rgba(20, 33, 58, 0.92);
  color: #fff8e8;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.36);
}

body.christian-page .christian-ledger-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 clamp(38px, 7vw, 78px);
  padding: 10px 14px;
  border: 3px double rgba(104, 30, 44, 0.5);
  background: rgba(255, 248, 232, 0.84);
  color: var(--christian-maroon);
  font-size: 0.74rem;
  box-shadow: 7px 7px 0 rgba(64, 45, 20, 0.16);
}

body.christian-page .christian-ledger-preview a {
  color: var(--christian-lapis);
}

body.christian-page .court-grid,
body.christian-page .christian-section,
body.christian-page .witness-panels,
body.christian-page .christian-sources {
  margin: clamp(38px, 7vw, 82px) 0;
  border: 4px double var(--christian-gold);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(104, 30, 44, 0.08) 0 9%, transparent 9%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.95), rgba(236, 219, 187, 0.95)),
    var(--christian-paper);
  box-shadow: 10px 10px 0 rgba(64, 45, 20, 0.22), inset 0 0 42px rgba(157, 121, 45, 0.14);
}

body.christian-page .court-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
}

body.christian-page .court-major,
body.christian-page .court-aside,
body.christian-page .argument-columns article,
body.christian-page .witness-grid article,
body.christian-page .scripture-card,
body.christian-page .source-plate,
body.christian-page .reliquary-grid figure,
body.christian-page blockquote,
body.christian-page .christian-unlock {
  border: 2px double rgba(104, 30, 44, 0.38);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 232, 0.45)),
    rgba(255, 248, 232, 0.8);
  box-shadow: 5px 5px 0 rgba(64, 45, 20, 0.13);
}

body.christian-page .court-major,
body.christian-page .court-aside,
body.christian-page .christian-section,
body.christian-page .witness-panels,
body.christian-page .christian-sources {
  padding: clamp(20px, 4vw, 42px);
}

body.christian-page .christian-label,
body.christian-page .source-kicker,
body.christian-page .scripture-ref {
  display: block;
  margin: 0 0 12px;
  color: var(--christian-maroon);
  font-size: 0.74rem;
  line-height: 1.25;
  text-shadow: none;
}

body.christian-page blockquote {
  margin: 18px 0 0;
  padding: 17px 18px;
  border-left: 6px double var(--christian-gold);
  color: var(--christian-ink);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.34;
}

body.christian-page .scripture-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

body.christian-page .scripture-card {
  min-height: 250px;
  padding: 18px;
  position: relative;
}

body.christian-page .scripture-card::before {
  position: absolute;
  right: 12px;
  top: 8px;
  color: rgba(104, 30, 44, 0.18);
  content: "+";
  font-size: 2.5rem;
  line-height: 1;
}

body.christian-page .scripture-card blockquote {
  min-height: 104px;
  margin: 0 0 14px;
  padding: 13px 0 0 13px;
  border-width: 0 0 0 4px;
  background: transparent;
  box-shadow: none;
}

body.christian-page .charge-table {
  margin-top: 22px;
  border: 3px ridge var(--christian-gold);
  background: rgba(255, 248, 232, 0.82);
  box-shadow: 7px 7px 0 rgba(64, 45, 20, 0.16);
}

body.christian-page .charge-row {
  display: grid;
  grid-template-columns: 0.82fr 1.2fr 0.78fr;
  gap: 1px;
  border-bottom: 1px solid rgba(104, 30, 44, 0.22);
  background: rgba(104, 30, 44, 0.18);
}

body.christian-page .charge-row:last-child {
  border-bottom: 0;
}

body.christian-page .charge-row span {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 250, 239, 0.95);
  color: var(--christian-muted);
}

body.christian-page .charge-head span {
  background: var(--christian-maroon);
  color: #fff8e8;
  font-size: 0.76rem;
  line-height: 1.2;
}

body.christian-page .incarnation-docket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

body.christian-page .incarnation-copy {
  min-width: 0;
}

body.christian-page .christian-unlock {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 26px);
  border-color: rgba(18, 52, 95, 0.42);
  background:
    linear-gradient(135deg, rgba(18, 52, 95, 0.1), transparent 42%),
    rgba(255, 248, 232, 0.86);
}

body.christian-page .christian-unlock label {
  margin-bottom: 10px;
  color: var(--christian-maroon);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.christian-page .unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.christian-page .christian-unlock input {
  min-width: min(100%, 240px);
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px inset rgba(18, 52, 95, 0.48);
  background: rgba(255, 255, 255, 0.88);
  color: var(--christian-ink);
  font: 1rem "Courier New", monospace;
}

body.christian-page .unlock-message,
body.christian-page .unlock-route p {
  margin: 14px 0 0;
  color: var(--christian-maroon);
  font-weight: 700;
}

body.christian-page .unlock-route .christian-button {
  margin-top: 14px;
}

body.christian-page .witness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

body.christian-page .witness-grid article {
  padding: 18px;
}

body.christian-page .reliquary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

body.christian-page .reliquary-grid figure {
  margin: 0;
  padding: 12px;
  transform: rotate(-0.5deg);
}

body.christian-page .reliquary-grid figure:nth-child(even) {
  transform: rotate(0.7deg);
}

body.christian-page .reliquary-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  border: 3px double var(--christian-gold);
  object-fit: cover;
  background: #1b0a10;
}

body.christian-page .reliquary-grid figcaption {
  margin-top: 10px;
  color: var(--christian-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

body.christian-page .christian-sources .source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

body.christian-page .christian-sources .source-plate {
  padding: 18px;
}

@media (max-width: 1060px) {
  body.christian-page .christian-hero,
  body.christian-page .court-grid,
  body.christian-page .incarnation-docket {
    grid-template-columns: 1fr;
  }

  body.christian-page .scripture-card-grid,
  body.christian-page .witness-grid,
  body.christian-page .reliquary-grid,
  body.christian-page .christian-sources .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.christian-page .christian-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  body.christian-page .christian-nav nav {
    justify-content: flex-start;
  }

  body.christian-page main {
    width: min(100% - 18px, 1280px);
    padding-top: 18px;
  }

  body.christian-page .christian-hero {
    min-height: auto;
    padding: 16px;
  }

  body.christian-page h1 {
    font-size: clamp(2.55rem, 11.8vw, 3.72rem);
    line-height: 0.94;
  }

  body.christian-page .christian-hero-collage {
    min-height: auto;
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  body.christian-page .christian-hero-collage img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none;
  }

  body.christian-page .christian-hero-collage figcaption {
    position: static;
  }

  body.christian-page .scripture-card-grid,
  body.christian-page .witness-grid,
  body.christian-page .reliquary-grid,
  body.christian-page .christian-sources .source-grid {
    grid-template-columns: 1fr;
  }

  body.christian-page .charge-table {
    border-width: 2px;
  }

  body.christian-page .charge-row,
  body.christian-page .charge-head {
    grid-template-columns: 1fr;
  }

  body.christian-page .charge-head {
    display: none;
  }

  body.christian-page .charge-row span {
    padding: 11px 12px;
  }
}
