/* ============================================================
   P-CLAD — Practical Christian Living And Discipleship Ministry
   Design system v2: "NIGHT → DAWN"
   Colorway from the P-CLAD seal: near-black night, royal blue,
   radiant gold. Cinematic scroll language: pinned scenes,
   scrubbed zooms, break-apart reveals, glowing gradients.
   NOTE: token NAMES kept from v1 so all pages stay compatible —
   their VALUES are now the dark cinematic palette.
   ============================================================ */

:root {
  /* Palette — from the seal: black ring, royal field, gold cross */
  --cream:      #070A14;   /* base page background (night) */
  --cream-2:    #0C1122;   /* raised surface */
  --cream-3:    #141B33;   /* higher surface */
  --ink:        #F3EDDC;   /* primary text (warm paper) */
  --ink-soft:   #C9C2AC;   /* secondary text */
  --ink-faint:  #857F6B;   /* tertiary text */
  --amber:      #D9AC3F;   /* gold — primary accent */
  --amber-deep: #B98E24;
  --gold:       #F0CE7E;   /* bright gold */
  --royal:      #3D7BE0;   /* seal royal blue */
  --royal-soft: #6E9FEF;
  --royal-deep: #122650;
  --dark:       #04060D;   /* deepest sections */
  --dark-2:     #0A0F20;
  --line:       rgba(240, 206, 126, 0.14);
  --line-dark:  rgba(240, 206, 126, 0.16);

  /* Light "paper" sections — the calm counterweight to the cinematic dark
     scenes, borrowed in spirit from Church on Main's alternating rhythm */
  --paper:        #FAF5EC;
  --paper-2:      #F2EADB;
  --paper-3:      #E9DEC8;
  --ink-strong:      #201A13;
  --ink-strong-soft: #574C3E;
  --ink-strong-faint:#6B5F4C;
  --amber-on-paper:  #9A560F;
  --line-paper:   rgba(32, 26, 19, 0.14);

  /* The glory gradient — gold breaking over royal night */
  --glory: linear-gradient(100deg, #F5DE9C 0%, #E3B54A 38%, #6E9FEF 78%, #3D7BE0 100%);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;

  /* Hero type respects viewport HEIGHT too, so three lines never
     outgrow a short laptop screen (13" MacBooks are wide but short) */
  --size-hero:    clamp(2.75rem, min(10vw, 14svh), 7.5rem);
  --size-h2:      clamp(2.1rem, 5.8vw, 4rem);
  --size-h3:      clamp(1.35rem, 3vw, 1.75rem);
  --size-body:    clamp(1rem, 1.1vw, 1.125rem);
  --size-small:   0.875rem;
  --size-eyebrow: 0.75rem;

  /* Rhythm */
  --space-section: clamp(5.5rem, 13vw, 10rem);
  --space-inner:   clamp(1.25rem, 4vw, 2.5rem);
  --width-max:     72rem;
  --width-prose:   38rem;

  --arch: 999px 999px 0 0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior: smooth deliberately omitted — it fights GSAP ScrollTrigger's
   pinned/scrubbed scenes frame by frame, which is what caused the stutter. */
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--dark); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--royal));
}
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--royal)); }
.on-light .eyebrow { color: var(--amber-on-paper); }
.on-light .eyebrow::before { background: linear-gradient(90deg, var(--amber-on-paper), var(--royal)); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); line-height: 1.2; }

/* Gradient italic — the signature "glory" text */
.display-italic {
  font-style: italic;
  font-weight: 420;
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* keep italic overhang from clipping */
}
.on-dark .display-italic {
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose { max-width: var(--width-prose); color: var(--ink-soft); }
.on-dark .prose { color: var(--ink-soft); }
.on-light .prose { color: var(--ink-strong-soft); }
.on-light h1, .on-light h2, .on-light h3 { color: var(--ink-strong); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--width-max);
  margin: 0 auto;
  padding-inline: var(--space-inner);
}
section { position: relative; }
.section-pad { padding-block: var(--space-section); }

.on-dark { background: var(--dark); color: var(--ink); }
.on-light { background: var(--paper); color: var(--ink-strong); }

