/* ============================================================
   Salem Church of God — Denver  ·  multi-page
   Palette: navy · brass · warm paper · ink
   Type: Marcellus (display) · Alegreya Sans (body) · Noto Sans Malayalam
   ============================================================ */

:root {
  --navy: #16294B;
  --navy-deep: #0C1A33;
  --navy-soft: #233B63;
  --brass: #C29A4B;
  --brass-soft: #DDBE85;
  --paper: #F7F5EF;
  --paper-tint: #ECEAE1;
  --ink: #20242E;
  --ink-soft: #4E5462;
  --white: #FFFFFF;
  --live: #E5533C;

  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', 'Helvetica Neue', sans-serif;
  --font-ml: 'Noto Sans Malayalam', sans-serif;

  --container: 1140px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1em;
}
.eyebrow [lang="ml"] {
  font-family: var(--font-ml);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass);
}
.eyebrow-dot { color: var(--brass); }
.on-dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .eyebrow-light { color: var(--brass-soft); }
.on-dark .eyebrow [lang="ml"], .hero .eyebrow [lang="ml"], .page-head .eyebrow [lang="ml"] { color: var(--brass-soft); }

.section-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44em;
  margin-bottom: 2.4rem;
}
.on-dark .section-lede { color: rgba(247,245,239,0.82); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--brass); color: var(--navy-deep); }
.btn-gold:hover { background: var(--brass-soft); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

.btn-ghost { color: var(--paper); border: 1px solid rgba(247,245,239,0.45); }
.btn-ghost:hover { border-color: var(--brass-soft); color: var(--brass-soft); }

.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-deep); }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  margin-left: 0.6em;
  vertical-align: 2px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(194,154,75,0.35);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.7em; text-decoration: none; padding: 8px 0; }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.nav-links { display: flex; align-items: center; gap: 1.35rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--paper); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links > li > a { display: inline-block; padding: 1.1rem 0; position: relative; }
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.7rem;
  height: 2px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after { right: 0; }
.nav-links a:hover { color: var(--brass-soft); }
.nav-links a[aria-current="page"] { color: var(--brass-soft); }

.nav-cta-li .nav-cta {
  background: var(--brass);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.5em 1.15em !important;
  border-radius: 3px;
}
.nav-cta-li .nav-cta::after { display: none; }
.nav-cta-li .nav-cta:hover { background: var(--brass-soft); color: var(--navy-deep); }

/* Ministries dropdown */
.has-sub > a .caret {
  display: inline-block;
  margin-left: 0.35em;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.subnav {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 240px;
  background: var(--navy);
  border: 1px solid rgba(194,154,75,0.35);
  border-top: 2px solid var(--brass);
  border-radius: 0 0 4px 4px;
  list-style: none;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav,
.has-sub.open .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.subnav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}
.subnav a:hover { background: var(--navy-soft); }
.subnav .ml {
  font-family: var(--font-ml);
  font-size: 0.8rem;
  color: var(--brass-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247,245,239,0.4);
  border-radius: 3px;
  padding: 0.55em 0.7em;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--paper);
  box-shadow: 0 -6px 0 var(--paper), 0 6px 0 var(--paper);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.js .hero-bg { animation: kenburns 26s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(12,26,51,0.94) 0%, rgba(12,26,51,0.78) 42%, rgba(12,26,51,0.35) 100%);
}
.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 12em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brass-soft); }
.hero-lede {
  font-size: 1.22rem;
  max-width: 32em;
  margin-top: 1.3rem;
  color: rgba(247,245,239,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Countdown card */
.next-card {
  background: rgba(12,26,51,0.62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(194,154,75,0.5);
  border-radius: 6px;
  padding: 1.6rem 1.7rem;
  max-width: 380px;
  justify-self: end;
}
.next-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.next-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0.35rem 0 0.15rem;
}
.next-when { color: rgba(247,245,239,0.85); font-size: 0.98rem; }
.countdown {
  display: flex;
  gap: 1rem;
  margin: 1.1rem 0 1.2rem;
}
.count-unit { text-align: center; min-width: 58px; }
.count-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  background: rgba(247,245,239,0.08);
  border: 1px solid rgba(247,245,239,0.18);
  border-radius: 4px;
  padding: 0.45em 0.2em;
  font-variant-numeric: tabular-nums;
}
.count-word {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.65);
  margin-top: 0.4em;
}
.next-card .btn { width: 100%; text-align: center; }
.next-live .next-title { color: var(--brass-soft); }

