@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --ink: #1c2b24;
  --deep: #101e18;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --gold: #b8924a;
  --gold-soft: #e6d3a4;
  --muted: #5a6a62;
  --line: rgba(28, 43, 36, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(184, 146, 74, 0.16), transparent 55%),
    var(--cream);
}
::selection { background: #ead9b0; color: #1a160f; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #9a6b32; outline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 40;
  left: 1rem;
  top: -4rem;
  padding: 1rem;
  background: white;
}
.skip:focus { top: 1rem; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 0.85rem max(4vw, 1.25rem);
  background: rgba(251, 248, 243, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184, 146, 74, 0.75);
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold-soft);
  font-size: 1.15rem;
}
nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.55rem); }
nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
nav a[aria-current]:not(.portal)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--gold);
}
.portal, .button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.portal { background: var(--deep); color: var(--paper); font-size: 0.84rem; }
.button { background: var(--gold); color: #241c10; border: 0; }
.button:disabled { opacity: 0.65; cursor: wait; }
.button:hover, .portal:hover { transform: translateY(-1px); }
.button:hover { background: #c9a45d; }
.portal:hover { background: #1b3128; }
.menu { display: none; }
.wrap { width: min(1120px, 88%); margin-inline: auto; }

.hero, .mast { position: relative; color: white; background: var(--deep); }
.slide, .mast, .photo { background-position: center; background-size: cover; }
.church { --photo: url(church.webp); --tint: #243b2f; }
.bible { --photo: url(bible.webp); --tint: #5a4231; }
.computer { --photo: url(computer.webp); --tint: #254344; }
.slide, .mast {
  background-color: var(--tint);
  background-image:
    linear-gradient(180deg, rgba(8, 16, 12, 0.15), rgba(8, 16, 12, 0.28) 80%, rgba(8, 16, 12, 0.55)),
    linear-gradient(100deg, rgba(8, 16, 12, 0.92) 0%, rgba(8, 16, 12, 0.62) 46%, rgba(8, 16, 12, 0.12) 100%),
    var(--photo);
}
.slide {
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding: 5.5rem max(7vw, 1.5rem);
}
.hero-copy { max-width: 680px; }
.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: #f3ecdf;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 1.35rem 0 1.8rem;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}
.hero .eyebrow, .mast .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold-soft);
}
.hero .eyebrow::before, .mast .eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
}
h1, .hero h2 { font-size: clamp(3.1rem, 6.6vw, 6.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
h3 { font-size: 2rem; }

.explore { padding: 5.25rem 0 6rem; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 2rem 3rem;
  align-items: end;
}
.lede {
  margin: 0;
  max-width: 28ch;
  justify-self: end;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: #3e5248;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2.4rem;
}
.card {
  display: block;
  background: var(--paper);
  border: 1px solid rgba(28, 43, 36, 0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(16, 30, 24, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(16, 30, 24, 0.12);
}
.photo {
  aspect-ratio: 1.45;
  background-color: var(--tint);
  background-image: var(--photo);
  transform: scale(1.001);
  transition: transform 0.6s ease;
}
.card:hover .photo { transform: scale(1.045); }
.card > div:last-child { padding: 1.35rem 1.35rem 1.5rem; }
.card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card h3 span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(184, 146, 74, 0.55);
  border-radius: 50%;
  font: 0.9rem "DM Sans", sans-serif;
  color: var(--gold);
}
.card p, .body p { line-height: 1.7; color: var(--muted); }
.card p { margin: 0.7rem 0 0; }
.card.compact {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.2rem 1.2rem;
  border-top: 3px solid var(--deep);
}
.card.compact h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); }
.card.compact p { flex: 1; }
.card-go {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #6d5424;
  font-size: 0.92rem;
  font-weight: 700;
}
.card-go span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(184, 146, 74, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.95rem;
}
.card.compact.emphasis {
  background: var(--deep);
  color: var(--paper);
  border-top-color: var(--gold);
}
.card.compact.emphasis h3,
.card.compact.emphasis .card-go { color: var(--paper); }
.card.compact.emphasis p { color: var(--gold-soft); }
.card.compact.emphasis .card-go span { color: var(--gold-soft); border-color: rgba(230, 211, 164, 0.7); }
.radio-link { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(160px, 220px) 1fr; }
.radio-art {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: var(--deep);
  color: var(--gold-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.radio-hero { background: var(--deep); color: #f6f1e7; }
.radio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(520px, 68vh, 700px);
  padding-block: 4.5rem;
}
.radio-hero h1 { font-size: clamp(4.6rem, 8vw, 8.4rem); color: #f7f3ea; }
.radio-lead { margin: 0.8rem 0 0; max-width: 22ch; color: rgba(243, 234, 220, 0.82); font-size: 1.2rem; }
.radio-player {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-top: 2rem;
}
.radio-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.35rem; max-width: 100%; }
.player-stop {
  min-height: 48px;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(230, 211, 164, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #f7f3ea;
  font-weight: 600;
}
.player-stop:disabled { opacity: 0.4; cursor: default; }
.volume { display: flex; align-items: center; gap: 0.75rem; color: var(--gold-soft); font-size: 0.95rem; font-weight: 600; }
.volume input { width: min(160px, 42vw); margin: 0; accent-color: var(--gold); }
.play-orb {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f3ea;
}
.play-glyph {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.play-glyph::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #241c10;
  margin-left: 5px;
}
.play-orb.is-pause .play-glyph::before {
  width: 18px;
  height: 20px;
  margin: 0;
  border: 0;
  background:
    linear-gradient(#241c10, #241c10) left center / 5px 100% no-repeat,
    linear-gradient(#241c10, #241c10) right center / 5px 100% no-repeat;
}
.radio-hero[data-state="playing"] .play-glyph {
  box-shadow: 0 0 0 10px rgba(184, 146, 74, 0.28), 0 12px 30px rgba(0, 0, 0, 0.22);
}
.play-label { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.03em; }
#player-status { min-height: 1.5rem; margin: 0.85rem 0 0; color: var(--gold-soft); font-size: 0.95rem; }
#player-retry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(230, 211, 164, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
}
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 0;
  min-width: 100%;
  height: 48px;
  margin-top: 1.1rem;
}
.waveform span {
  flex: 0 1 3px;
  width: 3px;
  min-width: 2px;
  height: 100%;
  border-radius: 999px;
  background: rgba(230, 211, 164, 0.9);
  transform: scaleY(var(--bar, 0.34));
  transform-origin: bottom;
}
.waveform span:nth-child(12n+1) { --bar: 0.22; }
.waveform span:nth-child(12n+2) { --bar: 0.4; }
.waveform span:nth-child(12n+3) { --bar: 0.66; }
.waveform span:nth-child(12n+4) { --bar: 0.92; }
.waveform span:nth-child(12n+5) { --bar: 0.7; }
.waveform span:nth-child(12n+6) { --bar: 0.46; }
.waveform span:nth-child(12n+7) { --bar: 0.26; }
.waveform span:nth-child(12n+8) { --bar: 0.54; }
.waveform span:nth-child(12n+9) { --bar: 0.84; }
.waveform span:nth-child(12n+10) { --bar: 1; }
.waveform span:nth-child(12n+11) { --bar: 0.58; }
.waveform span:nth-child(12n+12) { --bar: 0.32; }
.radio-hero[data-state="playing"] .waveform span {
  animation: wave 0.85s ease-in-out infinite alternate;
}
.radio-hero[data-state="playing"] .waveform span:nth-child(6n+2) { animation-delay: 0.1s; }
.radio-hero[data-state="playing"] .waveform span:nth-child(6n+3) { animation-delay: 0.22s; }
.radio-hero[data-state="playing"] .waveform span:nth-child(6n+4) { animation-delay: 0.34s; }
.radio-hero[data-state="playing"] .waveform span:nth-child(6n+5) { animation-delay: 0.16s; }
.radio-hero[data-state="playing"] .waveform span:nth-child(6n+6) { animation-delay: 0.28s; }
.radio-stage { position: relative; height: min(440px, 48vw); display: grid; place-items: center; }
.ring { position: absolute; border: 1px solid rgba(230, 211, 164, 0.28); border-radius: 50%; }
.radio-hero[data-state="playing"] .ring { animation: pulse 2.4s ease-in-out infinite; }
.radio-hero[data-state="playing"] .ring-b { animation-delay: 0.35s; }
.radio-hero[data-state="playing"] .ring-c { animation-delay: 0.7s; }
.ring-a { width: 86%; height: 86%; }
.ring-b { width: 62%; height: 62%; }
.ring-c { width: 40%; height: 40%; background: radial-gradient(circle, rgba(184, 146, 74, 0.16), transparent 68%); }
.mic { position: relative; z-index: 1; display: grid; justify-items: center; }
.mic-head { width: 54px; height: 78px; border: 3px solid var(--gold-soft); border-radius: 28px; background: linear-gradient(#1a2c24, #0c1814); box-shadow: inset 0 -16px 20px rgba(0, 0, 0, 0.35); }
.mic-stem { width: 3px; height: 54px; background: var(--gold-soft); }
.mic-base { width: 74px; height: 8px; border-radius: 999px; background: var(--gold); }
.radio-stage.has-player .ring, .radio-stage.has-player .mic { display: none; }
.radio-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #0c1814; }
.tv-hero { background: var(--deep); color: #f6f1e7; }
.tv-layout { padding-block: 3.2rem 2.8rem; }
.tv-hero h1 { margin: 0; color: #f7f3ea; font-size: clamp(3.4rem, 8vw, 6.5rem); }
.tv-status { margin: 0.85rem 0 0; color: var(--gold-soft); font-size: 1.2rem; font-weight: 700; }
.tv-stage { margin-top: 1.4rem; }
.tv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #0c1814; }
.tv-meta, .tv-setup { margin: 0.85rem 0 0; max-width: 62ch; color: rgba(243, 234, 220, 0.82); }
.tv-playlist { background: var(--paper); color: var(--ink); padding: 2.2rem 0 2.8rem; }
.tv-playlist h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.7rem); }
.tv-playlist .tv-frame { margin-top: 1.2rem; }
.radio-apps { background: var(--paper); padding: 2rem 0 2.4rem; }
.radio-apps h2 { font-size: clamp(2rem, 3vw, 2.7rem); text-align: center; }
.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.store-pending { margin: 0; color: var(--muted); font-size: 1rem; }
.platform { display: block; margin-bottom: 0.2rem; color: var(--ink); font-weight: 600; }
.store-badge { display: inline-flex; align-items: center; line-height: 0; }
.store-badge img { height: 44px; width: auto; }
.store-badge:has(img[src$="google-play-badge.png"]) {
  width: calc(44px * 564 / 168);
  height: 44px;
  overflow: hidden;
  justify-content: center;
}
.store-badge:has(img[src$="google-play-badge.png"]) img {
  height: calc(44px * 250 / 168);
  max-width: none;
}
@keyframes wave {
  from { transform: scaleY(0.18); }
  to { transform: scaleY(1); }
}
@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.4; }
  to { transform: scale(1.04); opacity: 1; }
}

#computer .school-banner { margin: 0; background: var(--deep); }
#computer .school-banner img { display: block; width: 100%; height: auto; }
#computer .school-banner h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#bible .bible-lead {
  margin: 0 0 0.8rem;
  max-width: 28ch;
  color: var(--deep);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-style: italic;
  line-height: 1.2;
}
#bible .formation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
#bible .formation li, #bible .programme, #bible .study-area {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  background: var(--paper);
}
#bible .formation strong, #bible .study-area h3, #bible .programme h3 { color: var(--deep); }
#bible .programme-grid, #bible .study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
#bible .programme p, #bible .study-area p, #bible .formation li, #bible .admissions p { max-width: none; }
#bible .programme ul { margin: 0.7rem 0 0; padding-left: 1.15rem; }
#bible .programme li { margin: 0.25rem 0; }
#bible .pathway {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#bible .admissions {
  margin-top: 1rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 16px;
  background: var(--deep);
  color: var(--paper);
}
#bible .admissions h2 { margin: 0; color: #f7f3ea; }
#bible .admissions p { color: var(--gold-soft); }
#bible .admissions .actions a:not(.button) { color: var(--gold-soft); }
#bible .bible-register { display: grid; gap: 0.85rem; margin-top: 1.1rem; }
#bible .bible-register label { display: grid; gap: 0.35rem; color: #f7f3ea; font-weight: 600; }
#bible .bible-register input, #bible .bible-register select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(230, 211, 164, 0.45);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem "DM Sans", sans-serif;
}
#bible #bible-register-result { margin: 0; font-weight: 700; }
.mast { min-height: 340px; display: flex; align-items: flex-end; padding: 0; }
.mast .wrap { padding: 4.5rem 0 3rem; }
.body { padding: 4.25rem 0 5.5rem; min-height: 55vh; }
.body h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.body h2:not(:first-child) { margin-top: 2.4rem; }
.body p { max-width: 62ch; font-size: 1.05rem; }
.frame {
  max-width: none;
  margin-top: 1rem;
  padding: 2.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
  letter-spacing: 0.03em;
}
.church-gallery { margin-top: 1rem; }
.gallery-feature, .gallery-grid button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  color: inherit;
}
.gallery-feature img, .gallery-grid img { display: block; width: 100%; }
.gallery-feature img { height: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.gallery-grid button { aspect-ratio: 4 / 3; }
.gallery-grid img {
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.gallery-caption {
  margin: 0;
  padding: 0.55rem 0.7rem 0.7rem;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}
.gallery-viewer {
  width: min(1080px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0.75rem 0.75rem 1rem;
  border: 1px solid rgba(230, 211, 164, 0.45);
  border-radius: 16px;
  background: var(--deep);
  color: var(--paper);
}
.gallery-viewer::backdrop { background: rgba(16, 30, 24, 0.9); }
.gallery-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.gallery-count { margin: 0; color: var(--gold-soft); font-size: 0.92rem; font-weight: 600; }
.gallery-close, .gallery-prev, .gallery-next {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #241c10;
  font: inherit;
  font-weight: 700;
}
.gallery-close { padding: 0 1rem; }
.gallery-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}
.gallery-stage figure { margin: 0; min-width: 0; }
.gallery-stage img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 12px;
  background: #0b1511;
}
.gallery-stage figcaption {
  margin: 0.7rem 0 0;
  color: var(--gold-soft);
  font-weight: 600;
}
.actions, .portal-grid {
  display: flex;
  gap: 1.15rem 1.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.actions a:not(.button) {
  font-weight: 600;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--gold);
}
.portal-grid { align-items: stretch; margin-bottom: 1.6rem; }
.portal-grid article {
  position: relative;
  flex: 1 1 240px;
  padding: 1.6rem 1.45rem 1.45rem;
  background: var(--paper);
  border: 1px solid rgba(28, 43, 36, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 30, 24, 0.05);
}
.portal-grid article::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--gold);
}
.portal-grid h2 { font-size: 2.15rem; }
.portal-grid p { margin-bottom: 0; }

.site-footer {
  background: #12352c;
  color: #f6f1e7;
  padding: 3.4rem 0 1.35rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 2rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 16rem;
  color: #f7f3ea;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
}
.footer-brand img {
  width: 46px;
  height: auto;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
}
.footer-identity p {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  color: rgba(246, 241, 231, 0.82);
  font-size: 0.98rem;
  line-height: 1.45;
}
.site-footer h2, .site-footer h3 {
  margin: 0 0 0.95rem;
  color: #c6a35a;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.site-footer h3 { margin-top: 1.35rem; font-size: 0.95rem; }
.site-footer nav { display: grid; align-content: start; gap: 0.35rem; }
.site-footer nav a, .footer-follow > p a {
  color: rgba(246, 241, 231, 0.9);
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
}
.site-footer nav a { padding: 0.18rem 0; }
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(230, 211, 164, 0.72);
  border-radius: 50%;
  color: #e6d3a4;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy {
  margin: 2.3rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.mast.council {
  background-color: var(--deep);
  background-image: linear-gradient(100deg, rgba(8, 16, 12, 0.35), rgba(184, 146, 74, 0.16));
}
.mast.council h1 { font-size: clamp(2.45rem, 5vw, 4.4rem); max-width: 16ch; line-height: 1.05; }
.motto {
  margin: 1rem 0 0;
  max-width: 22ch;
  color: var(--gold-soft);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}
.council-hero { background: var(--deep); color: white; padding: 2.6rem 0 2.2rem; }
.council-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.4rem 2rem;
  align-items: stretch;
}
.council-hero h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 14ch; line-height: 1.02; }
.council-lead-in .button { margin-top: 1.35rem; }
.glance {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(230, 211, 164, 0.45);
  border-radius: 18px;
  background: rgba(251, 248, 243, 0.06);
}
.glance h2 { color: var(--gold-soft); font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.glance dl { display: grid; gap: 0.95rem; margin: 1rem 0 0; }
.glance dt {
  color: var(--gold);
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.glance dd { margin: 0.3rem 0 0; color: #f3ecdf; line-height: 1.55; }
.council-home { padding: 1.8rem 0 2.6rem; }
.council-summary { max-width: 62ch; margin: 0; line-height: 1.7; color: var(--muted); }
.council-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.action-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--deep);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}
.action-card h2 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
.action-card p { margin: 0.7rem 0 0; line-height: 1.6; color: var(--muted); }
.council-actions .action-primary { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.council-actions .action-primary p { color: var(--gold-soft); }
.council-actions .action-primary:hover { background: #1b3128; border-color: var(--gold); }
.council-actions .action-primary:focus-visible { outline: 3px solid #9a6b32; outline-offset: 4px; }
.enquiries {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.enquiries h2 { font-size: 1.45rem; }
.enquiries a { font-weight: 700; text-underline-offset: 0.2em; }
.council-phone { margin-top: 1.4rem; font-weight: 600; }
.council-phone a { color: var(--gold-soft); text-underline-offset: 0.25em; }
.toc { display: grid; gap: 0.45rem; margin: 1.2rem 0 2rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.toc a { font-weight: 600; text-underline-offset: 0.25em; text-decoration-color: var(--gold); }
.constitution h2, .constitution h3, #attribution { scroll-margin-top: 5.5rem; }
.constitution h3 { font-size: 1.45rem; margin-top: 1.3rem; }
.constitution ul, .structure-list { margin: 0.7rem 0 0; padding-left: 1.2rem; }
.constitution li + li, .structure-list li + li { margin-top: 0.35rem; }
.structure-hero {
  background:
    linear-gradient(100deg, rgba(8, 16, 12, 0.2), rgba(184, 146, 74, 0.16)),
    var(--deep);
  color: var(--paper);
  padding: 2.2rem 0 1.5rem;
}
.structure-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold-soft);
}
.structure-hero .eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.structure-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.4vw, 3.8rem);
  line-height: 1.02;
}
.structure-intro {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: #f3ecdf;
  font-size: 1.05rem;
  line-height: 1.6;
}
.structure-hero .button { margin-top: 1.15rem; }
.structure-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(230, 211, 164, 0.35);
}
.structure-nav a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.28em;
}
.structure-nav a:hover { text-decoration: underline; }
.structure-page { padding-top: 2rem; }
.structure-page h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
#structure-assembly, #structure-leadership, #structure-committees, #structure-regional, #structure-hierarchy {
  scroll-margin-top: 5.5rem;
}
.assembly-panel, .office, .committee, .org-chart li, .review, .preview-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.assembly-panel {
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 3px solid var(--gold);
}
.assembly-panel h2 { margin-top: 0; }
.assembly-panel p, .assembly-panel .structure-list { max-width: 68ch; }
.office-featured, .office-grid { margin-top: 1rem; }
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.office {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 0.9rem;
  border-top: 3px solid var(--gold);
}
.office-featured {
  grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  gap: 1.15rem 1.4rem;
  padding: 1rem;
}
.office-portrait {
  display: block;
  width: 104px;
  height: 130px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  background: var(--deep);
}
.office-featured .office-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}
.office h3 { margin: 0; color: var(--deep); font-size: clamp(1.45rem, 1.8vw, 1.85rem); line-height: 1.1; }
.office-featured h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.office-name + h3 {
  margin-top: 0.2rem;
  color: #6d5424;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.office p, .office .structure-list { margin-top: 0.55rem; }
.office .office-name {
  margin: 0;
  max-width: none;
  color: var(--deep);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.1;
}
.office-featured .office-name { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.office-profile { display: inline-block; margin-top: 0.85rem; color: #6d5424; font-weight: 700; text-underline-offset: 0.22em; }
.profile-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.profile-card:hover { border-color: var(--gold); }
.profile-card-featured { grid-column: 1 / -1; grid-template-columns: minmax(168px, 220px) minmax(0, 1fr); }
.profile-card-name {
  display: block;
  color: var(--deep);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  line-height: 1.1;
}
.profile-card-featured .profile-card-name { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.profile-card-office { display: block; margin-top: 0.3rem; color: #6d5424; font-weight: 700; }
.profile-card .profile-portrait, .profile-card .profile-initials { width: 104px; height: 130px; aspect-ratio: auto; }
.profile-card-featured .profile-portrait, .profile-card-featured .profile-initials { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.leader-profile {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 1.2rem 1.6rem;
  align-items: start;
  margin-top: 1.4rem;
  padding: 1rem;
  scroll-margin-top: 5.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
}
.leader-profile h2 { margin: 0; color: var(--deep); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; }
.profile-office { margin: 0.35rem 0 0; color: #6d5424; font-weight: 700; }
.profile-portrait, .profile-initials {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  background: var(--deep);
}
.profile-initials {
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--gold-soft);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
}
.profile-bio h3 { margin: 1.2rem 0 0; color: var(--deep); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.profile-bio p, .profile-bio .structure-list { max-width: 68ch; }
.profile-bio p { margin: 0.7rem 0 0; line-height: 1.65; }
.profile-pending { font-weight: 700; color: var(--deep); }
.profile-back { margin-top: 1.25rem; font-weight: 700; }
.profile-back a { text-underline-offset: 0.22em; }
.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  align-items: start;
}
.committee { padding: 0; overflow: hidden; }
.committee summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.committee summary::-webkit-details-marker { display: none; }
.committee summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-0.15rem) rotate(45deg);
}
.committee[open] summary::after { transform: translateY(0.15rem) rotate(225deg); }
.committee h3 { margin: 0; color: var(--deep); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; }
.committee .committee-body { padding: 0 1rem 1rem; }
.committee .committee-body p { margin: 0; }
.org-chart {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0 0 0 1.6rem;
  position: relative;
}
.org-chart::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  background: var(--gold);
}
.org-chart li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem;
}
.org-chart li::before {
  content: "";
  position: absolute;
  left: -1.32rem;
  top: 1.25rem;
  width: 0.85rem;
  height: 2px;
  background: var(--gold);
}
.proposal { display: inline-block; margin: 0 0 0.7rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--gold-soft); color: #241c10; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.review { margin-top: 1.2rem; padding: 1.15rem 1.2rem 1.25rem; border-color: var(--gold); }
.review h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.preview-banner { margin: 0 0 1.4rem; padding: 1rem 1.15rem; border-left: 3px solid var(--gold); max-width: none; }
.membership-form { display: grid; gap: 1.2rem; max-width: 760px; }
.membership-form fieldset { margin: 0; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.membership-form legend, .membership-form h2 { font-family: "Instrument Serif", Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.membership-form label { display: grid; gap: 0.35rem; margin-top: 0.9rem; font-weight: 600; }
.membership-form label.choice { display: flex; width: auto; margin: 0; font-weight: 500; }
.membership-form input, .membership-form textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(28, 43, 36, 0.22);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: 400 1rem "DM Sans", sans-serif;
}
.membership-form textarea { min-height: 6.5rem; resize: vertical; }
.membership-form input[aria-invalid="true"], .membership-form textarea[aria-invalid="true"] { border-color: #8a3b2a; }
.field-error { margin: 0.35rem 0 0; color: #8a3b2a; font-size: 0.92rem; font-weight: 600; }
.field-hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.form-actions { margin: 0.4rem 0 0; }
#application-result { margin-top: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 0.8rem; }
.choice { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 500; }
.choice input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #6d5424; }
.declaration { line-height: 1.7; color: var(--muted); }
.declaration p { max-width: none; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .slide { animation: arrive 0.8s ease, drift 24s ease-in-out infinite alternate; }
  .mast { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drift {
  from { background-position: center 46%; }
  to { background-position: center 54%; }
}

@media (max-width: 1260px) {
  header { position: relative; flex-wrap: wrap; gap: 0.7rem; }
  .menu {
    display: block;
    background: transparent;
    border: 1px solid rgba(28, 43, 36, 0.22);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    color: var(--ink);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
  }
  nav {
    display: none;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0 0.8rem;
  }
  nav.open { display: flex; }
  nav a { padding: 0.7rem 0.15rem; }
  nav a[aria-current]:not(.portal)::after { bottom: 0.45rem; width: 1.5rem; right: auto; }
  .portal { align-self: flex-start; margin-top: 0.35rem; }
}
@media (max-width: 768px) {
  .council-hero { padding: 1.5rem 0 1.2rem; }
  .council-hero-grid, .council-actions { grid-template-columns: 1fr; }
  .council-home { padding: 1.35rem 0 2rem; }
  .enquiries { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .enquiries a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-layout { grid-template-columns: 1fr; min-height: 0; padding-block: 3.2rem 2.4rem; }
  .radio-stage { height: 280px; }
  .radio-hero h1, .tv-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
}
@media (max-width: 720px) {
  #bible .formation, #bible .programme-grid, #bible .study-grid { grid-template-columns: 1fr; }
  .office-grid, .committee-grid, .profile-index, .leader-profile { grid-template-columns: 1fr; }
  .profile-card-featured { grid-column: auto; }
  .office-featured { grid-template-columns: 1fr; }
  .office-featured .office-portrait, .leader-profile .profile-portrait, .leader-profile .profile-initials { width: min(100%, 220px); height: auto; }
  .section-head { grid-template-columns: 1fr; gap: 0.8rem; }
  .lede { justify-self: start; font-size: 1.3rem; }
  .radio-link { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-stage { grid-template-columns: 1fr 1fr; }
  .gallery-stage figure { grid-column: 1 / -1; grid-row: 1; }
  .gallery-prev { grid-column: 1; }
  .gallery-next { grid-column: 2; }
  .slide { padding-inline: 6vw; }
  .cards { grid-template-columns: 1fr; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .explore { padding-top: 3rem; }
  h1, .hero h2 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
}
