/* ------------------------------------------------------------
   The Word of Life Church · Parole de Vie La Borne
   Palette: navy, blue, orange-red, light blue, white (original site colours)
   Type:    Poppins (primary), Instrument Serif (headlines)
   ------------------------------------------------------------ */

:root {
  /* Palette taken from the original wordoflifelaborne.org site (see SITE-REFERENCE.md) */
  --espresso: #00113D;            /* navy */
  --espresso-2: #000B29;          /* deep navy */
  --rust: #417FCE;                /* blue */
  --ember: #FF3200;               /* orange-red accent */
  --amber: #79ADEE;               /* light blue */
  --amber-2: #B9D3F5;
  --cream: #FFFFFF;               /* page background */
  --cream-2: #F7F7F7;             /* light surface */
  --ink: #00113D;                 /* headings */
  --ink-soft: #5D5454;            /* body text */
  --line: rgba(0, 17, 61, 0.14);
  --night: #00113D;               /* dark giving section */
  --card: #FFFFFF;                /* card surfaces */
  color-scheme: light;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;
  --radius-pill: 62.4375rem;

  --w-max: 84rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 8rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: clamp(16px, calc(16px + (100vw - 1280px) * 0.00625), 26px); }

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: .72rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.skip-link {
  position: fixed; left: 0.75rem; top: 0.75rem; z-index: 300;
  background: var(--espresso); color: #fff; padding: 0.5rem 0.9rem; font-size: 0.765rem;
  border-radius: var(--radius-pill); transform: translateY(-300%); opacity: 0; pointer-events: none;
}
.skip-link:focus-visible { transform: none; opacity: 1; pointer-events: auto; }

