/* ==========================================================================
   City of Refuge Christian Center
   Design system: "The open door"
   The arch is the one recurring shape — a doorway, a window, a shelter.
   ========================================================================== */

:root {
  /* Brand palette (from the church's brief, deepened for contrast in the
     "Cinematic Divine Light" pass, Nov 2026; original values in comments) */
  --plum: #3a1846;           /* royal plum (was #43204f) */
  --aubergine: #1f0e29;      /* deep aubergine (was #281632) */
  --royal: #5a2670;          /* royal purple, used sparingly for depth */
  --ivory: #faf6ef;
  --gold: #c8ab76;           /* restrained champagne gold (was #c5a46d) */
  --champagne: #efdcb4;      /* the light itself: glow, particles */
  --lavender: #e9e2ed;

  /* Working tones derived from the palette */
  --ink: #1f0e29;            /* body text on light grounds */
  --ink-soft: #57485f;       /* secondary text on light grounds (7.8:1 on ivory) */
  --gold-deep: #80612b;      /* gold that passes contrast on ivory, for small text */
  --on-dark: #faf6ef;
  --on-dark-soft: #cfc3d6;   /* secondary text on aubergine/plum */
  --line: rgba(31, 14, 41, 0.14);
  --line-dark: rgba(250, 246, 239, 0.16);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Scale (perfect fourth, fluid) */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.45vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.45rem + 1.1vw, 2.35rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.9rem + 4vw, 5.6rem);
  --step-5: clamp(3.2rem, 1.8rem + 6.4vw, 8.4rem);

  /* Space */
  --gutter: clamp(1rem, 0.6rem + 2.2vw, 2.75rem);
  --section: clamp(5.5rem, 4rem + 8vw, 11rem);
  --measure: 34rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 4.75rem;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--plum); color: var(--ivory); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--aubergine);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; }

.h-xl { font-size: var(--step-5); }
.h-lg { font-size: var(--step-4); }
.h-md { font-size: var(--step-3); }
.h-sm { font-size: var(--step-2); line-height: 1.08; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.kicker {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
  letter-spacing: 0;
}
.is-dark .kicker { color: var(--gold); }

.prose { max-width: var(--measure); }
.prose p { color: var(--ink-soft); }
.is-dark .prose p { color: var(--on-dark-soft); }

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
}
.verse cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* Masked line reveal: each .line clips its inner span */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--plum);
  --btn-fg: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 var(--step--1)/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
/* Fill rises from the bottom like light filling a doorway */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--aubergine);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out), border-radius 0.55s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); border-radius: 0; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--plum);
  border-color: rgba(58, 24, 70, 0.35);
}
.btn--ghost::before { background: var(--plum); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ivory); border-color: var(--plum); }

.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--aubergine); }
.btn--light::before { background: var(--gold); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  border-color: rgba(250, 246, 239, 0.4);
}
.btn--outline-light::before { background: var(--ivory); }
.btn--outline-light:hover, .btn--outline-light:focus-visible { color: var(--aubergine); border-color: var(--ivory); }

.btn[aria-disabled="true"], .btn:disabled {
  cursor: not-allowed;
  --btn-bg: transparent;
  --btn-fg: var(--ink-soft);
  border: 1px dashed rgba(94, 79, 102, 0.5);
}
.btn[aria-disabled="true"]::before, .btn:disabled::before { display: none; }

.btn .btn__icon { width: 1rem; height: 1rem; flex: none; }

