/* ==========================================================================
   Bishop H. Curtis Douglas — Design System
   Palette drawn from the episcopal seal: ink, ivory, gold, crimson, emerald.
   ========================================================================== */
:root {
  --ink: #0d0c0b;
  --ink-2: #161412;
  --ink-3: #221f1b;
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --ivory: #fbf8f2;
  --gold: #c6a052;
  --gold-2: #e2c88b;
  --gold-deep: #8f6d2a;
  --crimson: #8e1622;
  --crimson-2: #b3202d;
  --emerald: #0f3b2c;
  --emerald-2: #16533e;
  --text: #24201b;
  --text-soft: #5d554a;
  --on-dark: #efe8da;
  --on-dark-soft: #a79f90;
  --line: rgba(36, 32, 27, .14);
  --line-dark: rgba(239, 232, 218, .14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.dark .eyebrow, .eyebrow.light { color: var(--gold); }

.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -.015em;
}
.h1 { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.h2 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -.005em; }
.h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.h4 { font: 700 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.italic, em.gold { font-style: italic; }
.gold { color: var(--gold); }
.crimson { color: var(--crimson); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--text-soft); }
.dark .lead { color: var(--on-dark-soft); }
.muted { color: var(--text-soft); }
.dark .muted { color: var(--on-dark-soft); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --f: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border: 1px solid var(--b); background: var(--b); color: var(--f);
  font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { --b: var(--gold); --f: var(--ink); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(13,12,11,.35); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.dark .btn-ghost, .btn-ghost.light, .page-hero .btn-ghost, .emerald .btn-ghost { color: var(--on-dark); border-color: rgba(239,232,218,.35); }
.dark .btn-ghost:hover, .btn-ghost.light:hover, .page-hero .btn-ghost:hover, .emerald .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-sm { padding: 12px 20px; font-size: 11px; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.dark .link-arrow, .page-hero .link-arrow, .ministry-card .link-arrow { color: var(--gold); }
.link-arrow:hover { gap: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-dark);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 28px;
  transition: padding .4s var(--ease);
}
.site-header.scrolled { background: rgba(13,12,11,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.primary-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 11px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(239,232,218,.82);
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-cta { flex-shrink: 0; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-dark); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--on-dark);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer .nav-link { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0; padding: 6px 0; color: var(--on-dark); }
.drawer .nav-link::after { display: none; }
.drawer .nav-link.is-active { color: var(--gold); }
.drawer-foot { margin-top: 32px; color: var(--on-dark-soft); font-size: 14px; }
.drawer-foot p { margin: 0 0 4px; }
.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 96px) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark-2 { background: var(--ink-2); color: var(--on-dark); }
.ivory { background: var(--ivory); }
.paper-2 { background: var(--paper-2); }
.emerald { background: var(--emerald); color: var(--on-dark); }
.crimson-bg { background: var(--crimson); color: #fbefe8; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 22px; }

.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: #241410; color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; top: 0; bottom: 0; right: -6%; width: 78%; z-index: -2; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #241410 0%, rgba(36,20,16,0) 28%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,11,9,.85) 0%, rgba(20,11,9,.55) 30%, rgba(20,11,9,0) 55%),
    linear-gradient(0deg, rgba(13,10,9,.95) 0%, rgba(13,10,9,0) 42%);
}
.hero-content { width: 100%; padding-top: 160px; padding-bottom: clamp(56px, 8vw, 110px); }
.hero-title { max-width: 820px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-roles { display: flex; flex-direction: column; gap: 8px; margin: 30px 0 42px; max-width: 640px; font-size: 15px; color: var(--on-dark-soft); }
.hero-roles span { display: inline-flex; align-items: center; gap: 10px; }
.hero-roles span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.fade-up { animation: fadeUp 1.1s var(--ease) both; animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line-dark); padding-top: 26px; max-width: 760px;
}
.hero-meta div { padding-right: 44px; margin-right: 44px; border-right: 1px solid var(--line-dark); }
.hero-meta div:last-child { border: 0; margin: 0; padding: 0; }
.hero-meta b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.hero-meta small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--on-dark-soft); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate;
  padding: clamp(150px, 18vw, 230px) 0 clamp(70px, 9vw, 120px);
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,12,11,.96) 25%, rgba(13,12,11,.45)), linear-gradient(0deg, rgba(13,12,11,.9), transparent 50%); }
.page-hero .lead { max-width: 640px; margin-top: 26px; color: var(--on-dark-soft); }
.crumbs { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--gold); }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-5-7 { grid-template-columns: 5fr 7fr; }
.split-7-5 { grid-template-columns: 7fr 5fr; }
.split.top { align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack > * + * { margin-top: 18px; }

/* ---------- Image frames ---------- */
.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.frame-tall { aspect-ratio: 4 / 5; }
.frame-portrait { aspect-ratio: 3 / 4; }
.frame-wide { aspect-ratio: 16 / 10; }
.frame.offset::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.frame-wrap { position: relative; z-index: 0; }
.frame-caption { position: absolute; left: -1px; bottom: 28px; background: var(--ink); color: var(--on-dark); padding: 18px 24px; max-width: 280px; }
.frame-caption b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--gold-2); }
.frame-caption span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ---------- Pillars / cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.dark .pillars { border-color: var(--line-dark); }
.pillar { padding: 46px 40px 50px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 40px; }
.pillar:last-child { border-right: 0; }
.dark .pillar { border-color: var(--line-dark); }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.pillar h3 { margin: 18px 0 14px; }
.pillar p { color: var(--text-soft); }
.dark .pillar p { color: var(--on-dark-soft); }

