/* ==========================================================================
   Castlereagh Baptist Church — Stylesheet
   Vanilla CSS. No frameworks. No build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --navy:        #0B1D36;
  --navy-deep:   #071426;
  --navy-soft:   #14294A;
  --navy-mist:   #1E3860;
  --cream:       #F8F4EF;
  --cream-deep:  #F1EAE1;
  --white:       #FFFFFF;
  --gold:        #C9A227;
  --gold-light:  #E2C05A;
  --gold-deep:   #A98718;
  --sage:        #7A9278;
  --sage-light:  #B8C8B4;
  --sage-mist:   #E9EFE7;
  --charcoal:    #2F3640;
  --charcoal-soft: #5B6470;
  --line:        rgba(11, 29, 54, 0.10);
  --line-light:  rgba(248, 244, 239, 0.14);

  /* Typography */
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   clamp(0.72rem, 0.7rem + 0.15vw, 0.8rem);
  --fs-sm:   clamp(0.84rem, 0.8rem + 0.2vw, 0.925rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md:   clamp(1.08rem, 1rem + 0.35vw, 1.2rem);
  --fs-lg:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl:   clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-2xl:  clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 1.6rem + 4.6vw, 5.4rem);

  /* Spacing & layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 6vw + 2rem, 8.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 84px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 29, 54, 0.05), 0 2px 8px rgba(11, 29, 54, 0.05);
  --shadow:    0 4px 12px rgba(11, 29, 54, 0.06), 0 16px 40px rgba(11, 29, 54, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 29, 54, 0.10), 0 30px 70px rgba(11, 29, 54, 0.14);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.28);

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 220ms;
  --dur: 420ms;
  --dur-slow: 800ms;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

address { font-style: normal; }
cite { font-style: normal; }

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Typographic helpers
   -------------------------------------------------------------------------- */
/* overflow-x: clip keeps pre-reveal translateX offsets from widening the page
   on mobile without creating a scroll container. */
.section { padding-block: var(--section-y); position: relative; overflow-x: clip; }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.section-head-center .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.section-eyebrow-light { color: var(--gold-light); }

.section-title { font-size: var(--fs-2xl); margin-bottom: 1.1rem; }

.section-intro {
  font-size: var(--fs-md);
  color: var(--charcoal-soft);
  line-height: 1.75;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.22);
}
.btn-gold:hover { box-shadow: var(--shadow-gold); background: var(--gold-light); }

.btn-navy { --btn-bg: var(--navy); --btn-fg: var(--white); box-shadow: 0 6px 18px rgba(11, 29, 54, 0.18); }
.btn-navy:hover { background: var(--navy-soft); box-shadow: 0 12px 30px rgba(11, 29, 54, 0.28); }

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(248, 244, 239, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(248, 244, 239, 0.08);
}
.btn-outline-light:hover svg { transform: none; }

.btn-lg { padding: 1.15rem 2.1rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow-light { color: var(--cream); }
.link-arrow-light:hover svg { transform: translateY(3px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--cream);
  transition:
    background-color var(--dur) ease,
    box-shadow var(--dur) ease,
    color var(--dur) ease,
    height var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 244, 239, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--dur) ease;
  z-index: -1;
}
.site-header.is-scrolled {
  color: var(--navy);
  height: 70px;
  box-shadow: 0 6px 30px rgba(11, 29, 54, 0.06);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Keep header readable when the mobile menu is open */
.site-header.menu-active { color: var(--cream); }
.site-header.menu-active::before { opacity: 0; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  position: relative;
  z-index: 2;
}
.brand-mark {
  flex: none;
  color: inherit;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 3px;
}
.site-header.is-scrolled .brand-mark { width: 44px; height: 44px; }

.nav-desktop ul { display: flex; gap: clamp(0.5rem, 1.5vw, 1.75rem); }
.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.86;
  transition: opacity var(--dur-fast) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.2rem; right: 0.2rem; bottom: 0.2rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: none; }

