/*
Theme Name: Kentucky COGOP Keystone
Theme URI: https://kycogop.keystone.kingswellstrategicventures.com/
Author: Keystone Software
Description: Editorial, multi-page WordPress theme for the Kentucky Church of God of Prophecy. University of Kentucky palette, Bloomberg-inspired typography, animated starfields and crest page transitions.
Version: 1.0.0
*/

:root {
  --blue: #0033a0;
  --blue-2: #1e4fc2;
  --navy: #1b365d;
  --night: #07142b;
  --night-2: #0d2247;
  --ink: #0b0d10;
  --text: #22262c;
  --muted: #646b75;
  --line: #e3e6eb;
  --line-strong: #0b0d10;
  --paper: #ffffff;
  --alt: #f4f6fa;
  --sky: #a9c1f2;
  --gold: #e9c46a;
  --head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shell: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .5em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 800; color: var(--blue); }
p { margin: 0 0 1em; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.label-light { color: var(--sky); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: inherit; max-width: 640px; }
.lede-sm { font-size: 19px; line-height: 1.55; color: var(--ink); }
.display { font-size: clamp(34px, 4.6vw, 64px); max-width: 15ch; margin-bottom: 40px; }

/* ---------- Buttons & links ---------- */
.btn { --b: var(--blue); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--b); background: var(--b); color: #fff; font: 600 15px/1 var(--head); letter-spacing: .01em; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-io); }
.btn:hover { color: #fff; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn span[aria-hidden] { transition: transform .35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-white { --b: #fff; color: var(--blue); }
.btn-white::after { background: var(--sky); }
.btn-white:hover { color: var(--night); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost::after { background: #fff; }
.btn-ghost:hover { color: var(--blue); border-color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line::after { background: var(--blue); }
.btn-line:hover { border-color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--head); color: var(--blue); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease), color .2s; }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tag { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); border: 1px solid currentColor; padding: 3px 7px; }

/* ---------- Page veil (crest transition) ---------- */
.page-veil { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; align-content: center; gap: 22px; background: radial-gradient(120% 90% at 50% 40%, var(--night-2), var(--night) 70%); color: #fff; transform: translateY(0); animation: veil-failsafe .6s 2.6s forwards; pointer-events: none; }
.page-veil .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.veil-mark { position: relative; width: 108px; height: 108px; display: grid; place-items: center; }
.veil-mark img { width: 72px; height: 72px; animation: crest-in 1s var(--ease) both, crest-glow 2.4s ease-in-out infinite; }
.veil-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring-spin 1.8s linear infinite; }
.veil-ring circle { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-dasharray: 260 352; stroke-linecap: round; animation: ring-draw 1.4s var(--ease-io) infinite alternate; }
.veil-word { position: relative; font: 500 11px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.72); animation: word-in 1s .2s var(--ease) both; }
body.is-ready .page-veil { transform: translateY(-100%); transition: transform .9s var(--ease-io) .2s; animation: none; }
body.is-ready .page-veil .veil-mark { opacity: 0; transform: translateY(-30px) scale(.9); transition: all .5s var(--ease); }
body.is-leaving .page-veil { transform: translateY(0); transition: transform .6s var(--ease-io); animation: none; pointer-events: auto; }
body.is-leaving .page-veil .veil-mark { opacity: 1; transform: none; transition: all .5s .2s var(--ease); }
body.is-leaving .page-veil .veil-mark img { animation: crest-pulse 1s .15s var(--ease) both; }
@keyframes veil-failsafe { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes crest-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes crest-pulse { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes crest-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(169,193,242,0)); } 50% { filter: drop-shadow(0 0 18px rgba(169,193,242,.55)); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-draw { from { stroke-dasharray: 40 352; } to { stroke-dasharray: 280 352; } }
@keyframes word-in { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--night); color: rgba(255,255,255,.82); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 38px; }
.topbar-date { color: #fff; white-space: nowrap; }
.topbar-link { color: rgba(255,255,255,.82); white-space: nowrap; }
.topbar-link:hover { color: #fff; }
.marquee { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; }
.marquee-group a, .marquee-group span { color: rgba(255,255,255,.82); }
.marquee-group a:hover { color: #fff; }
.marquee-group b { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--sky); margin-right: 6px; }
.marquee-group i { font-style: normal; font-size: 8px; color: var(--blue-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .3s; }
.masthead.is-scrolled { box-shadow: 0 10px 30px rgba(7,20,43,.06); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand-logo { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word strong { font: 800 21px/1 var(--head); letter-spacing: -.03em; color: var(--ink); text-transform: uppercase; }
.brand-word span { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 12px; font: 600 14.5px var(--head); color: var(--ink); letter-spacing: -.005em; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { color: var(--blue); }
.nav-give-mobile { display: none !important; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font: 600 14px var(--head); color: var(--ink); cursor: pointer; }
.bars { position: relative; width: 22px; height: 12px; }
.bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.bars i:first-child { top: 0; } .bars i:last-child { top: 10px; }
.nav-open .bars i:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .bars i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Night sections (stars) ---------- */
.is-night { position: relative; background: radial-gradient(120% 120% at 70% 0%, var(--night-2) 0%, var(--night) 60%); color: rgba(255,255,255,.82); overflow: hidden; isolation: isolate; }
.is-night h1, .is-night h2, .is-night h3 { color: #fff; }
.is-night h1 em, .is-night h2 em { color: var(--sky); }
.is-night a:not(.btn) { color: #fff; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 110px; --gx: 70%; --gy: 30%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; background: url("assets/hero-night-sky.png") center bottom / cover no-repeat; opacity: .38; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(30,79,194,.35), transparent 60%); transition: background .2s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 64px; align-items: end; }
.hero-title { font-size: clamp(48px, 7.4vw, 108px); line-height: .94; letter-spacing: -.045em; font-weight: 800; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { color: var(--sky); }
.hero-in { opacity: 0; transform: translateY(105%); animation: rise 1.1s var(--ease) both; animation-delay: calc(.55s + var(--d) * .1s); }
.lede.hero-in, .btn-row.hero-in, .label.hero-in, .hero-panel.hero-in { transform: translateY(24px); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-panel { border-top: 1px solid rgba(255,255,255,.25); display: grid; }
.hero-panel > * { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-next { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.hero-next .label { grid-column: 1 / -1; margin-bottom: 8px; }
.hero-next-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s; }
.hero-next-date strong { font: 800 30px/1 var(--head); color: #fff; }
.hero-next-date .mono { font-size: 10px; color: var(--sky); margin-top: 4px; }
.hero-next-title { font: 700 21px/1.2 var(--head); color: #fff; letter-spacing: -.02em; }
.hero-next-cta { grid-column: 2; color: var(--sky); }
.hero-next:hover .hero-next-date { background: var(--blue); border-color: var(--blue); }
.hero-search-field { display: flex; border-bottom: 1px solid rgba(255,255,255,.5); transition: border-color .3s; }
.hero-search-field:focus-within { border-color: #fff; }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 500 17px var(--sans); padding: 10px 0; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search button { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; transition: transform .3s var(--ease); }
.hero-search button:hover { transform: translateX(4px); }
.hero-verse p { font: italic 600 19px/1.4 var(--head); color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.hero-verse cite { color: var(--sky); font-style: normal; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.6) !important; font-size: 10px; letter-spacing: .3em; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(#fff, transparent); animation: cue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page heads ---------- */
.page-head { padding: 140px 0 96px; min-height: 560px; display: flex; align-items: flex-end; }
.page-head-art { position: absolute; inset: -6%; z-index: -2; background: center / cover no-repeat; opacity: .5; animation: kenburns 28s ease-in-out infinite alternate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,20,43,.55) 0%, rgba(7,20,43,.35) 40%, rgba(7,20,43,.92) 100%), linear-gradient(90deg, rgba(7,20,43,.85), rgba(7,20,43,0) 70%); }
.page-head-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 56px; align-items: end; }
.page-head-verse { margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.28); }
.page-head-verse blockquote { margin: 0 0 10px; font: italic 600 20px/1.4 var(--head); color: #fff; letter-spacing: -.01em; }
.page-head-verse figcaption { color: var(--sky); }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }
.page-head h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.045em; font-weight: 800; line-height: .96; max-width: 14ch; }
.page-head .lede { color: rgba(255,255,255,.78); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(169,193,242,.5), transparent); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 72px 0 90px; }
.section-alt { background: var(--alt); }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 2px solid var(--line-strong); padding-top: 14px; margin-bottom: 36px; }
.section-bar .label { margin: 0; color: var(--ink); }
.section-bar .label::before { display: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-copy h2 { font-size: clamp(34px, 4vw, 56px); }
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--alt); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.is-visible .frame img, .frame:hover img { transform: scale(1); }
.frame::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: top; transition: transform 1.1s var(--ease-io); }
.is-visible .frame::after { transform: scaleY(0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- News ---------- */
.front-news { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; }
.story-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--alt); margin-bottom: 18px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .story-media img { transform: scale(1.05); }
.story-kicker { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 10px; }
.pin { color: #fff; background: var(--blue); padding: 3px 8px; }
.story h2, .story h3 { font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.story-lead h2, .story-lead h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.story h2 a, .story h3 a, .story-line h3 a { color: var(--ink); background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .2s; }
.story h2 a:hover, .story h3 a:hover, .story-line h3 a:hover { color: var(--blue); background-size: 100% 2px; }
.story p { color: var(--muted); }
.front-news-list { border-top: 1px solid var(--line); }
.story-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.story-line .mono { color: var(--blue); }
.story-line h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.news-grid .story-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 48px; }
.news-grid .story-lead .story-media { margin: 0; }
.pager { margin-top: 56px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font: 500 13px var(--mono); color: var(--ink); }
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Stats ---------- */
.stats-band { background: var(--blue); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid rgba(255,255,255,.2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 800 clamp(44px, 5vw, 72px)/1 var(--head); letter-spacing: -.05em; color: #fff; }
.stat span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ---------- Ministries ---------- */
.ministry-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.ministry-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 28px 24px 70px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); color: var(--text); overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.ministry-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: translateY(101%); transition: transform .55s var(--ease-io); }
.ministry-card:hover::before { transform: none; }
.ministry-card:hover, .ministry-card:hover h3, .ministry-card:hover .mono { color: #fff; }
.ministry-card .mono { color: var(--blue); transition: color .45s; }
.ministry-card h3 { font-size: 22px; transition: color .45s; }
.ministry-card p { font-size: 15px; color: inherit; opacity: .85; }
.card-arrow { position: absolute; left: 24px; bottom: 24px; font-size: 22px; color: var(--blue); transition: transform .45s var(--ease), color .45s; }
.ministry-card:hover .card-arrow { color: #fff; transform: translateX(8px); }
.ministry-index { display: grid; gap: 0; border-top: 2px solid var(--line-strong); }
.ministry-feature { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.ministry-num { font: 800 44px/1 var(--head) !important; color: var(--blue); letter-spacing: -.04em !important; }
.ministry-media { aspect-ratio: 4 / 3; background: center / cover no-repeat; filter: grayscale(.25); transition: filter .6s, transform 1s var(--ease); }
.ministry-feature:hover .ministry-media { filter: none; transform: scale(1.02); }
.ministry-copy h2 { font-size: clamp(30px, 3vw, 44px); }

/* ---------- Map ---------- */
.split-map { grid-template-columns: .9fr 1.1fr; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.kyc-map { width: 100%; height: 100%; min-height: 320px; background: var(--alt); }
.inline-search { display: flex; margin: 28px 0 20px; border: 1px solid var(--ink); }
.inline-search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; font: 500 16px var(--sans); outline: none; }
.inline-search .btn { min-height: 52px; }
.kyc-pin span { display: block; width: 14px; height: 14px; margin: 2px; background: var(--blue); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 0 rgba(0,51,160,.45); animation: pin-drop .6s var(--ease) both, pin-pulse 2.8s 1s infinite; animation-delay: var(--pd, 0ms), calc(var(--pd, 0ms) + 1s); }
.kyc-pin.is-dim span { background: #b7c0cf; animation: none; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-24px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,51,160,.45); } 70% { box-shadow: 0 0 0 12px rgba(0,51,160,0); } 100% { box-shadow: 0 0 0 0 rgba(0,51,160,0); } }
.leaflet-popup-content-wrapper { border-radius: 0 !important; font-family: var(--sans); box-shadow: 0 18px 40px rgba(7,20,43,.18) !important; }
.leaflet-popup-content strong { font-family: var(--head); font-size: 15px; color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink); }

/* ---------- Directory ---------- */
.directory { padding: 0 0 80px; }
.directory-toolbar { display: flex; gap: 14px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.directory-search { flex: 1; }
.directory-search input { width: 100%; height: 50px; border: 1px solid var(--ink); padding: 0 18px; font: 500 16px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; }
.directory-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,51,160,.15); }
.directory-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-bottom: 1px solid var(--line); }
.directory-list { max-height: 72vh; overflow: auto; border-right: 1px solid var(--line); }
.directory-map { position: sticky; top: 182px; height: 72vh; }
.directory-map .kyc-map { height: 100%; }
.church-card { display: flex; justify-content: space-between; gap: 18px; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .25s, padding .35s var(--ease); }
.church-card:hover, .church-card.is-active { background: var(--alt); padding-left: 16px; }
.church-card.is-active { box-shadow: inset 3px 0 0 var(--blue); }
.church-card h3 { font-size: 19px; margin: 0 0 6px; }
.church-card .mono { color: var(--muted); margin: 0; }
.church-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.dist { color: var(--blue) !important; }
.directory-note { margin-top: 18px; }

/* ---------- Events ---------- */
.event-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 36px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.event-row:hover { background: var(--paper); padding-left: 18px; padding-right: 18px; }
.section-alt .event-row:hover { background: #fff; }
.event-row-date { display: flex; flex-direction: column; align-items: flex-start; }
.event-row-date strong { font: 800 54px/1 var(--head); letter-spacing: -.05em; color: var(--blue); }
.event-row-date .mono { color: var(--muted); font-size: 11px; }
.event-row h3 { font-size: 26px; margin-bottom: 6px; }
.event-row h3 a { color: var(--ink); }
.event-row h3 a:hover { color: var(--blue); }
.event-row p { color: var(--muted); margin-bottom: 8px; }
.meta-line { display: flex; gap: 16px; flex-wrap: wrap; font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.meta-line span + span::before { content: "\00b7"; margin-right: 16px; }

/* ---------- Scripture ---------- */
.scripture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scripture-card { margin: 0; }
.scripture-img { overflow: hidden; aspect-ratio: 3 / 4; }
.scripture-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.scripture-card:hover .scripture-img img { transform: scale(1.06); }
.scripture-card figcaption { padding-top: 20px; border-top: 2px solid var(--ink); margin-top: 18px; }
.scripture-card blockquote { margin: 0 0 10px; font: italic 700 22px/1.3 var(--head); color: var(--ink); letter-spacing: -.015em; }
.scripture-card cite { color: var(--blue); font-style: normal; }

/* ---------- Bands ---------- */
.give-band, .cta-band { padding: 110px 0; }
.give-band-inner, .cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.give-band h2, .cta-band h2 { font-size: clamp(38px, 5vw, 72px); letter-spacing: -.045em; max-width: 13ch; margin: 0; }
.give-band p { max-width: 520px; margin: 18px 0 0; }
.contact-strip { padding: 90px 0; }
.contact-strip-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 48px; align-items: end; }
.contact-strip h2 { font-size: clamp(34px, 4vw, 52px); margin: 0; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-cols .label { margin-bottom: 10px; }
.contact-cols p { margin: 0; font-size: 15px; }

/* ---------- Facebook ---------- */
.fb-section .split { align-items: start; }
.fb-embed { position: relative; min-height: 620px; background: var(--alt); border: 1px solid var(--line); display: grid; place-items: center; }
.fb-embed::before { content: "Loading feed\2026"; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--head); transition: border-color .3s, color .3s, transform .3s var(--ease); }
.social-link svg { width: 18px; height: 18px; fill: var(--blue); }
.social-link:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Pillars & beliefs ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); margin-bottom: 40px; }
.pillar { padding: 28px 24px 28px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar .mono { color: var(--blue); }
.pillar h3 { font-size: 22px; margin: 14px 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; }
.belief-list { border-top: 2px solid var(--ink); }
.belief { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.belief .mono { color: var(--blue); padding-top: 6px; }
.belief h3 { font-size: 22px; margin-bottom: 6px; }
.belief p { margin: 0; color: var(--muted); }

/* ---------- Give ---------- */
.give-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.give-cards { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.give-card { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; }
.give-card .mono { color: var(--blue); }
.give-card h3 { font-size: 30px; margin: 0; }
.give-card address { font-style: normal; font: 600 18px/1.5 var(--head); color: var(--ink); }
.give-card.is-primary h3 { color: var(--blue); }
.give-note { margin-top: 24px; padding: 18px 20px; background: var(--alt); border-left: 3px solid var(--blue); }
.give-aside { background: var(--night); color: rgba(255,255,255,.82); padding: 40px; align-self: start; position: sticky; top: 110px; }
.give-aside .label { color: var(--sky); }
.give-aside a { color: #fff; }
.check-list { list-style: none; margin: 0 0 24px; padding: 0; }
.check-list li { padding: 14px 0 14px 30px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; color: #fff; font: 600 17px var(--head); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.form-card { display: grid; gap: 18px; padding: 40px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -40px rgba(7,20,43,.35); scroll-margin-top: 110px; }
.form-card h2 { font-size: 30px; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card label { display: grid; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #c9ced6; background: transparent; font: 400 17px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; border-radius: 0; transition: border-color .25s; }
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.notice-ok, .notice-err { padding: 16px 18px; font-size: 15px; animation: rise .6s var(--ease) both; }
.notice-ok { background: #e9f1ff; border-left: 3px solid var(--blue); color: var(--navy); }
.notice-err { background: #fff1f0; border-left: 3px solid #c0362c; color: #7a1f17; }
.contact-aside { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-item p { margin: 0; font: 600 19px/1.45 var(--head); color: var(--ink); }

/* ---------- Articles ---------- */
.article-head { padding: 120px 0 90px; }
.article-head h1 { font-size: clamp(38px, 5.4vw, 74px); letter-spacing: -.04em; max-width: 18ch; }
.article-head .lede { color: rgba(255,255,255,.78); }
.byline { color: var(--sky); margin-top: 24px; }
.article-figure { margin-top: -40px; margin-bottom: 0; position: relative; z-index: 2; }
.article-figure img { width: 100%; max-height: 620px; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; padding: 72px 0 110px; align-items: start; }
.article-aside { display: grid; gap: 28px; position: sticky; top: 110px; }
.aside-block { border-top: 2px solid var(--ink); padding-top: 14px; }
.aside-story { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.3 var(--head); color: var(--ink); }
.aside-story .mono { color: var(--blue); font-size: 11px; }
.aside-story:hover { color: var(--blue); }
.event-facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.event-facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-facts .label { margin-bottom: 8px; }
.event-facts p { margin: 0; font: 600 18px/1.45 var(--head); color: var(--ink); }
.big-num { font-size: 40px !important; color: var(--blue) !important; }
.prose { font-size: 19px; line-height: 1.7; color: #2a2f36; max-width: 720px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--blue); font: italic 600 24px/1.4 var(--head); color: var(--ink); }
.prose img { margin: 1.6em 0; }
.single-post .prose > p:first-of-type::first-letter { float: left; font: 800 76px/.8 var(--head); color: var(--blue); margin: 8px 12px 0 0; }
.empty { padding: 40px 0; color: var(--muted); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.68); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 84px 0 64px; }
.footer-brand img { width: 56px; height: 56px; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-brand strong { color: #fff; font-family: var(--head); font-size: 17px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,.82); width: fit-content; background: linear-gradient(#fff, #fff) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); background: none !important; transition: background-color .3s, border-color .3s; }
.footer-social a:hover { background-color: var(--blue) !important; border-color: var(--blue); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.82); }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Admin bar on front ---------- */
.admin-bar .masthead { top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 8px; font-size: 14px; }
  .ministry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-give { display: none; }
  .nav { position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 120px 32px 40px; background: var(--night); clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease-io); }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 38px); }
  .nav a { color: #fff; font: 800 clamp(32px, 8vw, 52px)/1.15 var(--head); letter-spacing: -.035em; padding: 6px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .2s; }
  .nav a::after { display: none; }
  .nav a[aria-current] { color: var(--sky); }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(2) { transition-delay: .05s; } .nav-open .nav a:nth-child(3) { transition-delay: .1s; } .nav-open .nav a:nth-child(4) { transition-delay: .15s; } .nav-open .nav a:nth-child(5) { transition-delay: .2s; } .nav-open .nav a:nth-child(6) { transition-delay: .25s; } .nav-open .nav a:nth-child(7) { transition-delay: .3s; } .nav-open .nav a:nth-child(8) { transition-delay: .35s; }
  .nav-give-mobile { display: block !important; color: var(--sky) !important; }
  .nav-open .masthead { background: transparent; border-color: transparent; backdrop-filter: none; }
  .nav-open .brand-word strong, .nav-open .nav-toggle { color: #fff; }
  .nav-open { overflow: hidden; }
  .page-head-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid, .split, .split-map, .front-news, .give-grid, .contact-grid, .article-grid, .contact-strip-grid { grid-template-columns: 1fr; gap: 48px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .story-lead { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .ministry-feature { grid-template-columns: 60px 1fr; }
  .ministry-media { grid-column: 2; }
  .ministry-copy { grid-column: 2; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-map { position: relative; top: 0; height: 52vh; order: -1; }
  .directory-list { max-height: none; border-right: 0; }
  .article-aside, .give-aside { position: static; }
  .frame { aspect-ratio: 16 / 11; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .topbar-date, .topbar-link { display: none; }
  .masthead-inner { height: 64px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-word strong { font-size: 18px; }
  .brand-word span { font-size: 9px; letter-spacing: .1em; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 96px; min-height: auto; }
  .hero-title { font-size: clamp(44px, 13vw, 64px); }
  .page-head { padding: 96px 0 56px; min-height: 0; }
  .page-head-inner { grid-template-columns: 1fr; gap: 28px; }
  .ministry-grid, .news-grid, .scripture-grid, .contact-cols, .form-row, .pillar-grid { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ministry-card { min-height: 0; }
  .event-row { grid-template-columns: 70px 1fr; gap: 18px; }
  .event-row .btn { grid-column: 1 / -1; }
  .event-row-date strong { font-size: 40px; }
  .story-line { grid-template-columns: 56px 1fr; }
  .story-line .tag { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .directory-toolbar { flex-wrap: wrap; top: 64px; }
  .directory-search { flex-basis: 100%; }
  .give-aside { padding: 28px 22px; }
  .admin-bar .masthead { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@view-transition { navigation: auto; }
