/* ==========================================================================
   Kingdom Glory Church — site styles
   Palette and fonts live in :root, change them here and the whole site follows.
   ========================================================================== */

:root {
  --bg: #0b0a08;
  --bg-2: #100e0b;
  --surface: #16130e;
  --text: #f1ebdd;
  --text-soft: rgba(241, 235, 221, 0.8);
  --muted: #a39a86;
  --gold: #c9a24b;
  --gold-hi: #e6c97f;
  --gold-lo: #8f7233;
  --line: rgba(201, 162, 75, 0.22);
  --line-strong: rgba(201, 162, 75, 0.55);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 92px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* very subtle film grain so the black never feels flat */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .site-footer, .site-header { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25em; color: var(--text-soft); }
address { font-style: normal; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #120f08; }

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

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: #120f08; padding: 0.7rem 1.1rem; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.narrow-wide { width: min(980px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.9rem, 6.2vw, 5.6rem); line-height: 1; }
.h1--sm { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.8rem; }
h1 em, h2 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(110deg, var(--gold) 10%, var(--gold-hi) 45%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.7; color: var(--text); font-weight: 300; }
.muted-lead { color: var(--muted); max-width: 640px; margin-inline: auto; }
.kicker { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.95rem;
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: var(--gold); flex: none; }
.eyebrow:has(.dot)::before { display: none; }
.eyebrow--center::after { content: ""; width: 2.6rem; height: 1px; background: var(--gold); flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow .sep, .when .sep { color: var(--gold-lo); margin: 0 0.35em; }
.center > .eyebrow, .center .eyebrow { display: inline-flex; }

.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-hi); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.4); opacity: 0; } }