.text-link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.2rem;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.text-link:hover::after { transform: scaleX(0); }
.text-link:hover { color: var(--plum); }
.is-dark .text-link:hover { color: var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: transform 0.6s var(--ease-out), color 0.4s ease, background-color 0.4s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark { color: var(--ivory); }
.site-header.on-dark::before { background: rgba(31, 14, 41, 0.72); }

.site-header .wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  line-height: 1;
}
.brand__mark { width: 1.6rem; height: 2.05rem; flex: none; color: var(--plum); transition: color 0.4s ease; }
.on-dark .brand__mark { color: var(--gold); }
.brand__name { display: flex; flex-direction: column; gap: 0.28rem; }
.brand__name strong { font: 500 1.18rem/1 var(--serif); letter-spacing: -0.01em; }
.brand__name span { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.75; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.4rem 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.15rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.nav .btn { min-height: 2.75rem; padding: 0.7rem 1.3rem; }
.on-dark .nav .btn { --btn-bg: var(--ivory); --btn-fg: var(--aubergine); }
.on-dark .nav .btn::before { background: var(--gold); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 3rem; height: 3rem;
  margin-right: -0.6rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 0.8rem; right: 0.8rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 1.2rem; }
.menu-toggle span:nth-child(2) { top: 1.75rem; }
.menu-open .menu-toggle span:nth-child(1) { top: 1.48rem; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 1.48rem; transform: rotate(-45deg); }

/* Mobile menu: an arch that opens from the bottom of the screen */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 1rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--aubergine);
  color: var(--ivory);
  clip-path: inset(100% 0 0 0 round 50% 50% 0 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0 round 0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu-open .site-header { color: var(--ivory); }
.menu-open .site-header::before { opacity: 0; }
.menu-open .brand__mark { color: var(--gold); }
.mobile-menu ol { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.mobile-menu li { overflow: hidden; border-top: 1px solid var(--line-dark); }
.mobile-menu li:last-child { border-bottom: 1px solid var(--line-dark); }
.mobile-menu ol a {
  display: block;
  padding: 0.85rem 0;
  font: 400 clamp(2rem, 9vw, 3rem)/1.05 var(--serif);
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}
.menu-open .mobile-menu ol a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 0.25s; }
.mobile-menu ol a[aria-current="page"] { color: var(--gold); font-style: italic; }
.mobile-menu__meta { color: var(--on-dark-soft); font-size: var(--step--1); }
.mobile-menu__meta strong { display: block; color: var(--ivory); font: 400 var(--step-1)/1.3 var(--serif); }

/* ---------- Media (images, video and their placeholders) ---------- */

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--aubergine);
  color: var(--on-dark);
}
.media > img,
.media > video,
.media .media__parallax > img,
.media .media__parallax > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.media.is-loaded > img,
.media.is-loaded .media__parallax > img { opacity: 1; }
/* Video only appears once it is actually playing, so there is never a black flash */
.media.is-playing video { opacity: 1; }
.media.is-loaded .placeholder { opacity: 0; }
.media__parallax { position: absolute; inset: -8% 0; }

/* Placeholder: a quiet "light in a room" plate with a production label */
.placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(200, 171, 118, 0.28), transparent 60%),
    linear-gradient(180deg, var(--plum), var(--aubergine));
  transition: opacity 1s ease;
}
.placeholder--light {
  background:
    radial-gradient(110% 80% at 70% 0%, rgba(200, 171, 118, 0.35), transparent 60%),
    linear-gradient(180deg, #ece4ef, #d9cde0);
  color: var(--aubergine);
}
.placeholder__beam {
  position: absolute;
  inset: -20% -10%;
  width: 120%;
  height: 140%;
  opacity: 0.7;
  animation: beam-drift 18s ease-in-out infinite alternate;
}
.placeholder--light .placeholder__beam { opacity: 0.6; }
.placeholder__motes span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(244, 226, 190, 0.85);
  filter: blur(0.5px);
  animation: mote 14s linear infinite;
}
.placeholder__label {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: inherit;
}
.placeholder__label b {
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
html:not(.is-local) .placeholder__label { display: none; }
/* Notes about content the church hasn't provided yet: this computer only */
html:not(.is-local) :is(.note--draft, .section--draft) { display: none; }
.note--draft + .arrive-question { margin-top: 2rem; }
.placeholder__label strong { font: 400 1.05rem/1.2 var(--serif); }
.placeholder__label span { opacity: 0.78; max-width: 26rem; }
.placeholder__label code {
  font: 500 0.7rem/1.4 var(--sans);
  letter-spacing: 0.01em;
  opacity: 0.7;
  padding-top: 0.45rem;
  border-top: 1px dashed currentColor;
}

@keyframes beam-drift {
  from { transform: translate3d(-3%, 0, 0) rotate(0.001deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(0.001deg); }
}
@keyframes mote {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate3d(40px, -160px, 0); opacity: 0; }
}

.arch { border-radius: 999px 999px 0 0; }

/* Film grain over dark, cinematic moments */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  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)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Cursor-following light for dark sections */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(38rem circle at var(--gx, 70%) var(--gy, 30%), rgba(200, 171, 118, 0.13), transparent 60%);
  transition: background 0.2s linear;
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ivory);
}