.card {
  position: relative; background: var(--ivory); border: 1px solid var(--line); padding: 40px 36px; border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(13,12,11,.35); border-color: rgba(198,160,82,.6); }
.dark .card, .card.dark-card { background: var(--ink-2); border-color: var(--line-dark); color: var(--on-dark); }
.card .icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 26px; }
.card .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--text-soft); margin-bottom: 0; }
.dark .card p { color: var(--on-dark-soft); }

.ministry-card {
  position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 44px 40px;
  color: var(--on-dark); text-decoration: none; overflow: hidden; isolation: isolate; border-radius: var(--radius);
}
.ministry-card .bg { position: absolute; inset: 0; z-index: -2; }
.ministry-card .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ministry-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,12,11,.96) 20%, rgba(13,12,11,.35)); transition: background .6s; }
.ministry-card.emerald-card::after { background: linear-gradient(0deg, rgba(10,40,30,.97) 25%, rgba(10,40,30,.55)); }
.ministry-card.crimson-card::after { background: linear-gradient(0deg, rgba(90,10,18,.97) 25%, rgba(90,10,18,.5)); }
.ministry-card:hover .bg img { transform: scale(1.06); }
.ministry-card .tag { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ministry-card h3 { margin: auto 0 16px; }
.ministry-card p { color: rgba(239,232,218,.78); margin-bottom: 26px; }

/* ---------- Quote ---------- */
.quote-block { text-align: center; max-width: 980px; margin: 0 auto; }
.quote-block blockquote { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.15; font-style: italic; font-weight: 400; }
.quote-block cite { display: block; margin-top: 34px; font-style: normal; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin-bottom: 36px; }
.ornament::before, .ornament::after { content: ""; width: 70px; height: 1px; background: currentColor; opacity: .6; }
.ornament svg { width: 22px; height: 22px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat { padding: 44px 28px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; color: var(--gold-2); }
.stat span { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); }
.stats.light { border-color: var(--line); }
.stats.light .stat { border-color: var(--line); }
.stats.light b { color: var(--crimson); }
.stats.light span { color: var(--text-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(198,160,82,.15)); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 48px; padding: 0 0 52px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 146px; top: 12px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 6px var(--paper); }
.dark .timeline li::before { box-shadow: 0 0 0 6px var(--ink); }
.timeline .year { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--crimson); text-align: right; padding-right: 26px; }
.dark .timeline .year { color: var(--gold-2); }
.timeline h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.timeline p { color: var(--text-soft); margin: 0; max-width: 620px; }
.dark .timeline p { color: var(--on-dark-soft); }

/* ---------- Prose ---------- */
.prose { font-size: 18px; }
.prose p { color: var(--text-soft); }
.prose p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 92px; line-height: .8; padding: 8px 14px 0 0; color: var(--crimson); }
.prose.no-drop p:first-of-type::first-letter { all: unset; }
.prose h3 { margin: 48px 0 16px; }
.dark .prose p { color: var(--on-dark-soft); }

.list-gold { list-style: none; padding: 0; margin: 0; }
.list-gold li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.dark .list-gold li { border-color: var(--line-dark); }
.list-gold li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0; background: var(--ink); color: var(--on-dark); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-style: italic; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 16px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Missions ---------- */
.nations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.nation { padding: 30px 28px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .4s; }
.nation:hover { background: rgba(198,160,82,.07); }
.nation small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.nation h3 { font-family: var(--serif); font-size: 30px; margin-top: 6px; }
.region-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 600; }
.dark .chip { border-color: var(--line-dark); color: var(--on-dark); }

