/* ============================================================================
   ANOINTED CHRISTIAN HEALING MINISTRIES — design system
   ----------------------------------------------------------------------------
   Typeface   Inter Tight for voice, Cormorant Garamond for scripture
   Palette    The four colours of the ministry's logo, red, cyan, gold and
              green, on the logo's black and a clean ivory
   Structure  tokens → base → layout → components → motion → responsive
   ========================================================================== */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* colour: taken from the logo itself */
  --ink:          #121212;      /* the logo's black */
  --ink-2:        #1b1b1b;
  --ink-3:        #242424;
  --ink-soft:     #3a3a3a;
  --paper:        #fbfaf6;
  --paper-2:      #f4f1ea;
  --paper-raised: #ffffff;

  /* Each logo colour has a fill and a text value. The fills are bright
     enough that as words on ivory they would fail contrast, so words take
     the deep value (every one at least 4.5:1) and shapes take the fill. */
  --gold:         #f0a818;      /* the M: fills and buttons, with black text */
  --gold-bright:  #ffc23d;      /* gold words on black */
  --gold-pale:    #fde7b0;
  --gold-deep:    #8a5b00;      /* gold words on ivory, 5.6:1 */
  --gold-soft:    rgba(240, 168, 24, 0.14);
  --gold-line:    rgba(240, 168, 24, 0.42);

  --red:          #e41824;      /* the H */
  --red-bright:   #ff6b71;      /* red words on black */
  --red-deep:     #b3121b;      /* red words on ivory, 6.7:1 */
  --red-soft:     rgba(228, 24, 36, 0.10);

  --cyan:         #00a8e4;      /* the C: fills, and words on black */
  --cyan-deep:    #006a92;      /* cyan words on ivory, 5.8:1 */
  --cyan-soft:    rgba(0, 168, 228, 0.12);

  --green:        #386050;      /* the underline: words on ivory, 6.8:1 */
  --green-bright: #5fa487;      /* green words on black */
  --green-soft:   rgba(56, 96, 80, 0.12);

  /* dark blue for the covers and panels */
  --navy:         #0d2c54;      /* 13.9:1 on white */
  --navy-2:       #1a4a86;
  /* the menu itself: a clearer blue, still 7.1:1 on white */
  --menu:         #1f5fa9;
  --menu-hover:   #0f8fd0;

  /* the logo's colours side by side, for rules and hairlines */
  --brand-bar: linear-gradient(90deg,
    var(--red) 0 25%, var(--cyan) 25% 50%, var(--gold) 50% 75%, var(--green) 75% 100%);

  /* older names, kept so every existing rule lands on a logo colour */
  --olive:        var(--green);
  --olive-bright: var(--green-bright);
  --sky:          var(--cyan-deep);
  --sky-bright:   var(--cyan);

  --muted:        #6b665d;
  --muted-light:  #b3aea4;
  --line:         #e7e2d8;
  --line-dark:    rgba(255, 255, 255, 0.12);

  --success:      #2e7d4f;
  --danger:       #b3121b;

  /* type */
  --font:      "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-scripture: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --fs-display: clamp(2.9rem, 7.2vw, 6.1rem);
  --fs-hero:    clamp(2.4rem, 5.6vw, 4.6rem);
  --fs-h1:      clamp(2.1rem, 4.6vw, 3.5rem);
  --fs-h2:      clamp(1.75rem, 3.4vw, 2.6rem);
  --fs-h3:      clamp(1.2rem, 2vw, 1.45rem);
  --fs-body:    1.05rem;
  --fs-lead:    clamp(1.1rem, 1.5vw, 1.28rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.76rem;

  --track-wide: 0.28em;   /* kickers */
  --track-mid:  0.12em;

  /* space */
  --s-1: 0.5rem;  --s-2: 1rem;    --s-3: 1.5rem;
  --s-4: 2.5rem;  --s-5: 4rem;    --s-6: 6rem;    --s-7: 8.5rem;

  /* form */
  --radius:    12px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-1: 0 2px 12px rgba(18, 18, 18, 0.07);
  --shadow-2: 0 14px 40px rgba(18, 18, 18, 0.16);
  --shadow-3: 0 30px 80px rgba(18, 18, 18, 0.28);

  /* motion */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms; --t-med: 400ms; --t-slow: 750ms; --t-cine: 1200ms;

  --header-h: 78px;
}

/* ── 2. Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* The display rule above outranks the UA stylesheet, so restore [hidden]. */
[hidden] { display: none !important; }

a { color: var(--gold-deep); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

ul, ol { list-style: none; }

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

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--gold); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ── 3. Layout ───────────────────────────────────────────────────────────── */
.container   { width: min(1180px, 90%); margin-inline: auto; }
.container-w { width: min(1420px, 94%); margin-inline: auto; }
.container-n { width: min(780px, 90%);  margin-inline: auto; }

.section        { padding-block: var(--s-7); position: relative; }
.section--tight { padding-block: var(--s-6); }
.section--slim  { padding-block: var(--s-5); }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .muted { color: var(--muted-light); }
.section--dark .section-title::after { background: var(--brand-bar); }

.section--paper2 { background: var(--paper-2); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--wide-left  { grid-template-columns: 1.15fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.15fr; }

.center { text-align: center; }
.muted  { color: var(--muted); }
.lead   { font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-soft); }
.stack > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-3); }

/* ── 4. Editorial furniture ──────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: var(--s-2);
}
.kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--red);
  transform-origin: left; animation: rule-in 900ms var(--ease-out) both;
}
.section--dark .kicker { color: var(--gold-bright); }
.kicker--center::after {
  content: ""; width: 34px; height: 2px; background: var(--cyan);
}

@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.section-title { font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.section-title--rule { padding-bottom: var(--s-2); position: relative; }
.section-title--rule::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 72px; height: 3px; background: var(--brand-bar); border-radius: 2px;
}
.center .section-title--rule::after { left: 50%; transform: translateX(-50%); }

.eyebrow-num {
  font-family: var(--font-scripture);
  font-size: 0.95rem; letter-spacing: var(--track-mid);
  color: var(--gold); font-style: italic;
}

/* Scripture setting — the one place we change typeface */
.scripture {
  font-family: var(--font-scripture);
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
  position: relative;
  padding-left: var(--s-3);
  border-left: 2px solid var(--gold);
}
.section--dark .scripture { color: var(--paper); border-left-color: var(--gold-bright); }
.scripture--center {
  border-left: 0; padding-left: 0; text-align: center;
  max-width: 62ch; margin-inline: auto;
}
.scripture-ref {
  display: block; margin-top: var(--s-2);
  font-family: var(--font); font-style: normal;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--gold-deep); font-weight: 700;
}
.section--dark .scripture-ref { color: var(--gold-bright); }

/* Prose from the rich-text editor */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.6em; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.1em; margin-top: 0.55em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-top: 0.55em; padding-left: 0.3em; }
.prose blockquote {
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.3rem; line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: var(--s-3);
  color: var(--ink-soft);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.6rem; text-align: left; }
.prose th { color: var(--gold-deep); text-transform: uppercase; letter-spacing: var(--track-mid); font-size: var(--fs-micro); }

/* ── 5. Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);          /* black on the logo gold, 9.2:1 */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; position: relative; overflow: hidden;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

/* Gold sweep on hover */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn-outline {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--gold);
}
.btn-outline:hover { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.section--dark .btn-outline, .resource-feature .btn-outline { --btn-fg: var(--paper); }
.section--dark .btn-outline:hover, .resource-feature .btn-outline:hover { --btn-fg: var(--ink); }

.btn-light {
  --btn-bg: transparent; --btn-fg: var(--paper);
  border-color: rgba(251, 250, 246, 0.55);
}
.btn-light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }

.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Text link with a travelling arrow */
.link-more {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-deep);
}
.link-more .arrow { transition: transform var(--t-med) var(--ease-out); }
.link-more:hover { color: var(--ink); }
.link-more:hover .arrow { transform: translateX(6px); }
.section--dark .link-more { color: var(--gold-bright); }
.section--dark .link-more:hover { color: var(--paper); }

/* ── 6. Top bar, header & navigation ───────────────────────── */

/* The utility bar carries the facts a visitor most often wants first.
   It scrolls away; the main bar below it stays. */
.topbar {
  position: relative;
  background: var(--ink);
  color: var(--muted-light);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(240, 168, 24, 0.14);
}
.topbar .container-w {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 40px; flex-wrap: wrap;
}
.topbar-facts { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-facts svg { color: var(--gold); flex: none; }
.topbar a { color: var(--muted-light); }
.topbar a:hover { color: var(--gold-bright); }

.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-verse {
  font-family: var(--font-scripture); font-style: italic;
  font-size: 0.92rem; color: var(--gold-pale); opacity: .85;
}
.topbar-social { display: flex; gap: 0.55rem; }
.topbar-social a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(240, 168, 24, 0.28); border-radius: 50%;
  transition: all var(--t-fast) var(--ease);
}
.topbar-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* The logo's four colours as a hairline along the very top of every page. */
.topbar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-bar);
}

/* Docked from the first paint: it sits in the flow, then sticks. */
/* White, because the logo's black letters and arched name disappear on a
   dark bar. */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-med) var(--ease);
}
.site-header.is-solid { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }
.site-header > .container-w {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 56px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.08rem; font-weight: 700; line-height: 1.15;
  letter-spacing: 0.005em;        /* the full name, written as the logo writes it */
  color: var(--ink);
}
.brand-sub { margin-top: 0.3rem; }
.brand-sub {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-deep); font-weight: 700;
}

/* Everything after the wordmark is pushed to the right edge. */
.nav-wrap { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2rem); }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0.55rem 0;
  color: var(--menu);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.005em;            /* sentence case, not shouted */
  position: relative; white-space: nowrap;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 3px; width: 100%; background: var(--brand-bar); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.nav > li > a:hover, .nav > li > a[aria-current="page"] { color: var(--menu-hover); }
.nav > li > a:hover::after,
.nav > li > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Dropdowns */
/* .nav > li > a sets padding: 0.55rem 0, which wiped out the room for the
   arrow and left it drawn over the last letter. This rule outranks it. */