/* Hamburger */
.menu-toggle {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease;
}
.menu-toggle:hover { background: rgba(201, 162, 39, 0.12); }
.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--dur) var(--ease-in-out), opacity var(--dur-fast) ease, width var(--dur) var(--ease-out);
}
.menu-toggle-bar:nth-child(2) { width: 18px; align-self: flex-end; margin-right: 12px; }
.menu-toggle:hover .menu-toggle-bar:nth-child(2) { width: 24px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 1023px) {
  .nav-desktop { display: none; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
}

/* --------------------------------------------------------------------------
   6. Mobile full-canvas menu
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(201, 162, 39, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(122, 146, 120, 0.22), transparent 50%),
    var(--navy);
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path 0.75s var(--ease-in-out);
}
.mobile-menu.is-open .mobile-menu-bg { clip-path: circle(160% at calc(100% - 44px) 42px); }

.mobile-menu-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-list { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu-list li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu-list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.28s + var(--i, 0) * 0.06s);
}

.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid var(--line-light);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-fast) ease, padding-left var(--dur) var(--ease-out);
}
.mobile-link::before {
  content: attr(data-index);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  min-width: 1.8rem;
}
.mobile-link:hover, .mobile-link:focus-visible { color: var(--gold-light); padding-left: 0.5rem; }

.mobile-menu-footer {
  margin-top: 2.5rem;
  color: rgba(248, 244, 239, 0.75);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out) 0.7s, transform 0.6s var(--ease-out) 0.7s;
}
.mobile-menu.is-open .mobile-menu-footer { opacity: 1; transform: none; }
.mobile-menu-times strong { color: var(--gold-light); font-weight: 600; }
.mobile-menu-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1.25rem;
}
.mobile-menu-verse span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 3rem) 6rem;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Hero photograph: the church at sunrise. The translucent gradient overlay
   below keeps the heading legible over the bright cream facade. */
.hero-bg-image {
  --hero-image: url("assets/hero-sunrise.jpg");
  position: absolute;
  inset: -6%;
  background-color: var(--navy);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    /* Darken behind the centred copy so white text reads over the facade */
    radial-gradient(ellipse 58% 48% at 50% 46%, rgba(11, 29, 54, 0.62), rgba(11, 29, 54, 0) 100%),
    /* Fade the header zone and anchor the bottom into the next section */
    linear-gradient(180deg,
      rgba(11, 29, 54, 0.58) 0%,
      rgba(11, 29, 54, 0.28) 30%,
      rgba(11, 29, 54, 0.30) 60%,
      rgba(6, 16, 32, 0.82) 100%);
}
.hero-bg-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 244, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 239, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-orb-1 {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  right: -8%; top: -10%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.45), rgba(201, 162, 39, 0) 70%);
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 40vw; height: 40vw;
  max-width: 520px; max-height: 520px;
  left: -10%; bottom: -5%;
  background: radial-gradient(circle, rgba(122, 146, 120, 0.5), rgba(122, 146, 120, 0) 70%);
  animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, 8%) scale(1.12); }
}

.hero-hills {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(120px, 18vw, 240px);
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}
.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 24px rgba(6, 16, 32, 0.55), 0 1px 3px rgba(6, 16, 32, 0.4);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
}

.hero-sub {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(248, 244, 239, 0.92);
  max-width: 40ch;
  margin: 0 auto 2.75rem;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(6, 16, 32, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 3.5rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(11, 29, 54, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta-item { display: flex; flex-direction: column; text-align: left; }
.hero-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.hero-meta-value { font-size: var(--fs-sm); font-weight: 500; color: var(--cream); }
.hero-meta-divider { width: 1px; height: 32px; background: var(--line-light); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(248, 244, 239, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color var(--dur-fast) ease;
}
.hero-scroll:hover { color: var(--gold-light); }
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, currentColor);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scroll-drop 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-drop {
  0%   { top: -100%; }
  60%, 100% { top: 100%; }
}

/* Load sequence */
[data-load] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: load-up 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.15s + (var(--load-i, 1) - 1) * 0.13s);
}
[data-load="1"] { --load-i: 1; }
[data-load="2"] { --load-i: 2; }
[data-load="3"] { --load-i: 3; }
[data-load="4"] { --load-i: 4; }
[data-load="5"] { --load-i: 5; }
[data-load="6"] { --load-i: 6; }
@keyframes load-up {
  to { opacity: 1; transform: none; }
}
.hero-eyebrow .eyebrow-line {
  transform: scaleX(0);
  animation: line-grow 0.9s var(--ease-out) 0.6s forwards;
}
@keyframes line-grow { to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .hero { padding-block: calc(var(--header-h) + 2rem) 5rem; }
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    width: 100%;
  }
  .hero-meta-divider { width: 100%; height: 1px; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }
  .eyebrow-line { display: none; }
}

/* --------------------------------------------------------------------------
   7b. Purpose statement
   -------------------------------------------------------------------------- */
.purpose {
  position: relative;
  padding-block: clamp(5.5rem, 9vw, 10rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(122, 146, 120, 0.14), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.purpose-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Plumb line dropping from the hero's scroll cue into the eyebrow */
.purpose-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: clamp(2.75rem, 5vw, 4.5rem);
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.purpose-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(380px, 62vw, 780px);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--navy);
  opacity: 0.045;
}