/* ---------- Interior page header ---------- */

.page-head {
  position: relative;
  background: var(--navy-deep);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.page-head-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
}
.page-head-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(12,26,51,0.95) 0%, rgba(12,26,51,0.72) 55%, rgba(12,26,51,0.45) 100%);
}
.page-head-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 5.6rem) 24px;
}
.page-head h1 { max-width: 14em; text-wrap: balance; }
.page-head .lede {
  font-size: 1.2rem;
  max-width: 38em;
  margin-top: 1rem;
  color: rgba(247,245,239,0.88);
}
.crumbs {
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
  color: rgba(247,245,239,0.7);
}
.crumbs a { color: var(--brass-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Big Malayalam watermark for photo-less headers */
.page-head-script {
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  z-index: -1;
  font-family: var(--font-ml);
  font-weight: 600;
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 1;
  color: rgba(194,154,75,0.10);
  pointer-events: none;
  user-select: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.section-tint { background: var(--paper-tint); }
.section-dark { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); color: var(--paper); }

/* Times strip (home) */
.times-strip { background: var(--navy); color: var(--paper); }
.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.time-cell {
  padding: 1.5rem 1.8rem;
  border-left: 1px solid rgba(247,245,239,0.14);
  text-decoration: none;
  color: var(--paper);
  transition: background-color 0.2s ease;
}
.time-cell:first-child { border-left: 0; }
.time-cell:hover { background: rgba(194,154,75,0.14); }
.time-day {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.time-name { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.2rem; }
.time-hour { color: rgba(247,245,239,0.8); font-size: 0.95rem; }

/* Ministry photo cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.mcard {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  background: var(--navy-deep);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.mcard img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.mcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(12,26,51,0.05) 30%, rgba(12,26,51,0.88) 82%);
  transition: background-color 0.3s ease;
}
.mcard:hover img { transform: scale(1.06); }
.mcard-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.3rem 1.4rem;
}
.mcard-ml {
  font-family: var(--font-ml);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brass-soft);
}
.mcard-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.15rem 0 0.2rem;
}
.mcard-sub { font-size: 0.92rem; color: rgba(247,245,239,0.85); }
.mcard-arrow {
  position: absolute;
  top: 1rem; right: 1.1rem;
  font-size: 1.3rem;
  color: var(--brass-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mcard:hover .mcard-arrow { opacity: 1; transform: none; }

/* Split feature (photo + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media { border-radius: 6px; overflow: hidden; box-shadow: 0 16px 44px rgba(12,26,51,0.22); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Address card overlaid on a split photo (worship page) */
.media-address { position: relative; }
.media-address-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  background: rgba(12,26,51,0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(194,154,75,0.5);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.55;
}
.media-address-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.35rem;
}
.media-address-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brass-soft);
  font-weight: 700;
  text-decoration: none;
}
.media-address-card a:hover { text-decoration: underline; }

/* Highlighted building letter in the street address (4390B) */
.addr-b { color: var(--brass); font-weight: 800; }
.split .body p + p { margin-top: 1rem; }

/* Photo gallery strip (scroll-snap) */
.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.8rem;
  scrollbar-color: var(--brass) transparent;
}
.gallery figure {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.gallery img { width: 100%; height: 280px; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(12,26,51,0.85));
}

/* Verse / mission */
.mission {
  border-left: 3px solid var(--brass);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin-top: 2rem;
}
.mission-ml { font-family: var(--font-ml); font-weight: 500; color: var(--navy); font-size: 1.05rem; margin-bottom: 0.5rem; }
.on-dark .mission-ml { color: var(--brass-soft); }
.mission p:not(.mission-ml) { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; }
.mission cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-dark .mission cite { color: rgba(247,245,239,0.65); }

