/* ==========================================================================
   Grace Missionary Baptist Church — site styles
   ========================================================================== */

:root {
  /* Brand */
  --wine-950: #1f000c;
  --wine-900: #2e0513;
  --wine-800: #45001b;
  --wine-700: #5a1a2e;
  --wine-600: #6a2b3e;
  --wine-400: #91374f;
  --wine-200: #d9b3bd;
  --gold: #d4a857;
  --gold-soft: #e9cf98;

  /* Neutrals */
  --cream: #fbf7f1;
  --sand: #f3ebe0;
  --stone: #e6dccf;
  --ink: #1e1417;
  --ink-soft: #5b4d51;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 84px;
  --shadow: 0 20px 50px -20px rgba(46, 5, 19, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(46, 5, 19, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--wine-400); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--wine-950);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--wine { background: var(--wine-800); color: var(--cream); }
.section--dark { background: var(--wine-950); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wine-400); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--wine .eyebrow,
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.section--wine .lead, .section--dark .lead { color: rgba(251, 247, 241, 0.78); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--wine-800); --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--wine-950); }
.btn--gold:hover { --btn-bg: var(--gold-soft); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--wine-800); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--wine-800); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--wine .link-arrow, .section--dark .link-arrow { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s, height 0.35s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(46, 5, 19, 0.08);
  --header-h: 72px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; transition: height 0.35s var(--ease); }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand .logo-light,
.site-header.is-solid .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark,
.site-header.is-solid .brand .logo-dark { display: block; }
.site-header.is-scrolled .brand img { height: 46px; }
@media (max-width: 520px) { .brand img { height: 46px; } .site-header.is-scrolled .brand img { height: 40px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: color 0.25s, background 0.25s;
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.1); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%; transform: translateX(-50%);
}
.site-header.is-scrolled .nav a:not(.btn),
.site-header.is-solid .nav a:not(.btn) { color: var(--ink); }
.site-header.is-scrolled .nav a:not(.btn):hover,
.site-header.is-solid .nav a:not(.btn):hover { background: rgba(69, 0, 27, 0.07); }
.nav .btn { margin-left: 10px; }
.nav a.btn { color: var(--btn-fg); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.12); cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle { background: rgba(69, 0, 27, 0.08); }
.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span { background: var(--wine-800); }
.nav-open .nav-toggle { background: rgba(255, 255, 255, 0.12) !important; }
.nav-open .nav-toggle span { background: var(--cream) !important; }
.nav-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 100px var(--gutter) 40px;
    background: var(--wine-950);
    background-image: radial-gradient(circle at 85% 10%, rgba(145, 55, 79, 0.55), transparent 55%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .brand { position: relative; z-index: 120; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .brand .logo-light { display: block !important; }
  .nav-open .brand .logo-dark { display: none !important; }
  .nav a:not(.btn), .site-header.is-scrolled .nav a:not(.btn), .site-header.is-solid .nav a:not(.btn) {
    color: var(--cream); font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 400; padding: 6px 0; background: none !important;
  }
  .nav a[aria-current="page"] { color: var(--gold) !important; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 24px 0 0; font-family: var(--font-body); font-size: 1rem; padding: 15px 28px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--wine-950); color: var(--cream); overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(145, 55, 79, 0.55), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(212, 168, 87, 0.18), transparent 50%),
    linear-gradient(160deg, var(--wine-800), var(--wine-950) 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.12; mix-blend-mode: overlay;
}
.hero__cross {
  position: absolute; z-index: -1; right: -8%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1;
  transform: translateY(-50%); opacity: 0.07; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .script {
  display: block; font-style: italic; font-weight: 400; color: var(--gold);
  font-size: 1.12em; line-height: 0.95;
}
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(251, 247, 241, 0.8); max-width: 54ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.times { display: flex; flex-wrap: wrap; gap: 12px; }
.time-chip {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.time-chip__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 168, 87, 0.16); color: var(--gold); flex: none;
}
.time-chip__icon svg { width: 20px; height: 20px; }
.time-chip strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.time-chip span { font-size: 0.82rem; color: rgba(251, 247, 241, 0.65); }

.hero__media { position: relative; aspect-ratio: 4 / 5; max-width: 520px; justify-self: end; width: 100%; }
.hero__photo {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { inset: 0 0 18% 12%; }
.hero__photo--main img { filter: saturate(1.15) contrast(1.05); }
.hero__photo--small { width: 52%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid var(--wine-950); }
.hero__badge {
  position: absolute; right: -6%; bottom: 4%; width: 168px; height: 168px; border-radius: 50%;
  background: var(--gold); color: var(--wine-950); display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge img { width: 58px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(251, 247, 241, 0.35); border-radius: 20px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 4px; animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 440px; margin-top: 8px; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .hero__badge { width: 132px; height: 132px; right: -2%; }
  .hero__badge img { width: 46px; }
  .time-chip { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold); color: var(--wine-950); overflow: hidden; padding: 18px 0;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic;
  white-space: nowrap; user-select: none;
}
.marquee__track { display: inline-flex; gap: 40px; animation: marquee 38s linear infinite; padding-right: 40px; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--wine-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Welcome ---------- */
.welcome { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.welcome__portrait { position: relative; max-width: 480px; }
.welcome__portrait::before {
  content: ""; position: absolute; inset: 12% 0 0 0; border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  background: linear-gradient(170deg, var(--wine-400), var(--wine-800));
}
.welcome__portrait img { position: relative; width: 100%; filter: grayscale(1) contrast(1.08); mix-blend-mode: normal; }
.welcome__portrait figcaption {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  background: var(--cream); padding: 14px 24px; border-radius: 16px; box-shadow: var(--shadow-sm);
  text-align: center; white-space: nowrap;
}
.welcome__portrait figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.welcome__portrait figcaption span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-400); font-weight: 700; }
.signature { width: 180px; margin: 8px 0 28px; opacity: 0.85; }
/* Finished portrait with its own arch and caption card built in */
.welcome__portrait--photo::before { display: none; }
.welcome__portrait--photo img { filter: none; }
@media (max-width: 860px) { .welcome__portrait--photo { margin-bottom: 8px; } }
/* Official studio portrait (own background): framed photo with the site's caption card */
.welcome__portrait--official::before { display: none; }
.welcome__portrait--official img { filter: none; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.welcome__portrait--official figcaption { bottom: -26px; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__portrait { margin: 0 auto 30px; width: 86%; }
}

/* ---------- Theme banner ---------- */
.theme-banner { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.theme-banner__bg { position: absolute; inset: 0; z-index: -1; }
.theme-banner__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(0.3); }
.theme-banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(69, 0, 27, 0.55), var(--wine-800) 78%);
}
.theme-year {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 15rem); line-height: 0.8; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 168, 87, 0.55); letter-spacing: -0.04em;
  margin-bottom: -0.18em;
}
.theme-title { font-size: clamp(2.6rem, 7vw, 5.8rem); margin-bottom: 0.3em; }
.theme-title em { color: var(--gold); font-weight: 400; }
.theme-verse { max-width: 720px; margin: 0 auto 10px; font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-style: italic; line-height: 1.5; color: rgba(251, 247, 241, 0.88); }
.theme-ref { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(69, 0, 27, 0.07); box-shadow: 0 1px 2px rgba(46, 5, 19, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, var(--wine-600), var(--wine-800)); color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card__meta { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--wine-800); line-height: 1; margin-bottom: 10px; }
.card__meta small { font-size: 0.5em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-400); margin-left: 4px; }
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine-400); margin-bottom: 14px;
}
.card--link { text-decoration: none; display: flex; flex-direction: column; }
.card--link .link-arrow { margin-top: auto; padding-top: 22px; border: 0; align-self: flex-start; }
.card--link p { margin-bottom: 0; }
.card--feature { background: var(--wine-800); color: var(--cream); border: 0; }
.card--feature .card__meta { color: var(--gold); }
.card--feature p { color: rgba(251, 247, 241, 0.75); }
.card--feature .card__tag { color: var(--gold-soft); }
.card--feature .card__icon { background: rgba(212, 168, 87, 0.15); }