/* Calm, centered breather moment — used inside .on-light sections for
   mission statements, section intros, anything that should feel like a
   quiet pause rather than a working layout */
.calm-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.calm-center .prose { text-align: center; }
.calm-center .eyebrow { justify-content: center; }
.calm-center .eyebrow::before { display: none; }

/* Ambient glow utility — sections breathe light */
.glow-gold, .glow-royal { position: relative; }
.glow-gold::before, .glow-royal::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glow-gold::before {
  background: radial-gradient(60% 50% at 50% 0%, rgba(217, 172, 63, 0.13), transparent 70%);
}
.glow-royal::before {
  background: radial-gradient(60% 50% at 50% 100%, rgba(61, 123, 224, 0.14), transparent 70%);
}
.glow-gold > *, .glow-royal > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--amber));
  color: #1A1405;
  box-shadow: 0 0 24px -6px rgba(217, 172, 63, 0.45);
}
.btn-primary:hover { box-shadow: 0 0 38px -4px rgba(217, 172, 63, 0.65); }
.btn-outline { border-color: var(--line); color: var(--ink); background: rgba(7, 10, 20, 0.35); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.on-dark .btn-outline { border-color: var(--line-dark); color: var(--ink); }
.on-dark .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--amber));
  color: #1A1405;
  box-shadow: 0 0 24px -6px rgba(217, 172, 63, 0.45);
}
.btn-gold:hover { box-shadow: 0 0 38px -4px rgba(217, 172, 63, 0.65); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
/* CRITICAL: the scrolled bar's tint + blur live on a PSEUDO-ELEMENT, never on
   .site-header itself. backdrop-filter — exactly like transform/filter/
   perspective — makes an element the containing block for its position:fixed
   descendants. With the blur on the header, opening the mobile menu after
   scrolling trapped the fixed .main-nav inside the 128px header instead of
   letting it fill the screen (the menu showed a sliver of links over the live
   page). ::before is a SIBLING of .main-nav, not an ancestor, so it can blur
   freely. Same reason the video tilt's `perspective` is scoped off the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 6, 13, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 1; }
/* Menu open: the full-screen menu is opaque already, so drop the bar entirely */
.nav-open .site-header::before { opacity: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(217, 172, 63, 0.35));
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  margin-top: 0.32rem;
}
.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav .btn { padding: 0.6rem 1.3rem; min-height: 42px; white-space: nowrap; flex-shrink: 0; }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #1A1405; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 102;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), top 0.3s, opacity 0.2s, background 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* Subpages open on a light page-hero, and the header stays transparent
   until scrolled — the icon needs to go dark there or it's invisible on
   a light background until the header picks up its solid dark bg. */
body:has(.page-hero) .nav-toggle span,
body:has(.page-hero) .nav-toggle span::before,
body:has(.page-hero) .nav-toggle span::after {
  background: var(--ink-strong);
}
/* Same problem for the brand name and nav links: cream text over the cream
   page-hero was near-invisible until the header scrolled to its dark state.
   Dark ink while the header is transparent over a light hero; the scrolled
   header and the open mobile menu (both dark) keep the light defaults. */
body:has(.page-hero):not(.nav-open) .site-header:not(.scrolled) .brand-text { color: var(--ink-strong); }
@media (min-width: 861px) {
  body:has(.page-hero) .site-header:not(.scrolled) .main-nav a:not(.btn) { color: var(--ink-strong-soft); }
  body:has(.page-hero) .site-header:not(.scrolled) .main-nav a:not(.btn):hover,
  body:has(.page-hero) .site-header:not(.scrolled) .main-nav a:not(.btn)[aria-current="page"] { color: var(--amber-on-paper); }
}
/* !important here: browsers disagree on how :has() weighs into specificity,
   so a plain higher-specificity selector isn't reliably enough to win
   against the body:has(.page-hero) rule above across engines. These two
   states (scrolled, menu open) must always win regardless. */
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after {
  background: var(--ink) !important;
}

/* The X. The .scrolled selector is repeated here because the scrolled rule
   above is also !important and MORE specific than plain .nav-open — without
   it the middle bar stayed visible and struck through the X once the page
   had been scrolled (caught on an iPhone, Sept 2026). */