/* Journey & people — side-by-side scroll panels (about) */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.jpanel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-top: 3px solid var(--brass);
  border-radius: 6px;
  overflow: hidden;
}
.jpanel-head {
  padding: 1.15rem 1.5rem 0.85rem;
  border-bottom: 1px solid var(--paper-tint);
}
.jpanel-head h3 { font-size: 1.3rem; color: var(--navy-deep); }
.jpanel-body { padding: 1.5rem; }
.jpanel-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.people-compact + .jpanel-sub { margin-top: 2rem; }

/* Timeline (inside journey panel) */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brass) 0%, rgba(194,154,75,0.5) 75%, rgba(194,154,75,0) 100%);
}
.tl-item {
  position: relative;
  padding: 0 0 2rem 2.2rem;
}
.tl-item:last-child { padding-bottom: 0.4rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--brass);
}
.tl-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.tl-item h3 {
  font-size: 1.25rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--navy-deep);
}
.tl-item p:not(.tl-year) { color: var(--ink-soft); font-size: 0.98rem; max-width: 58ch; }
.tl-minor { padding-bottom: 1.4rem; }
.tl-minor h3 { font-size: 1.15rem; }
.tl-photo {
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(12,26,51,0.22);
}
.tl-photo img { width: 100%; display: block; }
.tl-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(12,26,51,0.85));
}

/* Leader / people */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.4rem;
}
.person { text-align: left; }
.person img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  filter: saturate(0.94);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.person:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12,26,51,0.25); }
.person h3 { font-size: 1.08rem; margin-top: 0.7rem; color: var(--navy-deep); }
.person p { font-size: 0.9rem; color: var(--ink-soft); }

/* Compact people grid (journey panel) */
.people-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.1rem; }
.people-compact .person h3 { font-size: 0.98rem; margin-top: 0.55rem; }
.people-compact .person p { font-size: 0.84rem; }

/* Leader spotlight (ministry pages) */
.leader-spot {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  padding: 1.8rem;
}
.leader-spot img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}
.leader-spot .role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.3rem;
}
.leader-spot h3 { font-size: 1.5rem; color: var(--navy-deep); }
.leader-spot p:not(.role) { margin-top: 0.7rem; color: var(--ink-soft); }

/* Big feature photo with content below (ministry pages) */
.feature-photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(12,26,51,0.22);
  margin: 2.2rem 0 1.6rem;
}
.feature-photo img { width: 100%; display: block; }
.teachers-row { margin-bottom: 2.6rem; }