.zoom-box {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.18);
  display: grid; gap: 8px; font-size: 0.9rem;
}
.zoom-box div { display: flex; justify-content: space-between; align-items: center; gap: 10px; white-space: nowrap; }
.zoom-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; color: var(--cream); letter-spacing: 0.04em; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--gold-soft);
  border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.copy-btn.is-copied { background: var(--gold); color: var(--wine-950); border-color: var(--gold); }

/* ---------- Love in action (outreach) ---------- */
.outreach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.outreach__mosaic {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 12px;
  aspect-ratio: 5 / 4; text-decoration: none;
}
.outreach__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease); }
.outreach__mosaic img:nth-child(1) { grid-row: 1 / 4; }
.outreach__mosaic img:nth-child(2) { grid-row: 1 / 2; }
.outreach__mosaic img:nth-child(3) { grid-row: 2 / 3; }
.outreach__mosaic img:nth-child(4) { grid-row: 3 / 4; }
.outreach__mosaic:hover img { transform: scale(1.02); }
.outreach__count {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(31, 0, 12, 0.78); color: var(--cream); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 860px) { .outreach { grid-template-columns: 1fr; } .outreach__mosaic { aspect-ratio: 1 / 1; } }

/* ---------- Gallery page ---------- */
.album-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.album-head h2 { margin: 0; }
.album-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 70ch; }
.gallery-grid { columns: 4 240px; column-gap: 14px; }
.gallery-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--sand); cursor: zoom-in;
  border-radius: 14px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: auto; transition: transform 0.6s var(--ease), opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 260; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 0, 5, 0.95); color: var(--cream); }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; font-size: 0.9rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox button { border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.12); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__bottom { text-align: center; padding: 12px 16px 18px; font-size: 0.85rem; color: rgba(251, 247, 241, 0.7); }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.45); }
  .lightbox__prev { left: 14px; }
  .lightbox__next { right: 14px; }
}