.wrap { width: min(100% - var(--gutter) * 2, var(--w-max)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.h-display { font-size: clamp(2.4rem, 6.2vw, 5.2rem); letter-spacing: -0.035em; line-height: 0.98; }
.h-1 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.h-2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.h-3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em { font-style: italic; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(.82rem, .9vw, .9rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.702rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 1.125rem;
}
.eyebrow::before { content: ""; width: 1.375rem; height: 2px; background: var(--ember); border-radius: 2px; }
.eyebrow .fr { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-soft); }
.eyebrow .fr::before { content: "·"; margin-right: 0.625rem; }
@media (max-width: 600px) {
  .eyebrow { flex-wrap: wrap; row-gap: 2px; }
  .eyebrow .fr { flex-basis: 100%; padding-left: 2rem; }
  .eyebrow .fr::before { content: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  padding: 0.875rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.882rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #d92a00; }
.btn-outline { border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: #00113D; }
.btn-amber { background: var(--amber); color: var(--espresso-2); }
.btn-amber:hover { background: var(--amber-2); }
.btn svg { width: 1rem; height: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, #fff 86%, transparent);
  backdrop-filter: blur(0.875rem); -webkit-backdrop-filter: blur(0.875rem);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.75rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 2.5rem; height: 2.5rem; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 0.918rem; letter-spacing: -0.01em; }
.brand-name span { font-family: var(--font-serif); font-style: italic; font-size: 0.855rem; color: var(--rust); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 0.625rem 0.875rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.855rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--cream-2); }
.nav-links a[aria-current="page"] { color: var(--rust); font-weight: 600; }
.nav-cta { margin-left: 8px; padding: 0.75rem 1.25rem; }

.nav-toggle {
  display: none; width: 2.875rem; height: 2.875rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 1.25rem; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 4.75rem 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.875rem 1rem; font-size: 0.945rem; }
  .nav-cta { display: flex; margin: 0.625rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 var(--section); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy .h-display { margin-bottom: 1.375rem; }
.hero-copy .h-display .accent { color: var(--ember); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.625rem; }

.hero-card {
  position: relative; min-height: 27.5rem; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--espresso-2); box-shadow: 0 1.875rem 3.75rem -30px rgba(0,17,61,.45);
}
.hero-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  filter: saturate(.8) contrast(1.05);
  transform: scale(1.02);
}
.hero-copy .h-display { max-width: 11ch; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,17,61,.05) 30%, rgba(0,17,61,.92) 100%);
}
.hero-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; z-index: 1; color: #fff; }
.hero-card-body .time { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero-card-body .label { color: var(--amber); font-weight: 600; font-size: 0.765rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.hero-card-body .addr { margin: 0.625rem 0 0; color: rgba(255,255,255,.85); font-size: 0.855rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 22.5rem; }
}

/* ---------- Service cards (palette swatch row) ---------- */
.services { padding: 0 0 var(--section); }
.swatch-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem;
}
.swatch {
  box-shadow: 0 1.25rem 2.5rem -28px rgba(0,17,61,.5);
  position: relative; border-radius: var(--radius-lg); padding: 1.625rem 1.625rem 1.75rem; min-height: 13.75rem;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .35s var(--ease);
}
.swatch:hover { transform: translateY(-4px); }
.swatch .kicker { font-size: 0.702rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.swatch .when { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 1.125rem 0 8px; }
.swatch .what { font-weight: 600; font-size: 0.945rem; }
.swatch .fr { font-family: var(--font-serif); font-style: italic; font-size: 0.945rem; opacity: .85; }
.swatch--amber { color: var(--espresso-2); }
.swatch--espresso { background: var(--espresso); color: #fff; }
.swatch--rust { background: var(--rust); color: #fff; }
.swatch--ember { background: var(--ember); color: #fff; }
.swatch--amber { background: var(--amber); color: var(--espresso-2); }
.swatch .tag {
  position: absolute; top: 1.375rem; right: 1.375rem; padding: 6px 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.675rem; font-weight: 600; background: rgba(255,255,255,.16);
}
.swatch--amber .tag { background: rgba(59,42,34,.12); }

@media (max-width: 900px) { .swatch-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .swatch-row { grid-template-columns: 1fr; } .swatch { min-height: 0; } }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 45rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head .h-1 { margin-bottom: 1rem; }
.section--cream2 { background: var(--cream-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.about-mark {
  border-radius: var(--radius-xl); background: var(--ember); aspect-ratio: 4 / 3.4;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.about-mark svg { width: 46%; }
.about-mark .since {
  position: absolute; left: 1.5rem; bottom: 1.375rem; color: #fff; font-weight: 600; font-size: 0.765rem; letter-spacing: .1em; text-transform: uppercase;
}
.about-mark .since strong { display: block; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.pillars { display: grid; gap: 0.875rem; margin-top: 1.75rem; }
.pillar { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.125rem 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar dt { font-weight: 700; }
.pillar dt span { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--rust); }
.pillar dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-mark { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .pillar { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Ministries ---------- */
.ministry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
.ministry {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: 12.5rem; padding: 1.375rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background .3s, color .3s, transform .35s var(--ease), border-color .3s;
}
.ministry:hover { background: var(--rust); color: #fff; border-color: var(--rust); transform: translateY(-4px); }
.ministry:hover h3 { color: #fff; }
.ministry .fr { font-family: var(--font-serif); font-style: italic; opacity: .8; font-size: 0.918rem; }
.ministry h3 { font-size: 1.2rem; margin-top: 4px; }
.ministry p { margin: 0; font-size: 0.855rem; opacity: .85; }
.ministry .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.81rem; }
.ministry .go svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.ministry:hover .go svg { transform: translateX(4px); }
.ministry--feature { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.ministry--feature h3 { color: #fff; }
.ministry--feature:hover { background: var(--espresso-2); }
@media (max-width: 1000px) { .ministry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ministry-grid { grid-template-columns: 1fr; } .ministry--feature { grid-column: auto; } .ministry { min-height: 0; } }

/* ---------- Giving (dark, editorial) ---------- */
.giving { background: var(--night); color: #fff; padding: var(--section) 0; }
.giving-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.giving .h-serif {
  color: #fff;
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.giving .h-serif em { font-style: italic; color: var(--amber); }
.giving .lead { color: rgba(255,255,255,.78); max-width: 46ch; }
.giving-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.blueprint { position: relative; }
.blueprint svg { width: 100%; height: auto; }
.blueprint .bp-line { stroke: rgba(255,255,255,.8); stroke-width: 1.2; fill: none; }
.blueprint .bp-num { font-family: var(--font-display); font-size: 0.619rem; font-weight: 600; fill: #fff; letter-spacing: .08em; }
.blueprint .bp-bay { fill: transparent; transition: fill .3s; }
.blueprint .bp-bay:hover, .blueprint .bp-bay.is-active { fill: rgba(121,173,238,.18); }

.bp-legend {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 1.125rem;
  list-style: none; margin: 1.625rem 0 0; padding: 0;
  font-size: 0.765rem; color: rgba(255,255,255,.7);
}
.bp-legend li { display: flex; gap: 0.625rem; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.14); cursor: default; transition: color .2s; }
.bp-legend li:hover, .bp-legend li.is-active { color: var(--amber); }
.bp-legend b { font-weight: 600; color: #fff; min-width: 1.625rem; }
.bp-legend li:hover b { color: var(--amber); }

@media (max-width: 900px) { .giving-grid { grid-template-columns: 1fr; } .bp-legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bp-legend { grid-template-columns: 1fr; } }

/* ---------- Sermons ---------- */
.sermons-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-xl);
  background: var(--amber); color: var(--espresso-2);
}
.sermons-card .h-2 { margin-bottom: 8px; color: var(--espresso-2); }
.sermons-card p { margin: 0; color: rgba(0,11,41,.78); max-width: 52ch; }
.play {
  display: inline-grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  background: var(--espresso); color: #fff; transition: transform .3s var(--ease), background .3s;
}
.play:hover { transform: scale(1.06); background: var(--ember); }
.play svg { width: 1.75rem; height: 1.75rem; margin-left: 4px; }
@media (max-width: 640px) { .sermons-card { grid-template-columns: 1fr; } }

/* ---------- Visit / contact strip ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 6.875rem 1fr; gap: 0.75rem; padding: 0.875rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 0.702rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); padding-top: 4px; }
.contact-list a:hover { color: var(--ember); }
.map { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-2); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 1.75rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-top .brand-name strong { color: #fff; }
.footer-top .brand-name span { color: var(--amber); }
.footer-top p { color: rgba(255,255,255,.7); max-width: 34ch; margin-top: 1rem; font-size: 0.855rem; }
.footer-col h4 { font-size: 0.702rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.82); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.375rem; font-size: 0.765rem; color: rgba(255,255,255,.55); }
.footer-bottom .tag { font-family: var(--font-serif); font-style: italic; font-size: 0.945rem; color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.75rem, 4vw, 3rem); }
.page-hero .h-display { max-width: 16ch; }
.page-hero .lead { max-width: 60ch; margin-top: 1.125rem; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose p + p { margin-top: 0; }
.quote {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em;
  padding: 1.75rem 0 1.75rem 1.625rem; border-left: 3px solid var(--ember); margin: 2.5rem 0;
}
.quote cite { display: block; font-family: var(--font-display); font-style: normal; font-size: 0.765rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-top: 0.875rem; }

/* ---------- Ministry detail list ---------- */
.ministry-rows { display: grid; gap: 0; }
.ministry-row { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 5.625rem; }
.ministry-row:last-child { border-bottom: 1px solid var(--line); }
.ministry-row h3 { font-size: 1.4rem; }
.ministry-row .fr { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--rust); font-size: 0.99rem; margin-top: 4px; }
.ministry-row p { color: var(--ink-soft); }
.ministry-row .meta { font-size: 0.765rem; font-weight: 600; color: var(--rust); letter-spacing: .06em; text-transform: uppercase; margin-top: 0.625rem; }
@media (max-width: 720px) { .ministry-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Give options ---------- */
.give-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.give-option { padding: 1.625rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.625rem; }
.give-option h3 { font-size: 1.2rem; }
.give-option p { margin: 0; color: var(--ink-soft); font-size: 0.855rem; }
.give-option .btn { align-self: flex-start; margin-top: auto; }
.give-option--accent { background: var(--ember); color: #fff; border-color: var(--ember); }
.give-option--accent h3 { color: #fff; }
.give-option--accent p { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .give-options { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.765rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.875rem 1rem; border-radius: var(--radius-md); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,50,0,.15); }
.field textarea { min-height: 8.75rem; resize: vertical; }
.form-note { font-size: 0.765rem; color: var(--ink-soft); }
.form-status { display: none; padding: 0.875rem 1rem; border-radius: var(--radius-md); background: var(--amber-2); color: var(--espresso-2); font-weight: 500; }
.form-status.is-visible { display: block; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(1.125rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

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

/* ============================================================
   Home hero: converging light rays (transparent header on top)
   ============================================================ */
.site-header--hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--hero .brand-name strong, .site-header--hero .nav-links a { color: #fff; }
.site-header--hero .brand-name span { color: var(--amber); }
.site-header--hero .brand-name, .site-header--hero .nav-links a { text-shadow: 0 1px 0.875rem rgba(0,11,41,.7); }
.site-header--hero .nav-links a { font-size: 0.72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.site-header--hero .nav-links a:hover { background: rgba(255,255,255,.1); }
.site-header--hero .nav-links a[aria-current="page"] { color: var(--amber); }
.site-header--hero .nav-toggle { border-color: rgba(255,255,255,.35); }
.site-header--hero .nav-toggle span, .site-header--hero .nav-toggle span::before, .site-header--hero .nav-toggle span::after { background: #fff; }
.nav-open .site-header--hero .nav-toggle span { background: transparent; }
.site-header--hero.is-scrolled { background: rgba(0,11,41,.92); backdrop-filter: blur(0.875rem); -webkit-backdrop-filter: blur(0.875rem); border-bottom-color: rgba(255,255,255,.1); }
.site-header--hero .nav-links a.nav-cta { color: #fff; letter-spacing: 0; text-transform: none; font-size: 0.855rem; }
@media (max-width: 900px) {
  .site-header--hero .nav-links { background: var(--espresso-2); border-bottom-color: rgba(255,255,255,.12); }
  .site-header--hero .nav-links a { letter-spacing: .06em; }
  .site-header--hero .nav-links a:hover { background: rgba(255,255,255,.08); }
}

.hero--rays {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: -76px; color: #fff; background: var(--espresso-2);
  padding: calc(4.75rem + clamp(3.5rem, 8vw, 6.875rem)) 0 clamp(8.125rem, 13vw, 11.875rem);
}
.hero-rays {
  position: absolute; inset: -15%; z-index: -2;
  background:
    repeating-conic-gradient(from 196deg at 112% -14%,
      #000B29 0deg, #00113D 1.1deg, #2F6BC4 2.8deg, #79ADEE 4.1deg, #F4EEDC 4.9deg,
      #79ADEE 5.7deg, #1A4FA6 7.2deg, #000B29 9.2deg, #000B29 10.4deg);
  filter: blur(3px) saturate(1.2) brightness(1.08);
  transform: translateZ(0);
}
.hero-rays::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 58%, rgba(0,11,41,.72) 0%, rgba(0,11,41,.42) 50%, rgba(0,11,41,0) 100%),
    linear-gradient(180deg, rgba(0,11,41,.5) 0%, rgba(0,11,41,0) 26%, rgba(0,11,41,.55) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 13.75rem 13.75rem;
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow--onhero { color: var(--amber); justify-content: center; }
.eyebrow--onhero .fr { color: rgba(255,255,255,.72); }
.hero-title {
  font-family: var(--font-serif); font-weight: 400; color: #fff;
  font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 14ch; margin: 0 0 1.375rem;
}
.hero-title .script {
  font-family: "Caveat", "Instrument Serif", cursive; font-weight: 700; color: var(--amber);
  font-size: 1.28em; line-height: .8; display: inline-block; transform: rotate(-3deg) translateY(.06em);
  padding: 0 .08em;
}
.hero-lead { color: rgba(255,255,255,.8); max-width: 54ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); margin: 0 auto 6px; }
.hero-lead .serif { color: var(--amber); font-size: 1.12em; }
.hero-actions--center { justify-content: center; margin-top: 1rem; }
.scroll-cue {
  margin-top: clamp(2.25rem, 5vw, 4rem); font-size: 0.666rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.65); display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue span { font-size: 0.99rem; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* rotating stamp, top-right of the hero */
.stamp { position: absolute; right: 0; top: -24px; width: 7.75rem; height: 7.75rem; }
.stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp-text { font-family: var(--font-display); font-size: 9.2px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; fill: rgba(255,255,255,.85); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .stamp { position: static; width: 6.5rem; height: 6.5rem; margin-bottom: 1.125rem; } }

/* service cards overlap the hero's bottom edge */
.services--overlap { position: relative; z-index: 2; margin-top: clamp(-96px, -9vw, -60px); }
.services--overlap .swatch { box-shadow: 0 1.875rem 3.125rem -28px rgba(0,17,61,.55); }

/* about block with the photo */
.about-mark--photo { background: var(--espresso-2); }
.about-mark--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.8); }
.about-mark--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,11,41,0) 40%, rgba(0,11,41,.75) 100%); }
.about-mark--photo .since { z-index: 1; background: var(--ember); padding: 0.75rem 1rem; border-radius: 0.875rem; left: 1.25rem; bottom: 1.25rem; }
.about-mark--photo .since strong { font-size: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  .stamp svg, .scroll-cue span { animation: none; }
}

/* inner-page variant of the rays hero */
.hero--page { padding: calc(4.75rem + clamp(2.75rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 6.5rem); }
.hero--page .hero-title { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 16ch; margin-bottom: 1.125rem; }
.hero--page .hero-lead { margin-bottom: 0; }
.hero--page + .section, .hero--page + .giving { padding-top: clamp(3rem, 7vw, 6rem); }

/* ============================================================
   Night mode: same tokens, different values
   ============================================================ */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --espresso: #1B2C5E;
  --espresso-2: #060C1F;
  --rust: #6FA3EA;
  --amber: #79ADEE;
  --amber-2: #2A4A8A;
  --cream: #0B1430;
  --cream-2: #111C3E;
  --card: #141F46;
  --ink: #FFFFFF;
  --ink-soft: #B8C1D6;
  --line: rgba(255, 255, 255, 0.14);
  --night: #060C1F;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --espresso: #1B2C5E;
  --espresso-2: #060C1F;
  --rust: #6FA3EA;
  --amber: #79ADEE;
  --amber-2: #2A4A8A;
  --cream: #0B1430;
  --cream-2: #111C3E;
  --card: #141F46;
  --ink: #FFFFFF;
  --ink-soft: #B8C1D6;
  --line: rgba(255, 255, 255, 0.14);
  --night: #060C1F;
  color-scheme: dark;
}

.nav-tools { display: flex; align-items: center; gap: 0.625rem; }
.theme-toggle {
  width: 2.875rem; height: 2.875rem; border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; transition: background .2s, transform .25s var(--ease);
}
.theme-toggle:hover { background: var(--cream-2); transform: rotate(-12deg); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; grid-area: 1 / 1; transition: opacity .25s, transform .4s var(--ease); }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .ico-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
}
.site-header--hero .theme-toggle { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header--hero .theme-toggle:hover { background: rgba(255,255,255,.1); }

/* surfaces that were hard-coded white now follow the card token */
.ministry, .give-option, .field input, .field textarea, .field select { background: var(--card); }
.site-header:not(.site-header--hero) { background: color-mix(in srgb, var(--cream) 86%, transparent); }
:root[data-theme="dark"] .btn-outline, :root[data-theme="dark"] .btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
:root[data-theme="dark"] .btn-outline:hover { background: #fff; color: #00113D; }
:root[data-theme="dark"] .swatch--amber { color: #06122E; }
:root[data-theme="dark"] .sermons-card { color: #06122E; }
:root[data-theme="dark"] .sermons-card .h-2 { color: #06122E; }
:root[data-theme="dark"] .sermons-card p { color: rgba(6,18,46,.8); }
:root[data-theme="dark"] .map iframe { filter: saturate(.7) brightness(.85); }
:root[data-theme="dark"] .about-mark--photo .since { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
  :root:not([data-theme="light"]) .btn-outline:hover { background: #fff; color: #00113D; }
  :root:not([data-theme="light"]) .swatch--amber, :root:not([data-theme="light"]) .sermons-card, :root:not([data-theme="light"]) .sermons-card .h-2 { color: #06122E; }
  :root:not([data-theme="light"]) .sermons-card p { color: rgba(6,18,46,.8); }
  :root:not([data-theme="light"]) .map iframe { filter: saturate(.7) brightness(.85); }
}

/* ---------- Photography ---------- */
.ministry--photo { position: relative; overflow: hidden; min-height: 17.5rem; }
.ministry--photo .ministry-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: 0; transition: transform .6s var(--ease); }
.ministry--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,11,41,.15) 0%, rgba(0,11,41,.88) 100%); }
.ministry--photo > div, .ministry--photo > .go { position: relative; z-index: 2; }
.ministry--photo:hover .ministry-img { transform: scale(1.04); }
.ministry--photo:hover { background: var(--espresso); }

.sermons-card { grid-template-columns: 1fr minmax(13.75rem, 34%); }
.sermons-media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--espresso-2); }
.sermons-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sermons-media:hover img { transform: scale(1.04); }
.sermons-media .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; box-shadow: 0 0.625rem 1.875rem rgba(0,11,41,.4); }
.sermons-media:hover .play { background: var(--ember); transform: translate(-50%, -50%) scale(1.06); }
@media (max-width: 640px) { .sermons-card { grid-template-columns: 1fr; } }

.ministry-row--photo { grid-template-columns: 1fr 1.6fr 1fr; align-items: center; }
.row-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 720px) { .ministry-row--photo { grid-template-columns: 1fr; } .row-img { order: -1; aspect-ratio: 16 / 9; } }

.prose-figure { margin: 0 0 2.5rem; }
.prose-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); }
.prose-figure figcaption { margin-top: 0.625rem; font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-weight: 600; }

/* ============================================================
   Home hero: the church drawn line by line
   ============================================================ */
.hero--blueprint {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: -76px; color: #fff; background: #060C1F;
  padding: calc(4.75rem + clamp(3rem, 7vw, 6rem)) 0 clamp(9.375rem, 14vw, 12.5rem);
}
.hero--blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,12,31,.72) 0%, rgba(6,12,31,.4) 42%, rgba(6,12,31,0) 68%),
    radial-gradient(55% 65% at 70% 50%, rgba(6,12,31,.5) 0%, rgba(6,12,31,0) 100%);
}
.hero--blueprint .hero-rays { z-index: -3; }
.hero--blueprint .hero-grain { z-index: -2; }
.hero--blueprint::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 100%);
}
.hero-bp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.hero-title--left, .hero-lead--left { text-align: left; margin-left: 0; }
.hero-bp-copy .eyebrow { justify-content: flex-start; }
.hero-bp-copy .hero-title { max-width: 13ch; font-size: clamp(2.6rem, 5.6vw, 4.9rem); }
.hero-bp-copy .hero-lead { max-width: 46ch; }
.hero-bp-copy > * { animation: rise .8s var(--ease) both; }
.hero-bp-copy > :nth-child(1) { animation-delay: .2s; }
.hero-bp-copy > :nth-child(2) { animation-delay: .3s; }
.hero-bp-copy > :nth-child(3) { animation-delay: .4s; }
.hero-bp-copy > :nth-child(4) { animation-delay: .5s; }
.hero-bp-copy > :nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.125rem); } to { opacity: 1; transform: none; } }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 2.125rem 0 0; padding-top: 1.375rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts dt { font-size: 0.63rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.hero-facts dd { margin: 0; font-size: 0.855rem; color: rgba(255,255,255,.85); }

/* the drawing */
.hero-bp-art { position: relative; }
.bp-hero { width: 100%; height: auto; max-width: 35rem; margin-inline: auto; display: block; overflow: visible; }
.bp-hero .bp-line { stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(0,11,41,.9)); fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.bp-hero .d1 { animation-delay: .2s; }
.bp-hero .d2 { animation-delay: .6s; }
.bp-hero .d3 { animation-delay: 1.2s; }
.bp-hero .d4 { animation-delay: 1.6s; }
.bp-hero .d5 { animation-delay: 2.0s; }
.bp-hero .d6 { animation-delay: 2.5s; animation-duration: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bp-hero .bp-nums { opacity: 0; animation: fade .8s ease 3s forwards; }
@keyframes fade { to { opacity: 1; } }
.bp-hero .bp-num { font-family: var(--font-display); font-size: 0.619rem; font-weight: 700; fill: #fff; letter-spacing: .08em; }
.bp-hero .bp-bay { fill: transparent; transition: fill .3s; cursor: pointer; }
.bp-hero .bp-link:hover .bp-bay, .bp-hero .bp-bay.is-active { fill: rgba(121,173,238,.2); }
.bp-hero .bp-link:focus-visible .bp-bay { fill: rgba(255,50,0,.25); outline: none; }
.hero-bp-art::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(121,173,238,.22) 0%, rgba(121,173,238,0) 65%); z-index: -1; filter: blur(0.625rem);
}
.bp-legend--hero {
  grid-template-columns: repeat(3, auto); justify-content: center; gap: 6px 1.375rem; margin-top: 1.125rem;
  opacity: 0; animation: fade .8s ease 3.2s forwards;
}
.bp-legend--hero li { border: 0; padding: 4px 0; font-size: 0.72rem; color: rgba(255,255,255,.7); }
.bp-legend--hero li a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.bp-legend--hero li.is-active, .bp-legend--hero li:hover { color: var(--amber); }

@media (max-width: 900px) {
  .hero-bp-grid { grid-template-columns: 1fr; }
  .hero-bp-art { order: -1; }
  .bp-hero { max-width: 21.25rem; }
  .hero--blueprint { padding-top: calc(4.75rem + 1.75rem); }
}
@media (max-width: 480px) {
  .bp-legend--hero { grid-template-columns: repeat(2, auto); }
  .hero-facts { gap: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-hero .bp-line { animation: none; stroke-dashoffset: 0; }
  .bp-hero .bp-nums, .bp-legend--hero, .hero-bp-copy > * { animation: none; opacity: 1; }
}

/* ============================================================
   t4 — charity-template layout, church palette
   ============================================================ */
.t4 { --radius-xl: 1.375rem; --radius-lg: 0.875rem; --radius-md: 0.625rem; }
.visually-hidden { position: absolute; left: -9999px; }

.kicker { font-size: 0.666rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin: 0 0 0.875rem; }
.kicker--light { color: var(--amber); }
.serif-h { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); margin: 0 0 1rem; }
.btn-navy { background: var(--espresso); color: #fff; }
.btn-navy:hover { background: var(--espresso-2); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--espresso); }
.btn-ghost svg { width: 0.875rem; height: 0.875rem; }
.btn-sm { padding: 0.6875rem 1.125rem; font-size: 0.81rem; }
.btn-link { color: var(--rust); font-weight: 600; padding: 0.875rem 4px; }
.btn-link:hover { color: var(--ember); }
.pill { display: inline-block; padding: 5px 0.625rem; border-radius: 62.4375rem; font-size: 0.63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill--blue { background: var(--amber-2); color: #06122E; }

/* top bar */
.topbar { background: var(--espresso-2); color: rgba(255,255,255,.85); font-size: 0.72rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.375rem; min-height: 2.375rem; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-item--right { margin-left: auto; }
.topbar-lang { font-weight: 700; letter-spacing: .1em; }
.topbar a:hover { color: #fff; }
@media (max-width: 900px) { .topbar-item--right, .topbar-lang { display: none; } }
@media (max-width: 560px) { .topbar-inner { justify-content: center; } .topbar-inner a { display: none; } }

/* header: white, plain nav */
.t4 .site-header { background: color-mix(in srgb, var(--cream) 92%, transparent); }
.t4 .nav-links a { font-size: 0.855rem; text-transform: none; letter-spacing: 0; }
.nav-mobile-only { display: none; }
@media (max-width: 900px) { .nav-desktop-only { display: none; } .nav-mobile-only { display: block; } }

/* 1 hero */
.ph { position: relative; min-height: clamp(32.5rem, 72vh, 45rem); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--espresso-2); }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,11,41,.86) 0%, rgba(0,11,41,.6) 45%, rgba(0,11,41,.15) 100%); }
.ph-inner { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(7.5rem, 14vw, 10.625rem); max-width: 45rem; }
.ph-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; color: #fff; margin: 0 0 1.25rem; }
.ph-title .u { background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 90% / 100% .11em; padding-bottom: .04em; }
.ph-lead { max-width: 52ch; color: rgba(255,255,255,.85); font-size: clamp(.78rem, .9vw, .86rem); margin-bottom: 1.625rem; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* 2 overlapping panel */
.panel { position: relative; z-index: 2; margin-top: clamp(-90px, -10vw, -120px); }
.panel-card { display: grid; grid-template-columns: 1fr 18.75rem; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; background: var(--card); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3.5vw, 3rem); box-shadow: 0 2.5rem 5rem -40px rgba(0,17,61,.45); border: 1px solid var(--line); }
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; margin-top: 1.375rem; }
.feat { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 1.125rem 1.875rem -20px rgba(0,17,61,.35); border-color: var(--rust); }
.feat-ico { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; background: var(--amber-2); color: var(--espresso); margin-bottom: 0.75rem; }
.feat-ico svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 0.9rem; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 0.792rem; color: var(--ink-soft); }
.panel-photo { width: 100%; height: 100%; min-height: 16.25rem; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 1000px) { .panel-card { grid-template-columns: 1fr; } .panel-photo { max-height: 20rem; } .feat-row { grid-template-columns: 1fr; } }

/* 3 split with tilted photos */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.tilt-pair { position: relative; aspect-ratio: 1 / 1; }
.tilt { position: absolute; width: 68%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 1.875rem 3.125rem -30px rgba(0,17,61,.5); border: 6px solid var(--card); }
.tilt--a { left: 0; top: 0; transform: rotate(-6deg); z-index: 1; }
.tilt--b { right: 0; bottom: 0; transform: rotate(5deg); }
.split-copy p { color: var(--ink-soft); }
.split-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.625rem; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } .tilt-pair { max-width: 26.25rem; margin-inline: auto; width: 100%; } }

/* 4 band + stats */
.band { position: relative; color: #fff; background: var(--espresso-2); overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,11,41,.55), rgba(0,11,41,.75)); }
.band-inner { position: relative; text-align: center; padding: clamp(5rem, 12vw, 9.375rem) 0 clamp(4rem, 9vw, 6.875rem); display: grid; justify-items: center; gap: 1.375rem; }
.band-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; color: #fff; margin: 0; }
.stats { position: relative; list-style: none; margin: 0; padding: clamp(1.375rem, 3vw, 2.125rem) clamp(1.25rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; background: var(--espresso); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.stats li { display: grid; gap: 6px; text-align: center; padding: 6px 0.75rem; border-left: 1px solid rgba(255,255,255,.14); }
.stats li:first-child { border-left: 0; }
.stats strong { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--amber); }
.stats span { font-size: 0.765rem; color: rgba(255,255,255,.8); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; } }

/* 5 values */
.values-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.values-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.value-cards { display: grid; gap: 0.875rem; margin-top: 8px; }
.vcard { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.vcard .feat-ico { margin: 0; }
.vcard h3 { font-size: 0.945rem; margin-bottom: 6px; grid-column: 2; }
.vcard p { margin: 0; color: var(--ink-soft); font-size: 0.837rem; grid-column: 2; }
.vcard .feat-ico { grid-row: 1 / span 2; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } .values-photo img { aspect-ratio: 16 / 10; } }

/* 6 gallery */
.gallery { padding: 0 0 clamp(4rem, 8vw, 6.5rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.625rem; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* 7 programs */
.center-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 1.875rem 3.125rem -30px rgba(0,17,61,.4); }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard-body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: 0.625rem; justify-items: start; flex: 1; align-content: start; }
.pcard h3 { font-size: 1.035rem; }
.pcard p { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.837rem; }
@media (max-width: 900px) { .pcards { grid-template-columns: 1fr; } }

/* 8 giving panel */
.give { padding: 0 0 clamp(4.5rem, 9vw, 8rem); }
.give-card { display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--espresso); color: #fff; border-radius: var(--radius-xl); overflow: hidden; }
.give-copy { padding: clamp(1.75rem, 4vw, 3.5rem); }
.give-copy .serif-h { color: #fff; }
.give-copy > p { color: rgba(255,255,255,.8); max-width: 52ch; }
.give-photo { width: 100%; height: 100%; object-fit: cover; min-height: 20rem; }
.give-form { margin-top: 1.5rem; display: grid; gap: 0.875rem; }
.give-label { font-size: 0.666rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; }
.amounts span { display: inline-block; padding: 0.625rem 1.125rem; border-radius: 62.4375rem; border: 1.5px solid rgba(255,255,255,.35); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.amounts input:checked + span { background: var(--amber); color: var(--espresso-2); border-color: var(--amber); }
.amounts input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.give-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.875rem; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 0.828rem; color: rgba(255,255,255,.85); }
.chk input { accent-color: var(--ember); width: 1rem; height: 1rem; }
@media (max-width: 900px) { .give-card { grid-template-columns: 1fr; } .give-photo { min-height: 13.75rem; max-height: 17.5rem; } }

/* 9 faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.acc { display: grid; gap: 0.625rem; margin-top: 8px; }
.acc details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); padding: 0 1.125rem; }
.acc summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--ember); line-height: 1; transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.855rem; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-photo { display: none; } }

/* 10 newsletter strip */
.nl { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.nl-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.nl-inner .serif-h { margin-bottom: 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.nl-inner p { margin: 0; color: var(--ink-soft); }
.nl-form { display: flex; gap: 8px; }
.nl-form input { width: min(20rem, 60vw); padding: 0.75rem 1rem; border-radius: 62.4375rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.nl-form input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,50,0,.15); }
@media (max-width: 800px) { .nl-inner { grid-template-columns: 1fr; } .nl-form { flex-wrap: wrap; } .nl-form input { width: 100%; } }

.t4 .site-header--hero .nav-links a { font-size: 0.855rem; text-transform: none; letter-spacing: 0; }
.t4 .site-header--hero .nav-links a.nav-cta { color: #fff; }

/* giving panel with the church drawing */
.give-art { display: grid; place-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--espresso-2); }
.give-art .blueprint { width: 100%; max-width: 26.25rem; }
.give-art .bp-legend { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .give-art { padding: 1.5rem 1.25rem 1.75rem; } }

/* words we live by (review-card layout) */
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.625rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.375rem; }
.wcard p { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.wcard footer { display: flex; align-items: center; gap: 0.75rem; }
.wcard footer img { width: 2.25rem; height: 2.25rem; }
.wcard footer div { display: grid; }
.wcard footer b { font-size: 0.855rem; color: var(--ink); }
.wcard footer span { font-size: 0.72rem; color: var(--ink-soft); }
@media (max-width: 900px) { .wcards { grid-template-columns: 1fr; } }

/* rays hero above the overlapping panel */
.t4 .hero--blueprint { margin-top: -76px; padding-top: calc(4.75rem + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(10.625rem, 16vw, 14.375rem); }
.t4 .site-header--hero { position: sticky; }
.t4 .hero--blueprint .hero-actions .btn-light svg { margin-right: 2px; }

.t4 .site-header--hero { background: transparent; }
.t4 .site-header--hero.is-scrolled { background: rgba(0,11,41,.92); }

/* no top bar: inner-page rays hero sits under the header again */
.t4 .hero--rays { margin-top: -76px; }

/* headings in Poppins */
.serif-h, .ph-title, .band-title, .hero-title, .giving .h-serif, .quote { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.ph-title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; }
.serif-h { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.12; }
.band-title { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.1; }
.wcard p { font-family: var(--font-display); font-size: 0.945rem; line-height: 1.55; font-weight: 500; }

.ph-inner { max-width: 48.75rem; }
.ph-title { max-width: 14ch; }

.ph-inner { text-align: left; }

/* hero: copy left, church drawing right */
.ph-inner--split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.ph-copy { max-width: 38.75rem; }
.ph-art { position: relative; justify-self: end; width: min(100%, 28.75rem); }
.ph-art .bp-hero { max-width: 28.75rem; }
.ph-art .bp-line { filter: drop-shadow(0 0 8px rgba(0,11,41,.9)); }
@media (max-width: 900px) { .ph-inner--split { grid-template-columns: 1fr; } .ph-art { justify-self: center; width: min(100%, 20rem); } }

/* darken behind the drawing so the lines read over the photo */
.ph-art::before { content: ""; position: absolute; inset: -12% -18%; background: radial-gradient(closest-side, rgba(0,11,41,.7), rgba(0,11,41,0)); z-index: 0; }
.ph-art .bp-hero { position: relative; z-index: 1; }
.ph-shade { background: linear-gradient(90deg, rgba(0,11,41,.88) 0%, rgba(0,11,41,.62) 45%, rgba(0,11,41,.45) 100%); }

@media (max-width: 900px) { .ph-inner--split .ph-art { order: 2; width: min(100%, 16.25rem); margin-top: 8px; } .ph-inner--split { gap: 1.5rem; } }

/* script accent word (Caveat), as in the earlier hero */
.ph-title .script, .hero-title .script, .serif-h .script {
  font-family: "Caveat", cursive; font-weight: 700; color: var(--amber);
  font-size: 1.22em; line-height: .8; display: inline-block; transform: rotate(-3deg) translateY(.05em); padding: 0 .06em; letter-spacing: 0;
}
.ph-title .u.script { background-position: 0 92%; }

/* ---------- page loader: the church draws itself ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: #060C1F; display: grid; place-items: center; align-content: center; gap: 1.125rem; transition: opacity .5s ease, visibility .5s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.no-loader .loader { display: none; }
.loader-church { width: min(46vw, 13.75rem); height: auto; overflow: visible; }
.loader-church .ld { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s var(--ease) forwards; }
.loader-church .l1 { animation-delay: .05s; }
.loader-church .l2 { animation-delay: .25s; }
.loader-church .l3 { animation-delay: .5s; }
.loader-church .l4 { animation-delay: .7s; }
.loader-church .l5 { animation-delay: .9s; }
.loader-church .l6 { animation-delay: 1.1s; animation-duration: .35s; }
.loader-word { color: rgba(255,255,255,.75); font-size: 0.702rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: 0; animation: fade .5s ease 1.2s forwards; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* "How we gather": full-width white sheet with rounded top corners, like the reference */
.panel-sheet { width: calc(100% - 2rem); margin: 0 auto; background: var(--cream); border-radius: 1.75rem 1.75rem 0 0; padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(8px, 2vw, 1.5rem); }
.panel .panel-card { background: transparent; border: 0; box-shadow: none; padding: 0; grid-template-columns: 1fr 16.25rem; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.panel .kicker { margin-bottom: 0.625rem; }
.panel .serif-h { font-size: clamp(1.6rem, 2.9vw, 2.2rem); margin-bottom: 1.5rem; }
.panel .feat { padding: 1.375rem 1.25rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--card); box-shadow: 0 6px 1.25rem -16px rgba(0,17,61,.25); }
.panel .feat-ico { width: 1.75rem; height: 1.75rem; border-radius: 6px; background: transparent; color: var(--rust); margin-bottom: 0.875rem; }
.panel .feat-ico svg { width: 1.375rem; height: 1.375rem; }
.panel .feat h3 { font-size: 0.882rem; color: var(--rust); margin-bottom: 6px; }
.panel .feat p { font-size: 0.765rem; }
.panel .panel-photo { width: 100%; aspect-ratio: 3 / 4; min-height: 0; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: 0.875rem; }
.panel + .split { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 1000px) { .panel .panel-card { grid-template-columns: 1fr; } .panel .panel-photo { aspect-ratio: 16 / 10; max-height: none; } }
@media (max-width: 600px) { .panel-sheet { width: calc(100% - 1rem); border-radius: 1.25rem 1.25rem 0 0; } }

/* inner-page photo hero, same style as the home page */
.ph--page { min-height: clamp(22.5rem, 46vh, 32.5rem); }
.ph--page .ph-inner { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 48.75rem; }
.ph--page .ph-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.ph--page .ph-lead { margin-bottom: 0; }
.ph--page + .section, .ph--page + .giving { padding-top: clamp(3rem, 7vw, 6rem); }

/* social icons in the footer */
.social { list-style: none; margin: 1.125rem 0 0; padding: 0; display: flex; gap: 0.625rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.social a:hover { background: var(--ember); border-color: var(--ember); transform: translateY(-2px); }
.social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

/* ---------- About page body ---------- */
.story2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.story2-photo { margin: 0; }
.story2-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.story2-photo figcaption { margin-top: 0.625rem; font-size: 0.702rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.story2-copy p { color: var(--ink-soft); }
.story2-copy .verse { margin: 1.25rem 0 1.5rem; }
.fr-inline { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .story2 { grid-template-columns: 1fr; } .story2-photo img { aspect-ratio: 16 / 10; } }

.pillars2 { display: grid; gap: 1.125rem; margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.pillar2 { display: grid; grid-template-columns: 10rem 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.375rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); }
.pillar2 h3 { font-size: 1.35rem; margin: 4px 0 0.625rem; }
.pillar2 p { margin: 0 0 0.625rem; color: var(--ink-soft); }
.pillar2 .kicker { margin-bottom: 4px; }
.pillar2-ico { position: relative; width: 10rem; height: 10rem; border-radius: 1.5rem; background: var(--amber-2); display: grid; place-items: center; overflow: hidden; }
.pillar2-ico svg { width: 7.5rem; height: 7.5rem; position: relative; z-index: 1; }
.ico-line { fill: none; stroke: var(--espresso); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.is-in .ico-line { animation: draw 1.4s var(--ease) forwards; }
.reveal.is-in .ico-line:nth-child(2) { animation-delay: .5s; }
.reveal.is-in .ico-line:nth-child(3) { animation-delay: .9s; }
.reveal.is-in .ico-line:nth-child(4) { animation-delay: 1.3s; }
.ico-dot, .ico-lamp { fill: var(--ember); }
.reveal.is-in .ico-dove svg { animation: glide 4s ease-in-out 1.4s infinite; }
@keyframes glide { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(6px,-8px) rotate(-4deg); } }
.ico-beacon .beam { position: absolute; left: 50%; top: 27%; width: 13.75rem; height: 13.75rem; margin: -110px 0 0 -110px; background: conic-gradient(from 0deg, rgba(255,50,0,0) 0deg, rgba(255,50,0,.55) 18deg, rgba(255,50,0,0) 36deg); border-radius: 50%; opacity: 0; }
.reveal.is-in .ico-beacon .beam { opacity: 1; animation: sweep 5s linear 1.6s infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.reveal.is-in .ico-lamp { animation: lamp 2.5s ease-in-out 1.6s infinite; }
@keyframes lamp { 0%,100% { r: 4; opacity: .8; } 50% { r: 6; opacity: 1; } }
.reveal.is-in .ico-bible .page { animation: draw 1.4s var(--ease) .9s forwards, breathe 3.5s ease-in-out 2.4s infinite; transform-origin: 1.875rem 3.75rem; }
@keyframes breathe { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.94); } }
.reveal.is-in .ico-bible .cross { stroke: var(--ember); animation: draw 1s var(--ease) 1.3s forwards, glow 2.5s ease-in-out 2.4s infinite; }
@keyframes glow { 0%,100% { filter: drop-shadow(0 0 0 rgba(255,50,0,0)); } 50% { filter: drop-shadow(0 0 6px rgba(255,50,0,.8)); } }
@media (max-width: 720px) { .pillar2 { grid-template-columns: 1fr; } .pillar2-ico { width: 7.5rem; height: 7.5rem; } .pillar2-ico svg { width: 5.75rem; height: 5.75rem; } }
@media (prefers-reduced-motion: reduce) { .ico-line { stroke-dashoffset: 0; animation: none !important; } .reveal.is-in .ico-dove svg, .reveal.is-in .ico-beacon .beam, .reveal.is-in .ico-lamp, .reveal.is-in .ico-bible .page, .reveal.is-in .ico-bible .cross { animation: none !important; } .ico-beacon .beam { opacity: .6; } }

.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.leader { text-align: center; padding: 1.75rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius-xl); background: var(--card); }
.leader-avatar { width: 5.25rem; height: 5.25rem; margin: 0 auto 0.875rem; border-radius: 50%; background: var(--amber-2); display: grid; place-items: center; }
.leader-avatar svg { width: 3.5rem; height: 3.5rem; fill: none; stroke: var(--espresso); stroke-width: 2.2; stroke-linecap: round; }
.leader h3 { font-size: 0.945rem; margin-bottom: 4px; }
.leader p { margin: 0; font-size: 0.81rem; color: var(--ink-soft); }
@media (max-width: 800px) { .leader-grid { grid-template-columns: 1fr; } }

/* ---------- Ministries page cards ---------- */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.mcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; scroll-margin-top: 6.25rem; transition: transform .3s var(--ease), box-shadow .3s; }
.mcard:hover { transform: translateY(-4px); box-shadow: 0 1.875rem 3.125rem -30px rgba(0,17,61,.4); }
.mcard:target { outline: 3px solid var(--ember); outline-offset: 2px; }
.mcard-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mcard-ico { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber-2), color-mix(in srgb, var(--amber-2) 60%, var(--card))); }
.mcard-ico svg { width: 6rem; height: 6rem; fill: none; stroke: var(--espresso); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mcard-body { padding: 1.375rem 1.375rem 1.5rem; display: grid; gap: 8px; justify-items: start; flex: 1; align-content: start; }
.mcard-ico-sm { display: none; }
.mcard-img + .mcard-body .mcard-ico-sm { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--amber-2); margin-top: -46px; margin-bottom: 4px; border: 3px solid var(--card); }
.mcard-ico-sm svg { width: 1.625rem; height: 1.625rem; fill: none; stroke: var(--espresso); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mcard h3 { font-size: 1.035rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.mcard p { margin: 0; color: var(--ink-soft); font-size: 0.837rem; }
.mcard-meta { font-size: 0.666rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.mcard .btn { margin-top: 8px; }
@media (max-width: 1000px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mcard-ico svg { animation: none; } }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ccard { display: grid; gap: 8px; justify-items: start; padding: 1.375rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
a.ccard:hover { transform: translateY(-3px); box-shadow: 0 1.5rem 2.5rem -28px rgba(0,17,61,.4); }
.ccard-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--amber-2); color: var(--espresso); }
.ccard-ico svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ccard h3 { font-size: 0.945rem; }
.ccard p { margin: 0; font-size: 0.828rem; color: var(--ink-soft); }
.ccard .link-btn { text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: stretch; }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.contact-form-card .serif-h { margin-bottom: 1.25rem; }
.map--tall { aspect-ratio: auto; min-height: 26.25rem; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: 1fr; } .map--tall { min-height: 20rem; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- About: mission / vision / beliefs, three columns ---------- */
.values3 { margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.values3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); overflow: hidden; }
.v3 { padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.375rem, 3vw, 2.25rem); text-align: center; border-left: 1px solid var(--line); }
.v3:first-child { border-left: 0; }
.v3 .kicker { justify-content: center; margin: 1.375rem 0 6px; }
.v3 h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.v3 p { margin: 0; color: var(--ink-soft); font-size: 0.855rem; }
.v3-ico { position: relative; width: 8.25rem; height: 8.25rem; margin: 0 auto; border-radius: 50%; background: var(--amber-2); display: grid; place-items: center; overflow: hidden; }
.v3-ico svg { width: 6rem; height: 6rem; position: relative; z-index: 1; fill: none; stroke: var(--espresso); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.v3-ico .lamp { fill: var(--ember); stroke: none; }
/* cross with rays: rays rotate slowly, cross pulses */
.ico-cross .rays { transform-origin: 3.75rem 3.75rem; stroke: var(--ember); }
.reveal.is-in .ico-cross .rays { animation: spin 18s linear infinite; }
.reveal.is-in .ico-cross .mark { animation: pulse 3s ease-in-out infinite; transform-origin: 3.75rem 3.75rem; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* lighthouse: sweeping beam + glowing lamp */
.ico-beacon2 .beam { position: absolute; left: 50%; top: 18%; width: 15rem; height: 15rem; margin: -120px 0 0 -120px; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, rgba(255,50,0,0) 0deg, rgba(255,50,0,.5) 16deg, rgba(255,50,0,0) 32deg); }
.reveal.is-in .ico-beacon2 .beam { opacity: 1; animation: sweep 5s linear infinite; }
.reveal.is-in .ico-beacon2 .lamp { animation: lamp 2.4s ease-in-out infinite; }
/* book: pages fade in line by line, cross glows */
.ico-book .lines { stroke: var(--rust); stroke-dasharray: 60; stroke-dashoffset: 60; }
.reveal.is-in .ico-book .lines { animation: write 2.2s var(--ease) .3s forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.ico-book .cross { stroke: var(--ember); }
.reveal.is-in .ico-book .cross { animation: glow 2.6s ease-in-out 1.2s infinite; }
@media (max-width: 900px) { .values3-grid { grid-template-columns: 1fr; } .v3 { border-left: 0; border-top: 1px solid var(--line); } .v3:first-child { border-top: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal.is-in .ico-cross .rays, .reveal.is-in .ico-cross .mark, .reveal.is-in .ico-beacon2 .beam, .reveal.is-in .ico-beacon2 .lamp, .reveal.is-in .ico-book .cross { animation: none; } .ico-book .lines { stroke-dashoffset: 0; animation: none !important; } .ico-beacon2 .beam { opacity: .5; } }

/* giving cards: keep the accent card orange in both themes; readable hover states */
.give-option.give-option--accent { background: var(--ember); border-color: var(--ember); }
.give-option--accent .btn-light:hover, :root[data-theme="dark"] .give-option--accent .btn-light:hover { background: #fff; color: var(--ember); border-color: #fff; }
:root[data-theme="dark"] .btn-light:hover { background: #fff; color: #00113D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-light:hover { background: #fff; color: #00113D; } }

/* ---------- Programs page ---------- */
.rhythm-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.rhythm-side { position: sticky; top: 6.25rem; }
.rhythm-side p { color: var(--ink-soft); }
.rhythm { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rhythm li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.125rem; align-items: center; padding: 1.125rem 0; border-bottom: 1px solid var(--line); }
.r-day { font-weight: 700; font-size: 0.702rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.rhythm h3 { font-size: 0.918rem; margin-bottom: 3px; }
.rhythm p { margin: 0; font-size: 0.81rem; color: var(--ink-soft); }
.r-time { font-weight: 600; font-size: 0.81rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ycard { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); display: grid; gap: 8px; align-content: start; }
.y-month { font-size: 0.666rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.ycard h3 { font-size: 0.972rem; }
.ycard p { margin: 0; font-size: 0.828rem; color: var(--ink-soft); }
.center-head a:not(.btn) { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.btn, .btn:hover { text-decoration: none; }
@media (max-width: 900px) { .rhythm-grid { grid-template-columns: 1fr; } .rhythm-side { position: static; } .year-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rhythm li { grid-template-columns: 3rem 1fr; } .r-time { grid-column: 2; } .year-grid { grid-template-columns: 1fr; } }

/* ministries map: numerals centred in each bay */
.bp-nums--center .bp-num { text-anchor: middle; dominant-baseline: middle; font-size: 0.675rem; }
.blueprint--centered .bp-link .bp-bay { cursor: pointer; }
.blueprint--centered .bp-link:hover .bp-bay { fill: rgba(121,173,238,.22); }
.bp-legend--4 { grid-template-columns: repeat(4, 1fr); }
.bp-legend a { color: inherit; }
.bp-legend li:hover a, .bp-legend li.is-active a { color: var(--amber); }
.ministries-map + .section { padding-top: clamp(3rem, 7vw, 6rem); }
@media (max-width: 900px) { .bp-legend--4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Fan-card gallery ---------- */
.fan-section { overflow: hidden; }
.fan-wrap { position: relative; width: 100%; }
.fan-layout { position: relative; margin: 0 auto; width: min(100%, 80rem); height: 38rem; outline: none; }
.fan-layout:focus-visible { outline: 3px solid var(--ember); outline-offset: 6px; border-radius: 0.75rem; }
.fan-card { position: absolute; left: 50%; top: 50%; width: 18rem; height: 24rem; margin: -12rem 0 0 -9rem; border-radius: 1rem; overflow: hidden; background: var(--espresso-2); box-shadow: 0 1.875rem 3.75rem -30px rgba(0,17,61,.6); will-change: transform; opacity: 0; display: block; }
.fan-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fan-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.875rem 1rem; color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, rgba(0,11,41,0), rgba(0,11,41,.85)); }
.fan-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 8px; }
.fan-btn { width: 2.875rem; height: 2.875rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 1.25rem rgba(0,17,61,.1); transition: border-color .25s, color .25s, transform .25s var(--ease); }
.fan-btn:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.fan-btn svg { width: 1.125rem; height: 1.125rem; }
.fan-dots { display: flex; gap: 8px; }
.fan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: transform .3s, background .3s; }
.fan-dot.is-on { background: var(--ember); transform: scale(1.3); }
@media (max-width: 1024px) { .fan-layout { height: 34rem; } .fan-card { width: 15rem; height: 20rem; margin: -10rem 0 0 -7.5rem; } }
@media (max-width: 768px) { .fan-layout { height: 28rem; } .fan-card { width: 12rem; height: 16rem; margin: -8rem 0 0 -6rem; } }
@media (max-width: 640px) { .fan-layout { height: 26rem; } .fan-card { width: 11rem; height: 15rem; margin: -7.5rem 0 0 -5.5rem; } }
@media (max-width: 480px) { .fan-layout { height: 22rem; } .fan-card { width: 10rem; height: 13.5rem; margin: -6.75rem 0 0 -5rem; } }

/* ---------- FAQ: two columns, single-open accordion, blurred letter reveal ---------- */
.faq2-grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; max-width: none; }
.faq2-side .serif-h { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.faq2-side .lead { margin-bottom: 1.125rem; }
.faq2-help a { color: var(--rust); font-weight: 600; }
.faq2-help a:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq2-list details { border-bottom: 1px solid var(--line); }
.faq2-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; font-weight: 600; font-size: 0.918rem; color: var(--ink); }
.faq2-list summary::-webkit-details-marker { display: none; }
.faq2-list summary::after { content: ""; width: 0.625rem; height: 0.625rem; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .3s var(--ease); flex-shrink: 0; margin-right: 4px; }
.faq2-list details[open] summary::after { transform: rotate(-135deg); }
.faq2-list summary:hover { color: var(--rust); }
.faq2-answer { padding: 0 0 1.125rem; }
.faq2-answer p { margin: 0; color: var(--ink-soft); line-height: 1.7; word-break: normal; overflow-wrap: anywhere; }
.faq2-answer .ch { display: inline-block; opacity: 0; filter: blur(0.625rem); animation: blurin .3s ease forwards; }
@media (max-width: 800px) { .faq2-grid { grid-template-columns: 1fr; } }
@keyframes blurin { to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .faq2-answer .ch { animation: none; opacity: 1; filter: none; } }

/* ---------- Giving page ---------- */
.give2-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.give2-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.give2-form-card .serif-h { margin-bottom: 1.25rem; }
.give2-form { display: grid; gap: 1.125rem; }
.give-label { display: block; font-size: 0.666rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 62.4375rem; padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 8px 1rem; border-radius: 62.4375rem; font-weight: 600; font-size: 0.81rem; cursor: pointer; color: var(--ink-soft); }
.seg input:checked + span { background: var(--espresso); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.amounts--light span { border-color: var(--line); color: var(--ink); }
.amounts--light input:checked + span { background: var(--ember); color: #fff; border-color: var(--ember); }
.other-field { margin-top: 0.75rem; max-width: 15rem; }
.give2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.give2-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 0.738rem; color: var(--ink-soft); }
.give2-secure svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.give2-side { display: grid; gap: 1.125rem; }
.give2-verse { background: var(--espresso); color: #fff; border-radius: var(--radius-xl); padding: 1.625rem; }
.give2-verse p { margin: 0 0 0.625rem; font-size: 0.945rem; line-height: 1.6; }
.give2-verse cite { font-style: normal; font-size: 0.666rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.give2-points { list-style: none; margin: 0; padding: 0; display: grid; }
.give2-points li { display: grid; gap: 4px; padding: 0.875rem 0; border-top: 1px solid var(--line); font-size: 0.828rem; color: var(--ink-soft); }
.give2-points li:last-child { border-bottom: 1px solid var(--line); }
.give2-points b { color: var(--ink); }
.give2-points a { color: var(--rust); }
@media (max-width: 900px) { .give2-grid { grid-template-columns: 1fr; } }

.ways4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.way { display: grid; gap: 0.625rem; align-content: start; justify-items: start; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.way-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--amber-2); color: var(--espresso); flex-shrink: 0; }
.way-ico svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way h3 { font-size: 0.99rem; }
.way p { margin: 0; font-size: 0.828rem; color: var(--ink-soft); }
.way-detail { color: var(--ink) !important; font-weight: 500; }
.way-detail code { font-family: inherit; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.way .btn { margin-top: 6px; }
@media (max-width: 1000px) { .ways4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways4 { grid-template-columns: 1fr; } }

.impact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.impact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; }
.impact-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; padding: 1.125rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.impact-list b { display: block; color: var(--ink); margin-bottom: 2px; }
.impact-list span:not(.way-ico) { font-size: 0.828rem; color: var(--ink-soft); }
@media (max-width: 900px) { .impact-grid { grid-template-columns: 1fr; } }

.other-field[hidden] { display: none; }

/* ---------- Partners & funders site ---------- */
.org-bar { background: var(--ember); color: #fff; font-size: 0.738rem; }
.org-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.org-bar-label { font-weight: 600; letter-spacing: .04em; }
.org-bar-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 560px) { .org-bar-label { display: none; } .org-bar-inner { justify-content: center; } }
.ph--org { min-height: clamp(27.5rem, 56vh, 38.75rem); }
.ph--org .ph-inner { max-width: 51.25rem; }
.trust { background: var(--espresso); color: #fff; }
.trust-list { list-style: none; margin: 0; padding: 1.125rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.trust-list li { display: grid; gap: 2px; padding: 8px 0.875rem; border-left: 1px solid rgba(255,255,255,.15); }
.trust-list li:first-child { border-left: 0; }
.trust-list b { font-size: 0.9rem; color: var(--amber); }
.trust-list span { font-size: 0.738rem; color: rgba(255,255,255,.8); }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; } .trust-list li:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .trust-list { grid-template-columns: 1fr; } .trust-list li { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); } .trust-list li:first-child { border-top: 0; } }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
.svc { display: grid; grid-template-columns: 12.5rem 1fr; gap: 1.25rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.svc img { width: 100%; height: 100%; min-height: 11.25rem; object-fit: cover; }
.svc > div { padding: 1.125rem 1.25rem 1.125rem 0; display: grid; gap: 6px; }
.svc h3 { font-size: 0.99rem; }
.svc p { margin: 0; font-size: 0.828rem; color: var(--ink-soft); }
.svc-meta { font-size: 0.666rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } .svc > div { padding: 0 1.125rem 1.125rem; } }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.timeline li::before { box-shadow: 0 0 0 4px var(--cream-2); }
.grants h3 { font-size: 1.2rem; margin-bottom: 8px; }
.grant-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.625rem; }
.grant { display: grid; grid-template-columns: 4rem 1fr; gap: 0.875rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.grant-year { font-weight: 700; color: var(--rust); font-size: 0.765rem; letter-spacing: .06em; }
.grant b { display: block; color: var(--ink); margin-bottom: 2px; }
.grant span:not(.grant-year) { font-size: 0.81rem; color: var(--ink-soft); }
.grant.is-placeholder { border-style: dashed; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; margin-top: 0.625rem; }
.logo-slot { display: grid; place-items: center; height: 4rem; border: 1px dashed var(--line); border-radius: 0.625rem; font-size: 0.675rem; color: var(--ink-soft); background: var(--card); }
@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .logos { grid-template-columns: 1fr 1fr; } }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.why-grid .vcard { grid-template-columns: 2.5rem 1fr; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.gov-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: start; }
.doc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.875rem 0; border-top: 1px solid var(--line); font-size: 0.855rem; color: var(--ink); }
.doc-list li:last-child { border-bottom: 1px solid var(--line); }
.gov-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.375rem, 3vw, 2rem); }
.gov-card h3 { font-size: 1.035rem; margin-bottom: 8px; }
.gov-card .details { margin: 8px 0 0; }
@media (max-width: 900px) { .gov-grid { grid-template-columns: 1fr; } }
.enq-side { display: grid; gap: 1rem; align-content: start; }
.org-callout { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: clamp(1.375rem, 3vw, 2rem); margin-bottom: clamp(3.5rem, 8vw, 6.5rem); background: var(--espresso); color: #fff; border-radius: var(--radius-xl); }
.org-callout .kicker { color: var(--amber); }
.org-callout h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.org-callout p:last-child { margin: 0; color: rgba(255,255,255,.8); max-width: 60ch; }
.org-callout .btn-navy { background: var(--ember); }
@media (max-width: 800px) { .org-callout { grid-template-columns: 1fr; } }

/* system dark mode mirrors of the toggle-only rules above */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-light:hover { background: #fff; color: #00113D; }
}

/* ---------- Nav dropdowns (Ministries, Programs) ---------- */
.nav-links .has-sub { position: relative; display: flex; align-items: center; }
.nav-links .has-sub > a { padding-right: 0.25rem; }
.sub-toggle { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: 0.25rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.sub-toggle:hover { background: var(--cream-2); }
.sub-toggle svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.has-sub.is-open > .sub-toggle, .has-sub:hover > .sub-toggle { transform: rotate(180deg); }
.nav-links .sub { position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 60; min-width: 14rem; list-style: none; margin: 0; padding: 0.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 1.5rem 3rem -1.5rem rgba(0,17,61,.35); opacity: 0; transform: translateY(-0.4rem); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); display: grid; gap: 2px; }
.nav-links .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; transform: none; pointer-events: auto; }
.nav-links .sub a { display: block; padding: 0.55rem 0.8rem; border-radius: 0.6rem; font-size: 0.81rem; font-weight: 500; color: var(--ink); text-shadow: none; letter-spacing: 0; text-transform: none; }
.nav-links .sub a:hover { background: var(--cream-2); color: var(--rust); }
.nav-links .sub a.sub-all { font-weight: 600; color: var(--rust); border-bottom: 1px solid var(--line); border-radius: 0.6rem 0.6rem 0 0; margin-bottom: 2px; }
.site-header--hero .nav-links .sub a { color: var(--ink); }
.site-header--hero .sub-toggle { color: #fff; }
@media (max-width: 900px) {
  .nav-links .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .nav-links .has-sub > a { flex: 1; }
  .sub-toggle { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); margin: 0; }
  .nav-links .sub { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--amber-2); border-radius: 0; margin: 0 0 0.4rem 1rem; padding: 0 0 0 0.5rem; opacity: 1; transform: none; pointer-events: auto; display: none; background: transparent; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: grid; }
  .has-sub:hover > .sub-toggle { transform: none; }
  .has-sub.is-open > .sub-toggle { transform: rotate(180deg); }
  .nav-links .sub a { font-size: 0.882rem; padding: 0.7rem 0.8rem; }
  .site-header--hero .sub-toggle { color: var(--ink); }
}

/* ---------- Media page ---------- */
.section--tint { background: var(--cream-2); }
.center-more { text-align: center; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.watch-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.watch-grid > * { min-width: 0; }
.watch-player { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 2rem 4rem -2rem rgba(0,17,61,.5); }
.watch-player img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.watch-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,11,41,.15), rgba(0,11,41,.55)); }
.watch-player:hover img { transform: scale(1.04); }
.watch-play, .msg-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--ember); color: #fff; transition: transform .3s var(--ease); }
.watch-play { width: 5rem; height: 5rem; box-shadow: 0 0 0 0.75rem rgba(255,255,255,.2); }
.watch-play svg { width: 2rem; height: 2rem; fill: currentColor; margin-left: 0.2rem; }
.watch-player:hover .watch-play, .msg-thumb:hover .msg-play { transform: translate(-50%, -50%) scale(1.08); }
.watch-live { position: absolute; z-index: 1; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(0,11,41,.75); color: #fff; font-size: 0.702rem; font-weight: 600; }
.watch-live i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ember); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .watch-live i { animation: none; } }
.watch-times { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.watch-times li { display: grid; gap: 1px; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.watch-times b { color: var(--ink); }
.watch-times span { font-size: 0.81rem; }
.watch-actions, .follow-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; } }
.msg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; }
.msg.is-placeholder { border-style: dashed; }
.msg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.msg-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.msg-play { width: 3.2rem; height: 3.2rem; }
.msg-play svg { width: 1.3rem; height: 1.3rem; fill: currentColor; margin-left: 0.15rem; }
.msg-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 0.5rem; justify-items: start; }
.msg-body h3 { font-size: 0.972rem; margin: 0; }
.msg-body p { margin: 0; font-size: 0.828rem; }
.pcard-tag { font-size: 0.648rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
@media (max-width: 1000px) { .msg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .msg-grid { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 13rem; gap: 0.75rem; }
.shot { position: relative; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--cream-2); font: inherit; }
.shot:nth-child(1), .shot:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.shot:nth-child(11) { grid-column: span 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot span { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(0,11,41,.75); color: #fff; font-size: 0.702rem; font-weight: 600; opacity: 0; transform: translateY(0.4rem); transition: opacity .25s, transform .3s var(--ease); }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr 1fr; grid-auto-rows: 10rem; } .shot:nth-child(11) { grid-column: span 2; } .shot span { opacity: 1; transform: none; } }
.follow { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .follow { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; padding: clamp(0.75rem, 3vw, 2.5rem); background: rgba(0,11,41,.92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-lg); object-fit: contain; }
.lightbox figcaption { color: #fff; font-weight: 600; }
.lightbox button { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--ember); border-color: var(--ember); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }

/* Inner-page hero copy lines up with the header at full width */
.ph--page .ph-inner, .ph--org .ph-inner { max-width: none; }
.ph--page .ph-inner > * { max-width: 48rem; }
.ph--page .ph-inner > .ph-actions { max-width: none; }

/* ---------- Menu icons (animated) ---------- */
.mi { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.6rem; background: var(--amber-2); color: var(--espresso); flex-shrink: 0; transition: background .25s, color .25s, transform .3s var(--ease); }
.mi svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 60%; }
:root[data-theme="dark"] .mi { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mi { color: #fff; } }
.nav-links .sub a { display: flex; align-items: center; gap: 0.7rem; }
.nav-links .sub a:hover .mi, .nav-links .sub a:focus-visible .mi { background: var(--ember); color: #fff; transform: scale(1.06); }
.nav-links .sub { min-width: 15.5rem; }

/* icons on the main items appear in the mobile menu only */
.mi-top { display: none; }
@media (max-width: 900px) {
  .mi-top { display: inline-grid; margin-right: 0.75rem; vertical-align: middle; }
  .nav-links > li > a:not(.btn) { display: flex; align-items: center; }
  .nav-links > li > a:hover .mi, .nav-links > li > a[aria-current="page"] .mi { background: var(--ember); color: #fff; }
}

/* each icon has its own motion, played on hover or keyboard focus */
@keyframes mi-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.22rem) rotate(-6deg); } }
@keyframes mi-flicker { 0%, 100% { transform: scale(1) skewX(0); } 25% { transform: scale(1.08, .94) skewX(-5deg); } 50% { transform: scale(.95, 1.1) skewX(4deg); } 75% { transform: scale(1.05, .97) skewX(-3deg); } }
@keyframes mi-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes mi-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.22); } 40% { transform: scale(.96); } 60% { transform: scale(1.14); } }
@keyframes mi-sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 70% { transform: rotate(10deg); } }
@keyframes mi-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
@keyframes mi-door { 0%, 100% { transform: perspective(3rem) rotateY(0); } 50% { transform: perspective(3rem) rotateY(-38deg); } }
@keyframes mi-spin { to { transform: rotate(360deg); } }
@keyframes mi-turn { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }
@keyframes mi-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-0.25rem); } 60% { transform: translateY(0.05rem); } }
a:hover > .mi--float svg, a:focus-visible > .mi--float svg { animation: mi-float 1s ease-in-out infinite; }
a:hover > .mi--flicker svg, a:focus-visible > .mi--flicker svg { animation: mi-flicker .7s ease-in-out infinite; transform-origin: 50% 90%; }
a:hover > .mi--pulse svg, a:focus-visible > .mi--pulse svg { animation: mi-pulse .9s ease-in-out infinite; }
a:hover > .mi--beat svg, a:focus-visible > .mi--beat svg { animation: mi-beat 1s ease-in-out infinite; }
a:hover > .mi--sway svg, a:focus-visible > .mi--sway svg { animation: mi-sway .9s ease-in-out infinite; }
a:hover > .mi--swing svg, a:focus-visible > .mi--swing svg { animation: mi-swing .9s ease-in-out infinite; transform-origin: 50% 10%; }
a:hover > .mi--door svg, a:focus-visible > .mi--door svg { animation: mi-door 1.1s ease-in-out infinite; transform-origin: 25% 50%; }
a:hover > .mi--spin svg, a:focus-visible > .mi--spin svg { animation: mi-spin 1.4s linear infinite; transform-origin: 50% 50%; }
a:hover > .mi--turn svg, a:focus-visible > .mi--turn svg { animation: mi-turn .9s var(--ease) infinite; transform-origin: 50% 50%; }
a:hover > .mi--hop svg, a:focus-visible > .mi--hop svg { animation: mi-hop .8s ease-in-out infinite; }