.purpose-inner {
  position: relative;
  max-width: 1000px;
}

.purpose-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1;
}
.purpose-eyebrow-line {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.purpose-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1rem + 2.9vw, 3.6rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 auto;
  text-wrap: balance;
}
.purpose-statement em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.purpose-verbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}
.purpose-verbs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 1.5px;
  transform: translateX(-50%);
  background: var(--gold);
}
.purpose-verbs li {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.purpose-verbs li + li::before {
  content: "✦";
  font-size: 0.55rem;
  color: var(--gold);
  margin-inline: clamp(0.9rem, 1.8vw, 1.5rem);
}

@media (max-width: 640px) {
  .purpose-verbs {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 0.9rem 1.75rem;
  }
  .purpose-verbs li { justify-content: center; }
  .purpose-verbs li + li::before { display: none; }
  .purpose-eyebrow-line { width: 24px; }
}

/* --------------------------------------------------------------------------
   8. Verse strip
   -------------------------------------------------------------------------- */
.strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 1.6rem;
  text-align: center;
}
.strip-icon { color: var(--gold-deep); flex: none; }
.strip-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--navy);
}
.strip-text span {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-left: 0.6rem;
  font-weight: 600;
}
@media (max-width: 520px) {
  .strip-icon { display: none; }
  .strip-text span { display: block; margin: 0.4rem 0 0; }
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.95fr 1.05fr; }
}

.about-media { position: relative; isolation: isolate; }
.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
@media (max-width: 899px) {
  .about-image-frame { aspect-ratio: 16 / 11; }
}
.about-image {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201, 162, 39, 0.35), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(7, 20, 38, 0.9), transparent 60%),
    linear-gradient(180deg, var(--navy-mist) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  will-change: transform;
}
/* Abstract sanctuary: arched window + light shafts + pews */
.about-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 34%;
  aspect-ratio: 1 / 1.9;
  transform: translateX(-50%);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(248, 244, 239, 0.55), rgba(201, 162, 39, 0.28) 55%, rgba(248, 244, 239, 0.02));
  box-shadow: 0 0 80px 20px rgba(226, 192, 90, 0.18);
}
.about-image::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 14%,
      rgba(248, 244, 239, 0.05) 14% 16%,
      rgba(11, 29, 54, 0.5) 16% 22%
    );
  mask-image: linear-gradient(to top, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent);
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom;
}
.about-image-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: rgba(248, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: calc(100% - 2.5rem);
}
.about-badge-icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
}
.about-badge-icon svg { width: 18px; height: 18px; }
.about-badge-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}
.about-badge-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-deep);
}
.about-media-accent {
  position: absolute;
  z-index: -1;
  inset: 8% -6% -6% 8%;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

.about-points {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.25rem;
}
.about-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-points div { display: flex; flex-direction: column; }
.about-points strong { color: var(--navy); font-weight: 600; font-size: var(--fs-base); }
.about-points span:not(.point-icon) { color: var(--charcoal-soft); font-size: var(--fs-sm); }
.point-icon {
  flex: none;
  width: 30px; height: 30px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-mist);
  color: var(--sage);
}
.point-icon svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   10. Beliefs
   -------------------------------------------------------------------------- */
.beliefs {
  background:
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201, 162, 39, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(122, 146, 120, 0.14), transparent 60%),
    var(--navy);
  color: var(--cream);
  overflow: hidden;
}
.beliefs .section-title { color: var(--white); }
.beliefs .section-intro { color: rgba(248, 244, 239, 0.72); }
.beliefs-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248, 244, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 239, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