/* ---------- BEJ4 Ministries page ---------- */
/* White hero so the logo (white background) sits naturally; the header starts solid over it. */
body:has(.bej4-hero) .site-header:not(.is-scrolled) { background: rgba(31, 0, 12, 0.96); }
.bej4-hero { background: #fff; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(56px, 8vw, 96px); text-align: center; }
.bej4-hero__inner { max-width: 900px; }
.bej4-hero__logo { width: min(620px, 100%); margin: 0 auto clamp(16px, 3vw, 28px); }
.bej4-hero .eyebrow { justify-content: center; color: #8a1225; }
.bej4-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); color: var(--ink); }
.bej4-hero h1 em { color: #b8892e; font-weight: 400; }
.bej4-hero .lead { margin: 0 auto; }
.bej4-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.bej4-book { background: radial-gradient(ellipse at 20% 20%, #5a0a18, var(--wine-950) 70%); color: var(--cream); overflow: hidden; }
.bej4-book__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.bej4-book__cover img { width: min(380px, 100%); margin: 0 auto; border-radius: 6px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(-2deg); }
.bej4-book h2 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--cream); margin-bottom: 0.2em; }
.bej4-book h2 em { color: #e3a86a; font-weight: 400; }
.bej4-book__subtitle { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic; color: rgba(251, 247, 241, 0.9); margin-bottom: 6px; }
.bej4-book__author { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.bej4-book__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.bej4-price { display: inline-flex; align-items: baseline; gap: 6px; font-size: 1rem; color: rgba(251, 247, 241, 0.8); }
.bej4-price strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--cream); line-height: 1; }
.bej4-book__note { margin: 18px 0 10px; font-size: 0.95rem; color: rgba(251, 247, 241, 0.72); max-width: 52ch; }
.bej4-bulk, .bej4-service__btn { background: none; border: 0; border-bottom: 2px solid var(--gold); padding: 0 0 2px; cursor: pointer; font: inherit; font-weight: 700; }
.bej4-book .bej4-bulk { color: var(--cream); }
.bej4-flyer { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 12px 18px 12px 12px; max-width: 440px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--cream); text-decoration: none; transition: background 0.25s; }
.bej4-flyer:hover { background: rgba(255, 255, 255, 0.11); }
.bej4-flyer img { width: 64px; height: auto; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); flex: none; }
.bej4-flyer span { font-size: 0.9rem; color: rgba(251, 247, 241, 0.75); line-height: 1.45; }
.bej4-flyer strong { display: block; color: var(--gold-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .bej4-book__inner { grid-template-columns: 1fr; text-align: left; } .bej4-book__cover img { width: min(300px, 80%); } }

.bej4-about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.bej4-about__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.bej4-creds { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.bej4-creds li { position: relative; padding-left: 28px; color: var(--ink); }
.bej4-creds li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 168, 87, 0.2); }
@media (max-width: 860px) { .bej4-about { grid-template-columns: 1fr; } .bej4-about__photo { max-width: 420px; } }

.bej4-service { display: flex; flex-direction: column; }
.bej4-service p { margin-bottom: 18px; }
.bej4-service__btn { margin-top: auto; align-self: flex-start; color: var(--wine-800); display: inline-flex; align-items: center; gap: 8px; }
.bej4-service__btn svg { width: 16px; height: 16px; }
.bej4-callout {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); border: 1px solid rgba(69, 0, 27, 0.08); transition: transform 0.45s var(--ease);
}
.bej4-callout:hover { transform: translateY(-4px); }
.bej4-callout img { width: 100%; }
.bej4-callout h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.3em; }
.bej4-callout p { color: var(--ink-soft); }
@media (max-width: 720px) { .bej4-callout { grid-template-columns: 1fr; } .bej4-callout img { max-width: 260px; } }
/* Form pieces toggled with the hidden attribute (their display rules would otherwise override it) */
.field[hidden], .fields[hidden], .form-foot[hidden] { display: none; }
.bej4-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { background: #fbe9e7; color: #8a1c12; }
.form-status.is-success { background: #eef6ee; color: #1e5b27; }

/* ---------- Latest news (filled in by live-content.js) ---------- */
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; }
.news-head h2 { margin-bottom: 0; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.news-card__img { aspect-ratio: 16 / 9; background: var(--wine-900); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: clamp(20px, 2.4vw, 28px); }
.news-card h3 { margin-bottom: 0.35em; }

/* ---------- Sermon ---------- */
.sermon { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--wine-950); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; opacity: 0.85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--wine-950); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.6); animation: pulse 2.4s infinite;
  transition: transform 0.35s var(--ease);
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play svg { width: 30px; height: 30px; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.55); } 70% { box-shadow: 0 0 0 26px rgba(212, 168, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0); } }
.video__label {
  position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 0, 12, 0.7); backdrop-filter: blur(6px); color: var(--cream);
  padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.video__label i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; }
@media (max-width: 900px) { .sermon { grid-template-columns: 1fr; } }

/* ---------- Scripture ---------- */
.scripture { text-align: center; max-width: 900px; margin: 0 auto; }
.scripture__mark { font-family: var(--font-display); font-size: 7rem; line-height: 0.5; color: var(--gold); height: 44px; }
.scripture blockquote {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: -0.01em;
}
.scripture cite { font-style: normal; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine-400); }