.nav > li.has-sub > a { padding-right: 17px; }
.has-sub > a::before {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--t-fast) var(--ease);
}
.subnav {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 10px);
  min-width: 268px; padding: 0.55rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease-out),
              visibility 0s var(--t-med);
}
.subnav--wide { min-width: 310px; }
/* A hover bridge, so the pointer can cross the gap without the menu closing. */
.has-sub::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease-out),
              visibility 0s;
}
.has-sub:hover > a::before { transform: rotate(-135deg); margin-top: -1px; }
.subnav a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
  line-height: 1.3;
}
.subnav a:hover { background: var(--gold-soft); color: var(--navy-2); }
.subnav .sub-note {
  display: block; margin-top: 0.15rem;
  font-size: 0.75rem; color: var(--muted); font-weight: 400;
}

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(251, 250, 246, 0.25);
  border-radius: 50%; color: var(--paper); cursor: pointer; flex: none;
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-1px); }
.site-header .icon-btn, .site-header .nav-toggle { border-color: var(--line); color: var(--navy); }
.site-header .icon-btn:hover, .site-header .nav-toggle:hover { border-color: var(--gold); color: var(--gold-deep); }

.nav-toggle { display: none; }

/* Reading-progress hairline */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left; z-index: 95;
  background: var(--brand-bar);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 8%;
  clip-path: circle(0% at calc(100% - 46px) 40px);
  /* visibility (not just the clip) keeps the closed drawer out of the
     keyboard tab order; `inert` is set alongside it in JS. */
  visibility: hidden;
  /* Visible the instant it opens; hidden only once the close finishes. */
  transition: clip-path 620ms var(--ease-out), visibility 0s 620ms;
  overflow-y: auto;
}
.mobile-nav.is-open {
  clip-path: circle(150% at calc(100% - 46px) 40px);
  visibility: visible;
  transition: clip-path 620ms var(--ease-out), visibility 0s 0s;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.1rem; }
.mobile-nav a {
  display: block; padding: 0.5rem 0;
  font-size: clamp(1.2rem, 4.6vw, 1.7rem); font-weight: 700;
  color: var(--paper); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(20px);
}
.mobile-nav.is-open a { animation: drawer-in 520ms var(--ease-out) forwards; }
.mobile-nav a:hover { color: var(--gold-bright); }
.mobile-nav .sub a {
  font-size: 0.98rem; padding: 0.3rem 0 0.3rem 1.2rem;
  color: var(--muted-light); font-weight: 400;
}
.mobile-nav-foot {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  color: var(--muted-light); font-size: var(--fs-small);
}
.mobile-nav-foot a { font-size: var(--fs-small); display: inline; color: var(--gold-bright); }
.mobile-close {
  position: absolute; top: 22px; right: 5%;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-dark);
  color: var(--paper); font-size: 1.5rem; cursor: pointer;
}

@keyframes drawer-in { to { opacity: 1; transform: none; } }

/* ── 7. Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* The docked bars are in the flow, so the hero fills what is left. */
  /* A full screen of photograph, so it runs on past the fold by the height of
     the bars above it. The buttons are lifted by that same amount below. */
  min-height: max(560px, 100svh);
  display: grid; align-items: end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage { position: absolute; inset: 0; z-index: -3; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
}
/* Slow Ken Burns drift on whichever frame is showing */
.hero-slide.is-active img { animation: ken-burns 11s var(--ease-soft) forwards; }
@keyframes ken-burns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.4%, -1.2%, 0); }
}

/* No words sit on the photographs, so only the foot is shaded: just enough
   for the small buttons and the dots to read against any picture. */
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 26%, transparent 42%);
}

/* Two slow shafts of light, as through a window */
.hero-rays { position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-rays span {
  position: absolute; top: -30%; width: 34vw; height: 160%;
  background: linear-gradient(180deg, rgba(240, 168, 24,.16), rgba(240, 168, 24,0) 70%);
  filter: blur(28px);
  transform: rotate(14deg);
  opacity: 0;
  animation: ray-drift 14s var(--ease-soft) infinite;
}
.hero-rays span:nth-child(1) { left: 8%;  animation-delay: 0s; }
.hero-rays span:nth-child(2) { left: 46%; width: 22vw; animation-delay: 4.5s; }
.hero-rays span:nth-child(3) { left: 74%; width: 28vw; animation-delay: 8.5s; }

@keyframes ray-drift {
  0%   { opacity: 0;   transform: rotate(14deg) translateY(-4%); }
  35%  { opacity: 0.9; }
  70%  { opacity: 0.55; }
  100% { opacity: 0;   transform: rotate(14deg) translateY(8%); }
}

.hero-inner {
  position: relative; z-index: 2;
  padding-block: var(--s-6);
  max-width: 62ch;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: var(--s-3);
}
.hero-kicker::before { content: ""; width: 46px; height: 1px; background: currentColor; }

.hero-title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-title .em {
  display: block;
  font-family: var(--font-scripture);
  font-style: italic; font-weight: 600;
  font-size: 0.62em; letter-spacing: -0.005em;
  color: var(--gold-bright);
  margin-top: 0.12em;
}

/* Word-by-word rise */
.rise-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.rise-word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 900ms var(--ease-out) forwards;
}
@keyframes rise { to { transform: none; } }

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(251, 250, 246, 0.86);
  max-width: 54ch; margin-bottom: var(--s-4);
}

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

.hero-scripture {
  position: absolute; right: 0; bottom: 26%; z-index: 2;
  max-width: 30ch; text-align: right;
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.06rem; line-height: 1.5;
  color: rgba(251, 250, 246, 0.72);
  padding-right: var(--s-3);
  border-right: 1px solid var(--gold-line);
}
.hero-scripture cite {
  display: block; margin-top: 0.6rem;
  font-family: var(--font); font-style: normal;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--gold-bright); font-weight: 700;
}

/* Slide controls */
.hero-dots {
  position: absolute; left: 0; bottom: var(--s-4); z-index: 3;
  display: flex; gap: 0.7rem; align-items: center;
}
.hero-dot {
  width: 46px; height: 3px; padding: 0;
  background: rgba(255, 255, 255, 0.45); border: 0; cursor: pointer;
  position: relative; overflow: hidden; border-radius: 2px;
}
.hero-dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-bright); transform: scaleX(0); transform-origin: left;
}
.hero-dot.is-active::after { animation: dot-fill 6.5s linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }

.hero-scroll {
  position: absolute; left: 50%; bottom: var(--s-3); z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: rgba(251, 250, 246,.6);
}
.hero-scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold-bright), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-bright);
  animation: scroll-cue 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* Compact page hero for interior pages */
.page-hero {
  position: relative; min-height: clamp(460px, 70vh, 840px); display: grid; align-items: end;
  background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate;
}
.page-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.page-hero > img { filter: saturate(1.06) contrast(1.04); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(0, 168, 228,.34) 0%, rgba(0, 168, 228,0) 58%),
    linear-gradient(to top, rgba(8, 28, 56,.95) 0%, rgba(11, 36, 70,.55) 48%, rgba(13, 44, 84,.72) 100%);
}
/* The logo's four colours close the cover off from the page below it. */
.page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg,
    var(--red) 0 25%, var(--cyan) 25% 50%, var(--gold) 50% 75%, var(--green) 75% 100%);
}
.page-hero .container { padding-block: var(--s-5) var(--s-4); position: relative; }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--s-2); }
.page-hero .lead { color: rgba(251, 250, 246,.84); max-width: 60ch; }
.page-hero--plain { min-height: auto; padding-top: var(--s-5); }
.page-hero--short { min-height: clamp(300px, 38vh, 440px); }
.page-hero--short .container { padding-block: var(--s-4) var(--s-3); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: rgba(251, 250, 246,.6);
  margin-bottom: var(--s-2);
}
.breadcrumbs a { color: var(--gold-bright); }
.breadcrumbs span { opacity: .5; }

/* ── 8. Scroll reveal ────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="clip"]  { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1100ms var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Only the clip reveal needs a clip path. On anything else inset(0) is not
   harmless: it cuts off whatever reaches past the box, such as an open share
   menu or a hover shadow. */
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* ── 9. Figures & parallax ───────────────────────────────────────────────── */
.figure {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2);
}
.figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-cine) var(--ease-out);
}
.figure--tall   { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--wide   { aspect-ratio: 16 / 10; }
.figure--cine   { aspect-ratio: 21 / 9; }

/* A gold rule that draws itself around the image */
.figure--framed { border-radius: 0; }
.figure--framed::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--gold-line); pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out) 200ms;
}
.figure--framed.is-in::after { clip-path: inset(0 0 0 0); }

.figure-caption {
  margin-top: 0.8rem; font-size: var(--fs-micro);
  letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--muted);
}

[data-parallax] { will-change: transform; }

/* ── 10. Ministry cards ──────────────────────────────────────────────────── */
.ministry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }

.ministry-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 23rem; overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  isolation: isolate;
}
.ministry-card > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 1400ms var(--ease-out);
}
.ministry-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 10,.97) 20%, rgba(10, 10, 10,.72) 52%, rgba(10, 10, 10,.2) 100%);
  transition: background var(--t-med) var(--ease);
}
.ministry-card:hover > img { transform: scale(1.07); }
.ministry-card:hover::after { background: linear-gradient(to top, rgba(10, 10, 10,.97) 10%, rgba(10, 10, 10,.6) 55%, rgba(10, 10, 10,.28) 100%); }