.nav-open .nav-toggle span,
.nav-open .site-header.scrolled .nav-toggle span { background: transparent !important; }
.nav-open .nav-toggle span::before { background: var(--ink) !important; top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { background: var(--ink) !important; top: 0; transform: rotate(-45deg); }

/* Narrow desktop / landscape tablet (861–1040px): six nav links + the CTA
   were squeezing the brand and wrapping the button into three lines. Tighten
   the tracking, drop the brand tagline, and keep the button on one line. */
@media (min-width: 861px) and (max-width: 1180px) {
  .main-nav { gap: 0.95rem; }
  .main-nav a { font-size: 0.72rem; letter-spacing: 0.04em; }
  .main-nav .btn { white-space: nowrap; padding: 0.6rem 1.1rem; }
  .brand-text small { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    /* 'safe center' centers when it fits but falls back to top-aligned if the
       list is taller than the screen, instead of clipping items off the top. */
    justify-content: safe center;
    align-items: center;
    gap: 1.15rem;
    /* Solid fallback. Frosted glass is layered on below only where the blur
       is supported: translucency WITHOUT blur is what let the hero bleed
       through on iOS before. Top padding clears the header/notch so items
       never tuck under the status bar; safe-area padding respects the home bar. */
    background: #04060D;
    padding: calc(5.5rem + env(safe-area-inset-top)) 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; }
  /* Frosted glass. iOS Safari needs the -webkit- prefix or it silently drops the
     blur. Safe here: .main-nav IS the fixed element, so the blur can't trap it
     (the trap is only when an ANCESTOR of it gets backdrop-filter). */
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .main-nav {
      background: rgba(4, 6, 13, 0.72);
      -webkit-backdrop-filter: blur(22px) saturate(1.4);
      backdrop-filter: blur(22px) saturate(1.4);
    }
  }
  .main-nav a {
    font-size: 1.6rem;
    font-family: var(--font-display);
    font-weight: 560;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ink);
  }
  .main-nav .btn { margin-top: 1rem; font-size: 1.05rem; padding: 0.9rem 2.2rem; }
}

/* ---------- Sticky visit bar ---------- */
.visit-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 140%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 15, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.55rem 0.55rem 1.4rem;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(217, 172, 63, 0.3);
  transition: transform 0.5s var(--ease-out);
  white-space: nowrap;
}
.visit-bar.visible { transform: translate(-50%, 0); }
.visit-bar .when { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.visit-bar .btn { padding: 0.6rem 1.2rem; min-height: 40px; font-size: 0.85rem; }
@media (max-width: 480px) {
  .visit-bar { width: calc(100% - 1.5rem); justify-content: space-between; }
}

/* ============================================================
   CINEMATIC SCENES (homepage)
   ============================================================ */

/* ---------- Scene 1: HERO — full-bleed video, pinned ---------- */
.hero {
  /* min-height + top padding: if the text stack is taller than the screen,
     the section grows downward instead of pushing the badge under the header */
  min-height: 100svh;
  padding-top: 6.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, rgba(4, 6, 13, 0.15) 40%, rgba(4, 6, 13, 0.94) 100%),
    radial-gradient(80% 60% at 50% 110%, rgba(61, 123, 224, 0.25), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}
.hero-seal {
  width: clamp(72px, 9vw, 110px);
  margin-bottom: 1.6rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(217, 172, 63, 0.5));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(240, 206, 126, 0.4);
  background: rgba(4, 6, 13, 0.5);
  backdrop-filter: blur(8px);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  width: fit-content;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 172, 63, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(217, 172, 63, 0); }
}
.hero h1 {
  font-size: var(--size-hero);
  max-width: 12ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; will-change: transform; }
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-meta strong { color: var(--gold); font-weight: 700; }
/* Circular scroll cue, borrowed from Church on Main's centered arrow badge */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.scroll-hint .scroll-circle {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(240, 206, 126, 0.4);
  background: rgba(4, 6, 13, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
  animation: bob 2.2s infinite var(--ease-out);
}
.scroll-hint .scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 900px), (max-height: 760px) {
  .scroll-hint { display: none; }
}
/* Short laptop screens (13" MacBook in Chrome ~800px tall): trim the
   vertical rhythm so the whole hero sits comfortably in one screen */