/* ---------- Set Your House in Order (Homegoing360) ---------- */
.house {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--wine-900), var(--wine-700)); color: var(--cream);
  box-shadow: var(--shadow);
}
.house__top { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }
.house__steps {
  display: grid; grid-template-columns: 1fr 310px; gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.house__step-label { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; }
.house__step-label span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold); color: var(--wine-950); font-size: 0.9rem;
}
.house__hint { margin: 0 0 16px; color: rgba(251, 247, 241, 0.7); font-size: 0.93rem; }
.house__step--go { display: flex; flex-direction: column; align-items: flex-start; }
.house__step--go .house__hint { margin: 12px 0 0; }
.house__step--go.is-ready .house__btn { animation: house-pulse 2s infinite; }
@keyframes house-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.6); } 70% { box-shadow: 0 0 0 16px rgba(212, 168, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0); } }
.house__videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
/* Buttons center their content vertically by default; pin the thumbnail to the top so all three line up */
.hvideo {
  display: flex; flex-direction: column; justify-content: flex-start; align-self: start;
  width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.hvideo__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--wine-950);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}
.hvideo__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; opacity: 0.9; }
.hvideo:hover .hvideo__thumb img { transform: scale(1.05); opacity: 1; }
.hvideo__play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(212, 168, 87, 0.95); color: var(--wine-950); display: grid; place-items: center; transition: transform 0.3s var(--ease);
}
.hvideo:hover .hvideo__play { transform: scale(1.1); }
.hvideo__play svg { width: 18px; height: 18px; margin-left: 3px; }
.hvideo__done {
  position: absolute; left: 8px; top: 8px; display: none; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: rgba(31, 0, 12, 0.8); color: var(--gold-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
}
.hvideo.is-watched .hvideo__done { display: inline-flex; }
.hvideo__title { display: block; margin-top: 10px; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.house__give {
  display: flex; gap: 12px; align-items: flex-start; margin: clamp(24px, 3vw, 32px) 0 0; padding: 14px 18px; border-radius: 14px;
  background: rgba(212, 168, 87, 0.12); border: 1px solid rgba(212, 168, 87, 0.28); font-size: 0.95rem; color: rgba(251, 247, 241, 0.88);
}
.house__give svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; }
.house__give strong { color: var(--gold-soft); }

/* Video lightbox */
.vmodal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: rgba(15, 0, 6, 0.86); backdrop-filter: blur(4px); }
.vmodal[hidden] { display: none; }
.vmodal__box { width: min(960px, 100%); }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--cream); }
.vmodal__bar strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
.vmodal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center;
}
.vmodal__close svg { width: 22px; height: 22px; }
.house::before {
  content: ""; position: absolute; z-index: -1; left: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.28), transparent 70%);
}
.house__icon {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(212, 168, 87, 0.14); color: var(--gold);
}
.house__icon svg { width: 36px; height: 36px; }
.house__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.3em; }
.house__text p { margin: 0; max-width: 60ch; color: rgba(251, 247, 241, 0.82); font-size: 1.05rem; }
@media (max-width: 960px) {
  .house__steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .house__top { flex-direction: column; align-items: flex-start; }
  .house__videos { grid-template-columns: 1fr; gap: 10px; }
  .hvideo { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
  .hvideo__title { margin-top: 0; }
  .hvideo__play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .hvideo__play svg { width: 14px; height: 14px; }
  .house__step--go .house__btn { width: 100%; }
}

/* ---------- Get the App page ---------- */
.install-guide { display: flex; flex-direction: column; }
.install-guide.is-mine { outline: 3px solid var(--gold); outline-offset: -3px; }
.install-guide__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.install-guide__head .card__icon { margin-bottom: 0; flex: none; }
.install-guide__head h3 { margin: 0; }
.install-guide__head .card__tag { margin-bottom: 2px; }
.install-guide__mine {
  display: none; margin-left: auto; align-self: flex-start; padding: 5px 12px; border-radius: 999px;
  background: var(--gold); color: var(--wine-950); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.install-guide.is-mine .install-guide__mine { display: inline-block; }
.install-steps { counter-reset: step; list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.install-steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--wine-800); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.install-steps a { color: var(--wine-800); font-weight: 700; }
.inline-ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: var(--wine-600); }
.install-note { margin: auto 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 0.9rem; color: var(--ink-soft); }
.install-done { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; font-size: 1.1rem; }
.install-done img { display: inline-block; vertical-align: -8px; border-radius: 7px; margin: 0 4px; }
.qr-block { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 960px; }
.qr-card { background: var(--white); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.qr-card img { width: 240px; height: 240px; }
@media (max-width: 720px) { .qr-block { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr-block .eyebrow { justify-content: center; } }

/* ---------- Give / App CTA ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
}
.cta-panel h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-panel p { max-width: 42ch; }
.cta-panel--give { background: var(--wine-800); color: var(--cream); }
.cta-panel--give p { color: rgba(251, 247, 241, 0.78); }
.cta-panel--give::before {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.35), transparent 70%);
}
.cta-panel--app { background: var(--gold); color: var(--wine-950); }
.cta-panel--app::before {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 240px; height: 240px;
  background: url("../images/shield.png") center / contain no-repeat; opacity: 0.16; transform: rotate(12deg);
}
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--wine-950); color: var(--cream); text-decoration: none; transition: transform 0.3s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn--outline { background: transparent; color: var(--wine-950); box-shadow: inset 0 0 0 2px var(--wine-950); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } .cta-panel { min-height: 300px; } }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; justify-content: center; }
.info-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--sand); color: var(--wine-800);
}
.section--sand .info-list .ico { background: var(--white); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--wine-400); }
.info-list a, .info-list span { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { color: var(--wine-400); }
.map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; box-shadow: var(--shadow);
  border: 6px solid var(--white); background: var(--stone);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.25) contrast(1.05); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream);
  padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(70px, 9vw, 120px);
  background: var(--wine-950);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--wine-950) 20%, rgba(46, 5, 19, 0.6) 65%, rgba(46, 5, 19, 0.3));
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); max-width: 14ch; }
.page-hero h1 em { color: var(--gold); font-weight: 400; }
.page-hero .lead { color: rgba(251, 247, 241, 0.8); }
.breadcrumbs { font-size: 0.85rem; color: rgba(251, 247, 241, 0.6); margin-bottom: 22px; }
.breadcrumbs a { color: rgba(251, 247, 241, 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- About: story + timeline ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story__img { position: relative; }
.story__img img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.story__stat {
  position: absolute; right: -18px; bottom: -28px; background: var(--gold); color: var(--wine-950);
  padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.story__stat strong { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 600; }
.story__stat span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__stat { right: 12px; } }

.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--gold), rgba(212, 168, 87, 0.15));
}
.tl-item { position: relative; width: 50%; padding: 0 48px 56px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 56px 48px; }
.tl-item::before {
  content: ""; position: absolute; top: 10px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wine-950); border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(212, 168, 87, 0.15);
}
.tl-item:nth-child(even)::before { right: auto; left: -9px; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-year { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1; margin-bottom: 6px; }
.tl-item h3 { color: var(--cream); margin-bottom: 0.3em; }
.tl-item p { color: rgba(251, 247, 241, 0.72); margin: 0; }
@media (max-width: 720px) {
  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 44px; text-align: left; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
}

.lineage .card { text-align: center; }
.lineage .card__num {
  font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--wine-200); margin-bottom: 8px; font-weight: 600;
}
.lineage .card--feature .card__num { color: var(--gold); }

.vision {
  text-align: center; font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.02em;
}
.vision em { color: var(--gold); }

/* ---------- Pastor page ---------- */
.pastor-hero { padding-bottom: 0; }
.pastor-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.pastor-hero__grid > div:first-child { padding-bottom: clamp(70px, 9vw, 120px); }
.pastor-hero__img { position: relative; align-self: end; }
.pastor-hero__img::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 80%;
  border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 30%, var(--wine-400), var(--wine-700) 70%);
}
.pastor-hero__img img { position: relative; width: 100%; max-width: 520px; margin: 0 auto; filter: grayscale(1) contrast(1.1); }
/* Framed color portrait (cream background) on the dark hero */
.pastor-hero:has(.pastor-hero__img--photo) { padding-bottom: clamp(56px, 8vw, 110px); }
.pastor-hero:has(.pastor-hero__img--photo) .pastor-hero__grid { align-items: center; }
.pastor-hero:has(.pastor-hero__img--photo) .pastor-hero__grid > div:first-child { padding-bottom: 0; }
.pastor-hero__img--photo { align-self: center; }
.pastor-hero__img--photo::before { display: none; }
.pastor-hero__img--photo img {
  filter: none; max-width: 480px; border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); border: 6px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 860px) {
  .pastor-hero__grid { grid-template-columns: 1fr; }
  .pastor-hero__grid > div:first-child { padding-bottom: 0; }
  .pastor-hero__img { max-width: 400px; margin: 0 auto; width: 90%; }
}