.ministry-card-body { margin-top: auto; padding: var(--s-3) var(--s-3) 1.35rem; }
.ministry-card .icon {
  width: 34px; height: 34px; margin-bottom: 0.75rem;
  color: var(--accent, var(--gold-bright));
}
.ministry-card h3 {
  font-size: 1.42rem; letter-spacing: -0.015em; margin-bottom: 0.3rem;
}
.ministry-card .sub {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--accent, var(--gold-bright));
  font-weight: 700; margin-bottom: 0.45rem;
  text-shadow: 0 1px 6px rgba(10, 10, 10, 0.85);
}
/* The summary is always readable — hover is not available on touch. */
.ministry-card .summary {
  font-size: 0.95rem; color: rgba(251, 250, 246,.82);
  margin-bottom: var(--s-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp var(--t-slow) var(--ease-out);
}
.ministry-card:hover .summary, .ministry-card:focus-within .summary {
  -webkit-line-clamp: 5;
}
.ministry-card .link-more { color: var(--accent, var(--gold-bright)); }

/* accent bar that wipes across the top on hover */
.ministry-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--gold));
  transform: scaleX(0); transform-origin: left; z-index: 1;
  transition: transform var(--t-med) var(--ease-out);
}
.ministry-card:hover::before, .ministry-card:focus-within::before { transform: scaleX(1); }

.ministry-card[data-accent="red"]   { --accent: var(--red-bright); }
.ministry-card[data-accent="green"] { --accent: var(--green-bright); }
.ministry-card[data-accent="blue"]  { --accent: var(--cyan); }

/* Stretched link keeps the whole card clickable without nesting anchors */
.stretched::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
}

/* ── 11. Rhythm list ("we learn together…") ──────────────────────────────── */
.rhythm { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); }
.rhythm-item {
  background: var(--ink); padding: var(--s-3) var(--s-2);
  text-align: center; position: relative; overflow: hidden;
  transition: background var(--t-med) var(--ease);
}
.rhythm-item::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-med) var(--ease-out);
}
.rhythm-item:hover { background: var(--ink-2); }
.rhythm-item:hover::after { transform: scaleX(1); }
.rhythm-item .icon { width: 34px; height: 34px; margin: 0 auto var(--s-2); color: var(--gold-bright); }
.rhythm-item h4 { font-size: 1.08rem; margin-bottom: 0.3rem; color: var(--paper); }
.rhythm-item p  { font-size: var(--fs-small); color: var(--muted-light); }

/* ── 12. Scripture marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--paper-2); padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding-inline: 1.6rem; white-space: nowrap;
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.18rem; color: var(--ink-soft);
}
.marquee-item .dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.section--dark .marquee { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .marquee-item { color: var(--paper); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 13. Statistics ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-3); }
.stat { text-align: center; padding: var(--s-2); position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line-dark);
}
.stat-value {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1; color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.6rem; font-size: var(--fs-micro);
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--muted-light);
}

/* ── 14. Post cards ──────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }

.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem;
}
/* Dots live between items, so a wrapped row never ends on a separator. */
.post-meta > span + span:not(.tag)::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 3px; height: 3px; margin-right: 0.8rem;
  background: currentColor; opacity: .55; transform: rotate(45deg);
}
.tag {
  display: inline-block; padding: 0.2rem 0.65rem;
  background: var(--gold-soft); color: var(--gold-deep);
  border-radius: var(--radius-pill); font-weight: 700;
}
.post-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.post-card h3 a { color: inherit; }
.post-card:hover h3 a { color: var(--gold-deep); }
.post-card p { font-size: 0.94rem; color: var(--muted); flex: 1; }
.post-card .link-more { margin-top: var(--s-2); }

/* Featured post: wide split */
.post-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); overflow: hidden;
}
.post-feature .thumb { aspect-ratio: auto; min-height: 24rem; }
.post-feature .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { padding: clamp(1.75rem, 3.4vw, 3.2rem); align-self: center; }
.post-feature h2 { font-size: var(--fs-h2); margin-bottom: var(--s-2); }
.post-feature p { color: rgba(251, 250, 246,.8); margin-bottom: var(--s-3); }

/* ── 15. Music ───────────────────────────────────────────────────────────── */
.player {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-3);
}
.player-top { display: grid; grid-template-columns: 250px 1fr; gap: 0; }
.player-art { position: relative; aspect-ratio: 1/1; background: var(--ink-3); overflow: hidden; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(10, 10, 10,.55) 100%);
}
.player-main { padding: var(--s-3); display: flex; flex-direction: column; justify-content: center; gap: var(--s-2); }
.player-title { font-size: 1.55rem; letter-spacing: -0.015em; }
.player-artist { font-size: var(--fs-micro); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.player-scripture { font-family: var(--font-scripture); font-style: italic; color: rgba(251, 250, 246,.7); font-size: 1.02rem; }

.player-controls { display: flex; align-items: center; gap: var(--s-2); }
.play-btn {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--gold); background: var(--gold);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.play-btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: scale(1.06); }
.play-btn svg { width: 20px; height: 20px; }

.seek { flex: 1; display: flex; align-items: center; gap: 0.8rem; }
.seek-bar {
  flex: 1; height: 4px; border-radius: 2px; cursor: pointer;
  background: rgba(251, 250, 246,.18); position: relative; overflow: hidden;
}
.seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold-bright); }
.seek-time { font-size: var(--fs-micro); color: var(--muted-light); font-variant-numeric: tabular-nums; min-width: 5.4ch; }

/* Equaliser bars that dance only while a track is playing */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span {
  width: 3px; background: var(--gold-bright); border-radius: 1px;
  height: 22%; transform-origin: bottom;
}
.player.is-playing .eq span { animation: eq-bounce 900ms var(--ease-soft) infinite alternate; }
.player.is-playing .eq span:nth-child(2) { animation-delay: 140ms; }
.player.is-playing .eq span:nth-child(3) { animation-delay: 300ms; }
.player.is-playing .eq span:nth-child(4) { animation-delay: 90ms; }
.player.is-playing .eq span:nth-child(5) { animation-delay: 380ms; }
@keyframes eq-bounce { to { height: 100%; } }

.playlist { border-top: 1px solid var(--line-dark); max-height: 26rem; overflow-y: auto; }
.playlist li { border-bottom: 1px solid rgba(240, 168, 24,.09); }
.playlist button {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto auto;
  align-items: center; gap: var(--s-2);
  padding: 0.9rem var(--s-3); text-align: left;
  background: transparent; border: 0; color: var(--paper); cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.playlist button:hover { background: rgba(240, 168, 24,.09); }
.playlist li.is-current button { background: rgba(240, 168, 24,.14); }
.playlist .num { font-family: var(--font-scripture); font-style: italic; color: var(--gold); font-size: 1.05rem; }
.playlist .name { font-weight: 700; font-size: 0.98rem; }
.playlist .ref { font-size: var(--fs-micro); color: var(--muted-light); letter-spacing: var(--track-mid); text-transform: uppercase; }
.playlist .dur { font-size: var(--fs-small); color: var(--muted-light); font-variant-numeric: tabular-nums; }
.playlist .dl { color: var(--gold-bright); padding: 0.35rem; border-radius: 50%; }
.playlist .dl:hover { background: rgba(240, 168, 24,.18); }

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.video-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; background: var(--ink); color: var(--paper);
}
.video-card .thumb { aspect-ratio: 16/9; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10,.92), rgba(10, 10, 10,.1) 62%);
}
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; z-index: 2;
  display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid rgba(251, 250, 246,.55);
  background: rgba(18, 18, 18,.4); backdrop-filter: blur(4px);
  transition: all var(--t-med) var(--ease);
}
.video-card:hover .video-play { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.video-play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--gold-line); animation: pulse-ring 2.6s var(--ease-soft) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: .9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.video-card-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: var(--s-3); }
.video-card h3 { font-size: 1.1rem; }
.video-card .ref { font-size: var(--fs-micro); letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--gold-bright); }

.embed {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--ink);
}
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── 15b. Song cards (the audio songs page) ─────────────────────── */
.song-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-3);
}
.song-card {
  display: grid; grid-template-columns: 120px 1fr;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.song-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-2);
  border-color: var(--gold-line);
}
.song-card-art { position: relative; background: var(--ink-3); }
.song-card-art img { width: 100%; height: 100%; object-fit: cover; }
.song-card-num {
  position: absolute; left: 0.7rem; top: 0.6rem;
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.5rem; color: var(--gold-bright);
  text-shadow: 0 1px 8px rgba(10, 10, 10, 0.8);
}
.song-card-body { padding: var(--s-3); }
.song-card-ref {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--gold-deep); font-weight: 700;
  margin-bottom: 0.3rem;
}
.song-card h2 { font-size: 1.18rem; margin-bottom: 0.2rem; }
.song-card h2 a { color: inherit; }
.song-card:hover h2 a { color: var(--gold-deep); }
.song-card .muted { font-size: 0.88rem; }
.song-card audio { margin-top: 0.9rem; height: 38px; }
.song-card-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  margin-top: 0.9rem;
}
.song-card-actions .btn-sm { width: auto; }

@media (max-width: 520px) {
  .song-card { grid-template-columns: 1fr; }
  .song-card-art { aspect-ratio: 16 / 9; }
}

/* ── 15c. Music page ────────────────────────────────────── */
.music-actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
  margin-top: var(--s-3);
}
.music-actions .btn { width: auto; }

/* Each song beside the passage it carries. */
.scripture-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-2);
}
.scripture-strip a {
  display: grid; gap: 0.35rem; height: 100%;
  padding: var(--s-3);
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease);
}
.scripture-strip a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); }
.strip-ref {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-deep);
}
.strip-title { font-size: 1.14rem; font-weight: 700; }
.strip-text {
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.02rem; color: var(--muted); line-height: 1.45;
}
.strip-go {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: auto;
  padding-top: 0.6rem;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-deep);
}
.scripture-strip a:hover .arrow { transform: translateX(5px); }

/* No portrait uploaded yet? Set the artist's initial like a monogram. */
.artist-portrait { max-width: 340px; }
.artist-monogram {
  display: grid; align-content: center; justify-items: center; gap: 0.9rem;
  aspect-ratio: 3 / 4; padding: var(--s-3); text-align: center;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(240, 168, 24, 0.18), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.artist-monogram > span:first-child {
  font-family: var(--font-scripture); font-style: italic;
  font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1;
  color: var(--gold-bright);
}
.artist-monogram-rule { width: 54px; height: 1px; background: var(--gold-line); }
.artist-monogram-name {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--muted-light);
}

