/* =========================================================
   PCEA Ngong' Hills Presbytery — brand kit v1
   ========================================================= */
:root {
  /* Core colours */
  --pcea-blue: #123C69;
  --pcea-blue-deep: #0C2C4F;
  --pcea-red: #C62B2E;
  --forest: #245B43;       /* Ngong Forest — primary local colour */
  --forest-deep: #1A4432;
  --ridge: #6F9958;        /* Ridge Green */
  --sage: #B8C9AA;         /* Highland Sage */
  --gold: #D7A640;         /* Sunrise Gold */
  --cream: #F5F0E6;        /* Highland Cream — main background */
  --cream-deep: #EDE5D6;
  --cloud: #FCFCF9;        /* Cloud White — cards */
  --ink: #182027;          /* Charcoal — text & headings */
  --ink-soft: #4A5560;
  --line: #DDD4C3;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 10px;
  --shadow: 0 18px 40px -18px rgba(24, 32, 39, .28);
  --shadow-lg: 0 30px 60px -24px rgba(24, 32, 39, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Painterly brush mask (turbulence-displaced edge) for hero images */
  --brush-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 800' preserveAspectRatio='none'%3E %3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-5%25' width='140%25' height='110%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.09' numOctaves='4' seed='7'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='46' xChannelSelector='R' yChannelSelector='G'/%3E %3C/filter%3E%3C/defs%3E %3Crect x='34' y='-40' width='420' height='880' fill='white' filter='url(%23b)'/%3E %3C/svg%3E");
  /* Torn edge along the bottom, for stacked mobile heroes */
  --brush-bottom: polygon(0 0, 100% 0, 100% 93%, 97% 95.5%, 94% 93.5%, 91% 96%, 88% 94%, 85% 95%, 82% 93%, 79% 96.5%, 76% 94%, 73% 95%, 70% 93%, 67% 96%, 64% 94.5%, 61% 95.5%, 58% 93%, 55% 96%, 52% 94%, 49% 95%, 46% 93.5%, 43% 96.5%, 40% 94%, 37% 95%, 34% 93%, 31% 96%, 28% 94.5%, 25% 95.5%, 22% 93%, 19% 96%, 16% 94%, 13% 95%, 10% 93.5%, 7% 96.5%, 4% 94%, 0 95%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; }
.muted { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Icons: stroke-based, inherit colour */
.i, .i-lg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i { width: 16px; height: 16px; }
.i-lg { width: 34px; height: 34px; stroke-width: 1.4; }

/* Eyebrows — small spaced caps with trailing rule */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1.8;
}
.eyebrow-rule { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.eyebrow-rule::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn-primary { background: var(--pcea-blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(18, 60, 105, .7); }
.btn-primary:hover { background: var(--pcea-blue-deep); }
.btn-ghost { background: transparent; color: var(--pcea-blue); border-color: rgba(18, 60, 105, .25); }
.btn-ghost:hover { border-color: var(--pcea-blue); background: rgba(18, 60, 105, .04); }
.btn-light { background: #fff; color: var(--pcea-blue); }
.btn-light:hover { background: var(--cream); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--pcea-blue); text-decoration: none; white-space: nowrap; }
.more-link .i { transition: transform .25s var(--ease); }
.more-link:hover .i { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 249, .92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(221, 212, 195, .6);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(24, 32, 39, .45); background: rgba(252, 252, 249, .97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.is-scrolled .header-inner { min-height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-emblem { width: 36px; height: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-emblem { transform: rotate(-4deg) scale(1.04); }
.brand-text { position: relative; display: grid; line-height: 1.1; padding-top: 2px; }
.brand-pcea { font: 700 11px/1 var(--sans); letter-spacing: .14em; color: var(--pcea-blue); }
.brand-name { font-family: var(--serif); font-size: 25px; color: var(--pcea-blue); white-space: nowrap; margin-top: 3px; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .02em; margin-top: 3px; }
/* Ridge line: starts beside "PCEA" and sweeps over the wordmark, as in the lock-up */
.brand-ridge {
  position: absolute; left: 44px; top: -3px; height: 18px; width: calc(100% - 26px);
  fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.6s .3s var(--ease-out) forwards;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a {
  position: relative;
  font-size: 14.5px; font-weight: 500;
  text-decoration: none; color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--forest); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav ul a:hover { color: var(--forest); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { font-weight: 700; color: var(--pcea-blue); }
.site-nav ul a[aria-current="page"]::after { background: var(--pcea-blue); }
.nav-cta { padding: 12px 20px; font-size: 14px; }
.nav-toggle { display: none; }

/* =========================================================
   Motion primitives
   ========================================================= */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { scale: 1.12; } to { scale: 1.02; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

/* On-load entrance for hero content */
/* Pure CSS so hero content always appears, even if a script is slow or fails */
@keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-anim] { animation: enter .9s var(--ease-out) both; }
[data-anim]:nth-child(1) { animation-delay: .15s; }
[data-anim]:nth-child(2) { animation-delay: .3s; }
[data-anim]:nth-child(3) { animation-delay: .45s; }
[data-anim]:nth-child(4) { animation-delay: .6s; }
.finder[data-anim] { animation-delay: .8s; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero { position: relative; overflow: visible; min-height: clamp(600px, calc(100vh - var(--header-h)), 760px); display: flex; align-items: center; }

.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; overflow: hidden; -webkit-mask: var(--brush-mask) left / 100% 100% no-repeat; mask: var(--brush-mask) left / 100% 100% no-repeat; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%;
  filter: saturate(1.1) contrast(1.05);
  transform: translate3d(0, var(--parallax, 0px), 0);
  scale: 1.02;
  animation: kenburns 2.8s var(--ease-out) both;
}
.hero-media::after { /* golden-hour wash over the sky, echoing the mockup */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(215, 166, 64, .38) 0%, rgba(232, 180, 110, .18) 28%, rgba(215, 166, 64, 0) 52%),
    linear-gradient(0deg, rgba(24, 32, 39, .28) 0%, rgba(24, 32, 39, 0) 35%);
  mix-blend-mode: multiply;
}

.hero-verse { position: absolute; z-index: 1; top: 44px; right: var(--gutter); margin: 0; text-align: right; }
.hero-verse p { font: italic clamp(24px, 2.4vw, 32px)/1.1 var(--serif); color: var(--ink); }
.hero-verse cite { display: block; margin-top: 12px; font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.hero-verse cite::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; opacity: .6; }

.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 40px 150px; }
.hero-copy { max-width: 470px; }
.eyebrow-stack { color: var(--ink); letter-spacing: .3em; font-weight: 600; margin-bottom: 24px; }
.hero h1, .page-hero h1 {
  font-size: clamp(56px, 6.6vw, 92px);
  line-height: .93;
  color: var(--ink);
  letter-spacing: -.025em;
}
.hero h1 em, .page-hero h1 em { color: var(--forest); }
.hero-lead { margin: 24px 0 32px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 410px; }
.hero-lead strong { color: var(--ink); font-weight: 600; }

/* Find a Church — floats on the hero image */
.finder-wrap { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; pointer-events: none; }
.finder-anchor { position: relative; display: flex; justify-content: flex-end; }
.finder { pointer-events: auto; }
.finder {
  display: grid; grid-template-columns: auto 1fr minmax(240px, 290px) auto; align-items: center; gap: 18px;
  width: min(100%, 700px);
  padding: 16px 16px 16px 22px;
  background: rgba(252, 252, 249, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.finder-pin { width: 32px; height: 32px; fill: none; stroke: var(--pcea-blue); stroke-width: 1.5; }
.finder-label h2 { font-size: 25px; color: var(--pcea-blue); }
.finder-label p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.finder .btn { border-radius: 8px; padding: 15px 26px; }

/* Search combobox */
.combo { position: static; } /* panel anchors to the whole .finder bar */
.combo-field { position: relative; }
.combo-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; transition: stroke .2s; }
.combo input {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: 500 14.5px var(--sans); color: var(--ink);
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.combo input::placeholder { color: #7A8590; }
.combo input:hover { border-color: #C9BEA9; }
.combo input:focus { outline: none; border-color: var(--pcea-blue); box-shadow: 0 0 0 4px rgba(18, 60, 105, .12); }
.combo:focus-within .combo-icon { stroke: var(--pcea-blue); }

/* Dropdown opens downward, below the image, never over it */
.finder { position: relative; }
.combo-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20;
  background: var(--cloud); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(24, 32, 39, .45);
  overflow: hidden;
  animation: drop .22s var(--ease-out);
}
.combo-panel[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.combo-list { max-height: min(360px, 50vh); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.combo-group { padding: 10px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); }
.combo-option {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.combo-option[aria-selected="true"] { background: var(--cream-deep); }
.combo-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.combo-avatar-mono { display: grid; place-items: center; background: var(--sage); font: 400 16px/1 var(--serif); color: var(--forest); }
.combo-avatar-pin { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.combo-avatar-pin svg { width: 16px; height: 16px; fill: none; stroke: var(--forest); stroke-width: 1.8; }
.combo-text { display: grid; min-width: 0; }
.combo-title { font-family: var(--serif); font-size: 19px; line-height: 1.15; color: var(--pcea-blue); }
.combo-sub { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-option mark { background: rgba(215, 166, 64, .35); color: inherit; border-radius: 2px; padding: 0 1px; }
.combo-go { color: var(--pcea-blue); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); }
.combo-option[aria-selected="true"] .combo-go { opacity: 1; transform: none; }
.combo-empty { padding: 18px 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.combo-empty a { color: var(--pcea-blue); font-weight: 600; }
.combo-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--cream); font-size: 13px; font-weight: 700; color: var(--pcea-blue); text-decoration: none; }
.combo-foot:hover .i { transform: translateX(3px); }
.combo-foot .i { transition: transform .2s var(--ease); }


/* =========================================================
   Welcome
   ========================================================= */
.welcome { padding: 72px 0; }
.welcome-inner { display: grid; grid-template-columns: 230px 1fr 280px; gap: 48px; align-items: center; }
.welcome-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.welcome-photo:hover img { transform: scale(1.04); }
.welcome-copy h2 { font-size: clamp(34px, 3.5vw, 46px); color: var(--pcea-blue); margin: 14px 0 16px; }
.welcome-copy > p:not(.eyebrow):not(.signature):not(.signature-role) { color: var(--ink-soft); max-width: 560px; }
.signature { margin-top: 22px; font: 700 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pcea-blue); }
.signature-role { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.welcome-quote {
  position: relative; align-self: stretch; display: flex; align-items: center;
  padding-left: 32px; min-height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23CFC4B0' stroke-width='.7'%3E%3Cpath d='M20 120c20-40 60-70 100-60s60 40 70 20'/%3E%3Cpath d='M15 135c25-45 70-78 108-67s58 44 72 22'/%3E%3Cpath d='M12 150c28-50 78-86 115-74s56 48 74 24'/%3E%3Cpath d='M30 105c18-34 52-60 88-52s58 34 66 17'/%3E%3Cpath d='M42 90c15-28 44-50 76-44s52 28 60 14'/%3E%3Cpath d='M56 76c12-22 36-40 62-36s46 22 52 10'/%3E%3C/g%3E%3C/svg%3E") center / 130% no-repeat;
}
.welcome-quote p { font: italic 30px/1.12 var(--serif); color: var(--ink); }
.welcome-quote p::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 18px; }

/* =========================================================
   Ministries
   ========================================================= */
.ministries { background: var(--cream-deep); padding: 30px 0; }
.ministries-inner { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; }
.ministry-list { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ministry-list a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 6px; border-radius: var(--radius);
  text-decoration: none; text-align: center; font-size: 13px; line-height: 1.3; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.ministry-list svg { color: var(--pcea-blue); transition: transform .4s var(--ease), color .3s; }
.ministry-list a:hover { background: var(--cloud); color: var(--forest); box-shadow: var(--shadow); transform: translateY(-4px); }
.ministry-list a:hover svg { transform: scale(1.12); color: var(--forest); }

/* =========================================================
   Section heads
   ========================================================= */
.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(36px, 4.2vw, 56px); color: var(--ink); }
.section-head h2 em { color: var(--forest); }
.section-head-split { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section-sub { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* =========================================================
   Seven ridges
   ========================================================= */
.ridges { padding: 88px 0 48px; }
.ridge-map { --svg-top: 76px; --svg-h: 92px; position: relative; height: 185px; }
.ridge-line { position: absolute; left: 0; top: var(--svg-top); width: 100%; height: var(--svg-h); overflow: visible; }
.ridge-line path { fill: none; stroke: var(--forest); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .ridge-map[data-reveal] { opacity: 1; transform: none; }
.js .ridge-map .ridge-line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out); }
.js .ridge-map.is-visible .ridge-line path { stroke-dashoffset: 0; }

.ridge-stops { position: absolute; inset: 0; }
/* Each stop's dot sits on its crest: top = svg offset + crest height scaled from the 140-unit viewBox */
.ridge-stops li { position: absolute; left: var(--x); top: calc(var(--svg-top) + var(--c) * var(--svg-h) / 140); width: 0; height: 0; }
.ridge-stops a {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, calc(-100% + 8px));
  text-decoration: none; color: var(--ink);
}
.stop-name { font-family: var(--serif); font-size: 22px; line-height: 1.05; text-align: center; width: max-content; max-width: 150px; margin-bottom: 10px; transition: color .25s, transform .35s var(--ease); }
.stop-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--forest); transition: transform .35s var(--ease), background .25s, border-color .25s; }
.stop-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--forest); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); }
.stop-num { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); font: 700 11px var(--sans); letter-spacing: .2em; color: var(--ink-soft); }
.ridge-stops a:hover .stop-dot, .ridge-stops a:focus-visible .stop-dot { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.ridge-stops a:hover .stop-dot::after { opacity: .5; transform: scale(1); border-color: var(--gold); }
.ridge-stops a:hover .stop-name { color: var(--forest); transform: translateY(-3px); }
.js .ridge-map .ridge-stops li { opacity: 0; transition: opacity .6s var(--ease-out); transition-delay: calc(.5s + var(--i) * .18s); }
.js .ridge-map.is-visible .ridge-stops li { opacity: 1; }

/* =========================================================
   Stories + events
   ========================================================= */
.news { padding: 16px 0 88px; }
.news-inner { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 36px; align-items: start; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.block-head h2 { font-size: 11px; }
.events { --d: .12s; }
.feature-card { --d: .24s; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story a { display: block; text-decoration: none; }
.story-media { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--sage); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.story a:hover .story-media img { transform: scale(1.08); }
.story-placeholder { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); font-weight: 700; }
.story-placeholder svg { width: 60px; fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; }
.story h3 { margin-top: 12px; font-size: 20px; line-height: 1.15; transition: color .25s; }
.story a:hover h3 { color: var(--forest); }
.story time { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.events { border-left: 1px solid var(--line); padding-left: 28px; }
.event-list { display: grid; }
.event { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: transform .3s var(--ease); }
.event:hover { transform: translateX(4px); }
.event:first-child { padding-top: 0; }
.event-date { display: grid; justify-items: center; line-height: 1; color: var(--pcea-blue); }
.event-month { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-day { font-family: var(--serif); font-size: 38px; margin-top: 4px; }
.event h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.event-place { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.event-place .i { width: 14px; height: 14px; color: var(--pcea-blue); }

.feature-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 240, 230, .92) 0%, rgba(245, 240, 230, .5) 40%, rgba(245, 240, 230, 0) 68%); }
.feature-card:hover img { transform: scale(1.07); }
.feature-copy { position: relative; z-index: 1; display: grid; gap: 12px; padding: 28px 26px; }
.feature-title { font-family: var(--serif); font-size: 40px; line-height: .96; max-width: 7ch; }
.feature-sub { font-size: 14px; color: var(--ink-soft); }
.feature-sub::after { content: ""; display: block; width: 32px; height: 1.5px; background: var(--ink); margin-top: 14px; opacity: .6; transition: width .4s var(--ease); }
.feature-card:hover .feature-sub::after { width: 64px; }

/* =========================================================
   Who we are
   ========================================================= */
.about { position: relative; padding: 96px 0 72px; background: var(--cloud); overflow: hidden; }
.about::before { /* faint contour lines */
  content: ""; position: absolute; right: -120px; top: -60px; width: 560px; height: 560px; pointer-events: none; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23E2D9C7' stroke-width='.6'%3E%3Cellipse cx='100' cy='100' rx='95' ry='70'/%3E%3Cellipse cx='104' cy='98' rx='78' ry='56'/%3E%3Cellipse cx='108' cy='96' rx='60' ry='43'/%3E%3Cellipse cx='111' cy='95' rx='43' ry='30'/%3E%3Cellipse cx='113' cy='94' rx='26' ry='18'/%3E%3Cellipse cx='114' cy='94' rx='10' ry='7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.about-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.about-intro h2 { font-size: clamp(36px, 4.2vw, 56px); margin: 14px 0 22px; }
.about-intro h2 em { color: var(--forest); }
.about-intro > p:not(.eyebrow) { color: var(--ink-soft); margin-top: 14px; max-width: 600px; }
.about-intro strong { color: var(--ink); font-weight: 600; }
.about-intro .about-hq { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 16px 18px; border-radius: 10px; background: var(--cream); font-size: 14.5px; }
.about-hq .i { width: 20px; height: 20px; color: var(--pcea-red); margin-top: 2px; }

.about-cards { display: grid; gap: 18px; padding-top: 48px; }
.vm-card { position: relative; padding: 30px 30px 32px; border-radius: 14px; overflow: hidden; }
.vm-card .eyebrow { color: inherit; opacity: .8; }
.vm-text { margin-top: 10px; font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); }
.vm-vision { background: var(--forest); color: #fff; --d: .1s; }
.vm-vision::after { content: ""; position: absolute; right: -20px; bottom: -8px; width: 220px; height: 60px; opacity: .25; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 22'%3E%3Cpath d='M1 19 C14 19 20 9 30 9 S42 15 52 13 S66 4 78 4 S92 12 102 11 S118 6 126 8 S146 17 159 16' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.vm-mission { background: var(--cream); color: var(--ink); border: 1px solid var(--line); --d: .25s; }
.vm-mission .vm-text { font-size: clamp(21px, 2vw, 26px); color: var(--pcea-blue); }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.stat { padding: 26px 20px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.stat dd { font: 400 clamp(48px, 5vw, 72px)/1 var(--serif); color: var(--forest); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* =========================================================
   Core values marquee
   ========================================================= */
.values { background: var(--forest); color: #fff; overflow: hidden; padding: 22px 0; }
.values-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.values:hover .values-track { animation-play-state: paused; }
.values-list { display: flex; flex: none; }
.values-list li { display: flex; align-items: center; font: italic 30px/1 var(--serif); white-space: nowrap; padding-right: 36px; }
.values-list li::after { content: ""; width: 9px; height: 9px; margin-left: 36px; border-radius: 50%; background: var(--gold); }

/* =========================================================
   Leadership
   ========================================================= */
.leaders { padding: 88px 0 24px; }
.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.leader:nth-child(2) { --d: .1s; } .leader:nth-child(3) { --d: .2s; } .leader:nth-child(4) { --d: .3s; }
.leader-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease-out); }
.leader:hover .leader-photo img { transform: scale(1.05); }
.leader-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--forest), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.leader:hover .leader-photo::after { transform: scaleX(1); }
.leader-photo-empty {
  display: grid; place-items: center;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M0 210 C60 170 110 160 170 190 S280 150 330 160 S390 190 400 185 V300 H0z' fill='%236F9958' opacity='.45'/%3E%3Cpath d='M0 240 C80 215 140 225 200 238 S320 210 400 228 V300 H0z' fill='%23245B43' opacity='.55'/%3E%3C/svg%3E") bottom / 100% 60% no-repeat;
}
.leader-photo-empty span { font: 400 64px/1 var(--serif); color: var(--forest); margin-bottom: 30%; }
.leader-role { margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); }
.leader h3 { font-size: 24px; margin-top: 4px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; color: #E6EDE7; margin-top: 40px; }
.footer-ridges { display: block; width: 100%; height: 120px; margin-bottom: -1px; }
.footer-ridges .r1 { fill: var(--sage); }
.footer-ridges .r2 { fill: var(--ridge); }
.footer-ridges .r3 { fill: var(--forest); }
.footer-body { background: var(--forest); padding: 18px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-ridge { width: 130px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.footer-name { font-family: var(--serif); font-size: 26px; color: #fff; margin-top: 8px; }
.footer-sub { font-size: 13px; opacity: .8; }
.footer-heading { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.footer-contact p { font-size: 14px; line-height: 1.55; }
.footer-contact p + p { margin-top: 6px; }
.footer-contact .footer-hq { opacity: .75; font-size: 13px; }
.footer-contact a, .footer-nav a { text-decoration: none; transition: color .2s; }
.footer-contact a:hover, .footer-nav a:hover { color: var(--gold); }
.footer-nav ul { display: grid; gap: 6px; font-size: 14px; }
.footer-motto { justify-self: end; font-size: 13px; line-height: 1.7; padding-left: 20px; border-left: 2px solid var(--gold); align-self: start; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; font-size: 12px; opacity: .75; }
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit-heart { width: 14px; height: 14px; fill: var(--gold); transition: transform .3s var(--ease); }
.credit:hover .credit-heart { animation: beat .9s var(--ease) infinite; }
.credit a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(215, 166, 64, .6); transition: color .2s, border-color .2s; }
.credit a:hover { color: var(--gold); border-color: var(--gold); }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }

/* Design preview badge */
.proto-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(24, 32, 39, .92); color: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; box-shadow: var(--shadow);
  animation: rise .5s 1.4s var(--ease-out) both;
}
.proto-note strong { color: #fff; font-weight: 700; }
.combo-open .proto-note { display: none; }
.proto-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(215, 166, 64, .6); animation: pulse 2.4s infinite; }
.proto-note button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s; }
.proto-note button:hover { background: rgba(255, 255, 255, .25); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 166, 64, .6); } 70% { box-shadow: 0 0 0 8px rgba(215, 166, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(215, 166, 64, 0); } }

/* "Coming in the full build" note for sections not yet built */
.build-note {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  display: grid; gap: 4px; width: min(calc(100% - 32px), 420px);
  padding: 14px 18px; border-radius: 12px;
  background: var(--forest); color: #fff; font-size: 14px; line-height: 1.45;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .4s;
}
.build-note.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.build-note-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* =========================================================
   Our Parishes page
   ========================================================= */
.page-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; overflow: hidden; -webkit-mask: var(--brush-mask) left / 100% 100% no-repeat; mask: var(--brush-mask) left / 100% 100% no-repeat; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: translate3d(0, var(--parallax, 0px), 0); scale: 1.02; animation: kenburns 2.8s var(--ease-out) both; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(215, 166, 64, .3) 0%, rgba(215, 166, 64, 0) 45%); mix-blend-mode: multiply; }
.page-hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 64px; }
.page-hero-copy { max-width: 500px; }
.crumbs { display: flex; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--forest); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-stats { display: flex; gap: 36px; margin-top: 8px; }
.hero-stats div { display: grid; }
.hero-stats dt { order: 2; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.hero-stats dd { order: 1; font: 400 52px/1 var(--serif); color: var(--forest); }

.ridges-compact { padding: 32px 0 8px; }

/* Sticky jump bar */
.jumpbar { position: sticky; top: calc(var(--header-h) - 1px); z-index: 40; background: rgba(245, 240, 230, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); transition: top .3s var(--ease); }
.header-compact .jumpbar { top: 69px; }
.jumpbar ol { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.jumpbar ol::-webkit-scrollbar { display: none; }
.jumpbar a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background .25s, color .25s;
}
.jumpbar a span { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-soft); transition: color .25s; }
.jumpbar a:hover { background: var(--cream-deep); }
.jumpbar a.is-active { background: var(--forest); color: #fff; }
.jumpbar a.is-active span { color: var(--sage); }

/* Parish profiles */
.parish { padding: 88px 0; border-bottom: 1px solid var(--line); }
.parish:nth-child(even) { background: var(--cloud); }
.parish-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.parish:nth-child(even) .parish-inner { grid-template-columns: 7fr 5fr; }
.parish:nth-child(even) .parish-media { order: 2; }
.parish-media { position: sticky; top: calc(var(--header-h) + 90px); }
.parish-body { --d: .12s; }

.parish-portrait, .parish-placeholder { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.parish-portrait { background: #fff; }
.parish-portrait.is-compact { max-width: 320px; margin-inline: auto; }
.parish-portrait.is-compact figcaption { font-size: 19px; }
.parish-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease-out); }
.parish-portrait:hover img { transform: scale(1.04); }
.parish-portrait figcaption, .ph-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(252, 252, 249, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 400 22px/1.1 var(--serif); color: var(--pcea-blue);
}
.parish-portrait figcaption span, .ph-caption span { display: block; margin-bottom: 4px; font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--forest); }
.parish-placeholder { display: grid; place-items: center; background: linear-gradient(180deg, #E9E2D1 0%, var(--sage) 100%); }
.ph-ridges { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-ridges path:first-child { fill: var(--ridge); opacity: .45; }
.ph-ridges path:last-child { fill: var(--forest); opacity: .7; }
.ph-mono { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 30%; border-radius: 50%; background: var(--cloud); font: 400 48px/1 var(--serif); color: var(--forest); box-shadow: var(--shadow); }
.ph-note { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(252, 252, 249, .8); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.ph-note .i { width: 13px; height: 13px; }

.parish-num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); }
.parish-num span { color: var(--forest); font-size: 14px; }
.parish-body h2 { font-size: clamp(44px, 5vw, 68px); color: var(--pcea-blue); margin: 10px 0 18px; }
.parish-about { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 620px; }

.parish-congs { margin-top: 28px; }
.parish-congs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 11px; letter-spacing: 0; }
.cong-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cong-list li {
  position: relative; padding: 9px 14px 9px 30px; border-radius: 999px;
  background: var(--cloud); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.parish:nth-child(even) .cong-list li { background: var(--cream); }
.cong-list li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ridge); }
.cong-list li:hover { transform: translateY(-2px); border-color: var(--ridge); box-shadow: 0 8px 18px -12px rgba(36, 91, 67, .6); }
.cong-list li.has-link { padding: 0; border-color: var(--ridge); }
.cong-list li.has-link a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 30px; color: var(--forest); text-decoration: none; }
.cong-list li.has-link .i { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.cong-list li.has-link:hover { background: var(--forest); border-color: var(--forest); }
.cong-list li.has-link:hover a { color: #fff; }
.cong-list li.has-link:hover::before { background: var(--gold); }
.cong-list li.has-link:hover .i { transform: translate(2px, -2px); }
.cong-list li.has-link::before { z-index: 1; }
.cong-list li.is-match { background: var(--forest) !important; border-color: var(--forest); color: #fff; animation: chip-pulse 1.6s .6s var(--ease) 2; }
.cong-list li.is-match a { color: #fff; }
.cong-list li.is-match::before { background: var(--gold); }
@keyframes chip-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(36, 91, 67, .5); } 50% { box-shadow: 0 0 0 10px rgba(36, 91, 67, 0); } }
.parish.is-arrived .parish-body h2 { width: fit-content; background: linear-gradient(transparent 62%, rgba(215, 166, 64, .35) 62%) no-repeat 0 0 / 0% 100%; animation: highlight 1.2s .5s var(--ease-out) forwards; }
@keyframes highlight { to { background-size: 100% 100%; } }

.parish-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.fact { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact dt { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); }
.fact dt .i { width: 14px; height: 14px; }
.fact dd { margin-top: 6px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.fact dd a { color: var(--pcea-blue); text-underline-offset: 3px; }
.fact dd .muted { font-weight: 400; font-size: 13.5px; }

.parish-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.parish-story { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.story-stat { padding: 20px; border-radius: 12px; background: var(--forest); color: #fff; }
.stat-num { display: block; font: 400 48px/1 var(--serif); }
.stat-label { display: block; margin-top: 8px; font-size: 13px; opacity: .85; }
.story-quote { margin: 0; padding: 20px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font: italic 19px/1.3 var(--serif); color: var(--ink); }
.story-quote span { display: block; margin-bottom: 8px; font: 700 10.5px/1 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); }
.story-ministries { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--cream-deep); font-size: 12.5px; font-weight: 600; color: var(--forest); }
.story-ministries .muted { font-size: 14px; }

.parish-pending { margin-top: 32px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 12px; font-size: 13.5px; color: var(--ink-soft); }
.parish-pending ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.parish-pending li { display: flex; align-items: center; gap: 6px; }
.parish-pending li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--ink-soft); border-radius: 3px; opacity: .6; }

.cta-band { position: relative; margin-top: 88px; }
.cta-inner { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 64px 32px 80px; border-radius: 18px; background: var(--pcea-blue); color: #fff; }
.cta-inner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; opacity: .14; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 140' preserveAspectRatio='none'%3E%3Cpath d='M0 96 C55 96 60 34 100 34 C140 34 145 102 200 102 C255 102 260 20 300 20 C340 20 345 92 400 92 C455 92 460 42 500 42 C540 42 545 106 600 106 C655 106 660 16 700 16 C740 16 745 98 800 98 C855 98 860 36 900 36 C940 36 945 94 1000 94 C1055 94 1060 24 1100 24 C1140 24 1145 104 1200 104 C1255 104 1260 40 1300 40 C1340 40 1345 100 1400 100 V140 H0z' fill='white'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.cta-inner h2 { font-size: clamp(34px, 4vw, 52px); }
.cta-inner p { opacity: .85; }
.cta-inner .parish-actions { justify-content: center; margin-top: 16px; position: relative; z-index: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .hero-inner { padding-block: 24px 112px; }
  .eyebrow-stack { margin-bottom: 14px; line-height: 1.7; }
  .hero h1 { font-size: clamp(52px, min(6.4vw, 11.5vh), 92px); }
  .hero-lead { margin: 16px 0 22px; }
  .finder-wrap { bottom: 22px; }
  .finder { padding-block: 12px; }
  .hero-verse { top: 28px; }
}

@media (max-width: 1180px) {
  .site-nav { gap: 18px; }
  .site-nav ul { gap: 16px; }
  .site-nav ul a { font-size: 14px; }
}

@media (max-width: 1100px) {
  .welcome-inner { grid-template-columns: 200px 1fr; }
  .hero-copy { max-width: 400px; }
  .welcome-quote { display: none; }
  .news-inner { grid-template-columns: 1fr 1fr; }
  .stories { grid-column: 1 / -1; }
  .feature-card { aspect-ratio: auto; min-height: 320px; }
  .ministries-inner { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-cards { padding-top: 0; grid-template-columns: 1fr 1fr; }
  .stop-name { font-size: 18px; max-width: 110px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; background: var(--cloud); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background .3s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--cloud); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav ul a::after { display: none; }
  .nav-cta { justify-content: center; }
  .is-scrolled .header-inner { min-height: var(--header-h); }
  .header-compact .jumpbar { top: calc(var(--header-h) - 1px); }
}

@media (max-width: 960px) {
  /* Hero stacks: image on top, finder overlapping its bottom edge */
  .hero, .page-hero { display: block; min-height: 0; }
  .hero-media, .page-hero-media { position: relative; width: 100%; height: 420px; -webkit-mask: none; mask: none; clip-path: var(--brush-bottom); }
  .page-hero-media { height: 300px; }
  .hero-verse { top: 26px; }
  .hero-verse p { font-size: 22px; }
  .finder-wrap { top: 330px; bottom: auto; }
  .finder { grid-template-columns: auto 1fr auto; gap: 10px; width: 100%; padding: 10px 10px 10px 14px; }
  .finder-label { display: none; }
  .finder-pin { width: 24px; height: 24px; }
  .finder .btn { padding: 14px 18px; }
  .hero-inner { padding-block: 56px 40px; }
  .hero-copy { max-width: 560px; }
  .page-hero-inner { padding-block: 28px 16px; }


  .ridge-map { height: auto; }
  .ridge-line { display: none; }
  .ridge-stops { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
  .ridge-stops li { position: static; width: auto; height: auto; }
  .ridge-stops a { position: static; transform: none; flex-direction: row; gap: 12px; padding: 14px 16px; background: var(--cloud); border-radius: var(--radius); border: 1px solid var(--line); }
  .stop-name { order: 2; margin: 0; font-size: 20px; text-align: left; max-width: none; }
  .stop-num { position: static; transform: none; order: 1; }
  .stop-dot { order: 0; width: 12px; height: 12px; border-width: 2px; }

  .ministry-list { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-motto { justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 20px; }

  .parish { padding: 56px 0; }
  .parish-inner { grid-template-columns: 1fr; gap: 28px; }
  .parish:nth-child(even) .parish-inner { grid-template-columns: 1fr; }
  .parish:nth-child(even) .parish-media { order: 0; }
  .parish-media { position: relative; top: 0; max-width: 360px; }
  .parish-portrait, .parish-placeholder { aspect-ratio: 5 / 4; }
  .ph-mono { width: 90px; height: 90px; font-size: 36px; margin-bottom: 18%; }
}

@media (max-width: 640px) {
  .brand-emblem { width: 30px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 10.5px; }
  .brand-ridge { left: 40px; }

  .hero-media { height: 360px; }
  .finder-wrap { top: 276px; }
  .hero h1, .page-hero h1 { font-size: 54px; }
  .hero-verse p { font-size: 20px; }

  .welcome { padding: 48px 0; }
  .welcome-inner { grid-template-columns: 1fr; gap: 28px; }
  .welcome-photo { width: 170px; }
  .section-head-split { grid-template-columns: 1fr; }
  .ministry-list { grid-template-columns: repeat(2, 1fr); }
  .ministry-list a { flex-direction: row; justify-content: flex-start; text-align: left; background: var(--cloud); }
  .ministry-list .i-lg { width: 28px; height: 28px; }
  .news-inner { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .events { border-left: 0; padding-left: 0; }
  .about { padding: 64px 0 48px; }
  .about-cards { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .leader h3 { font-size: 19px; }
  .values-list li { font-size: 24px; }
  .footer-inner, .footer-meta { grid-template-columns: 1fr; flex-direction: column; }
  .proto-note { left: 12px; right: 12px; font-size: 11px; }
  .proto-note span:nth-child(2) { flex: 1; }

  .hero-stats { gap: 24px; }
  .hero-stats dd { font-size: 42px; }
  .parish-facts { grid-template-columns: 1fr; }
  .parish-story { grid-template-columns: 1fr; }
  .parish-actions .btn { flex: 1 1 auto; }
  .cta-inner { padding: 48px 20px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-anim], .js [data-reveal], .js .ridge-map .ridge-stops li { opacity: 1 !important; transform: none !important; }
  .js .ridge-map .ridge-line path, .brand-ridge { stroke-dashoffset: 0 !important; }
}