.bio { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.bio__aside { position: sticky; top: 110px; }
.bio__body p { font-size: 1.08rem; }
.bio__body p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6rem; line-height: 0.85; padding: 6px 12px 0 0; color: var(--wine-800);
}
.bio__body h3 { margin-top: 1.6em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: flex; gap: 14px; align-items: center; background: var(--white); padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(69, 0, 27, 0.07);
}
.facts b { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--wine-800); min-width: 58px; }
.facts span { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.4; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: var(--sand); font-size: 0.9rem; font-weight: 600; color: var(--wine-800); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__aside { position: static; } }

/* ---------- Events ---------- */
.weekly { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .weekly { grid-template-columns: 1fr; } }
.event-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(69, 0, 27, 0.07); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card + .event-card { margin-top: 28px; }
.event-card__img { position: relative; background: var(--wine-950); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.event-card__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.event-date { display: inline-flex; align-items: stretch; gap: 0; margin-bottom: 18px; border-radius: 14px; overflow: hidden; align-self: flex-start; border: 1px solid rgba(69, 0, 27, 0.12); }
.event-date b { background: var(--wine-800); color: var(--cream); padding: 8px 14px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1; display: grid; place-items: center; }
.event-date span { padding: 8px 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wine-800); display: grid; place-items: center; line-height: 1.25; }
.event-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.event-card p { color: var(--ink-soft); }
.event-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.event-meta .event-date { margin-bottom: 0; }
.badge-past {
  background: var(--sand); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 860px) { .event-card { grid-template-columns: 1fr; } }

/* ---------- Calendar subscribe ---------- */
.cal-sub {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: -12px 0 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--white);
  border: 1px solid rgba(69, 0, 27, 0.08);
}
.cal-sub__text { display: grid; gap: 2px; max-width: 56ch; }
.cal-sub__text span { color: var(--ink-soft); font-size: 0.93rem; }
.cal-sub__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline-wine { --btn-bg: transparent; --btn-fg: var(--wine-800); border-color: var(--wine-800); }
.btn--outline-wine:hover { --btn-bg: rgba(69, 0, 27, 0.05); }