/* ── 15d. Gallery furniture ───────────────────────────────── */
.gallery-hint {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: var(--s-3);
  font-size: var(--fs-small);
}
.gallery-hint svg { color: var(--gold); flex: none; }

.gallery-zoom {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(18, 18, 18, 0.6);
  color: var(--paper); backdrop-filter: blur(3px);
  opacity: 0; transform: scale(0.85);
  transition: all var(--t-med) var(--ease-out);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: scale(1); }

/* The lightbox counts where you are in the set. */
.lightbox-counter {
  position: absolute; top: 3vh; left: 5vw;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--muted-light);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .music-actions .btn { width: 100%; }
}

/* ── 16. Resources ───────────────────────────────────────────────────────── */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.resource-card {
  position: relative; display: flex; gap: var(--s-2);
  padding: var(--s-3); background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.resource-icon {
  width: 54px; height: 68px; flex: none; position: relative;
  border-radius: 3px 8px 3px 3px;
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  color: var(--gold-bright);
  display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: var(--shadow-1);
}
.resource-icon::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 14px 14px 0; border-style: solid;
  border-color: transparent var(--paper) transparent transparent;
}
.resource-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.resource-card p  { font-size: 0.9rem; color: var(--muted); }
.resource-meta {
  margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.8rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted);
}

/* ── 16b. Ministry pages ─────────────────────────────────── */

/* Each ministry carries its own accent through its page. */
/* --ministry carries words and rules on ivory, so it takes each colour's
   deep value; --ministry-bright is for fills and for words on black. */
[data-accent="red"]   { --ministry: var(--red-deep);  --ministry-bright: var(--red);          --ministry-deep: var(--red-deep); }
[data-accent="blue"]  { --ministry: var(--cyan-deep); --ministry-bright: var(--cyan);         --ministry-deep: var(--cyan-deep); }
[data-accent="gold"]  { --ministry: var(--gold-deep); --ministry-bright: var(--gold);         --ministry-deep: var(--gold-deep); }
[data-accent="green"] { --ministry: var(--green);     --ministry-bright: var(--green-bright); --ministry-deep: var(--green); }

/* Inside an accented block the kicker and the title rule take the
   ministry's own colour, so each page reads as one family. */
[data-accent] > .kicker { color: var(--ministry, var(--gold-deep)); }
[data-accent] .section-title--rule::after { background: var(--ministry, var(--gold)); }

/* The summary and the body share one reading column; the scripture and the
   contents ride alongside in an aside that follows the reader down the page. */
.ministry-opening {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.ministry-opening-text {
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  line-height: 1.45; color: var(--ink-soft);
  padding-left: var(--s-3);
  border-left: 2px solid var(--ministry, var(--gold));
}
.ministry-opening-body { margin-top: var(--s-4); max-width: none; }
.ministry-opening-body > p:first-child { margin-top: 0; }

.ministry-aside { position: sticky; top: calc(var(--header-h, 76px) + var(--s-3)); }
.ministry-aside > * + * { margin-top: var(--s-3); }

.ministry-opening-scripture {
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.24rem; line-height: 1.5; color: var(--muted);
  padding: var(--s-3);
  background: var(--paper-2); border-radius: var(--radius);
  position: relative;
}
.ministry-opening-scripture::before {
  content: ""; position: absolute; left: 0; top: var(--s-3); bottom: var(--s-3);
  width: 2px; background: var(--ministry, var(--gold));
}
.ministry-opening-scripture .scripture-ref { color: var(--ministry, var(--gold-deep)); }

/* What this ministry page holds, set across the page like the rails on News
   and Gallery, so a long page can be entered at any point. */
.ministry-contents {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.4rem 0.5rem; justify-content: flex-end;
}
.ministry-contents a {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.92rem; color: var(--ink-soft);
  transition: border-color var(--t-med) var(--ease), color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.ministry-contents a:hover {
  color: var(--ministry-deep, var(--gold-deep));
  border-color: var(--ministry, var(--gold));
  background: var(--paper-raised);
}
.contents-num {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid);
  color: var(--ministry, var(--gold)); font-variant-numeric: tabular-nums;
}


@media (max-width: 900px) {
  .ministry-opening { grid-template-columns: 1fr; }
  .ministry-aside { position: static; }
}

/* Jump links to the other two ministries. */
.ministry-jump { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.ministry-jump a {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: var(--s-2);
  padding: 0.7rem; border-radius: var(--radius);
  border: 1px solid var(--line-dark); color: var(--paper);
  transition: all var(--t-med) var(--ease);
}
.ministry-jump a:hover {
  background: rgba(240, 168, 24, 0.08);
  border-color: var(--ministry-bright, var(--gold));
  transform: translateX(4px);
}
.jump-thumb {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--ink-3);
}
.jump-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jump-body strong { display: block; font-size: 1.02rem; }
.jump-body em {
  display: block; font-style: normal; font-size: 0.8rem;
  color: var(--muted-light); margin-top: 0.1rem;
}
.ministry-jump .arrow { color: var(--ministry-bright, var(--gold-bright)); }
.ministry-jump a:hover .arrow { transform: translateX(4px); }

/* How the three fit together, on the index page. */
.ministry-threads { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.ministry-threads li {
  display: grid; grid-template-columns: 46px 1fr; gap: var(--s-2);
  align-items: start; padding: var(--s-3);
  background: var(--paper-raised);
  transition: background var(--t-med) var(--ease);
}
.ministry-threads li:hover { background: #fff; }
.thread-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold-soft);
  color: var(--ministry, var(--gold-deep));
}
.thread-mark[data-accent="red"]   { background: var(--red-soft); }
.thread-mark[data-accent="blue"]  { background: var(--cyan-soft); }
.thread-mark[data-accent="green"] { background: var(--green-soft); }
.ministry-threads h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.ministry-threads p { font-size: 0.93rem; color: var(--muted); }

@media (max-width: 980px) {
  .ministry-opening { grid-template-columns: 1fr; }
}

/* ── 16c. Listing pages (News and Resources) ────────────────────── */

/* A rail between the hero and the listing: how many there are, and the
   filters, on one line. */
.listing-rail {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 8;
}
.listing-rail-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
  padding-block: 0.9rem;
}
.listing-count {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.listing-count strong { color: var(--ink); font-size: 0.95rem; }

.filter-bar--flush { margin-bottom: 0; justify-content: flex-end; }
.pill-count {
  display: inline-block; margin-left: 0.45rem;
  font-size: 0.68rem; opacity: 0.65;
}

/* The flag on a featured card. */
.feature-flag {
  display: inline-block; margin-bottom: 0.8rem;
  padding: 0.25rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--gold); color: #fff;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
}
.post-feature h2 a { color: inherit; }
.post-feature h2 a:hover { color: var(--gold-bright); }
.feature-scripture {
  font-family: var(--font-scripture); font-style: italic;
  color: var(--gold-bright); margin-bottom: var(--s-3);
}

/* Article layout: a sticky aside beside the text. */
.article-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.article-layout {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.article-aside-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.share-row { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.share-row a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.92rem; color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all var(--t-fast) var(--ease);
}
.share-row a:hover {
  border-color: var(--gold); color: var(--gold-deep);
  background: var(--gold-soft);
}
.aside-scripture {
  font-family: var(--font-scripture); font-style: italic;
  font-size: 1.08rem; color: var(--gold-deep);
}
.article-lead {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.6; color: var(--ink-soft);
}
.article-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-2); margin-top: var(--s-4);
  padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.article-foot .btn-sm { width: auto; }

/* Previous and next. */
.article-nav { background: var(--ink); color: var(--paper); }
.article-nav-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dark);
}
.article-nav-item {
  display: grid; gap: 0.4rem;
  padding: var(--s-3);
  background: var(--ink); color: var(--paper);
  transition: background var(--t-med) var(--ease);
}
.article-nav-item:hover { background: var(--ink-2); color: var(--gold-bright); }
.article-nav-item--end { text-align: right; }
.article-nav-item--end .article-nav-label { justify-content: flex-end; }
.article-nav-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--gold-bright);
}
.article-nav-item strong { font-size: 1.05rem; font-weight: 700; }

/* A featured resource. */
.resource-feature {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 0; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
}
.resource-feature-art { position: relative; background: var(--ink-3); min-height: 320px; }
.resource-feature-art img { width: 100%; height: 100%; object-fit: cover; }
/* No cover uploaded? Set the title like one, rather than showing an
   empty black panel with a small icon on it. */
.resource-feature-slab {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: 0.7rem;
  padding: var(--s-4) var(--s-3);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(240, 168, 24, 0.16), transparent 60%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  border-right: 1px solid var(--line-dark);
}
.slab-rule { width: 46px; height: 2px; background: var(--gold); }
.slab-kind {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--gold-bright);
}
.slab-title {
  font-family: var(--font-scripture); font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2;
  color: var(--paper);
}
.slab-ext {
  margin-top: 0.6rem; font-size: var(--fs-micro);
  letter-spacing: var(--track-mid); color: var(--muted-light);
}
.resource-feature-body { padding: clamp(1.5rem, 3vw, 2.75rem); align-self: center; }
.resource-feature-body h2 { font-size: var(--fs-h2); margin-bottom: var(--s-2); }
.resource-feature-body h2 a { color: inherit; }
.resource-feature-body h2 a:hover { color: var(--gold-bright); }
.resource-feature-body > p { color: rgba(251, 250, 246, 0.8); }
.resource-feature .post-meta { color: var(--muted-light); }

.resource-facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-block: var(--s-3);
  padding-block: var(--s-2); border-block: 1px solid var(--line-dark);
}
.resource-facts li { display: grid; gap: 0.15rem; }
.resource-facts span {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted-light);
}
.resource-facts strong { font-size: 0.98rem; color: var(--paper); }