/* The arch geometry lives in variables so the no-JS layout and the
   scroll-driven expansion start from exactly the same shape. */
.hero {
  --arch-w: min(34vw, 30rem);
  --arch-right: calc(var(--gutter) + max(0px, (100vw - 88rem) / 2));
  --arch-top: calc(var(--header-h) + 3vh);
  --arch-bottom: 0px;
}

.hero__stage {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--arch-top) var(--arch-right) var(--arch-bottom) calc(100% - var(--arch-right) - var(--arch-w)) round calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0);
  will-change: clip-path;
}
.hero__stage .media { position: absolute; inset: 0; }
.hero__reveal { position: absolute; inset: 0; }
/* The footage is centred on the arch at rest, so the most important part
   of the frame is what people see first. JS animates this back to 0 as
   the arch widens to full screen. */
.hero__frame {
  position: absolute;
  inset: 0;
  transform: translate(
    calc(50% - var(--arch-right) - var(--arch-w) / 2),
    calc((var(--arch-top) - var(--arch-bottom)) / 2)
  );
  will-change: transform;
}
.media--hero .placeholder__label {
  left: calc(50% - var(--arch-w) / 2 + 1.5rem);
  right: auto;
  width: calc(var(--arch-w) - 3rem);
  bottom: calc((var(--arch-top) + var(--arch-bottom)) / 2 + 5rem);
}
/* A soft floor of shade keeps the controls legible over any footage */
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(31, 14, 41, 0.5), rgba(31, 14, 41, 0) 28%);
}