.belief-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: rgba(248, 244, 239, 0.045);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.belief-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.6), transparent 40%, transparent 60%, rgba(122, 146, 120, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.belief-card:hover {
  transform: translateY(-6px);
  background: rgba(248, 244, 239, 0.07);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.belief-card:hover::before { opacity: 1; }
.belief-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) ease;
}
.belief-icon svg { width: 24px; height: 24px; }
.belief-card:hover .belief-icon { transform: scale(1.08) rotate(-4deg); background: rgba(201, 162, 39, 0.2); }
.belief-card h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.6rem; }
.belief-card p { font-size: var(--fs-sm); color: rgba(248, 244, 239, 0.74); line-height: 1.7; margin-bottom: 1.1rem; }
.belief-card cite {
  display: inline-block;
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.beliefs-note {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: rgba(248, 244, 239, 0.65);
  max-width: 62ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 2rem; right: 2rem; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }

.service-card-featured {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(201, 162, 39, 0.2), transparent 60%),
    var(--navy);
  color: var(--cream);
  border-color: transparent;
}
.service-card-featured h3 { color: var(--white); }
.service-card-featured p { color: rgba(248, 244, 239, 0.78); }
.service-card-featured .service-day { color: var(--gold-light); }
.service-card-featured .service-details li { color: rgba(248, 244, 239, 0.78); border-color: var(--line-light); }
.service-card-featured .service-details li::before { color: var(--gold-light); }
.service-card-featured .service-time { color: var(--white); }
.service-card-featured .service-time span { color: var(--gold-light); }

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.service-day {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.service-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
}
.service-time {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.service-time span {
  font-size: 0.45em;
  margin-left: 0.15em;
  color: var(--gold-deep);
  font-weight: 500;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.service-card > p:not(.service-time) { font-size: var(--fs-sm); color: var(--charcoal-soft); margin-bottom: 1.5rem; flex: 1; }
.service-details { display: grid; gap: 0.5rem; }
.service-details li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--charcoal);
  border-top: 1px solid var(--line);
}
.service-details li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-size: 0.7rem;
  color: var(--gold-deep);
}

.services-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2rem 2.25rem;
  background: var(--sage-mist);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 146, 120, 0.25);
}
.services-cta h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.services-cta p { font-size: var(--fs-sm); color: var(--charcoal-soft); max-width: 60ch; }
.services-cta-text { flex: 1 1 320px; }

/* --------------------------------------------------------------------------
   12. Ministries
   -------------------------------------------------------------------------- */
.ministries { background: var(--white); }

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.ministry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) ease;
}
.ministry-card::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
  transform: scale(0.6);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) ease;
}
.ministry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--white); }
.ministry-card:hover::before { transform: scale(1); opacity: 1; }
.ministry-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) ease;
}
.ministry-icon svg { width: 26px; height: 26px; }
.ministry-card:hover .ministry-icon { transform: translateY(-3px) rotate(-4deg); background: var(--navy-soft); }
.ministry-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.ministry-card p { font-size: var(--fs-sm); color: var(--charcoal-soft); flex: 1; margin-bottom: 1.4rem; }
.ministry-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.ministry-meta::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* --------------------------------------------------------------------------
   13. Sermons
   -------------------------------------------------------------------------- */
.sermons {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(30, 56, 96, 0.9), transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(201, 162, 39, 0.1), transparent 60%),
    var(--navy-deep);
  color: var(--cream);
}
.sermons .section-title { color: var(--white); }
.sermons .section-intro { color: rgba(248, 244, 239, 0.72); }

.sermon-video {
  max-width: 960px;
  margin-inline: auto;
}
.sermon-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-light);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.08);
  isolation: isolate;
}
.sermon-video-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.55), transparent 35%, transparent 65%, rgba(122, 146, 120, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.sermon-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  animation: fade-in 0.6s var(--ease-out);
}

.sermon-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  color: var(--cream);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201, 162, 39, 0.22), transparent 70%),
    linear-gradient(135deg, var(--navy-mist), var(--navy) 60%, var(--navy-deep));
  overflow: hidden;
  transition: opacity var(--dur) ease;
}
.sermon-video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 244, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 239, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.sermon-video-poster::after {
  /* Soft "light shaft" from the top, echoing the About artwork */
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 34%;
  height: 70%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(248, 244, 239, 0.10), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.sermon-video-poster:hover .sermon-play { transform: scale(1.08); background: var(--gold-light); }
.sermon-video-poster:focus-visible { outline-offset: -4px; }
.sermon-video.is-playing .sermon-video-poster { opacity: 0; pointer-events: none; }

.sermon-video-tag {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border-radius: 999px;
  z-index: 1;
}
.sermon-video-hint {
  position: relative;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: rgba(248, 244, 239, 0.78);
  line-height: 1.5;
}

.sermons-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}
.sermon-channel-link svg { transition: transform var(--dur) var(--ease-spring); }
.sermon-channel-link:hover svg { transform: scale(1.12); }

.sermon-play {
  position: relative;
  display: grid;
  width: 84px; height: 84px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) ease;
}
.sermon-play svg { margin-left: 4px; }
.sermon-play::before, .sermon-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 39, 0.5);
  animation: ring-pulse 2.6s var(--ease-out) infinite;
}
.sermon-play::after { animation-delay: 1.3s; }
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 520px) {
  .sermon-play { width: 68px; height: 68px; }
  .sermon-video-hint { font-size: var(--fs-base); }
  .sermon-channel-link { width: 100%; white-space: normal; text-align: center; }
}