/* ---------- Connect form ---------- */
.connect { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .connect { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; border: 0; padding: 0; }
.reason-grid legend { font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
@media (max-width: 620px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
.reason { position: relative; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason label {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--stone); font-weight: 700; font-size: 0.92rem; line-height: 1.25;
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease);
}
.reason label svg { width: 22px; height: 22px; color: var(--wine-400); }
.reason label:hover { border-color: var(--wine-200); }
.reason input:checked + label { border-color: var(--wine-800); background: rgba(69, 0, 27, 0.04); }
.reason input:checked + label svg { color: var(--wine-800); }
.reason input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--stone); background: var(--cream);
  transition: border-color 0.2s, background 0.2s; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-600); background: var(--white); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345001b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot small { color: var(--ink-soft); max-width: 40ch; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--sand); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }

.side-card { background: var(--wine-800); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.side-card h3 { color: var(--cream); }
.side-card .info-list .ico { background: rgba(255, 255, 255, 0.08); color: var(--gold); }
.side-card .info-list small { color: var(--gold-soft); }
.side-card .info-list a:hover { color: var(--gold); }
.side-card + .side-card { margin-top: 20px; }
.side-card--light { background: var(--white); color: var(--ink); }
.side-card--light h3 { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-950); color: rgba(251, 247, 241, 0.72); padding: clamp(64px, 8vw, 100px) 0 32px; position: relative; overflow: hidden; }
.footer-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta h2 { color: var(--cream); margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }
.footer-cta h2 em { color: var(--gold); font-weight: 400; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); color: var(--cream); transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--wine-950); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: rgba(251, 247, 241, 0.5);
}
.footer-watermark {
  position: absolute; right: -2%; bottom: -8%; font-family: var(--font-display); font-style: italic;
  font-size: clamp(8rem, 24vw, 22rem); line-height: 1; color: rgba(255, 255, 255, 0.025); pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Share toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px);
  background: var(--wine-950); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

.hero .rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero .rise-1 { animation-delay: 0.1s; }
.hero .rise-2 { animation-delay: 0.22s; }
.hero .rise-3 { animation-delay: 0.34s; }
.hero .rise-4 { animation-delay: 0.46s; }
.hero .rise-5 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .hero .rise { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-lg { margin-top: clamp(36px, 5vw, 56px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Consecration story (/consecration) ---------- */
.consecration-story { --purple: #8e2a7b; --purple-soft: #c77bb6; }
.story-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(142, 42, 123, 0.45), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(212, 168, 87, 0.14), transparent 70%),
    var(--wine-950);
}
.story-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.story-hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); max-width: 10ch; }
.story-hero h1 em { color: var(--gold); font-weight: 400; }
.story-hero .eyebrow { color: var(--gold); }
.story-hero .lead { color: rgba(251, 247, 241, 0.82); }
.story-hero__ctas, .story-close__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.story-close__ctas { justify-content: center; }
.story-hero__photo { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.story-hero__photo > img:first-child {
  width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; object-position: center 22%;
  border-radius: 220px 220px 24px 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  outline: 1px solid rgba(212, 168, 87, 0.55); outline-offset: 12px;
}
.story-hero__seal {
  position: absolute; left: -46px; bottom: 36px; width: clamp(96px, 12vw, 140px); height: auto;
  border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 38%;
  border: 4px solid var(--wine-950); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 860px) {
  .story-hero__inner { grid-template-columns: 1fr; }
  .story-hero__photo { justify-self: center; width: min(82%, 380px); }
  .story-hero__seal { left: -18px; bottom: 20px; }
}

.story-index { position: sticky; top: 72px; z-index: 40; background: rgba(251, 247, 241, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--stone); }
.story-index .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.story-index .container::-webkit-scrollbar { display: none; }
.story-index a { flex: none; text-decoration: none; font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; transition: background 0.25s, color 0.25s; }
.story-index a b { font-family: var(--font-display); font-weight: 600; color: var(--purple); margin-right: 4px; }
.story-index a:hover, .story-index a.is-active { background: var(--wine-800); color: var(--cream); }
.story-index a:hover b, .story-index a.is-active b { color: var(--gold-soft); }

.chapter { padding: clamp(64px, 9vw, 130px) 0; scroll-margin-top: 110px; }
.chapter--sand { background: var(--sand); }
.chapter--dark { background: var(--wine-950); color: var(--cream); }
.chapter--dark .lead, .chapter--dark p { color: rgba(251, 247, 241, 0.82); }
.chapter--dark .eyebrow { color: var(--gold); }
.chapter--dark .accent { color: var(--gold); }
.chapter__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chapter--flip .chapter__inner { grid-template-columns: 1.2fr 0.8fr; }
.chapter--flip .chapter__text { order: 2; }
.chapter__text { position: relative; }
.chapter__text p:not(.eyebrow) { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; }
.chapter--dark .chapter__text p:not(.eyebrow) { color: rgba(251, 247, 241, 0.82); }
.chapter__num {
  display: block; font-family: var(--font-display); font-weight: 600; line-height: 0.8;
  font-size: clamp(4.5rem, 10vw, 8.5rem); letter-spacing: -0.03em; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--purple-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chapter__verse { margin: 26px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--wine-800); }
.chapter__verse cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine-400); }
.chapter__media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.chapter__media img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.chapter__media img:not(:first-child) { aspect-ratio: 4 / 3.4; }
.chapter__media img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chapter__media img:focus-visible, .story-hero__photo img:focus-visible, .seal-band__img:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (min-width: 861px) {
  /* Portrait lead photos stand tall beside the two smaller ones */
  .chapter__media:has(> img:first-child[height="1600"]) { grid-template-columns: 1.15fr 0.85fr; }
  .chapter__media:has(> img:first-child[height="1600"]) img:first-child { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 520px; }
  .chapter__media:has(> img:first-child[height="1600"]) img:not(:first-child) { aspect-ratio: auto; }
}
@media (max-width: 860px) {
  .chapter__inner, .chapter--flip .chapter__inner { grid-template-columns: 1fr; }
  .chapter--flip .chapter__text { order: 0; }
  .chapter__media img:first-child[height="1600"] { aspect-ratio: 4 / 4.6; }
}
.story-hero__photo img[data-zoom], .seal-band__img { cursor: zoom-in; }