/* Category cards. */
.resource-categories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.resource-category {
  display: block; padding: var(--s-3);
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.resource-category:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-2);
  border-color: var(--gold-line); color: var(--ink);
}
.resource-category-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep);
  margin-bottom: var(--s-2);
  transition: all var(--t-med) var(--ease);
}
.resource-category:hover .resource-category-icon { background: var(--gold); color: #fff; }
.resource-category h3 { font-size: 1.16rem; margin-bottom: 0.35rem; }
.resource-category p { font-size: 0.93rem; color: var(--muted); }
.resource-category-count {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--s-2);
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-deep);
}
.resource-category:hover .arrow { transform: translateX(5px); }

/* Resource detail. */
.resource-detail {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.resource-detail-art { display: grid; gap: var(--s-3); }
.resource-slab {
  display: grid; align-content: center; gap: 0.8rem;
  aspect-ratio: 3 / 4; padding: var(--s-3);
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  border-radius: var(--radius); color: var(--paper);
  box-shadow: var(--shadow-2);
}
.resource-slab-ext {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); color: var(--gold-bright);
}
.resource-slab-title {
  font-family: var(--font-scripture); font-style: italic; font-size: 1.5rem;
}
.resource-download-card {
  padding: var(--s-3); text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.resource-download-card .btn { width: 100%; }
.resource-download-card p { margin-top: 0.8rem; font-size: var(--fs-small); }

/* Cell borders rather than a coloured gap, so a part-filled last row does
   not leave a stripe of divider showing. */
.resource-spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: var(--s-3);
}
.resource-spec > div {
  padding: 0.9rem var(--s-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resource-spec dt {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem;
}
.resource-spec dd { font-size: 0.98rem; font-weight: 700; }

@media (max-width: 980px) {
  .listing-rail { position: static; }
  .listing-rail-inner { justify-content: flex-start; }
  .filter-bar--flush { justify-content: flex-start; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside-sticky { position: static; }
  .share-row { grid-auto-flow: column; grid-auto-columns: max-content; }
  .resource-feature { grid-template-columns: 1fr; }
  .resource-feature-art { min-height: 220px; }
  .resource-detail { grid-template-columns: 1fr; }
  .resource-detail-art { max-width: 380px; }
}
@media (max-width: 620px) {
  .article-nav-grid { grid-template-columns: 1fr; }
  .article-nav-item--end { text-align: left; }
  .article-nav-item--end .article-nav-label { justify-content: flex-start; }
  .share-row { grid-auto-flow: row; }
}

/* ── 17. Team ────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.team-grid--leaders { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.member { text-align: left; }
.member .portrait {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-3);
  margin-bottom: var(--s-2);
}
.member .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out), filter var(--t-med) var(--ease); }
.member:hover .portrait img { transform: scale(1.05); }
.member .portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10,.6), transparent 45%);
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.member:hover .portrait::after { opacity: 1; }
.member .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-scripture); font-size: 3.4rem;
  color: var(--gold); background: var(--ink-2);
}
.member h3 { font-size: 1.16rem; margin-bottom: 0.2rem; }
.member .role {
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--gold-deep); font-weight: 700;
}
.member .bio { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.section--dark .member .role { color: var(--gold-bright); }
.section--dark .member .bio { color: var(--muted-light); }

/* A place still waiting for its name: the emblem stands in for the face, and
   the role does the talking. Nothing here should read as a missing image. */
.member--reserved .portrait {
  /* Translucent rather than a solid block, so a row of reserved places reads
     as held space on both the paper and the dark sections, and six of them
     never sit on the page as six heavy slabs. */
  background: rgba(240, 168, 24, 0.07);
  border: 1px dashed rgba(240, 168, 24, 0.38);
  aspect-ratio: 4 / 5;
}
.portrait-emblem {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold); opacity: 0.7;
}
.portrait-emblem svg { width: 34%; height: auto; max-width: 76px; }
.member--reserved .portrait::after { display: none; }

.member .role-lead {
  font-size: 1.06rem; line-height: 1.35; margin-bottom: 0.3rem;
  color: var(--ink);
}
.section--dark .member .role-lead { color: var(--paper); }
.member--reserved .reserved-note {
  font-size: 0.86rem; font-style: italic; color: var(--muted);
}
.section--dark .member--reserved .reserved-note { color: rgba(251, 250, 246, 0.55); }

/* Departments: where people serve. */
.departments {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s-2);
}
.departments li {
  padding: var(--s-3);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 2px solid var(--gold);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease);
}
.departments li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.departments h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.departments p { font-size: 0.92rem; color: var(--muted); }

/* When the company gathers. Set as rows so the occasion and the time stay
   aligned however long either of them runs. */
.gathering-times { list-style: none; display: grid; gap: 1px; }
.gathering-times li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-2); padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.gathering-times li:first-child { border-top: 1px solid var(--line); }
.gathering-what { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.gathering-when {
  flex: none;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-deep); font-variant-numeric: tabular-nums;
}

/* Small print inside a panel or card. */
.panel-note { font-size: 0.94rem; margin-top: 0.75rem; }
.contact-aside-panel .panel-note { margin-top: 0; margin-bottom: 1rem; }
.map-card-action { margin-top: var(--s-2); }

/* Small shared utilities, replacing inline styles that were repeated on
   several pages and drifted apart from one another. */
.hero-actions--center { justify-content: center; margin-top: var(--s-3); }
.figure--spaced { margin-top: var(--s-2); }
.figure--spaced-lg { margin-top: var(--s-4); }
.measure-lead { max-width: 58ch; margin-inline: auto; }

/* ── 17b. Get involved ──────────────────────────────────────── */
/* Consecutive ways alternate their ground, so the change of colour is what
   separates one from the next and the standard section padding stands. */

.involve-num {
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--gold-deep);
}
.involve-num > span {
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.involve-num::after {
  content: ""; flex: 0 0 42px; height: 1px; background: var(--gold-line);
}
.involve-icon { width: 26px; height: 26px; color: var(--gold); flex: none; }
.section--dark .involve-num { color: var(--gold-bright); }

/* A way with no photograph still needs to hold its half of the row. */
.involve-emblem {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  color: var(--gold);
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(240, 168, 24, 0.12), transparent 62%),
    var(--paper-2);
  border: 1px dashed rgba(240, 168, 24, 0.34);
}
.involve-emblem svg { width: 26%; max-width: 108px; height: auto; opacity: 0.75; }

/* Three plain steps, numbered, with a rule running between them. */
.involve-steps {
  list-style: none; display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.involve-steps li { padding-top: var(--s-3); border-top: 1px solid rgba(240, 168, 24, 0.28); }
.involve-steps .step-num {
  display: block; margin-bottom: 0.7rem;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-mid); color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.involve-steps h3 { font-size: 1.14rem; margin-bottom: 0.35rem; }
.involve-steps p { font-size: 0.95rem; color: var(--muted-light); }

/* ── 18. Gallery & lightbox ──────────────────────────────────────────────── */
/* Every tile the same size: a calm grid, not a mosaic. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gallery-item { aspect-ratio: 4 / 3; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--paper-2); cursor: zoom-in; border: 0; padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10,.7), transparent 50%);
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0.8rem; text-align: left;
  font-size: var(--fs-micro); color: var(--paper);
  opacity: 0; transform: translateY(8px);
  transition: all var(--t-med) var(--ease-out);
}
.gallery-item:hover .cap { opacity: 1; transform: none; }


.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 6, 6, 0.96);
  display: none; place-items: center; padding: 4vh 5vw;
}
.lightbox.is-open { display: grid; animation: fade-in var(--t-med) var(--ease) both; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-3); }
.lightbox-cap { margin-top: var(--s-2); color: var(--muted-light); font-size: var(--fs-small); text-align: center; }
.lightbox button {
  position: absolute; background: transparent; border: 1px solid var(--line-dark);
  color: var(--paper); width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.lightbox button:hover { background: var(--gold); border-color: var(--gold); }
.lightbox .lb-close { top: 3vh; right: 5vw; }
.lightbox .lb-prev  { left: 2vw;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 2vw; top: 50%; transform: translateY(-50%); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: var(--s-4); }
.filter-bar a {
  padding: 0.45rem 1.15rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; font-weight: 700; color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.filter-bar a:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-bar a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── 19. Forms ───────────────────────────────────────────────────────────── */
.field { margin-bottom: var(--s-3); }
.field label {
  display: block; margin-bottom: 0.45rem;
  font-size: var(--fs-micro); letter-spacing: var(--track-mid);
  text-transform: uppercase; font-weight: 700; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1.05rem;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field .errorlist { list-style: none; margin-top: 0.4rem; color: var(--danger); font-size: var(--fs-small); }
.field .helptext { display: block; margin-top: 0.35rem; font-size: var(--fs-small); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }

/* The honeypot must be reachable by bots and invisible to people */
.hp-field, .field-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.messages { display: grid; gap: 0.6rem; margin-bottom: var(--s-3); }
.message {
  padding: 0.9rem 1.15rem; border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  font-size: 0.95rem;
}
.message.success { border-left-color: var(--success); background: rgba(46,125,79,.09); }
.message.error   { border-left-color: var(--danger);  background: rgba(179,56,44,.09); }

/* Subscribe strip */
.subscribe-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1; min-width: 15rem; padding: 0.95rem 1.1rem;
  background: rgba(251, 250, 246,.06); border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill); color: var(--paper); font-family: var(--font);
}
.subscribe-form input::placeholder { color: var(--muted-light); }
.subscribe-form input:focus { outline: none; border-color: var(--gold); }

/* ── 20. Contact page ───────────────────────────────────── */

/* A split hero: the invitation on ink, a photograph beside it. */
.contact-hero {
  display: grid; grid-template-columns: 1.02fr 1fr;
  background: var(--ink); color: var(--paper);
  min-height: min(62vh, 600px);
}
.contact-hero-copy { display: grid; align-items: center; padding: var(--s-6) 0; }
.contact-hero-inner {
  width: min(600px, 88%);
  margin-left: auto; margin-right: clamp(1.5rem, 4vw, 4rem);
}
.contact-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--s-2); }
.contact-hero .lead { color: rgba(251, 250, 246, 0.82); }

.contact-hero-quick {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
}
.contact-hero-quick a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--gold-bright); font-weight: 700; font-size: 0.98rem;
}
.contact-hero-quick a:hover { color: var(--paper); }