@media (min-width: 861px) and (max-height: 860px) {
  .hero h1 { margin-bottom: 1.1rem; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 1.6rem; }
  .hero-ctas { margin-bottom: 1.6rem; }
  .hero-badge { margin-bottom: 1.25rem; }
  .hero-content { padding-bottom: 2.5rem; }
}
@media (max-width: 640px) {
  .brand-text { font-size: 1.25rem; }
  /* Full tagline is ~330px on one line and a phone header has ~220px beside
     the menu button, so stack it: "Practical Christian Living / & Discipleship" */
  .brand-text small { font-size: 0.66rem; letter-spacing: 0.08em; line-height: 1.25; margin-top: 0.28rem; }
  .brand-text small .tl-2 { display: block; }
  .brand-seal { width: 44px; height: 44px; }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 2.9rem); margin-bottom: 1.1rem; }
  .hero .lede { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero-badge { margin-bottom: 1.25rem; padding: 0.42rem 1rem; font-size: 0.88rem; }
  .hero-ctas { gap: 0.7rem; margin-bottom: 1.6rem; }
  .hero-content { padding-bottom: 2rem; }
  .hero-meta { font-size: 0.92rem; }
}

/* ---------- Scene 2: ZOOM REVEAL — image grows from arch to full-bleed ---------- */
.scene-zoom { position: relative; background: var(--dark); }
.scene-zoom .stage {
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.zoom-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
  contain: paint;
}
.zoom-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
.zoom-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,13,0) 40%, rgba(4,6,13,0.75) 100%);
}
.zoom-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
  pointer-events: none;
}
.zoom-caption .eyebrow { margin-bottom: 1rem; }
.zoom-caption h2 { max-width: 18ch; text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
.zoom-caption p {
  margin-top: 1.1rem;
  max-width: 32rem;
  color: var(--ink-soft);
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
/* Mobile: the pinned full-bleed clip-reveal doesn't work on a phone (it left
   a near-blank 100svh void). Replace it with a clean, static contained image
   with the caption below — no scroll animation, no clipping. */
@media (max-width: 860px) {
  .scene-zoom .stage {
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    padding: clamp(3.5rem, 10vw, 5rem) var(--space-inner);
  }
  .zoom-frame {
    position: relative;
    inset: auto;
    width: 100%;
    height: 52svh;
    max-height: 26rem;
    border-radius: var(--arch);
    clip-path: none !important;
    contain: none;
    margin-bottom: 2rem;
  }
  .zoom-frame img { transform: none; }
  .zoom-caption {
    position: relative;
    inset: auto;
    padding: 0;
    justify-content: flex-start;
    opacity: 1 !important;
    transform: none !important;
  }
  .zoom-caption h2 { text-shadow: none; }
  .zoom-caption p { text-shadow: none; }
}

/* ---------- New here cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.info-card {
  background: var(--cream);
  padding: 2.25rem 1.9rem 2.5rem;
  position: relative;
  transition: background 0.3s;
}
.info-card:hover { background: var(--cream-2); }
.info-card .num {
  font-family: var(--font-display);
  font-style: italic;
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1rem;
  display: block;
  margin-bottom: 1.4rem;
}
.info-card h3 { margin-bottom: 0.8rem; font-size: 1.35rem; }
.info-card p { color: var(--ink-soft); font-size: 0.97rem; }
.info-card a { color: var(--gold); font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.on-light .card-grid { background: var(--line-paper); border-color: var(--line-paper); }
.on-light .info-card { background: var(--paper); }
.on-light .info-card:hover { background: var(--paper-2); }
.on-light .info-card p { color: var(--ink-strong-soft); }
.on-light .info-card a { color: var(--amber-on-paper); }

/* ---------- Rhythm (schedule strip) ---------- */
.rhythm-list { border-top: 1px solid var(--line); }
.rhythm-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.35s var(--ease-out);
}
.rhythm-row:hover { background: var(--cream-2); padding-left: 0.9rem; }
.rhythm-row .day {
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.rhythm-row .what {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 560;
}
.rhythm-row .what small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}
.rhythm-row .time {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--royal-soft);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .rhythm-row { grid-template-columns: 1fr auto; }
  .rhythm-row .day { grid-column: 1 / -1; }
}
.on-light .rhythm-list,
.on-light .rhythm-row { border-color: var(--line-paper); }
.on-light .rhythm-row:hover { background: var(--paper-2); }
.on-light .rhythm-row .day { color: var(--amber-on-paper); }
.on-light .rhythm-row .what small { color: var(--ink-strong-faint); }
.on-light .rhythm-row .time { color: var(--royal); }