/* --------------------------------------------------------------------------
   14. Verse banner
   -------------------------------------------------------------------------- */
.verse-banner {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 255, 255, 0.5), transparent 70%),
    var(--sage-mist);
  text-align: center;
  overflow: hidden;
}
.verse-banner::before, .verse-banner::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(122, 146, 120, 0.25);
  pointer-events: none;
}
.verse-banner::before { left: -200px; top: -200px; }
.verse-banner::after { right: -200px; bottom: -200px; }
.verse-quote {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 1.5rem;
}
.verse-mark {
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}
.verse-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.verse-quote footer {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.verse-quote footer::before {
  content: "";
  display: block;
  width: 48px; height: 1.5px;
  margin: 0 auto 1rem;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-map-wrap { position: relative; isolation: isolate; }
.contact-map-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -5% -6% 10%;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.45;
}
.contact-map-canvas {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.contact-map-canvas > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}
.contact-map:hover .contact-map-canvas > svg { transform: scale(1.04); }
.map-pin {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -100%);
  display: grid;
  place-items: center;
}
.map-pin > svg { position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(11, 29, 54, 0.3)); animation: pin-bob 3s var(--ease-in-out) infinite; }
@keyframes pin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.map-pin-pulse {
  position: absolute;
  bottom: -6px;
  width: 26px; height: 10px;
  border-radius: 50%;
  background: rgba(11, 29, 54, 0.25);
  animation: pin-shadow 3s var(--ease-in-out) infinite;
}
@keyframes pin-shadow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(0.75); opacity: 0.3; }
}
.map-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, 0);
  padding: 0.45rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.contact-map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.contact-map-link:hover { background: var(--navy); color: var(--cream); }

.contact-list {
  display: grid;
  gap: 0.5rem;
}
.contact-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.contact-list li:hover {
  background: var(--white);
  border-color: var(--line);
  transform: translateX(4px);
}
.contact-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-light);
  transition: transform var(--dur) var(--ease-spring);
}
.contact-list li:hover .contact-icon { transform: rotate(-4deg) scale(1.05); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.25rem;
}
.contact-list address, .contact-list p, .contact-list a {
  font-size: var(--fs-base);
  color: var(--navy);
  line-height: 1.55;
  font-weight: 500;
}
.contact-list a { position: relative; }
.contact-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.contact-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.contact-note {
  margin: 1.75rem 1.25rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}
.contact-note p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--charcoal-soft);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(248, 244, 239, 0.72);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  font-size: var(--fs-sm);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr; gap: 3rem; }
}

.brand-footer { color: var(--cream); margin-bottom: 1.25rem; }
.footer-tagline { max-width: 38ch; line-height: 1.7; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--cream);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur) var(--ease-spring);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-3px); }

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-links ul { display: grid; gap: 0.55rem; }
.footer-links a {
  position: relative;
  color: rgba(248, 244, 239, 0.75);
  padding-left: 0;
  transition: color var(--dur-fast) ease, padding-left var(--dur) var(--ease-out);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease-out);
}
.footer-links a:hover { color: var(--white); padding-left: 1.1rem; }
.footer-links a:hover::before { width: 0.75rem; }

.footer-times ul { display: grid; gap: 0.7rem; }
.footer-times li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line-light);
}
.footer-times strong { color: var(--cream); font-weight: 600; }

.footer-verse blockquote { margin: 0; }
.footer-verse p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(248, 244, 239, 0.85);
  margin-bottom: 0.75rem;
}
.footer-verse footer {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: var(--fs-xs);
  color: rgba(248, 244, 239, 0.5);
}
.footer-credit a { color: inherit; }
.footer-credit a:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* --------------------------------------------------------------------------
   17b. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 0.9rem 1.3rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--cream);
  text-align: center;
  background: rgba(11, 29, 54, 0.92);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* --------------------------------------------------------------------------
   19. Reduced motion & misc
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-load], .reveal { opacity: 1; transform: none; }
  .mobile-menu-list li, .mobile-menu-footer { opacity: 1; transform: none; }
  .hero-orb { animation: none; }
}

@media (hover: none) {
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .back-to-top, .hero-scroll, .hero-bg { display: none !important; }
  .hero { min-height: auto; color: var(--navy); }
  .hero-title { color: var(--navy); }
  .reveal, [data-load] { opacity: 1 !important; transform: none !important; }
}