/* ---------- Music ---------- */
.album { display: grid; grid-template-columns: 420px 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.album + .album { margin-top: clamp(80px, 10vw, 140px); }
.album-cover {
  aspect-ratio: 1; position: relative; border-radius: var(--radius); overflow: hidden; color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between; padding: 36px; isolation: isolate;
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.6);
}
.album-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.album-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.album-cover.c1::after { background: linear-gradient(160deg, rgba(15,59,44,.55), rgba(8,22,16,.95)); }
.album-cover.c2::after { background: linear-gradient(160deg, rgba(142,22,34,.4), rgba(30,5,8,.95)); }
.album-cover .label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); }
.album-cover .title { font-family: var(--serif); font-size: 52px; line-height: .95; }
.album-cover .by { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-top: 12px; }
.album-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.dark .album-facts { color: var(--on-dark-soft); }
.tracks { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: t; columns: 2; column-gap: 40px; }
.tracks li { counter-increment: t; break-inside: avoid; display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; }
.dark .tracks li { border-color: var(--line-dark); }
.tracks li::before { content: counter(t, decimal-leading-zero); font: 600 12px/2.2 var(--sans); color: var(--gold-deep); letter-spacing: .1em; }
.dark .tracks li::before { color: var(--gold); }
.credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.credits div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.credits dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.credits dd { margin: 0; font-family: var(--serif); font-size: 21px; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Book ---------- */
.book-stage { display: flex; justify-content: center; perspective: 1600px; padding: 30px 0; }
.book {
  width: min(360px, 80vw); aspect-ratio: 2 / 3; position: relative; transform: rotateY(-22deg) rotateX(4deg);
  transform-style: preserve-3d; transition: transform 1s var(--ease);
}
.book:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book-front {
  position: absolute; inset: 0; background: linear-gradient(150deg, #191512, #0b0a09 60%); color: var(--on-dark);
  border-radius: 2px 6px 6px 2px; padding: 34px 30px; display: flex; flex-direction: column;
  box-shadow: inset 4px 0 0 rgba(255,255,255,.06), inset 14px 0 18px -10px rgba(0,0,0,.6), 30px 40px 60px -20px rgba(0,0,0,.6);
  overflow: hidden;
}
.book-front::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(198,160,82,.45); pointer-events: none; }
.book-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 34px; transform: rotateY(90deg) translateZ(-17px) translateX(-17px); background: #070605; }
.book-front .kicker { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.book-front .bt { font-family: var(--serif); font-size: 74px; line-height: .86; margin-top: auto; font-weight: 600; }
.book-front .bt em { color: var(--gold-2); }
.book-front .ba { margin-top: 26px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-soft); }
.book-front .bar { width: 50px; height: 2px; background: var(--crimson-2); margin: 22px 0 0; }

.principles { counter-reset: p; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { counter-increment: p; padding: 34px 24px 34px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 24px; }
.principle:last-child { border-right: 0; }
.principle::before { content: counter(p, upper-roman); font-family: var(--serif); font-style: italic; color: var(--crimson); font-size: 22px; }
.principle h3 { font-family: var(--serif); font-size: 28px; margin: 14px 0 8px; }
.principle p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* ---------- Media ---------- */
.radio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--line-dark); background: linear-gradient(120deg, var(--ink-2), var(--ink)); border-radius: var(--radius); }
.radio-dial { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; text-align: center; position: relative; }
.radio-dial::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(198,160,82,.4); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radio-dial b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold-2); font-weight: 500; }
.radio-dial small { display: block; font-size: 10px; letter-spacing: .3em; color: var(--on-dark-soft); }
.wave { display: flex; gap: 4px; align-items: center; height: 40px; }
.wave i { width: 3px; background: var(--gold); border-radius: 2px; animation: wave 1.4s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.6s; }
.wave i:nth-child(3n) { animation-delay: -.3s; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 36px; } }

.video-tile {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); color: var(--on-dark); text-decoration: none; isolation: isolate;
}
.video-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.video-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,12,11,.92), rgba(13,12,11,.15)); }
.video-tile:hover img { transform: scale(1.05); }
.video-tile .play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .4s, border-color .4s; }
.video-tile:hover .play { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.video-tile .play svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }
.video-tile .meta { position: absolute; left: 28px; right: 28px; bottom: 24px; }
.video-tile .meta small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.video-tile .meta h3 { font-family: var(--serif); font-size: 28px; margin-top: 6px; }