.contact-hero-art { position: relative; overflow: hidden; min-height: 40vh; }
.contact-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0.06) 45%),
              linear-gradient(to top, rgba(18, 18, 18, 0.45), transparent 40%);
}
/* A gold seal straddling the seam between the two halves. */
.contact-hero-seal {
  position: absolute; left: 0; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 50%;
  /* A shade lighter than the panel, so the medallion reads on both sides
     of the seam it straddles. */
  background: var(--ink-2);
  border: 1.5px solid var(--gold); color: var(--gold-bright);
  box-shadow: 0 0 0 7px var(--ink), 0 14px 34px rgba(0, 0, 0, 0.5);
}
.contact-hero-seal svg { width: 38px; height: 38px; }

/* Three ways in */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.contact-card {
  padding: var(--s-3);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.contact-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-2);
  border-color: var(--gold-line);
}
.contact-card-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep);
  margin-bottom: var(--s-2);
  transition: all var(--t-med) var(--ease);
}
.contact-card:hover .contact-card-icon { background: var(--gold); color: #fff; }
.contact-card h2 { font-size: 1.24rem; margin-bottom: 0.45rem; }
.contact-card p { font-size: 0.95rem; margin-bottom: 0.9rem; }

/* Form beside a supporting column */
.contact-main {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start;
}
.contact-form-card {
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-1);
}
.form-note {
  margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted);
}

.contact-aside { display: grid; gap: var(--s-3); }
.contact-aside-figure { aspect-ratio: 4 / 3; position: relative; }
.contact-aside-figure img { width: 100%; height: 100%; object-fit: cover; }

.contact-aside-panel {
  padding: var(--s-3);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-aside-panel--dark {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.contact-aside-panel--dark .kicker { color: var(--gold-bright); }
.contact-aside-panel--dark .muted { color: var(--muted-light); }

.contact-topics { display: grid; gap: 1px; background: var(--line); margin-top: 0.5rem; }
.contact-topics li { background: var(--paper-raised); }
.contact-topics a {
  display: grid; grid-template-columns: 20px 1fr; gap: 0.8rem;
  align-items: start; padding: 0.8rem 0.2rem;
  color: var(--ink);
}
.contact-topics svg { color: var(--gold); margin-top: 0.2rem; }
.contact-topics strong { display: block; font-size: 0.98rem; }
.contact-topics em {
  display: block; font-style: normal;
  font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem;
}
.contact-topics a:hover strong { color: var(--gold-deep); }

/* Full-bleed map with a card sitting over it */
.map-section { position: relative; padding-bottom: var(--s-5); }
.map-band { height: 460px; background: var(--ink); position: relative; overflow: hidden; }
.map-band iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

/* The panel shown until the reader asks for the live map. */
.map-facade {
  width: 100%; height: 100%; position: relative;
  display: grid; place-items: center; gap: 0;
  background: var(--ink); border: 0; cursor: pointer; color: var(--paper);
  font-family: var(--font); text-align: center;
}
.map-facade-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(240, 168, 24, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 168, 24, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(240, 168, 24, 0.1), transparent 62%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  transition: opacity var(--t-med) var(--ease);
}
.map-facade:hover .map-facade-grid { opacity: 0.8; }
.map-facade-pin {
  position: relative; z-index: 1;
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--gold-line);
  color: var(--gold-bright); margin-bottom: 1rem;
  transition: all var(--t-med) var(--ease);
}
.map-facade-pin::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  animation: pulse-ring 3s var(--ease-soft) infinite;
}
.map-facade:hover .map-facade-pin { background: var(--gold); border-color: var(--gold); color: #fff; }
.map-facade-label { position: relative; z-index: 1; display: grid; gap: 0.25rem; }
.map-facade-label strong { font-size: 1.16rem; }
.map-facade-label em {
  font-style: normal; font-size: 0.92rem; color: var(--muted-light);
}
.map-facade-cta {
  margin-top: 0.9rem;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--gold-bright);
}
.map-section .container-w { position: relative; }
.map-card {
  position: relative; margin-top: -140px; z-index: 2;
  width: min(420px, 100%);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-3); box-shadow: var(--shadow-3);
}
.map-card h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }

.social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.social-row a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft);
  transition: all var(--t-fast) var(--ease);
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }
.section--dark .social-row a,
.contact-aside-panel--dark .social-row a { border-color: var(--line-dark); color: var(--paper); }

@media (max-width: 980px) {
  .contact-hero { grid-template-columns: 1fr; min-height: auto; }
  .contact-hero-inner { width: min(720px, 90%); margin-inline: auto; }
  .contact-hero-copy { padding: var(--s-5) 0; }
  .contact-hero-art { min-height: 34vh; order: -1; }
  .contact-hero-art::after {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.25), rgba(18, 18, 18, 0.85));
  }
  .contact-hero-seal { left: 50%; top: auto; bottom: 0; transform: translate(-50%, 50%); }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-main { grid-template-columns: 1fr; }
  .map-band { height: 340px; }
  .map-card { margin-top: -90px; width: 100%; }
}

/* ── 21. Footer ──────────────────────────────────────────────────────────── */

/* The seam: a ruled band with the ministry's mark at its centre, so the footer
   is always visibly a different place from the page above it, whether that
   page ended on ivory or on ink. */
.footer-seam {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-4) max(3vw, 1.5rem);
  background: var(--ink-3);
  border-top: 1px solid rgba(240, 168, 24, 0.22);
}
.footer-seam-rule {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--brand-bar); opacity: 0.8;
}
.footer-seam-mark {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--gold); opacity: 0.85;
}
.footer-seam-mark svg { width: 100%; height: 100%; }

.site-footer { background: var(--ink-3); color: var(--paper); padding-top: var(--s-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-4); padding-bottom: var(--s-5); }
.footer-logo {
  display: inline-block; position: relative; overflow: hidden;
  margin-bottom: var(--s-3); padding: 0.85rem 1.1rem 1.15rem;
  background: #fff; border-radius: var(--radius);
}
.footer-logo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--brand-bar);
}
.footer-logo img { display: block; height: 92px; width: auto; }
.footer-scripture {
  font-family: var(--font-scripture); font-style: italic;
  color: rgba(251, 250, 246,.72); font-size: 1.02rem; line-height: 1.55;
  max-width: 42ch;
}
.footer h4 {
  font-size: var(--fs-micro); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: var(--s-2);
}
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { color: rgba(251, 250, 246,.78); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(240, 168, 24, 0.16);
  background: var(--ink);
  padding-block: var(--s-3);
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-small); color: var(--muted-light);
}
.footer-bottom a { color: var(--muted-light); }
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-credit { color: var(--muted-light); }
.footer-credit a { color: var(--gold-bright); font-weight: 700; }
.footer-credit a:hover { color: var(--paper); }

/* ── 22. Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: var(--s-5); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center;
  padding-inline: 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.92rem; color: var(--ink-soft);
  transition: all var(--t-fast) var(--ease);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-deep); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── 23. Errors ──────────────────────────────────────────────────────────── */
.error-page {
  min-height: 70vh; display: grid; place-items: center; text-align: center;
}
.error-code {
  font-family: var(--font-scripture); font-style: italic;
  font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--gold);
  opacity: .35;
}

/* ── 24. Decorative background notation ──────────────────────────────────── */
.deco-cross {
  position: absolute; pointer-events: none; z-index: 0;
  color: var(--gold); opacity: 0.05;
}
.section > .container, .section > .container-w, .section > .container-n { position: relative; z-index: 1; }

/* ── 24b. About page furniture ─────────────────────────────── */
.page-hero--tall { min-height: clamp(520px, 80vh, 940px); }

/* An introduction gives its heading the full measure and keeps only the
   supporting sentence narrow, so a title never reads as a squeezed column
   with empty margins either side of it. */
.section-intro {
  max-width: min(100%, 1040px);
  margin-inline: auto; margin-bottom: var(--s-5);
}
.section-intro .section-title { max-width: 26ch; margin-inline: auto; }
.section-intro--wide .section-title { max-width: 32ch; }
.section-intro > p { max-width: 64ch; margin-inline: auto; }
.section-intro:not(.center) .section-title,
.section-intro:not(.center) > p { margin-inline: 0; }

/* The same idea for a heading that leads a left-aligned block. */
.section-title--measure { max-width: 26ch; }

/* A heading with a button or a sentence beside it: the heading takes the
   room it needs and its companion sits at the end of the row. */
.split-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-3) var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.split-head > :first-child { flex: 1 1 30rem; min-width: 0; }
.split-head > :last-child { flex: 0 1 auto; }
.split-head .btn { white-space: nowrap; }

/* An opening statement set large, with the supporting paragraphs beside it. */
.prose-lead {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.prose-lead-first {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.34; font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink);
  padding-left: var(--s-3);
  border-left: 2px solid var(--gold);
}
.prose-lead-rest > * + * { margin-top: 1.1em; }
.prose-lead-rest p { color: var(--muted); }

/* A tall photograph with a smaller one overlapping its lower corner. */
.figure-stack { position: relative; padding-bottom: 3.5rem; padding-right: 2.5rem; }
.figure-stack-inset {
  position: absolute; right: 0; bottom: 0;
  width: 46%; max-width: 230px;
  border: 6px solid var(--paper-2);
  box-shadow: var(--shadow-2);
}
.section--paper2 .figure-stack-inset { border-color: var(--paper-2); }

/* Caption laid over the foot of an image. */
.figure-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.86), transparent);
  color: var(--paper); font-size: var(--fs-micro);
  letter-spacing: var(--track-mid); text-transform: uppercase;
}

/* The four movements */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.journey-step {
  position: relative; padding: var(--s-3);
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.journey-step:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-2);
  border-color: var(--gold-line);
}
.journey-num {
  position: absolute; top: var(--s-3); right: var(--s-3);
  font-family: var(--font-scripture); font-style: italic;
  font-size: 2.4rem; line-height: 1; color: var(--gold); opacity: 0.22;
}
.journey-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: var(--s-2); }
.journey-step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.journey-step p { font-size: 0.93rem; color: var(--muted); }