.video-toggle {
  position: absolute;
  z-index: 3;
  right: calc(var(--arch-right) + 1.1rem);
  bottom: calc(var(--arch-bottom) + 1.1rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(250, 246, 239, 0.55);
  border-radius: 50%;
  background: rgba(31, 14, 41, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: rgba(31, 14, 41, 0.6); border-color: var(--ivory); }
.video-toggle svg { width: 0.95rem; height: 0.95rem; }
.video-toggle .i-pause { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.video-toggle .i-play { fill: currentColor; display: none; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
/* Invisible twin of the arch, measured by JS to start the expansion */
.hero__slot {
  position: absolute;
  top: var(--arch-top);
  right: var(--arch-right);
  bottom: var(--arch-bottom);
  width: var(--arch-w);
  pointer-events: none;
  visibility: hidden;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: var(--aubergine);
  opacity: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}
.hero__text { max-width: calc(100% - var(--arch-w) - 4vw); }
.hero__place {
  position: absolute;
  top: calc(var(--header-h) + 3vh + 0.4rem);
  left: var(--gutter);
  margin: 0;
  font: italic 400 var(--step-1)/1.3 var(--serif);
  color: var(--gold-deep);
}
@media (min-width: 1408px) { .hero__place { left: calc((100vw - 88rem) / 2 + var(--gutter)); } }

.hero__title {
  font-size: clamp(2.6rem, 0.6rem + 5.4vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--plum);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero__title .line:nth-child(2) > span { font-style: italic; padding-left: 0.9em; }

.hero__lede { margin-bottom: 2rem; max-width: 30rem; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.service-tag {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.2rem 2rem;
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--step--1);
  line-height: 1.45;
}
.service-tag::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--gold);
  transform: scaleY(var(--rule, 1));
  transform-origin: bottom;
}
.service-tag dt { color: var(--ink-soft); }
.service-tag dd { font-family: var(--serif); font-size: var(--step-1); line-height: 1.15; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: calc(var(--arch-right) + var(--arch-w) / 2);
  bottom: 1.4rem;
  transform: translateX(50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--ivory);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 2.6rem;
  background: linear-gradient(var(--ivory), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}


/* ---------- Hero light: glow, outline, particles ----------
   "Cinematic Divine Light": the light inside the arch spills softly into the
   ivory page. Everything here is decorative (aria-hidden) and is drawn with
   opacity/transform only, so it stays on the compositor. */

.hero__glow {
  position: absolute;
  z-index: 0;
  top: calc(var(--arch-top) - 14vh);
  bottom: calc(var(--arch-bottom) - 8vh);
  right: calc(var(--arch-right) - var(--arch-w) * 0.7);
  width: calc(var(--arch-w) * 2.4);
  pointer-events: none;
}
[data-entrance="original"] .hero__glow { display: none; }
.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero__glow::before {
  background:
    radial-gradient(32% 30% at 50% 34%, rgba(239, 220, 180, 0.75), rgba(239, 220, 180, 0) 100%),
    radial-gradient(48% 46% at 50% 42%, rgba(200, 171, 118, 0.34), rgba(200, 171, 118, 0) 100%);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}
/* A whisper of royal purple at the far edge keeps the gold from going yellow */
.hero__glow::after {
  background: radial-gradient(50% 50% at 50% 50%, rgba(90, 38, 112, 0) 55%, rgba(90, 38, 112, 0.07) 80%, rgba(90, 38, 112, 0) 100%);
}
@keyframes glow-breathe {
  from { opacity: 0.82; transform: scale(0.97); }
  to   { opacity: 1;    transform: scale(1.04); }
}
.hero__stage { z-index: 0; }

/* Hairline outline that traces the arch (drawn by JS) */
.hero__outline {
  position: absolute;
  z-index: 1;
  top: calc(var(--arch-top) - 0.9rem);
  right: calc(var(--arch-right) - 0.9rem);
  bottom: var(--arch-bottom);
  width: calc(var(--arch-w) + 1.8rem);
  height: calc(100% - var(--arch-top) + 0.9rem - var(--arch-bottom));
  max-width: none;
  overflow: visible;
  color: var(--gold);
  pointer-events: none;
}
.hero__outline path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* The seam of light that opens into the arch (concept B) */
.hero__seam {
  position: absolute;
  z-index: 1;
  top: var(--arch-top);
  bottom: var(--arch-bottom);
  right: calc(var(--arch-right) + var(--arch-w) / 2 - 1px);
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 246, 225, 0), #fff6e1 18%, var(--champagne) 70%, rgba(239, 220, 180, 0));
  box-shadow: 0 0 1.5rem 0.4rem rgba(239, 220, 180, 0.55), 0 0 5rem 1.5rem rgba(200, 171, 118, 0.25);
  opacity: 0;
  pointer-events: none;
}

.hero__motes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Canvas motes replace the placeholder's CSS motes in the hero */
.has-motes .media--hero .placeholder__motes { display: none; }

/* ---------- Entrance: no loading screen, nothing important hidden for long ----------
   An inline script adds .js-intro before first paint (never with reduced
   motion). JS removes it the moment the entrance timeline has taken over.
   If scripts fail, the failsafe reveals everything after ~2s. */
.js-intro .hero [data-intro] {
  opacity: 0;
  animation: intro-failsafe 0.8s ease 2s forwards;
}
@keyframes intro-failsafe { to { opacity: 1; } }

.hero__title .w { display: inline-block; }

/* Concept B: a feathered light-wipe passes across the headline */
[data-entrance="threshold"].js-motion .hero__title .line > span {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--m, 100%), transparent calc(var(--m, 100%) + 22%));
  mask-image: linear-gradient(90deg, #000 var(--m, 100%), transparent calc(var(--m, 100%) + 22%));
}

/* ---------- Concept switcher (shown only on this computer's preview) ---------- */

.concept-switch {
  position: fixed;
  z-index: 150;
  left: 50%;
  top: calc(var(--header-h) + 0.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100vw - 2rem);
  padding: 0.4rem 0.45rem 0.4rem 0.9rem;
  border: 1px solid rgba(200, 171, 118, 0.5);
  border-radius: 999px;
  background: rgba(31, 14, 41, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font: 500 0.75rem/1 var(--sans);
  box-shadow: 0 0.75rem 2rem rgba(31, 14, 41, 0.25);
}
.concept-switch span { margin-right: 0.35rem; color: var(--on-dark-soft); }
.concept-switch a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.concept-switch a:hover { background: rgba(250, 246, 239, 0.1); }
.concept-switch a[aria-current="true"] { background: var(--ivory); color: var(--aubergine); }
@media (max-width: 960px) {
  .concept-switch { top: calc(var(--header-h) + 0.1rem); flex-wrap: nowrap; padding: 0.25rem; font-size: 0.7rem; max-width: calc(100vw - 1rem); overflow-x: auto; }
  .concept-switch span { display: none; }
  .concept-switch a { padding: 0.5rem 0.6rem; white-space: nowrap; }
}
@media print { .concept-switch { display: none; } }

/* ---------- Announcements ---------- */

.announce {
  background: var(--lavender);
  border-block: 1px solid var(--line);
}
.announce[hidden] { display: none; }
.announce .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
}
.announce h2 { font: italic 400 var(--step-1)/1.2 var(--serif); color: var(--plum); }
.announce p { margin: 0; color: var(--ink-soft); }

/* ---------- Welcome (dark, scroll-lit statement) ---------- */

.welcome {
  position: relative;
  background: var(--aubergine);
  color: var(--on-dark);
  padding-block: calc(var(--section) * 0.5) var(--section);
}
.welcome .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); }
.welcome__verse {
  grid-column: 1 / span 3;
  grid-row: 1;
  margin: 0.6rem 0 0;
  align-self: start;
  color: var(--gold);
  font-size: var(--step-0);
}
.welcome__verse .verse { font-size: var(--step-0); }
.statement {
  grid-column: 4 / span 9;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}