.text-link { color: var(--gold-hi); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.text-link:hover { color: #fff; border-color: var(--gold-hi); }
.text-link em { font-family: var(--font-display); font-size: 1.35em; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2rem; border: 1px solid var(--gold);
  font-weight: 500; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1;
  cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.btn--gold { background: var(--gold); color: #120f08; }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(201, 162, 75, 0.12); border-color: var(--gold-hi); transform: translateY(-2px); }

/* ---------- Gold corner frame ---------- */
.corners { position: relative; }
.corners::before, .corners::after { content: ""; position: absolute; width: 46px; height: 46px; border: 1px solid var(--gold); pointer-events: none; z-index: 2; }
.corners::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.corners::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: var(--bar-h, 0px) 0 auto 0; z-index: 50; transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header.nav-open { background: rgba(11, 10, 8, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 76px; width: auto; transition: height 0.3s var(--ease); }
.is-solid .brand img { height: 64px; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-link, .sub a {
  font-weight: 400; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer; position: relative; transition: color 0.25s;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-link:hover, .sub a:hover, .nav a[aria-current="page"], .has-sub:has([aria-current="page"]) > .sub-toggle { color: var(--gold-hi); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-sub:has([aria-current="page"]) > .sub-toggle::after { transform: scaleX(1); }
.nav-give { border: 1px solid var(--gold); padding: 0.7rem 1.4rem; }
.nav-give::after { display: none; }
.nav-give:hover { background: var(--gold); color: #120f08 !important; }
.chev { width: 9px; height: 6px; margin-left: 0.55rem; transition: transform 0.3s var(--ease); }

.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 0.6rem); left: -1.2rem; min-width: 210px; padding: 0.7rem 0;
  background: rgba(14, 12, 9, 0.97); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.sub a { display: block; padding: 0.7rem 1.4rem; }
.sub a:hover { background: rgba(201, 162, 75, 0.08); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }

.socials { display: flex; gap: 1rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.socials a { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); transition: color 0.25s, transform 0.25s; }
.socials a:hover { color: var(--gold-hi); transform: translateY(-2px); }
.socials svg { width: 100%; height: 100%; fill: currentColor; }
.socials svg[fill="none"] { fill: none; }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer; place-items: center; }
.menu-icon, .menu-icon::before { display: block; width: 20px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease); }
.menu-icon::before { content: ""; position: absolute; top: -6px; }
.menu-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 20px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-h: 78px; }
  /* backdrop-filter would make the header the containing block for the fixed full-screen menu and clip it */
  .site-header.is-solid, .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 10, 8, 0.97); }
  .menu-btn { display: grid; }
  .brand img { height: 58px; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + var(--bar-h, 0px)) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem 1.5rem 3rem; background: rgba(11, 10, 8, 0.98); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a.nav-link, .sub-toggle { display: flex; justify-content: space-between; width: 100%; padding: 1.1rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-give { margin-top: 1.5rem; justify-content: center !important; border: 1px solid var(--gold) !important; padding: 1rem !important; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 0.5rem 1rem; }
  .sub-toggle { pointer-events: none; }
  .sub-toggle .chev { display: none; }
  .sub a { padding: 0.8rem 0; font-size: 0.82rem; }
  .socials { padding: 1.6rem 0 0; border-left: 0; gap: 1.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + var(--bar-h, 0px) + 2rem) 0 4.5rem;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(201, 162, 75, 0.16), transparent 62%),
    radial-gradient(45% 45% at 8% 92%, rgba(201, 162, 75, 0.07), transparent 65%),
    var(--bg);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-copy { max-width: 720px; }
.hero .eyebrow { justify-content: center; }
.hero .btn-row { justify-content: center; margin-top: 1.6rem; }
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(44% 40% at 50% 50%, rgba(11, 10, 8, 0.82), rgba(11, 10, 8, 0.5) 60%, transparent 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.6), transparent 16%); }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } }
.hero h1 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.hero h1 em { display: block; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 22px; height: 40px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-hi); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 860px) {
  .hero { min-height: 82svh; padding-bottom: 4.5rem; }
  .hero .eyebrow { display: block; line-height: 1.9; }
  .hero .eyebrow .dot { display: inline-block; margin-right: 0.7rem; vertical-align: middle; }
  .hero-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid rgba(201, 162, 75, 0.1); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.page-hero { padding: calc(var(--header-h) + var(--bar-h, 0px) + clamp(3rem, 7vw, 6rem)) 0 clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(55% 90% at 50% 0%, rgba(201, 162, 75, 0.12), transparent 70%); }
.page-hero h1 { margin-bottom: 0.3em; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split-art img { width: 100%; max-width: 440px; margin-inline: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-art { max-width: 460px; } }

.scripture { margin: 2rem 0; padding: 0 0 0 1.6rem; border-left: 1px solid var(--gold); }
.scripture p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.4; color: var(--gold-hi); margin-bottom: 0.7rem; }
.scripture cite { display: block; font-style: normal; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.scripture--lg { border: 0; padding: 0; margin: 0 auto 2.5rem; text-align: center; }
.scripture--lg p { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.center .scripture { border: 0; padding: 0; }

/* Gatherings */
.gather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gather-card {
  position: relative; padding: clamp(1.8rem, 3vw, 2.8rem); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%);
  transition: border-color 0.35s, transform 0.4s var(--ease), background 0.4s;
}
.gather-card:hover { border-color: var(--line-strong); transform: translateY(-4px); background: linear-gradient(180deg, rgba(201, 162, 75, 0.07), transparent 70%); }
.when { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.8rem; }
.gather-card h3 { margin-bottom: 0.45em; }
.gather-card p:last-child { margin-bottom: 0; }
@media (max-width: 980px) { .gather-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* Find us */
.find { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); background: radial-gradient(70% 120% at 0% 0%, rgba(201, 162, 75, 0.09), transparent 60%); }
.find-address { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: 1.6rem; color: var(--text); }
.find-address .muted { font-family: var(--font-body); font-size: 0.95rem; }
.find-phone { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; color: var(--text); }
.find-phone a:hover { color: var(--gold-hi); }
@media (max-width: 760px) { .find { grid-template-columns: 1fr; gap: 1.5rem; } }

/* About */
.collage { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 2.4rem; align-items: center; }
.collage figure { margin: 0; }
.collage img { width: 100%; }
@media (max-width: 760px) { .collage { grid-template-columns: 1fr; } }

/* Beliefs */
.faith-list { counter-reset: faith; }
.faith-list li { counter-increment: faith; position: relative; padding: 1.5rem 0 1.5rem 4.6rem; border-bottom: 1px solid var(--line); color: var(--text-soft); line-height: 1.75; }
.faith-list li::before { content: counter(faith, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem; font-family: var(--font-display); font-size: 2.2rem; font-style: italic; line-height: 1; color: var(--gold); }
.faith-list { columns: 2 22rem; column-gap: clamp(2rem, 5vw, 5rem); }
.faith-list li { break-inside: avoid; }
.faith-list li:first-child { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .faith-list li { padding-left: 3.4rem; } }

/* Leadership */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(0.95) contrast(1.02); }
.person h2 { font-size: 1.85rem; margin: 1.8rem 0 0.2rem; }
.role { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 980px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info .when { margin-top: 2rem; }
.contact-info p { margin-bottom: 0.4rem; }
.contact-info a:not(.btn) { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.contact-info a:not(.btn):hover { color: var(--gold-hi); }
.contact-form { padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); }
.contact-form h2 { font-size: 2.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: 0.45rem; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.95rem 1rem; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 0; transition: border-color 0.25s, background 0.25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #14110c; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-hi); background: rgba(201, 162, 75, 0.06); }
.field .invalid { border-color: #c9674b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; min-height: 1.5em; font-size: 0.95rem; color: var(--gold-hi); }
.form-status.error { color: #e08a73; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Give */
.bank { padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); background: radial-gradient(80% 120% at 0% 0%, rgba(201, 162, 75, 0.09), transparent 60%); }
.bank h2 { margin-bottom: 1.2rem; }
.bank dl { margin: 0; }
.bank dl > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.bank dt { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); flex: 1 1 100%; }
.bank dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.copy { padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--line-strong); color: var(--gold-hi); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, color 0.25s; }
.copy:hover, .copy.done { background: var(--gold); color: #120f08; }

/* Podcast embed */
.embed { aspect-ratio: 16 / 9; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); margin-bottom: 2.4rem; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Videos ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.2rem) 1.6rem; margin-bottom: 2.6rem; }
.vgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .vgrid--3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.vcard { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.vthumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: brightness(0.88); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 8, 0.65)); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 1px solid var(--gold-hi); background: rgba(11, 10, 8, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; transition: background 0.3s, transform 0.4s var(--ease); }
.play::before { content: ""; width: 16px; height: 18px; margin-left: 4px; background: var(--gold-hi); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: background 0.3s; }
.vcard:hover .vthumb { border-color: var(--line-strong); }
.vcard:hover .vthumb img { transform: scale(1.05); filter: brightness(1); }
.vcard:hover .play { background: var(--gold); transform: scale(1.08); }
.vcard:hover .play::before { background: #120f08; }
.vtitle { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin: 1rem 0 0.35rem; color: var(--text); }
.vmeta { font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.vgrid .vfeature { grid-column: 1 / -1; }

.sermon-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { padding: 0.65rem 1.2rem; background: transparent; border: 1px solid var(--line); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); cursor: pointer; transition: all 0.25s; }
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #120f08; }
.search input { width: min(300px, 100%); padding: 0.75rem 1rem; font: inherit; font-size: 0.95rem; color: var(--text); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 0; }
.search input:focus { outline: none; border-color: var(--gold-hi); }
.results-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.6rem; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 0; }

dialog.player { width: min(1120px, 94vw); max-height: 94vh; padding: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); overflow: hidden; }
dialog.player::backdrop { background: rgba(4, 3, 2, 0.88); backdrop-filter: blur(5px); }
.player-bar { display: flex; align-items: center; gap: 1.2rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); }
.player-title { flex: 1; margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar .text-link { font-size: 0.8rem; white-space: nowrap; }
.player-close { width: 40px; height: 40px; background: none; border: 1px solid var(--line); font-size: 1.6rem; line-height: 1; color: var(--text); cursor: pointer; transition: all 0.25s; }
.player-close:hover { background: var(--gold); color: #120f08; border-color: var(--gold); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .player-bar .text-link { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080705; padding: clamp(3rem, 6vw, 5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 104px; width: auto; margin-bottom: 1.2rem; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--gold-hi); margin: 0 0 0.3rem; }
.footer-ref { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0; }
.footer-h { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem; }
.site-footer p, .site-footer address, .footer-links a { font-size: 0.97rem; color: var(--text-soft); }
.site-footer address { line-height: 1.7; margin-bottom: 1rem; }
.site-footer a:hover { color: var(--gold-hi); }
.footer-links li { margin-bottom: 0.45rem; }
.socials--footer { padding: 0; border: 0; gap: 1.2rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-base { flex-direction: column; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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


/* ---------- Image slots (placeholders until a photo is added) ---------- */
.ph { width: 100%; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: radial-gradient(90% 70% at 50% 25%, rgba(201, 162, 75, 0.16), transparent 70%), linear-gradient(160deg, #1a160f, #0d0b08); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.3; }
.ph small { display: block; margin-top: 0.6rem; font-family: var(--font-body); font-style: normal; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lo); }
.person-photo .ph { font-size: 1rem; }
.wordmark { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.wordmark em { display: block; font-style: italic; letter-spacing: 0.3em; font-size: 0.72em; margin-top: 0.3em; color: var(--gold-hi); }
.footer-brand .wordmark { font-size: 1.9rem; margin-bottom: 1.2rem; }

/* ---------- Info strip ---------- */
.info-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.info-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-strip-grid p { margin: 0; padding: 1.7rem 1.5rem; text-align: center; border-left: 1px solid var(--line); }
.info-strip-grid p:first-child { border-left: 0; }
.info-strip .when { display: block; margin-bottom: 0.4rem; }
.info-strip strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--text); }
.info-strip a:hover { color: var(--gold-hi); }
@media (max-width: 760px) { .info-strip-grid { grid-template-columns: 1fr; } .info-strip-grid p { border-left: 0; border-top: 1px solid var(--line); padding: 1.2rem 0; } .info-strip-grid p:first-child { border-top: 0; } }

/* ---------- Verse band ---------- */
.verse-band { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; text-align: center; background: radial-gradient(70% 120% at 50% 0%, rgba(201, 162, 75, 0.12), transparent 70%), #090806; border-block: 1px solid var(--line); }
.verse-bg { position: absolute; inset: 0; opacity: 0.28; }
.verse-bg img, .verse-bg .ph { width: 100%; height: 100%; object-fit: cover; border: 0; }
.verse-band .wrap { position: relative; }
.orn { display: block; width: 9px; height: 9px; margin: 0 auto 1.6rem; background: var(--gold); transform: rotate(45deg); box-shadow: -34px 0 0 -3px var(--gold-lo), 34px 0 0 -3px var(--gold-lo); }
.verse-line { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; color: var(--gold-hi); margin: 0 0 0.9rem; }
.verse-ref { font-weight: 500; font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- Featured latest message (home) ---------- */
@media (min-width: 901px) {
  .vgrid--feature { grid-template-columns: 1.55fr 1fr; grid-auto-flow: row; align-items: start; }
  .vgrid--feature .vcard:first-child { grid-row: span 2; }
  .vgrid--feature .vcard:first-child .vtitle { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
  .vgrid--feature .vcard:first-child .play { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
}

/* ---------- Find us photo ---------- */
.find-photo { position: relative; margin-bottom: 1.8rem; }
.find-photo img, .find-photo .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Split with art on the right, landscape photo */
.split--rev { grid-template-columns: 1.05fr 0.95fr; }
.split-art--wide img { max-width: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% center; }
@media (max-width: 860px) { .split--rev { grid-template-columns: 1fr; } .split--rev .split-art { max-width: 520px; } }

/* ---------- Watch Us Live ---------- */
[hidden] { display: none !important; }
body.has-live-bar { --bar-h: 44px; }
.live-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: pulse 1.6s var(--ease) infinite; }
.live-bar {
  position: fixed; z-index: 70; inset: 0 0 auto 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  padding: 0 1rem; color: #fff; background: linear-gradient(90deg, #b3150f, #e5342d 50%, #b3150f); background-size: 200% 100%;
  animation: live-sheen 5s linear infinite; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; font-weight: 500;
  box-shadow: 0 6px 24px rgba(229, 52, 45, 0.35);
}
.live-bar strong { font-weight: 600; letter-spacing: 0.22em; }
.live-bar-sub { opacity: 0.85; }
.live-bar-go { transition: transform 0.3s var(--ease); }
.live-bar:hover .live-bar-go { transform: translateX(5px); }
@keyframes live-sheen { to { background-position: -200% 0; } }
@media (max-width: 560px) { .live-bar-sub { display: none; } }
.btn--live { background: #e5342d; border-color: #e5342d; color: #fff; gap: 0.7rem; box-shadow: 0 0 0 0 rgba(229, 52, 45, 0.6); animation: live-glow 2s var(--ease) infinite; }
.btn--live:hover { background: #ff463f; border-color: #ff463f; transform: translateY(-2px); }
@keyframes live-glow { 0% { box-shadow: 0 0 0 0 rgba(229, 52, 45, 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(229, 52, 45, 0); } }
.live-now { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 1.6rem; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; }
.live-now .live-dot { background: #e5342d; }
.live-now .live-dot::after { background: #e5342d; }
.live-title { color: var(--gold-hi); }
.live-off { padding: clamp(2rem, 5vw, 4rem); text-align: center; border: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, rgba(201, 162, 75, 0.09), transparent 60%); }
.live-off p { max-width: 520px; margin-inline: auto; }
.live-chat { margin-top: 2.4rem; }
.live-chat iframe { width: 100%; height: 520px; border: 1px solid var(--line); background: var(--surface); display: block; }
.live-demo { display: grid; place-items: center; height: 100%; margin: 0; padding: 2rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--muted); }

/* ---------- Home: solid menu bar, video starts underneath it ---------- */
.is-home .site-header { background: rgba(11, 10, 8, 0.97); border-bottom-color: var(--line); }
.is-home .hero {
  margin-top: calc(var(--header-h) + var(--bar-h, 0px));
  min-height: calc(100vh - var(--header-h) - var(--bar-h, 0px));
  min-height: calc(100svh - var(--header-h) - var(--bar-h, 0px));
  padding-top: 2rem;
  align-items: end;
}
.is-home .hero-video::after { background: none; }
.is-home .hero-copy { padding: clamp(1.2rem, 3vw, 2rem) clamp(1.4rem, 4vw, 3rem); background: rgba(0, 0, 0, 0.55); border-radius: 14px; }
@media (max-width: 860px) { .is-home .hero { min-height: 78svh; } }

/* Small phones: long centred eyebrow lines wrap instead of running off-screen */
@media (max-width: 600px) {
  .center > .eyebrow--center, .center .eyebrow--center, .eyebrow--center { display: block; text-align: center; line-height: 1.9; letter-spacing: 0.22em; }
  .eyebrow--center::after { display: none; }
}

/* ==========================================================================
   Mobile hardening — small screens, notches, touch
   ========================================================================== */
h1, h2, h3, .vtitle, .find-address, .bank dd { overflow-wrap: anywhere; }
.vgrid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
.search input { font-size: 1rem; } /* 16px stops iOS zooming into the field */

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { width: min(1180px, 100% - 2rem); }
  .narrow, .narrow-wide { width: min(760px, 100% - 2rem); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .search, .search input { width: 100%; }
  .sermon-tools { align-items: stretch; }
  .chips { gap: 0.5rem; }
  .vtitle { font-size: 1.3rem; }
  .contact-form h2 { font-size: 2rem; }
  .live-bar { font-size: 0.68rem; letter-spacing: 0.12em; gap: 0.6rem; padding: 0 0.6rem; }
  .live-bar strong { letter-spacing: 0.14em; }
  .bank dd { flex-wrap: wrap; }

  /* Home hero: text panel spans the width, buttons stack full-width */
  .is-home .hero { min-height: 70svh; padding-bottom: 1.25rem; }
  .is-home .hero .wrap { width: calc(100% - 1.5rem); }
  .is-home .hero-copy { padding: 1.1rem 1rem 1.3rem; border-radius: 12px; max-width: none; }
  .is-home .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .is-home .hero .eyebrow { font-size: 0.64rem; letter-spacing: 0.16em; margin-bottom: 1rem; }
  .hero .btn-row { flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 1.2rem; }
  .btn-row .btn { width: 100%; }
}

/* Very small phones (≈320px) */
@media (max-width: 380px) {
  .brand img { height: 48px; }
  .btn { padding: 1rem 1.2rem; letter-spacing: 0.16em; }
  .gather-card { padding: 1.5rem 1.2rem; }
  .find, .bank, .contact-form { padding: 1.4rem 1.1rem; }
  .faith-list li { padding-left: 2.9rem; }
  .faith-list li::before { font-size: 1.8rem; }
}

/* Touch screens: comfortable 44px tap targets, no sticky hover jumps */
@media (hover: none) and (pointer: coarse) {
  .chip, .copy, .player-close { min-height: 44px; display: inline-flex; align-items: center; }
  .player-close { width: 44px; justify-content: center; }
  .footer-links a { display: inline-block; padding: 0.35rem 0; }
  .socials a { width: 28px; height: 28px; }
  .gather-card:hover, .btn:hover, .vcard:hover .play { transform: none; }
}

/* Short landscape phones: don't force a tall hero, let the player fit */
@media (max-height: 520px) and (orientation: landscape) {
  .is-home .hero { min-height: 0; padding-top: 3rem; }
  dialog.player { max-height: 100dvh; width: min(1120px, 100vw - 1rem); }
  .player-frame { max-height: calc(100dvh - 4.5rem); }
}

/* ---------- Podcast: large latest-episode viewer ---------- */
.podcast-feature { max-width: 1000px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.podcast-feature .embed { margin-bottom: 1.2rem; border: 1px solid var(--line); }
.podcast-feature-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0.4rem 0 0; }