.seal-band__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 980px; }
.seal-band__img { width: clamp(180px, 24vw, 280px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% / 46%; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.seal-band h2 em { color: var(--gold); font-weight: 400; }
@media (max-width: 720px) { .seal-band__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .seal-band .eyebrow { justify-content: center; } }

.river { margin-top: clamp(48px, 7vw, 90px); display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.river__row { display: flex; width: max-content; animation: river 70s linear infinite; }
.river__row--rev { animation-direction: reverse; animation-duration: 80s; }
.river:hover .river__row, .river:focus-within .river__row { animation-play-state: paused; }
.river__track { display: flex; gap: 14px; padding-right: 14px; }
.river__item { flex: none; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; height: clamp(130px, 16vw, 200px); }
.river__item img { height: 100%; width: auto; display: block; transition: transform 0.5s var(--ease); }
.river__item:hover img { transform: scale(1.05); }
@keyframes river { to { transform: translateX(-50%); } }

.story-close { text-align: center; }
.story-close__inner { max-width: 820px; }
.story-close h2 em { color: var(--gold); font-weight: 400; }
.story-close .lead { margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .river__row { animation: none; }
  .river { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .river__track[aria-hidden] { display: none; }
}

/* ---------- Gallery album tabs ---------- */
.album-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: clamp(24px, 4vw, 44px); scrollbar-width: thin; }
.album-tab { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--sand); text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--ink); border: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.album-tab:first-child { padding-left: 18px; }
.album-tab img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.album-tab:hover { border-color: var(--wine-200); }
.album-tab.is-active { background: var(--wine-800); color: var(--cream); }
.album + .album { margin-top: clamp(56px, 8vw, 96px); }
.album-more { margin-top: 26px; text-align: center; }
.lightbox button[hidden] { display: none; }

/* ---------- Homepage: a year of grace ---------- */
.moments { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 16px; }
.moment { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: var(--cream); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2.4vw, 28px); min-height: 250px; box-shadow: var(--shadow-sm); }
.moment--feature { grid-row: 1 / 3; }
.moment__photos { position: absolute; inset: 0; z-index: -2; }
.moment__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s ease-out; }
.moment__photos img.is-on { opacity: 1; transform: scale(1); }
.moment::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 0, 12, 0) 35%, rgba(31, 0, 12, 0.88)); transition: background 0.4s; }
.moment:hover::after { background: linear-gradient(180deg, rgba(31, 0, 12, 0.1) 25%, rgba(31, 0, 12, 0.92)); }
.moment__date { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.moment h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.moment--feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.moment p { margin: 8px 0 0; font-size: 0.95rem; color: rgba(251, 247, 241, 0.82); max-width: 40ch; }
.moment__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 800; font-size: 0.88rem; color: var(--cream); }
.moment__go svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.moment:hover .moment__go svg { transform: translateX(4px); }
.moment--all { background: var(--wine-800); justify-content: center; }
.moment--all::after { display: none; }
.moment--all .moment__count { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); }
@media (max-width: 900px) {
  .moments { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .moments::-webkit-scrollbar { display: none; }
  .moment { flex: 0 0 min(78vw, 340px); min-height: 420px; scroll-snap-align: start; }
}

/* ---------- Pastor page: consecration feature ---------- */
.consecration-feature { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: stretch; overflow: hidden; border-radius: var(--radius-lg); background: var(--wine-950); color: var(--cream); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.4s var(--ease); }
.consecration-feature:hover { transform: translateY(-4px); }
.consecration-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 22%; }
.consecration-feature__text { padding: clamp(28px, 5vw, 60px); align-self: center; }
.consecration-feature .eyebrow { color: var(--gold); }
.consecration-feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.consecration-feature h2 em { color: var(--gold); font-weight: 400; }
.consecration-feature p { color: rgba(251, 247, 241, 0.8); max-width: 50ch; }
@media (max-width: 720px) { .consecration-feature { grid-template-columns: 1fr; } .consecration-feature img { max-height: 380px; } }