/* The rhythm, as a list rather than a strip */
.rhythm-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.rhythm-row {
  display: grid; grid-template-columns: 46px 1fr; gap: var(--s-2);
  align-items: start; padding: var(--s-3);
  background: var(--paper-raised);
  transition: background var(--t-med) var(--ease);
}
.rhythm-row:hover { background: #fff; }
.rhythm-row .icon { width: 30px; height: 30px; color: var(--gold); margin-top: 0.15rem; }
.rhythm-row h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.rhythm-row p { font-size: 0.93rem; color: var(--muted); }

/* Regions of Uganda */
.regions {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2);
  max-width: 900px; margin-inline: auto;
}
.regions li {
  text-align: center; padding: 1.1rem 0.6rem;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  transition: all var(--t-med) var(--ease);
}
.regions li:hover { border-color: var(--gold); background: rgba(240, 168, 24, 0.07); }
.regions span {
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--gold-bright);
}

@media (max-width: 980px) {
  .prose-lead { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .figure-stack { padding-right: 0; padding-bottom: 2.5rem; }
  .figure-stack-inset { width: 40%; }
}
@media (max-width: 620px) {
  .journey { grid-template-columns: 1fr; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .figure-stack-inset { display: none; }
  .figure-stack { padding-bottom: 0; }
}

/* ── 25. Motion preferences ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-slide.is-active img { animation: none; transform: scale(1.02); }
  .marquee-track { animation: none; }
  .rise-word > span { transform: none; }
}

/* ── 25b. Home hero: photographs with small buttons ─────────────────────── */
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  /* sits at the fold on arrival, not below it */
  padding-block: 1.25rem calc(var(--header-h) + 40px + 1.5rem);
}
.hero-bottom-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-2) var(--s-3); flex-wrap: wrap;
}
.hero-links-stack { position: relative; flex: 1 1 26rem; min-height: 2.7rem; }
.hero-links {
  position: absolute; left: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease-out), visibility 0s 450ms;
}
.hero-links.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 700ms var(--ease) 450ms, transform 700ms var(--ease-out) 450ms, visibility 0s;
}
.hero-chip {
  --chip: var(--red);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.hero-chip::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--chip); flex: none;
}
.hero-chip svg { flex: none; transition: transform var(--t-med) var(--ease-out); }
.hero-chip:hover { transform: translateY(-2px); background: #fff; color: var(--ink); }
.hero-chip:hover svg { transform: translateX(3px); }
.hero-chip--primary { background: var(--gold); }
.hero-chip--primary::before { background: var(--ink); }
.hero-chip--primary:hover { background: var(--gold-bright); }
.hero-links:nth-child(4n+2) .hero-chip { --chip: var(--cyan); }
.hero-links:nth-child(4n+3) .hero-chip { --chip: var(--green); }
.hero-links:nth-child(4n+4) .hero-chip { --chip: var(--red); }

.hero-bottom .hero-dots { position: static; flex: none; padding-bottom: 1rem; }
.hero-dot:nth-child(4n+1)::after { background: var(--red); }
.hero-dot:nth-child(4n+2)::after { background: var(--cyan); }
.hero-dot:nth-child(4n+3)::after { background: var(--gold); }
.hero-dot:nth-child(4n+4)::after { background: var(--green-bright); }

@media (max-width: 700px) {
  .hero-bottom { padding-block: 1rem 1.1rem; }
  .hero-bottom-inner { flex-direction: column-reverse; align-items: flex-start; }
  .hero-bottom .hero-dots { padding-bottom: 0; }
  .hero-links-stack { flex-basis: auto; width: 100%; }
  .hero-chip { font-size: 0.8rem; }
}

/* ── 25c. The logo's colours at play ────────────────────────────────────── */
.stat:nth-child(4n+1) .stat-value { color: var(--gold-bright); }
.stat:nth-child(4n+2) .stat-value { color: var(--cyan); }
.stat:nth-child(4n+3) .stat-value { color: var(--red-bright); }
.stat:nth-child(4n+4) .stat-value { color: var(--green-bright); }

.eq span:nth-child(5n+1) { background: var(--red); }
.eq span:nth-child(5n+2) { background: var(--cyan); }
.eq span:nth-child(5n+3) { background: var(--gold); }
.eq span:nth-child(5n+4) { background: var(--green-bright); }

.journey-step { --step: var(--red); --step-ink: var(--red-deep); border-top: 3px solid var(--step); }
.journey-step:nth-child(4n+2) { --step: var(--cyan); --step-ink: var(--cyan-deep); }
.journey-step:nth-child(4n+3) { --step: var(--gold); --step-ink: var(--gold-deep); }
.journey-step:nth-child(4n+4) { --step: var(--green); --step-ink: var(--green); }
.journey-step .journey-num { color: var(--step); opacity: 0.4; }
.journey-step .journey-icon { color: var(--step-ink); }
.journey-step:hover { border-color: var(--line); border-top-color: var(--step); }

.rhythm-row:nth-child(4n+1) .icon { color: var(--red); }
.rhythm-row:nth-child(4n+2) .icon { color: var(--cyan-deep); }
.rhythm-row:nth-child(4n+3) .icon { color: var(--gold-deep); }
.rhythm-row:nth-child(4n+4) .icon { color: var(--green); }

.involve-row:nth-child(4n+1) .involve-num, .involve-row:nth-child(4n+1) .involve-icon { color: var(--red-deep); }
.involve-row:nth-child(4n+2) .involve-num, .involve-row:nth-child(4n+2) .involve-icon { color: var(--cyan-deep); }
.involve-row:nth-child(4n+3) .involve-num, .involve-row:nth-child(4n+3) .involve-icon { color: var(--gold-deep); }
.involve-row:nth-child(4n+4) .involve-num, .involve-row:nth-child(4n+4) .involve-icon { color: var(--green); }

.departments li:nth-child(4n+1) { border-top-color: var(--red); }
.departments li:nth-child(4n+2) { border-top-color: var(--cyan); }
.departments li:nth-child(4n+3) { border-top-color: var(--gold); }
.departments li:nth-child(4n+4) { border-top-color: var(--green); }

.footer-top > div:nth-child(2) h4 { color: var(--cyan); }
.footer-top > div:nth-child(3) h4 { color: var(--red-bright); }
.footer-top > div:nth-child(4) h4 { color: var(--green-bright); }

/* ── 25d. Resources: covers, and Read, Download, Share ──────────────────── */
.resource-card-body { min-width: 0; flex: 1; }
.resource-thumb {
  width: 76px; height: 106px; flex: none; object-fit: cover;
  border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-2);
  background: var(--paper-2);
}
.resource-card .resource-author {
  margin-bottom: 0.35rem; font-size: 0.86rem; font-weight: 700; color: var(--cyan-deep);
}
.resource-grid > :nth-child(4n+1) .resource-icon { box-shadow: inset 0 -4px 0 var(--red), var(--shadow-1); }
.resource-grid > :nth-child(4n+2) .resource-icon { box-shadow: inset 0 -4px 0 var(--cyan), var(--shadow-1); }
.resource-grid > :nth-child(4n+3) .resource-icon { box-shadow: inset 0 -4px 0 var(--gold), var(--shadow-1); }
.resource-grid > :nth-child(4n+4) .resource-icon { box-shadow: inset 0 -4px 0 var(--green), var(--shadow-1); }

/* Above the card's stretched link (z-index 3), so each action presses alone. */
.resource-actions {
  position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.95rem;
}
/* An open share menu must sit over the next card, not under it. The class is
   set by the share script; :has() covers the moment before it runs. */
.resource-card:has(details[open]),
.has-open-share { position: relative; z-index: 30; }
.resource-cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.45rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--paper-raised);
  font-family: var(--font); font-size: 0.76rem; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip-btn:hover { color: var(--ink); transform: translateY(-1px); }
.chip-btn svg { flex: none; }
.chip-btn--read svg { color: var(--red); }
.chip-btn--download svg { color: var(--cyan-deep); }
.chip-btn--share svg { color: var(--green); }
.chip-btn--read:hover { border-color: var(--red); background: var(--red-soft); }
.chip-btn--download:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.chip-btn--share:hover { border-color: var(--green); background: var(--green-soft); }

.share { position: relative; display: inline-block; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share-menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  min-width: 200px; padding: 0.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  display: grid; gap: 1px;
}
.share-menu { max-width: calc(100vw - 2rem); }
.share-menu--end { left: auto; right: 0; }
.share-menu a, .share-menu button {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  padding: 0.6rem 0.75rem; border: 0; border-radius: var(--radius-sm);
  background: none; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--ink-soft);
}
.share-menu a::before, .share-menu button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--dot, var(--gold));
}
.share-menu li:nth-child(1) { --dot: var(--green); }
.share-menu li:nth-child(2) { --dot: var(--cyan); }
.share-menu li:nth-child(3) { --dot: var(--ink); }
.share-menu li:nth-child(4) { --dot: var(--red); }
.share-menu li:nth-child(5) { --dot: var(--gold); }
.share-menu a:hover, .share-menu button:hover { background: var(--gold-soft); color: var(--ink); }

/* ── 25e. Reading a PDF inside the site ─────────────────────────────────── */
.reader-bar { position: relative; background: var(--ink); color: var(--paper); }
.reader-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--brand-bar);
}
.reader-bar-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--s-2) var(--s-3); padding-block: 0.9rem 1.05rem;
}
.reader-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--gold-bright);
}
.reader-back .arrow { transform: rotate(180deg); }
.reader-back:hover { color: var(--paper); }
.reader-title { min-width: 0; text-align: center; }
.reader-title h1 {
  margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--paper);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-title p { font-size: 0.82rem; color: var(--muted-light); }