.statement .w { transition: none; }
.js-motion .statement .w { opacity: 0.18; }
.welcome__more { grid-column: 4 / span 9; }

/* ---------- Gather (sticky frame + chapters) ---------- */

.gather { padding-block: var(--section) calc(var(--section) * 0.6); }
.gather__head { margin-bottom: clamp(3rem, 6vw, 6rem); }
.gather__head h2 { color: var(--plum); max-width: 14ch; }

.gather__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gutter);
}
.gather__frame {
  grid-column: 1 / span 6;
  position: sticky;
  top: calc(var(--header-h) + 2vh);
  height: calc(100vh - var(--header-h) - 6vh);
  max-height: 52rem;
}
.gather__frame .media {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
}
.gather__frame .media + .media { clip-path: inset(100% 0 0 0); }
.gather__caption {
  position: absolute;
  right: 0; bottom: -2rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.gather__list { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; }
.chapter {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 3rem;
}
.chapter:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 12vh; }
.chapter h3 {
  font-family: var(--serif);
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--plum);
  margin-bottom: 1.5rem;
}
.chapter h3 em { font-style: italic; }
.chapter p { color: var(--ink-soft); max-width: 26rem; font-size: var(--step-1); line-height: 1.5; }
.js-motion .chapter { opacity: 0.28; transition: opacity 0.6s ease; }
.js-motion .chapter.is-active { opacity: 1; }

/* ---------- Pastors ---------- */