/* Letters (full welcome letters from leaders) */
.letter {
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-top: 3px solid var(--brass);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 820px;
  margin-top: 1.8rem;
}
.letter-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.letter-head img {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.letter-head .role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.letter-head h3 { font-size: 1.4rem; color: var(--navy-deep); }
.letter p + p { margin-top: 1rem; }

/* Letter with a large portrait of the department head */
.letter-featured {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.2rem;
  align-items: start;
  max-width: 1000px;
}
.letter-featured > img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}
.letter-featured .role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.letter-featured h3 {
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}
.letter .sign {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

/* Detail list (ministry pages) */
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.fact {
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-top: 3px solid var(--brass);
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
}
.fact dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fact dd { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-top: 0.2rem; }

/* Accordions */
.faq details {
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-radius: 6px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* Video cards (link out to YouTube — channel doesn't allow embeds) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.vcard { display: block; text-decoration: none; color: inherit; }
.vcard-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}
.vcard-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}
.vcard:hover .vcard-thumb img { transform: scale(1.05); opacity: 0.85; }
.vcard-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-play svg {
  box-sizing: content-box;
  padding: 12px 14px;
  border-radius: 50%;
  background: rgba(12,26,51,0.75);
  color: var(--brass-soft);
  border: 1px solid rgba(221,190,133,0.6);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.vcard:hover .vcard-play svg { background: var(--brass); color: var(--navy-deep); transform: scale(1.08); }
.vcard-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-top: 0.75rem;
}
.on-dark .vcard-title { color: var(--paper); }
.vcard-date {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.on-dark .vcard-date { color: rgba(247,245,239,0.6); }
.vcard-featured { grid-column: 1 / -1; }
.vcard-featured .vcard-title { font-size: 1.35rem; }

/* Click-to-play embed cards (watch page — NACOG sessions & past conventions) */
button.vcard-thumb {
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  cursor: pointer;
}
.vcard-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.conv-year { margin-top: 2.4rem; }
.conv-year h3 { margin-bottom: 1rem; color: var(--navy-deep); }

/* Video lightbox (player in a window frame over the page) */
body.modal-open { overflow: hidden; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 33, 0.85);
  backdrop-filter: blur(3px);
}
.video-modal-box {
  position: relative;
  width: min(960px, 100%);
  background: var(--navy-deep);
  border: 1px solid rgba(194, 154, 75, 0.45);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.video-modal-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: var(--paper);
}
.video-modal-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-modal-yt {
  color: var(--brass-soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.video-modal-yt:hover { text-decoration: underline; }
.video-modal-close {
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}
.video-modal-close:hover { color: var(--brass-soft); }
.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video / media */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.watch-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: start;
}
.fb-frame {
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  min-height: 200px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.fb-frame iframe { display: block; width: 100%; border: 0; }

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.visit-details { margin: 1.6rem 0 2rem; display: grid; gap: 1.3rem; }
.visit-details dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.25rem;
}
.visit-details dd { line-height: 1.7; }
.on-dark .visit-details dd a { color: var(--paper); }
.map-frame { border-radius: 6px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,0.3); }
.map-frame iframe { display: block; width: 100%; min-height: 420px; border: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(100deg, var(--navy-deep), var(--navy));
  color: var(--paper);
  border-top: 2px solid var(--brass);
}
.cta-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4rem) 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(247,245,239,0.8); margin-top: 0.3rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Reveal (JS adds .reveal, IO adds .in, script has a safety timer) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.from-left { transform: translateX(-28px); }
.js .reveal.from-right { transform: translateX(28px); }
.js .reveal.zoom { transform: scale(0.94); }
.js .reveal.in { opacity: 1; transform: none; }

/* Entrance animations (hero + interior page headers) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.js .hero .eyebrow,
.js .hero h1,
.js .hero-lede,
.js .hero-actions { animation: fadeUp 0.7s ease both; }
.js .hero h1 { animation-delay: 0.12s; }
.js .hero-lede { animation-delay: 0.24s; }
.js .hero-actions { animation-delay: 0.36s; }
.js .next-card { animation: fadeUp 0.7s ease 0.45s both; }
.js .page-head .crumbs,
.js .page-head .eyebrow,
.js .page-head h1,
.js .page-head .lede { animation: fadeUp 0.6s ease both; }
.js .page-head .eyebrow { animation-delay: 0.08s; }
.js .page-head h1 { animation-delay: 0.16s; }
.js .page-head .lede { animation-delay: 0.26s; }

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

.site-footer {
  background: #081221;
  color: rgba(247,245,239,0.75);
  padding: 3.2rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(247,245,239,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.8rem; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.footer-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.8rem;
}
.footer-list { list-style: none; display: grid; gap: 0.45rem; }
.footer-list a { color: rgba(247,245,239,0.85); text-decoration: none; }
.footer-list a:hover { color: var(--brass-soft); }
.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 24px 0;
  font-size: 0.85rem;
  color: rgba(247,245,239,0.5);
}

/* ---------- Motion & responsive ---------- */

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

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .next-card { justify-self: start; }
  .split, .watch-grid, .visit-grid { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .letter-featured { grid-template-columns: 1fr; }
  .letter-featured > img { max-width: 280px; }
  .leader-spot { grid-template-columns: 1fr; max-width: 460px; }
  .leader-spot img { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(194,154,75,0.35);
    padding: 0.4rem 0 1rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li { padding: 0 24px; }
  .nav-links > li > a { display: block; padding: 0.7rem 0; }
  .nav-links > li > a::after { display: none; }
  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--brass);
    border-radius: 0;
    background: transparent;
    display: none;
    margin: 0 0 0.5rem 0.2rem;
  }
  .has-sub.open .subnav { display: block; }
  .nav-cta-li { margin-top: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