.reader-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.reader-actions .share-menu { left: auto; right: 0; }
.reader-frame-wrap { background: #2b2b2b; }
.reader-frame {
  display: block; width: 100%; border: 0;
  height: calc(100svh - var(--header-h) - 76px); min-height: 560px;
}
.reader-mobile { display: none; padding-block: var(--s-5); }
.reader-mobile-cover {
  width: min(220px, 60%); margin: 0 auto var(--s-3);
  border-radius: 4px; box-shadow: var(--shadow-3);
}
.reader-mobile p + p { margin-top: var(--s-2); }
@media (max-width: 760px) {
  .reader-frame-wrap { display: none; }
  .reader-mobile { display: block; }
  .reader-bar-inner { grid-template-columns: 1fr; }
  .reader-title { text-align: left; }
  .reader-title h1 { white-space: normal; }
  .reader-actions { justify-content: flex-start; }
}

/* ── 25f. Portrait photographs and posters in ministry sections ─────────── */
.figure.figure--portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 460px; justify-self: center; }
.figure.figure--portrait img { object-position: center 30%; }
.figure.figure--poster {
  width: 100%; max-width: 500px; justify-self: center;
  padding: 0.7rem; background: #fff; box-shadow: var(--shadow-2);
}
.figure.figure--poster img { display: block; height: auto; object-fit: contain; }
.poster-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.poster-open:focus-visible { outline-offset: 4px; }

/* The full name needs room: it takes two lines before it would crowd the menu. */
@media (max-width: 1260px) {
  .brand-name { max-width: 12.5em; font-size: 1rem; }
}
@media (max-width: 460px) {
  .brand-logo { height: 46px; }
  .brand-name { max-width: 11em; }
}

/* ── 26. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .rhythm { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  :root { --s-7: 5.5rem; --s-6: 4.25rem; }
  .nav-wrap { display: none; }
  .nav-toggle { display: grid; }
  .topbar-verse { display: none; }
  .topbar .container-w { justify-content: center; gap: 0.9rem; }
  .topbar-facts { gap: 1.1rem; justify-content: center; }
  .split, .split--wide-left, .split--wide-right,
  .grid-2, .grid-3, .grid-4,
  .ministry-grid, .post-grid, .resource-grid, .video-grid,
  .contact-grid, .post-feature {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(1)::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .player-top { grid-template-columns: 1fr; }
  .player-art { aspect-ratio: 16/9; }
  .post-feature .thumb { min-height: 16rem; }
  .hero-scripture { display: none; }
  .split--reverse > .figure { order: -1; }
}

@media (max-width: 700px) {
  :root { --s-7: 4.5rem; --s-6: 3.5rem; --s-5: 3rem; }
  .hero { min-height: clamp(460px, 82svh, 760px); }
  .hero-inner { padding-block: var(--s-5) var(--s-6); }
  .topbar-facts li:first-child { display: none; }
  /* One cue is enough on a phone: the dots stay, the scroll hint goes. */
  .hero-scroll { display: none; }
  .hero-dots { bottom: var(--s-3); }
  .hero-title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .rhythm { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .team-grid--leaders { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-3); }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
  .marquee-item { font-size: 1rem; }
  .playlist button { grid-template-columns: 2rem 1fr auto; }
  .playlist .dur { display: none; }
}

@media (max-width: 460px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 0.86rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 1; }
}

/* ── 27. Print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero-dots, .hero-scroll, .mobile-nav,
  .scroll-progress, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── 28. Utilities added for the header search & accessibility ───────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.search-panel {
  position: absolute; inset: 100% 0 auto 0; z-index: 5;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding-block: var(--s-3);
  animation: panel-in var(--t-med) var(--ease-out) both;
}
.search-panel form { display: flex; gap: 0.6rem; align-items: center; }
.search-panel input {
  flex: 1; padding: 0.9rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-pill); color: var(--ink); font-family: var(--font); font-size: 1rem;
}
.search-panel input::placeholder { color: var(--muted); }
.search-panel input:focus { outline: none; border-color: var(--gold); }

@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* The search results page lists links in a plain stack */
.container-n .stack li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.container-n .stack li a { font-weight: 700; }

/* Native audio player on the single-song page, tinted to the palette */
audio { width: 100%; }
audio::-webkit-media-controls-panel { background: var(--paper-2); }

@media (max-width: 980px) {
  .search-panel { position: absolute; }
}

/* ── 29. Hero hierarchy: the organisation names itself, the calling leads ── */
.hero-org {
  font-size: clamp(0.72rem, 1.15vw, 0.92rem);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--s-2);
  position: relative; padding-left: 58px;
  opacity: 0; animation: fade-up 800ms var(--ease-out) 120ms forwards;
}
.hero-org::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 46px; height: 1px; background: currentColor;
  transform-origin: left; animation: rule-in 900ms var(--ease-out) 260ms both;
}

.hero-kicker--foot {
  margin-top: var(--s-3); margin-bottom: var(--s-3);
  color: rgba(251, 250, 246, 0.55);
  opacity: 0; animation: fade-up 800ms var(--ease-out) 700ms forwards;
}
.hero-kicker--foot::before { background: var(--gold-line); }

.hero .hero-lead, .hero .hero-actions {
  opacity: 0; animation: fade-up 850ms var(--ease-out) forwards;
}
.hero .hero-lead    { animation-delay: 480ms; }
.hero .hero-actions { animation-delay: 620ms; }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-org, .hero-kicker--foot, .hero .hero-lead, .hero .hero-actions {
    opacity: 1; animation: none;
  }
}


/* ── 30. Edit bar: shortcuts to the dashboard, for signed in staff only ──── */
.edit-bar {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 120;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  max-width: calc(100vw - 2rem); padding: 0.45rem 0.5rem 0.55rem 0.95rem;
  border-radius: 999px; background: var(--navy); color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); font-size: 0.82rem;
}
.edit-bar::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--brand-bar);
}
.edit-bar-title { margin-right: 0.3rem; font-weight: 700; color: var(--gold-bright); }
.edit-bar a {
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700;
}
.edit-bar a:hover { background: var(--gold); color: var(--ink); }
@media print { .edit-bar { display: none; } }

/* ── 24. The nations card, and covers lit with the ministry's blue ───────── */
.nations-card {
  display: flex; gap: var(--s-2); align-items: flex-start;
  max-width: 62ch; margin: var(--s-4) auto 0; padding: 1.5rem 1.7rem;
  border: 1px solid rgba(255, 255, 255,.16); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 168, 228,.22), transparent 62%),
    rgba(255, 255, 255,.05);
}
.nations-card-icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; color: var(--cyan);
  background: rgba(0, 168, 228,.14); border: 1px solid rgba(0, 168, 228,.34);
}
.nations-card-body h3 { margin: 0.15rem 0 0.5rem; font-size: var(--fs-h3); }
.nations-card-body .muted { margin: 0; }
.nations-card-body .kicker { margin: 0; color: var(--gold-bright); }
@media (max-width: 640px) {
  .nations-card { flex-direction: column; gap: 1rem; padding: 1.25rem; }
}

/* Photographs inside the page carry the same light as the covers. */
.figure--lit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 80% 8%, rgba(0, 168, 228,.26) 0%, rgba(0, 168, 228,0) 60%),
    linear-gradient(to top, rgba(8, 28, 56,.62) 0%, rgba(13, 44, 84,.12) 52%, rgba(13, 44, 84,.3) 100%);
}

/* ── 25. The buttons that follow the reader ──────────────────────────────── */
.float-whatsapp { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 110; }
.float-btn {
  display: grid; place-items: center; width: 58px; height: 58px;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              opacity var(--t-med) var(--ease);
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32); color: #fff; }
.float-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* WhatsApp keeps its own green, so it is recognised at a glance. */
.float-btn--whatsapp { background: #25d366; }
.float-btn--whatsapp:hover { background: #1ebe5b; }
/* A slow ring, so the button is noticed without nagging. */
.float-whatsapp::before {
  content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; opacity: 0.55; z-index: -1;
  animation: float-ring 2.8s var(--ease-out) infinite;
}
@keyframes float-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* The name of the button, for a pointer that lingers. */
.float-label {
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translate(-6px, -50%); white-space: nowrap;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out);
}
.float-whatsapp:hover .float-label,
.float-whatsapp:focus-within .float-label { opacity: 1; transform: translate(0, -50%); }

/* Back to the top, once there is something to go back to. */
.float-btn--top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 110;
  width: 52px; height: 52px; background: var(--navy);
}
.float-btn--top:hover { background: var(--menu); }
.float-btn--top[hidden] { display: none; }
.float-btn--top.is-in { opacity: 1; }
.float-btn--top:not(.is-in) { opacity: 0; }

/* Signed in editors have the edit bar in the bottom left corner. */
.float-whatsapp.float-raised { bottom: 5.25rem; }
.float-btn--top.float-raised { bottom: 5.25rem; }

@media (max-width: 640px) {
  .float-whatsapp { left: 1rem; bottom: 1rem; }
  .float-btn { width: 52px; height: 52px; }
  .float-whatsapp::before { width: 52px; height: 52px; }
  .float-btn--top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; }
  .float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float-whatsapp::before { animation: none; }
  .float-btn { transition: none; }
}
@media print { .float-whatsapp, .float-btn--top { display: none !important; } }

/* ── 26. Phones and tablets ──────────────────────────────────────────────── */
/* Sliding in from the side starts a section past the edge of a narrow screen,
   which lets the whole page be dragged sideways. There it rises instead. */
@media (max-width: 900px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(28px); }
}
/* A safety net: nothing may widen the page beyond the screen. "clip" keeps the
   docked header working, where "hidden" would stop it sticking. */
html, body { overflow-x: clip; }

/* The strapline under the name stays readable on a phone. */
@media (max-width: 640px) {
  .brand-sub { letter-spacing: 0.16em; }
}

/* The hero's buttons sit clear of the round WhatsApp button in the corner. */
@media (max-width: 700px) {
  .hero-bottom { padding-bottom: calc(1rem + 52px + 1.25rem); }
}
/* An open menu covers the page, so the floating buttons step aside for it. */
.mobile-nav.is-open ~ .float-whatsapp,
.mobile-nav.is-open ~ .float-btn--top { opacity: 0; visibility: hidden; pointer-events: none; }