.pastors {
  position: relative;
  background: var(--lavender);
  padding-block: var(--section);
  overflow: hidden;
}
.pastors .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem var(--gutter);
  align-items: end;
}
.pastors__names {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 1rem + 6.4vw, 8.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--plum);
  font-variation-settings: "wght" var(--wght, 400);
}
.pastors__names .line:nth-child(2) > span { padding-left: 1.4em; }
.pastors__names .amp { font-style: italic; color: var(--gold-deep); padding-inline: 0.12em; }
.pastors__portrait {
  grid-column: 2 / span 4;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
}
.pastors__body { grid-column: 7 / span 5; padding-bottom: 2rem; }
.pastors__body p { color: var(--ink-soft); }

/* ---------- Visit band (plum) ---------- */

.visit-band {
  position: relative;
  background:
    radial-gradient(70% 90% at 85% -10%, rgba(90, 38, 112, 0.75), transparent 70%),
    var(--plum);
  color: var(--on-dark);
  padding-block: var(--section);
  overflow: hidden;
}
.visit-band .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem var(--gutter);
  align-items: end;
}
.visit-band__time {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  line-height: 0.8;
  letter-spacing: -0.05em;
}
.visit-band__time small {
  display: block;
  font-size: var(--step-2);
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.visit-band__time strong {
  display: block;
  font-weight: 400;
  font-size: clamp(6rem, 2rem + 17vw, 19rem);
}
.visit-band__time strong sup {
  font-size: 0.2em;
  letter-spacing: 0.02em;
  vertical-align: top;
  position: relative;
  top: 0.4em;
  margin-left: 0.15em;
  font-style: italic;
}
.visit-band__info { grid-column: 9 / span 4; padding-bottom: 1.5rem; }
.visit-band__info address {
  font: 400 var(--step-2)/1.15 var(--serif);
  margin-bottom: 1.25rem;
}
.visit-band__info p { color: var(--on-dark-soft); }
.visit-band .actions { margin-top: 2rem; }

/* ---------- Invitations: prayer + giving ---------- */

.invite { padding-block: var(--section); }
.invite .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4rem var(--gutter);
  align-items: start;
}
.invite__prayer { grid-column: 1 / span 7; }
.invite__prayer h2 { color: var(--plum); margin-bottom: 2rem; }
.invite__prayer h2 em { font-style: italic; }
.invite__prayer .prose { margin-bottom: 2rem; }

.invite__give {
  grid-column: 9 / span 4;
  margin-top: clamp(4rem, 14vw, 12rem);
  position: relative;
  padding-top: 1.75rem;
}
.invite__give::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(var(--rule, 1));
  transform-origin: left;
}
.invite__give h2 { font: 400 var(--step-3)/1 var(--serif); color: var(--plum); margin-bottom: 1.25rem; }
.invite__give p { color: var(--ink-soft); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 9rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.page-hero h1 { color: var(--plum); font-size: var(--step-5); max-width: 12ch; margin-bottom: 2rem; }
.page-hero h1 em { font-style: italic; }
.page-hero .lede { max-width: 36rem; }
.page-hero--dark { background: var(--aubergine); color: var(--on-dark); }
.page-hero--dark h1 { color: var(--ivory); }
.page-hero--dark .lede { color: var(--on-dark-soft); }

.cinema {
  aspect-ratio: 2.39 / 1;
  width: 100%;
}
.cinema-wrap { padding-bottom: var(--section); }

.section { padding-block: var(--section); }
.section--tint { background: var(--lavender); }
.section--dark { background: var(--aubergine); color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem var(--gutter);
}
.split__aside { grid-column: 1 / span 4; }
.split__main { grid-column: 6 / span 7; }
.split__aside h2 { color: var(--plum); }
.is-dark .split__aside h2, .section--dark h2 { color: var(--ivory); }

/* Facts: the information a first-time guest scans for */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 2rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.facts > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 1rem; }
.facts dd { font: 400 var(--step-2)/1.15 var(--serif); color: var(--plum); }
.facts dd .btn { margin-top: 0.25rem; }
.facts .facts__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.note {
  position: relative;
  padding: 1.5rem 1.75rem;
  border: 1px dashed rgba(138, 106, 51, 0.55);
  border-radius: 1.25rem;
  background: rgba(200, 171, 118, 0.06);
  color: var(--ink-soft);
  font-size: var(--step--1);
  max-width: 40rem;
}
.note strong { color: var(--ink); font-weight: 500; }
.note p:last-child { margin-bottom: 0; }