/* items pop in one after another when a menu opens */
@keyframes mi-in { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
@keyframes mi-pop { 0% { transform: scale(.4) rotate(-20deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }
.has-sub:hover > .sub > li, .has-sub:focus-within > .sub > li, .has-sub.is-open > .sub > li { animation: mi-in .35s var(--ease) both; }
.has-sub:hover > .sub > li .mi, .has-sub:focus-within > .sub > li .mi, .has-sub.is-open > .sub > li .mi { animation: mi-pop .45s var(--ease) both; }
.sub > li:nth-child(1), .sub > li:nth-child(1) .mi { animation-delay: .02s; }
.sub > li:nth-child(2), .sub > li:nth-child(2) .mi { animation-delay: .06s; }
.sub > li:nth-child(3), .sub > li:nth-child(3) .mi { animation-delay: .10s; }
.sub > li:nth-child(4), .sub > li:nth-child(4) .mi { animation-delay: .14s; }
.sub > li:nth-child(5), .sub > li:nth-child(5) .mi { animation-delay: .18s; }
.sub > li:nth-child(6), .sub > li:nth-child(6) .mi { animation-delay: .22s; }
.sub > li:nth-child(7), .sub > li:nth-child(7) .mi { animation-delay: .26s; }
.sub > li:nth-child(8), .sub > li:nth-child(8) .mi { animation-delay: .30s; }
.sub > li:nth-child(9), .sub > li:nth-child(9) .mi { animation-delay: .34s; }
@media (max-width: 900px) {
  .nav-open .nav-links > li { animation: mi-in .4s var(--ease) both; }
  .nav-open .nav-links > li .mi-top { animation: mi-pop .5s var(--ease) both; }
  .nav-open .nav-links > li:nth-child(1), .nav-open .nav-links > li:nth-child(1) .mi-top { animation-delay: .03s; }
  .nav-open .nav-links > li:nth-child(2), .nav-open .nav-links > li:nth-child(2) .mi-top { animation-delay: .07s; }
  .nav-open .nav-links > li:nth-child(3), .nav-open .nav-links > li:nth-child(3) .mi-top { animation-delay: .11s; }
  .nav-open .nav-links > li:nth-child(4), .nav-open .nav-links > li:nth-child(4) .mi-top { animation-delay: .15s; }
  .nav-open .nav-links > li:nth-child(5), .nav-open .nav-links > li:nth-child(5) .mi-top { animation-delay: .19s; }
  .nav-open .nav-links > li:nth-child(6), .nav-open .nav-links > li:nth-child(6) .mi-top { animation-delay: .23s; }
  .nav-open .nav-links > li:nth-child(7), .nav-open .nav-links > li:nth-child(7) .mi-top { animation-delay: .27s; }
  .nav-open .nav-links > li:nth-child(8) { animation-delay: .31s; }
}
@media (prefers-reduced-motion: reduce) {
  .mi svg, .sub > li, .sub > li .mi, .nav-open .nav-links > li, .nav-open .nav-links > li .mi-top { animation: none !important; }
}

@media (max-width: 900px) { .nav-links { max-height: calc(100dvh - 4.75rem); overflow-y: auto; overscroll-behavior: contain; } }

/* ---------- Logo lockup: mark + three-line wordmark ---------- */
.brand { gap: 0.6rem; }
.brand img { width: 2.3rem; height: auto; aspect-ratio: 680 / 800; }
.brand-name--logo { display: grid; line-height: .98; gap: 0.06rem; }
.brand-name--logo b { font-family: "Quicksand", var(--font-display); font-weight: 700; font-size: 0.774rem; letter-spacing: 0.01em; text-transform: uppercase; color: #02234D; white-space: nowrap; }
.site-header--hero .brand-name--logo b, .site-footer .brand-name--logo b { color: #fff; text-shadow: none; }
:root[data-theme="dark"] .brand-name--logo b { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-name--logo b { color: #fff; } }
.site-footer .brand img { width: 2.8rem; }
.site-footer .brand-name--logo b { font-size: 0.9rem; }