/* ---------- Watch ---------- */
/* Perspective lives on the parent so .video-arch can tilt in 3D space.
   CRITICAL: scope this to containers that actually hold a video. A blanket
   `.container { perspective }` was applied to the HEADER's container too,
   and perspective creates a containing block for position:fixed descendants —
   which trapped the fixed mobile menu inside the 128px-tall header instead of
   letting it fill the viewport. That was the real cause of the cut-off menu. */
.container:has(.video-arch), .watch-layout {
  perspective: 1700px;
}
.video-arch {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--dark-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(61, 123, 224, 0.4);
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  will-change: transform, box-shadow;
}
.video-arch iframe { width: 100%; height: 100%; border: 0; }
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .watch-layout { grid-template-columns: 1fr; } }

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.sermon-card { text-decoration: none; display: block; }
.sermon-card .thumb {
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-3);
  position: relative;
}
.sermon-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.sermon-card:hover .thumb img { transform: scale(1.045); }
.sermon-card .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(4, 6, 13, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.sermon-card:hover .thumb::after { opacity: 1; }
/* Facebook videos expose no thumbnail without the API, so the recent-sermon
   tile is a royal-glow slab with a play badge and the video length */
.fb-tile {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(61, 123, 224, 0.38), transparent 70%),
    var(--cream-3);
}
.fb-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.fb-tile .play {
  position: relative;
  z-index: 1;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(240, 206, 126, 0.55);
  background: rgba(4, 6, 13, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding-left: 0.15rem;
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform 0.35s var(--ease-out), background 0.25s;
}
.sermon-card:hover .fb-tile .play { transform: scale(1.1); background: rgba(217, 172, 63, 0.3); }
.fb-tile .len {
  z-index: 1;
  position: absolute;
  right: 0.7rem; bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(4, 6, 13, 0.65);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.sermon-card .thumb.fb-tile::after { display: none; }
.sermon-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
}
.on-dark .sermon-card h3 { color: var(--ink); }
.sermon-card .date { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.25rem; }
.on-dark .sermon-card .date { color: var(--ink-faint); }

/* ---------- Scene: BREAK-APART — image splits into slats ---------- */
.scene-break { background: var(--dark); position: relative; }
.scene-break .stage {
  height: 100svh;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.slats {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 2;
}
.slat {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.slat .slat-img {
  position: absolute;
  top: 0; bottom: 0;
  width: 100vw;
  background-size: cover;
  background-position: center;
}
.slat:nth-child(1) .slat-img { left: 0; }
.slat:nth-child(2) .slat-img { left: -100%; }
.slat:nth-child(3) .slat-img { left: -200%; }
.slat::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(4, 6, 13, 0.25);
}
.break-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-inner);
  pointer-events: none;
}
.break-title h2 {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  max-width: 16ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}
.break-behind {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-inner);
  max-width: 60rem;
}
.break-behind .outreach-grid { margin-top: 2rem; }

/* Mobile: the slat "break-apart" reveal can't work on a phone — the 3 image
   strips showed visible seams and the pinned band left a blank 100svh void.
   Drop the whole image-reveal mechanic and render a clean, normal dark
   section: heading + stacked arched outreach cards + buttons. */
@media (max-width: 860px) {
  .scene-break .stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
    padding: clamp(4rem, 12vw, 6rem) 0;
  }
  .slats, .break-title { display: none; }
  .break-behind {
    position: static;
    margin: 0 auto;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 var(--space-inner);
  }
}