.pastor-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem var(--gutter);
  align-items: center;
}
.pastor-feature .media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.pastor-feature__text { grid-column: 7 / span 6; }
.pastor-feature__text h2 { color: var(--plum); margin-bottom: 1.5rem; }

.name-story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); }
.name-story .verse { grid-column: 1 / span 6; font-size: var(--step-3); line-height: 1.15; color: var(--ivory); }
.name-story .verse cite { color: var(--gold); }
.name-story .prose { grid-column: 8 / span 5; align-self: end; }

.cta-band { background: var(--plum); color: var(--on-dark); padding-block: clamp(4rem, 9vw, 8rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: var(--step-4); max-width: 14ch; }
.cta-band h2 em { font-style: italic; color: var(--gold); }

/* ---------- Prayer form ---------- */

.form-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); }
.form-layout__aside { grid-column: 1 / span 4; }
.form-layout__main { grid-column: 6 / span 7; }

.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.55rem; }
.field label { font-weight: 500; font-size: var(--step--1); }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 14, 41, 0.25);
  border-radius: 0.9rem;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea { min-height: 13rem; resize: vertical; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(58, 24, 70, 0.12);
}
.field[data-invalid] input,
.field[data-invalid] textarea { border-color: #9b2c3f; }
.field__hint { font-size: var(--step--1); color: var(--ink-soft); }
.field__error { font-size: var(--step--1); color: #9b2c3f; font-weight: 500; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: var(--step--1); }
.form-status:empty { display: none; }
.form-status.is-preview { padding: 1rem 1.25rem; border-radius: 0.9rem; background: var(--lavender); color: var(--ink); }

.confirm { display: grid; gap: 1.25rem; padding: 2.5rem 0; }
.confirm[hidden] { display: none; }
.confirm h2 { color: var(--plum); font-size: var(--step-3); }
.confirm h2 em { font-style: italic; }

.privacy { font-size: var(--step--1); color: var(--ink-soft); }
.privacy h2 { font: 400 var(--step-1)/1.2 var(--serif); color: var(--plum); margin-bottom: 0.75rem; }

/* ---------- Give ---------- */

.give-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.give-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.give-item h2 { font: 400 var(--step-4)/1 var(--serif); color: var(--plum); letter-spacing: -0.025em; }
.give-item p { margin: 0.75rem 0 0; color: var(--ink-soft); max-width: 30rem; }
.give-item__status { font-size: var(--step--1); color: var(--gold-deep); margin-top: 0.5rem; }

/* ---------- Contact ---------- */

.contact-email {
  display: inline-block;
  font: 400 clamp(1.35rem, 0.6rem + 3.4vw, 4rem)/1.1 var(--serif);
  color: var(--plum);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid rgba(58, 24, 70, 0.25);
  padding-bottom: 0.25rem;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.contact-email:hover { border-color: var(--gold); color: var(--aubergine); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--aubergine);
  color: var(--on-dark);
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  overflow: hidden;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem var(--gutter);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.site-footer h2 { font: 400 var(--step--1)/1 var(--sans); color: var(--gold); margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.site-footer__invite { grid-column: 1 / span 5; }
.site-footer__invite p { font: 400 var(--step-2)/1.15 var(--serif); margin-bottom: 1.75rem; }
.site-footer__col { grid-column: span 2; font-size: var(--step--1); line-height: 1.7; color: var(--on-dark-soft); }
.site-footer__col:first-of-type { grid-column: 7 / span 2; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col address strong { display: block; color: var(--ivory); font-weight: 500; }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 11.6vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--plum);
  white-space: nowrap;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  user-select: none;
}
.wordmark em { color: var(--gold); opacity: 0.85; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--on-dark-soft);
}
.site-footer__base p { margin: 0; }

/* ---------- Mobile visit bar ---------- */

.visit-bar {
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--aubergine);
  color: var(--ivory);
  box-shadow: 0 18px 40px -18px rgba(31, 14, 41, 0.6);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease-out);
}
.visit-bar.is-visible { transform: none; }
.visit-bar span { font-size: 0.85rem; line-height: 1.25; }
.visit-bar span strong { display: block; font: 400 1rem/1.2 var(--serif); }
.visit-bar .btn { min-height: 2.9rem; padding: 0.7rem 1.2rem; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.5s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.75s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-2%); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__list { gap: 1.3rem; }
  .nav { gap: 1.4rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 4.25rem; }

  .nav { display: none; }
  .menu-toggle { display: block; }
  .visit-bar { display: flex; }

  /* Hero: the arch becomes a tall window at the top of the screen,
     with the words resting beneath it */
  .hero {
    --arch-w: calc(100vw - 2 * var(--gutter));
    --arch-right: var(--gutter);
    --arch-top: calc(var(--header-h) + 0.5rem);
    --arch-bottom: 47svh;
  }
  .hero__content { justify-content: flex-end; }
  .hero__text { max-width: none; }
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 4.4rem); margin-bottom: 1.1rem; }
  .hero__title .line:nth-child(2) > span { padding-left: 0; }
  .hero__lede { font-size: var(--step-0); margin-bottom: 1.4rem; }
  .hero__foot { gap: 1.25rem; }
  .hero__actions .btn { padding-inline: 1.15rem; }
  .service-tag { gap: 0.1rem 1.5rem; }
  .service-tag dd { font-size: var(--step-0); }
  .hero__place { display: none; }
  .scroll-cue { display: none; }

  .welcome .wrap,
  .gather__grid,
  .pastors .wrap,
  .visit-band .wrap,
  .invite .wrap,
  .split,
  .pastor-feature,
  .name-story,
  .form-layout,
  .site-footer__grid { grid-template-columns: 1fr; }

  .welcome__verse,
  .statement,
  .welcome__more,
  .gather__frame,
  .gather__list,
  .pastors__names,
  .pastors__portrait,
  .pastors__body,
  .visit-band__time,
  .visit-band__info,
  .invite__prayer,
  .invite__give,
  .split__aside,
  .split__main,
  .pastor-feature .media,
  .pastor-feature__text,
  .name-story .verse,
  .name-story .prose,
  .form-layout__aside,
  .form-layout__main,
  .site-footer__invite,
  .site-footer__col,
  .site-footer__col:first-of-type { grid-column: 1 / -1; }

  .welcome__verse { order: 2; }
  .statement { font-size: var(--step-2); line-height: 1.2; }

  /* Gather on mobile: the arch frame sticks at the top while words pass beneath */
  .gather__frame {
    top: calc(var(--header-h) + 0.5rem);
    height: 46svh;
    z-index: 1;
  }
  .gather__caption { display: none; }
  .gather__list { position: relative; z-index: 2; }
  .chapter,
  .chapter:first-child {
    min-height: 0;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding: 1.75rem 1.5rem 1.5rem;
    background: var(--ivory);
    border-radius: 1.5rem 1.5rem 0 0;
    margin-bottom: 38svh;
  }
  .chapter:last-child { margin-bottom: 0; }
  .chapter h3 { font-size: var(--step-3); }
  .chapter p { font-size: var(--step-0); }
  .js-motion .chapter { opacity: 1; }

  .pastors__portrait { width: min(78%, 22rem); margin-inline: auto; }
  .pastors__names .line:nth-child(2) > span { padding-left: 0; }

  .visit-band__time strong { font-size: clamp(6rem, 33vw, 10rem); }
  .invite__give { margin-top: 0; }

  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div { padding-right: 0; }

  .give-item { grid-template-columns: 1fr; }

  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .brand__name span { display: none; }
}

/* ---------- Reduced motion: everything visible, nothing drifts ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .placeholder__motes { display: none; }
  .hero__motes, .hero__seam { display: none; }
}

@media print {
  .site-header, .visit-bar, .mobile-menu, .media, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