/* ---------- Events ---------- */
.event-list { border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 40px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line); transition: background .4s;
}
.event-date { text-align: center; border: 1px solid var(--line); padding: 18px 10px; border-radius: var(--radius); background: var(--ivory); }
.event-date b { display: block; font-family: var(--serif); font-size: 50px; line-height: 1; color: var(--crimson); font-weight: 500; }
.event-date span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); }
.event .cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.event h3 { font-family: var(--serif); font-size: 32px; margin: 6px 0 8px; line-height: 1.1; }
.event .where { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.event p { color: var(--text-soft); margin: 0; max-width: 680px; }
.empty-state { padding: 60px 0; text-align: center; color: var(--text-soft); }
.skeleton { height: 160px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(198,160,82,.08), transparent); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.service-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.service-times > div { padding: 36px 32px; border-right: 1px solid var(--line-dark); }
.service-times > div:last-child { border-right: 0; }
.service-times small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.service-times b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 8px 0 4px; }
.service-times span { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 16px 18px; font: 500 16px/1.4 var(--sans); color: var(--text);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f6d2a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,160,82,.18); }
.dark .field label { color: var(--on-dark-soft); }
.dark .field input, .dark .field textarea, .dark .field select { background: rgba(255,255,255,.04); border-color: var(--line-dark); color: var(--on-dark); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--crimson); flex-shrink: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--emerald-2); }
.form-status.err { color: var(--crimson-2); }
.dark .form-status.ok, .site-footer .form-status.ok { color: var(--gold-2); }
.site-footer .form-status.err { color: #f08a8f; }
.form-success { text-align: center; padding: 60px 30px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--ivory); }
.form-success svg { width: 54px; height: 54px; color: var(--gold); margin: 0 auto 20px; }
.form-success h3 { margin-bottom: 10px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 44px; overflow-x: auto; }
.tab { padding: 18px 26px; border: 0; background: none; cursor: pointer; font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); position: relative; white-space: nowrap; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--crimson); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel[hidden] { display: none; }

.info-block { padding: 30px 0; border-bottom: 1px solid var(--line-dark); }
.info-block:first-child { padding-top: 0; }
.info-block small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.info-block p { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 8px 0 0; }
.info-block a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); aspect-ratio: 4/3; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.9); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(13,12,11,.7); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { width: min(520px, 100%); background: var(--paper); padding: 44px 40px; border-radius: var(--radius); position: relative; max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: clamp(70px, 9vw, 120px) 0 0; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.6fr; gap: 48px; padding-bottom: 70px; }
.footer-brand img { width: 60px; }
.footer-motto { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--on-dark); margin: 22px 0 4px; }
.site-footer h4 { font: 700 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.footer-col a { display: block; text-decoration: none; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-col p a { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.inline-form input[type=email] { flex: 1 1 200px; min-width: 0; padding: 13px 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: var(--radius); font: 500 15px var(--sans); }
.inline-form input[type=email]:focus { outline: none; border-color: var(--gold); }
.inline-form .form-status { flex-basis: 100%; font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; color: var(--gold); }
.footer-bottom .admin-link { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-soft); transition: color .25s; }
.footer-bottom .admin-link:hover { color: var(--gold); }
.footer-bottom .admin-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.divider-seal { display: flex; justify-content: center; margin: 0 auto 30px; }
.divider-seal img { width: 70px; }
.seal-hero { width: min(380px, 70vw); margin: 0 auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.note { font-size: 14px; color: var(--text-soft); border-left: 2px solid var(--gold); padding: 6px 0 6px 18px; }
.dark .note { color: var(--on-dark-soft); }
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,12,11,.82); }
.family-names { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .split, .split-5-7, .split-7-5 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .dark .pillar { border-color: var(--line-dark); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .stats.light .stat:nth-child(-n+2) { border-color: var(--line); }
  .album { grid-template-columns: 1fr; }
  .album-cover { max-width: 460px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle, .principle + .principle { padding: 28px 20px 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .radio-card { grid-template-columns: 1fr; text-align: left; }
  .service-times { grid-template-columns: 1fr; }
  .service-times > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .frame.offset::before { inset: 14px -14px -14px 14px; }
  .hero::after { background: linear-gradient(0deg, rgba(20,11,9,.6) 0%, rgba(20,11,9,0) 40%); }
  .hero { min-height: 0; }
  .hero-media { right: 0; width: 100%; bottom: auto; height: 74vh; }
  .hero-media::after { background: linear-gradient(0deg, #241410 0%, #241410 12%, rgba(36,20,16,.6) 35%, rgba(36,20,16,0) 60%); }
  .hero-media img { object-position: 58% 12%; }
  .hero-content { padding-top: 50vh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .credits, .principles { grid-template-columns: 1fr; }
  .tracks { columns: 1; }
  .hero-meta { grid-template-columns: 1fr 1fr 1fr; }
  .hero-meta div { padding-right: 14px; margin-right: 14px; }
  .hero-meta b { font-size: 26px; }
  .hero-meta small { font-size: 9px; letter-spacing: .12em; }
  .scroll-cue { display: none; }
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .timeline li::before { left: 0; }
  .timeline .year { text-align: left; padding: 0; font-size: 26px; }
  .event { grid-template-columns: 1fr; gap: 18px; }
  .event-date { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; justify-self: start; }
  .event-date b { font-size: 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .ministry-card { min-height: 440px; padding: 34px 26px; }
  .card { padding: 32px 26px; }
  .radio-card { padding: 32px 24px; }
  .frame-caption { position: static; max-width: none; }
  .brand-name { font-size: 18px; }
  .modal-card { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