/* ---------- Outreach cards (arch) ---------- */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.outreach-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--arch);
  padding: 3.5rem 1.8rem 2.4rem;
  text-align: center;
  background: rgba(10, 15, 32, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.35s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.outreach-card:hover {
  background: var(--dark-2);
  transform: translateY(-6px);
  box-shadow: 0 0 50px -18px rgba(217, 172, 63, 0.5);
}
.outreach-card .glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 1.3rem;
}
.outreach-card h3 { color: var(--ink); margin-bottom: 0.8rem; }
.outreach-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Scripture — scrubbed gradient words ---------- */
.scripture {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.5rem, 3.8vw, 2.6rem);
  line-height: 1.35;
  max-width: 26ch;
  letter-spacing: -0.01em;
}
.scripture .w { opacity: 0.35; transition: none; }
.scripture .w.lit {
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
}
html:not(.js) .scripture .w { opacity: 1; }
.scripture-ref {
  margin-top: 1.5rem;
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.on-dark .scripture-ref { color: var(--gold); }

/* ---------- Give ---------- */
.give-panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(2.25rem, 6vw, 4rem);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(217, 172, 63, 0.14), transparent 60%),
    radial-gradient(80% 100% at 0% 100%, rgba(61, 123, 224, 0.12), transparent 60%),
    var(--cream-2);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 0 80px -30px rgba(217, 172, 63, 0.3);
}
.on-light .give-panel {
  border-color: var(--line-paper);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(168, 95, 23, 0.12), transparent 60%),
    radial-gradient(80% 100% at 0% 100%, rgba(61, 123, 224, 0.10), transparent 60%),
    var(--paper-2);
  box-shadow: 0 0 60px -30px rgba(168, 95, 23, 0.25);
}
.on-light .give-note { color: var(--ink-strong-faint); }
@media (max-width: 820px) { .give-panel { grid-template-columns: 1fr; } }
.give-panel h2 { max-width: 16ch; }
.give-panel .actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: stretch; }
.give-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Scene: FINALE — full-bleed door image ---------- */
.scene-finale {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}
.finale-media {
  position: absolute; inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.finale-media img { width: 100%; height: 100%; object-fit: cover; }
.finale-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--dark) 0%, rgba(4, 6, 13, 0.35) 30%, rgba(4, 6, 13, 0.45) 70%, var(--dark) 100%);
}
.scene-finale .container { position: relative; z-index: 2; padding-block: var(--space-section); }
.scene-finale h2 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  max-width: 14ch;
  margin: 1.2rem auto 1.5rem;
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.8);
}
.scene-finale .where {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.scene-finale .hero-ctas { justify-content: center; margin-bottom: 0; }
.scene-finale .eyebrow { justify-content: center; }

/* ---------- Page hero (subpages) ---------- */
/* Subpage heroes are calm and editorial (paper), a deliberate contrast to
   the homepage's cinematic dark video hero */
.page-hero {
  padding-top: clamp(8rem, 18vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  color: var(--ink-strong);
  background:
    radial-gradient(90% 80% at 80% 0%, rgba(61, 123, 224, 0.12), transparent 55%),
    radial-gradient(70% 60% at 10% 20%, rgba(168, 95, 23, 0.09), transparent 60%),
    var(--paper);
}
.page-hero .eyebrow { color: var(--amber-on-paper); }
.page-hero .eyebrow::before { background: linear-gradient(90deg, var(--amber-on-paper), var(--royal)); }
.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 15ch;
  margin-top: 1.1rem;
  color: var(--ink-strong);
}
.page-hero .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-strong-soft);
  max-width: var(--width-prose);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 46rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  transition: color 0.2s;
}
.faq-list summary:hover { color: var(--gold); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 0.25rem 1.6rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.on-light .faq-list,
.on-light .faq-list details { border-color: var(--line-paper); }
.on-light .faq-list summary:hover { color: var(--amber-on-paper); }
.on-light .faq-list summary::after { color: var(--amber-on-paper); }
.on-light .faq-list details p { color: var(--ink-strong-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 34rem; }
.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(20, 27, 51, 0.5);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 172, 63, 0.18);
}
.form-grid ::placeholder { color: var(--ink-faint); }
.on-light .form-grid label { color: var(--ink-strong); }
.on-light .form-grid input,
.on-light .form-grid textarea,
.on-light .form-grid select {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line-paper);
  color: var(--ink-strong);
}
.on-light .form-grid input:focus,
.on-light .form-grid textarea:focus,
.on-light .form-grid select:focus { border-color: var(--amber-on-paper); }
.on-light .form-grid ::placeholder { color: var(--ink-strong-faint); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 540px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Detail split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.fact-list li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list .k {
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.fact-list .v { font-weight: 600; }
.fact-list a { color: var(--ink); text-decoration: none; }
.fact-list a:hover { color: var(--gold); }
.on-light .fact-list li { border-color: var(--line-paper); }
.on-light .fact-list .k { color: var(--amber-on-paper); }
.on-light .fact-list a { color: var(--ink-strong); }
.on-light .fact-list a:hover { color: var(--amber-on-paper); }

.map-frame {
  border-radius: var(--arch);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  filter: saturate(0.7) contrast(1.05) brightness(0.9);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Goals (about) ---------- */
.goal-list { counter-reset: goal; display: grid; gap: 0; border-top: 1px solid var(--line); }
.goal-item {
  counter-increment: goal;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.goal-item::before {
  content: "0" counter(goal);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.goal-item h3 { margin-bottom: 0.5rem; }
.goal-item p { color: var(--ink-soft); max-width: 38rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--ink);
  padding: var(--space-section) 0 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 560;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-grid p, .footer-grid a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-head {
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-grid ul li { margin-bottom: 0.6rem; }
.newsletter { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.newsletter input {
  flex: 1;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(240, 206, 126, 0.05);
  color: var(--ink);
  min-width: 0;
}
.newsletter input::placeholder { color: var(--ink-faint); }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter .btn { padding: 0.7rem 1.3rem; min-height: 42px; font-size: 0.85rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: inherit; }

/* ---------- Real photos: tiles, mosaic, strips, portrait, gallery ---------- */
/* .photo-tile is the one primitive: a framed image (or ambient clip) with an
   optional caption laid over the bottom edge. The mosaic sizes tiles by grid
   row; standalone tiles size themselves with aspect-ratio (.banner). */
.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--cream-3);
  margin: 0;
}
.photo-tile img, .photo-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 13, 0.78));
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.photo-tile.banner { aspect-ratio: 21 / 9; border-radius: 1.25rem; margin-bottom: 2.5rem; }
.photo-tile.banner img { object-position: 50% 40%; }
@media (max-width: 640px) { .photo-tile.banner { aspect-ratio: 4 / 3; } }
.on-light .photo-tile { background: var(--paper-3); }

/* Mosaic — 4 columns on desktop, 2 on phones; .wide spans 2 columns,
   .tall spans 2 rows and takes the arch */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(9rem, 16vw, 15rem);
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.photo-tile.wide { grid-column: span 2; }
.photo-tile.tall { grid-row: span 2; border-radius: var(--arch); }
@media (max-width: 760px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(8rem, 30vw, 12rem); }
}

/* Strip — a row of captioned frames; .arches makes them tall church windows */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.photo-strip figure { margin: 0; }
.photo-strip .frame {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-3);
}
.photo-strip.arches .frame { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-faint); line-height: 1.5; }
.on-light .photo-strip .frame { background: var(--paper-3); }
.on-light .photo-strip figcaption { color: var(--ink-strong-faint); }