/* ---------- Homepage hero: photos behind the headline (js/hero.js) ---------- */
.hero--cinema { align-items: stretch; padding-bottom: clamp(40px, 5vw, 64px); }
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--wine-950); }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease;
}
.hero__slides img.is-on { opacity: 1; transform: scale(1); }
.hero--cinema.is-playing .hero__slides img.is-on { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 0, 12, 0.94) 0%, rgba(31, 0, 12, 0.82) 34%, rgba(46, 5, 19, 0.35) 66%, rgba(31, 0, 12, 0.25) 100%),
    linear-gradient(0deg, rgba(31, 0, 12, 0.85) 0%, rgba(31, 0, 12, 0) 34%),
    linear-gradient(180deg, rgba(31, 0, 12, 0.6) 0%, rgba(31, 0, 12, 0) 22%);
}
.hero--cinema .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; width: 100%; padding-top: clamp(20px, 4vh, 48px); }
.hero--cinema .hero__main { align-self: center; }
.hero--cinema h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero--cinema .hero__text { color: rgba(251, 247, 241, 0.88); }
.hero--cinema .time-chip { background: rgba(31, 0, 12, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.hero__next {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin-bottom: 26px; padding: 9px 16px 9px 12px;
  border-radius: 999px; background: rgba(251, 247, 241, 0.1); border: 1px solid rgba(251, 247, 241, 0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--cream); text-decoration: none; font-size: 0.86rem; font-weight: 700; transition: background 0.25s;
}
.hero__next:hover { background: rgba(251, 247, 241, 0.18); }
.hero__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.hero__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: pulse 2s ease-out infinite; }
.hero__next.is-live { background: rgba(200, 30, 50, 0.85); border-color: rgba(255, 255, 255, 0.3); }
.hero__next.is-live .hero__pulse { background: #fff; }
.hero__next.is-live .hero__pulse::after { border-color: #fff; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-bottom: 6px; }
.hero--cinema .hero__badge { position: relative; right: auto; bottom: auto; width: 150px; height: 150px; margin-right: 10px; }
.hero--cinema .hero__badge img { width: 52px; }
.hero__pastor {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; width: max-content; max-width: min(100%, 440px);
  border-radius: 20px; background: rgba(31, 0, 12, 0.55); border: 1px solid rgba(251, 247, 241, 0.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--cream); text-decoration: none; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), background 0.25s;
}
.hero__pastor:hover { transform: translateY(-3px); background: rgba(31, 0, 12, 0.7); }
.hero__pastor-pics { display: flex; flex: none; }
.hero__pastor-pics img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; border: 2px solid var(--wine-950); }
.hero__pastor-pics img + img { margin-left: -18px; transform: rotate(6deg); }
.hero__pastor-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hero__pastor-text small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.hero__pastor-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
@media (min-width: 1280px) { .hero__pastor { max-width: 460px; } .hero__pastor-text strong { white-space: nowrap; } }
.hero__pastor-text span { font-size: 0.85rem; color: rgba(251, 247, 241, 0.72); }
.hero__pastor .arrow { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform 0.3s var(--ease); }
.hero__pastor:hover .arrow { transform: translateX(4px); }

.hero__caption { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero__caption a { color: rgba(251, 247, 241, 0.85); font-size: 0.82rem; font-weight: 600; text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.hero__caption a:hover { color: var(--gold-soft); text-decoration: underline; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 34px; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.hero__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(251, 247, 241, 0.3); overflow: hidden; position: relative; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-on span::after { transform: scaleX(1); }
.hero--cinema.is-playing .hero__dot.is-on span::after { animation: dotfill 6.5s linear both; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .hero--cinema { padding-top: calc(var(--header-h) + 34svh); }
  .hero--cinema .hero__slides { bottom: auto; height: calc(var(--header-h) + 62svh); }
  .hero__shade {
    bottom: auto; height: calc(var(--header-h) + 62svh + 2px);
    background:
      linear-gradient(180deg, rgba(31, 0, 12, 0.55) 0%, rgba(31, 0, 12, 0.05) 22%, rgba(31, 0, 12, 0.15) 45%, rgba(31, 0, 12, 0.85) 78%, var(--wine-950) 100%);
  }
  .hero--cinema .hero__bg { background: var(--wine-950); }
  .hero--cinema .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .hero--cinema h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .hero__side { align-items: stretch; }
  .hero--cinema .hero__badge { position: absolute; right: 16px; top: calc(var(--header-h) + 34svh - 70px); width: 112px; height: 112px; margin: 0; z-index: 2; }
  .hero--cinema .hero__badge img { width: 40px; }
  .hero__pastor { width: auto; max-width: none; }
  .hero__caption { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 34svh - 44px); flex-direction: row; justify-content: space-between; align-items: center; }
  .hero__caption a { max-width: 55%; }
  .hero__dot { width: 22px; }
  .hero__next { font-size: 0.8rem; margin-bottom: 20px; }
  .hero__next-label { display: none; }
}
@media (max-width: 520px) {
  .hero--cinema .hero__badge { width: 96px; height: 96px; top: calc(var(--header-h) + 34svh - 150px); }
  .hero--cinema .hero__badge img { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slides img { transition: none; }
  .hero__pulse::after { animation: none; }
}