/* Portrait card — the pastor's studio headshot lives on a white ground, so
   it's presented as a white arched card on the paper section rather than
   keyed out (a soft key ate the white shirt and eye highlights). */
.portrait-card {
  border-radius: var(--arch);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  border: 1px solid var(--line-paper);
  box-shadow: 0 34px 70px -34px rgba(32, 26, 19, 0.45);
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

/* Gallery — masonry columns with the caption under each photo */
.gallery { columns: 3 15rem; column-gap: 1rem; }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.gallery img, .gallery video { width: 100%; height: auto; display: block; }
.gallery figcaption {
  padding: 0.8rem 1rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.gallery-section + .gallery-section { margin-top: clamp(3.5rem, 8vw, 6rem); }

/* ---------- Beliefs page: Statement of Fundamental Truths ---------- */
/* Editorial, on paper. A grid of sixteen jump-chips, then each article as a
   numbered block with its Scriptures rendered as tappable reference pills. */
.beliefs-preamble { margin-bottom: clamp(2rem, 5vw, 3rem); }
.beliefs-preamble a { color: var(--amber-on-paper); font-weight: 700; text-decoration: none; }
.beliefs-toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.beliefs-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-paper);
  border-radius: 0.8rem;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ease-out);
}
.beliefs-toc a:hover { background: var(--paper-2); border-color: var(--amber-on-paper); transform: translateY(-1px); }
.beliefs-toc a b { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--amber-on-paper); flex-shrink: 0; }
.beliefs-list { border-bottom: 1px solid var(--line-paper); }
.belief {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line-paper);
  max-width: 54rem;
  scroll-margin-top: 6rem;
}
.belief-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  background: var(--glory);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 0.35rem;
}
.belief h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; color: var(--ink-strong); }
.belief h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink-strong); margin: 1.5rem 0 0.4rem; }
.belief p { color: var(--ink-strong-soft); max-width: 44rem; }
.belief p + p, .belief .refs + p { margin-top: 0.9rem; }
.belief ol, .belief ul.bullets { margin: 0.6rem 0 0 1.25rem; color: var(--ink-strong-soft); max-width: 44rem; }
.belief ol { list-style: decimal; }
.belief ul.bullets { list-style: disc; }
.belief li { margin: 0.5rem 0; padding-left: 0.2rem; }
.belief li .refs { margin: 0.35rem 0 0; }
.refs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0.2rem; }
.refs a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-on-paper);
  background: rgba(168, 95, 23, 0.08);
  border: 1px solid rgba(168, 95, 23, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.refs a:hover { background: rgba(168, 95, 23, 0.16); border-color: var(--amber-on-paper); }
/* The ten-point "Adorable Godhead" exposition folds under article 02 */
.belief details {
  margin-top: 1.4rem;
  border: 1px solid var(--line-paper);
  border-radius: 1rem;
  background: var(--paper-2);
  padding: 0 1.25rem;
  max-width: 44rem;
}
.belief summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  color: var(--ink-strong);
}
.belief summary::-webkit-details-marker { display: none; }
.belief summary::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; font-weight: 400; color: var(--amber-on-paper); transition: transform 0.3s var(--ease-out); }
.belief details[open] summary::after { transform: rotate(45deg); }
.belief details .sub { border-top: 1px solid var(--line-paper); padding: 0.2rem 0 1.1rem; }
.belief details .sub h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--ink-strong); margin: 1rem 0 0.4rem; }
@media (max-width: 640px) {
  .belief { grid-template-columns: 1fr; gap: 0.4rem; }
  .belief-num { font-size: 1.5rem; padding-top: 0; }
  .beliefs-toc { grid-template-columns: 1fr 1fr; }
  .beliefs-toc a { font-size: 0.82rem; padding: 0.6rem 0.7rem; }
}

/* Dark variant of the sixteen-truths chip grid — the homepage teaser sits on
   a dark band, while /beliefs/ keeps the cream original. */
.beliefs-toc.on-dark-toc { margin-top: clamp(2rem, 5vw, 3rem); margin-bottom: 0; }
.beliefs-toc.on-dark-toc a {
  border-color: var(--line-dark);
  color: var(--ink);
  background: rgba(10, 15, 32, 0.5);
}
.beliefs-toc.on-dark-toc a:hover {
  background: var(--dark-2);
  border-color: var(--gold);
  color: var(--gold);
}
.beliefs-toc.on-dark-toc a b { color: var(--gold); }

/* ---------- Reveal & motion setup ---------- */
.js [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scripture .w { opacity: 1 !important; }
}
