/* =========================================================
   St Johns Church home page
   Fonts: Apple system display (SF Pro Display) and Avenir are
   used where installed (Apple devices). Self-hosted fallbacks:
   Inter (display), Nunito Sans (body).
   ========================================================= */

@font-face { font-family: "InterLocal"; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "InterLocal"; src: url(assets/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "InterLocal"; src: url(assets/fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "InterLocal"; src: url(assets/fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "NunitoLocal"; src: url(assets/fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NunitoLocal"; src: url(assets/fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "NunitoLocal"; src: url(assets/fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Type */
  --f-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "InterLocal", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Avenir Next", "Avenir", "NunitoLocal", "Segoe UI", sans-serif;

  /* Color */
  --black: #000;
  --card: #0e0e0e;
  --green: #038376;
  --green-deep: #026e63;
  --maroon: #6B2F2F;
  --charcoal: #1E1A1A;
  --light: #f1f1f0;
  --white: #fff;
  --ink: #000;
  --muted: #4a4a4a;
  --on-dark-muted: rgba(255,255,255,.78);

  /* Spacing system: one gutter, one section rhythm, one heading gap */
  --gutter: clamp(20px, 6vw, 96px);
  /* One vertical rhythm: section top = gap under the H2 = section bottom */
  --space: clamp(49.92px, 6.24vw, 93.6px);
  --section-y: var(--space);
  --head-gap: var(--space);
  --block-gap: clamp(49.92px, 7.02vw, 106.08px);
  --max: 1120px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-text: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(15.5px, 1vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Type scale ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.35vw, 48px); /* 48px on desktop (from ~1430px wide), scales down to 28px on phones */
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: var(--head-gap);
  /* Trim the font's built-in space above the capitals and below the baseline, so the
     section's top padding ends exactly at the letters and matches the bottom padding. */
  text-box: trim-both cap alphabetic;
}
@supports not (text-box: trim-both cap alphabetic) {
  .h2 { margin-top: -0.2em; margin-bottom: calc(var(--head-gap) - 0.06em); }
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(17.16px, 1.72vw, 23.4px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.1;
}
.body { max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--charcoal); color: #fff;
  font-family: var(--f-display); font-weight: 600;
  font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--maroon); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 13px; }
.section--black .btn, .footer .btn { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); overflow: hidden; }
.section--black { background: var(--black); color: #fff; }
.section--green { background: var(--green); color: #fff; }
.section--light { background: var(--light); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .4s var(--ease); }
.nav::before { /* soft top scrim so white links read on the photo */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
  transition: opacity .4s var(--ease);
}
.nav__inner { position: relative; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18.72px, 2.34vw, 34.32px); margin-left: auto; }
.nav__links a:not(.btn) {
  font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  text-shadow: var(--shadow-text);
  padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav__links a:not(.btn):hover { background-size: 100% 1px; }
.nav__links .btn { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.nav.is-solid { background: rgba(0,0,0,.92); }
.nav.is-solid::before { opacity: 0; }
.nav.is-solid .nav__brand { opacity: 1; visibility: visible; }

.nav__toggle { display: none; margin-left: auto; width: 48px; height: 48px; padding: 10px; background: none; border: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
.nav__toggle svg { width: 28px; height: 28px; }
.nav__toggle .i-close { display: none; }
.nav__toggle[aria-expanded="true"] .i-open { display: none; }
.nav__toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-menu { position: fixed; inset: 76px 0 0 0; background: #000; padding: 40px var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; padding-block: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.menu-open { background: #000; }
  .nav.menu-open .nav__brand { opacity: 1; visibility: visible; }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; min-height: 100dvh; display: grid; place-items: center; color: #fff; overflow: hidden; background: #2a1c1a; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 60%; }
.hero::after { /* big soft shadow around the logo + line */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 40% at 50% 52%, rgba(0,0,0,.5), rgba(0,0,0,0) 72%),
    linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 22%, rgba(0,0,0,0) 55%);
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(21.84px, 2.65vw, 34.32px); padding-block: 120px 96px; }
.hero__logo img {
  width: clamp(202.8px, 34.32vw, 483.6px);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)) drop-shadow(0 10px 48px rgba(0,0,0,.6));
}
.hero__about {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(20.28px, 2.34vw, 34.32px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 44ch;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 4px 30px rgba(0,0,0,.55);
}

/* =========================================================
   2. VALUES
   ========================================================= */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(9.36px, 1.09vw, 15.6px); }
.value {
  --pad: clamp(18.72px, 1.87vw, 28.08px);
  position: relative; height: 184px;
  background: var(--card);
  padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 14px);
  display: flex; flex-direction: column;
  color: #fff; cursor: default; outline: none;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.value::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: var(--c); }
/* Fixed height: description sits at the top, title is pinned bottom-left; nothing moves on hover */
.value__desc { order: -1; margin-bottom: auto; opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.value__desc > p { font-family: var(--f-body); font-size: 15px; line-height: 1.55; max-width: 34ch; }
.value__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(17.16px, 1.48vw, 21.84px); line-height: 1.1; letter-spacing: -0.005em; text-transform: uppercase; }
.value:hover, .value:focus-visible, .value.is-open { background: var(--c); color: var(--ink); }
.value:hover .value__desc, .value:focus-visible .value__desc, .value.is-open .value__desc { opacity: 1; transform: none; }
.value:focus-visible { box-shadow: 0 0 0 2px #fff; }

@media (max-width: 1024px) { .values__grid { grid-template-columns: repeat(2, 1fr); } .value { height: 176px; } }
@media (max-width: 640px) {
  .values__grid { grid-template-columns: 1fr; gap: 10px; }
  .value { --pad: 18px; height: 118px; cursor: pointer; }
  .value__title { font-size: 21px; }
  .value__desc > p { font-size: 15.5px; line-height: 1.5; }
}

/* =========================================================
   3. PASTORS
   ========================================================= */
.pastors { background: #D9D9D9; color: var(--ink); }
.pastors__steeple { position: absolute; right: -2vw; bottom: 0; height: 74%; width: auto; max-width: none; pointer-events: none; opacity: .75; }
.pastors .wrap { position: relative; }
/* Two equal photos side by side, centered, wide gutter between (per comp) */
.pastors__grid {
  --photo: clamp(187.2px, 14.82vw, 234px);
  display: grid; grid-template-columns: repeat(2, var(--photo)); justify-content: center;
  column-gap: clamp(74.88px, 9.36vw, 143.52px);
  margin-bottom: var(--block-gap);
}
.pastor { text-align: center; min-width: 0; }
.pastor__photo { width: 100%; aspect-ratio: 560 / 526; object-fit: cover; margin-bottom: 24px; }
.pastor__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18.72px, 1.56vw, 23.4px); line-height: 1.1; letter-spacing: -0.02em; }
.pastor__label { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 20px; margin-bottom: 10px; }
.pastor__bio { font-size: 15.5px; line-height: 1.6; color: #2b2b2b; }

@media (max-width: 640px) {
  .pastors__grid { grid-template-columns: min(300px, 100%); row-gap: 64px; }
  .pastors__steeple { height: 40%; right: -60px; opacity: .45; }
}

/* =========================================================
   4. WORSHIP
   ========================================================= */
.worship { color: #fff; background: #000; }
/* The room photo fills the whole section; chairs sit behind Weekly Events and the
   hero-style bottom-up gradient fades them into the black at the section's bottom */
.worship__bg { position: absolute; inset: 0; z-index: 0; }
.worship__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.worship__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.86) 18%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.12) 56%, rgba(0,0,0,.12) 100%); }
.worship .wrap { position: relative; z-index: 2; }
.worship .h2 { text-shadow: var(--shadow-text); }
/* Video + time share row 1 so the time block centers on the video itself; caption sits in row 2 */
.worship__grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "video time" "caption ."; column-gap: clamp(31.2px, 4.68vw, 74.88px); row-gap: 20px; margin-bottom: var(--block-gap); }
.worship__video { display: contents; }
.worship__video .video { grid-area: video; }
.worship__caption { grid-area: caption; }
.worship__time { grid-area: time; align-self: center; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s var(--ease); }
.video__facade:hover img { opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; transform: translate(-50%, -50%); display: grid; place-items: center; color: #FF0000; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); transition: transform .3s var(--ease), color .3s var(--ease); }
.video__play::before { content: ""; position: absolute; width: 26px; height: 26px; background: #fff; } /* fills the logo's play triangle */
.video__play svg { position: relative; width: 80px; height: 80px; }
.video__facade:hover .video__play { color: #E00000; transform: translate(-50%, -50%) scale(1.06); }
.video__empty { position: absolute; left: 0; right: 0; bottom: 20px; font-size: 15px; text-shadow: var(--shadow-text); opacity: 0; transition: opacity .3s; }
.video.is-empty .video__empty { opacity: 1; }
.worship__caption { font-size: clamp(14.04px, 1.09vw, 16.38px); text-shadow: var(--shadow-text); }
.text-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-thickness .2s, opacity .2s; }
.text-link:hover { text-decoration-thickness: 2px; }

.worship__time { text-shadow: var(--shadow-text); }
.worship__kicker { font-family: var(--f-body); font-size: clamp(16.38px, 1.48vw, 21.06px); line-height: 1.3; color: #fff; }
.worship__day { font-family: var(--f-display); font-weight: 600; font-size: clamp(23.4px, 2.18vw, 32.76px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; margin-top: 28px; margin-bottom: 8px; }
.worship__hour { font-family: var(--f-display); font-weight: 800; font-size: clamp(65.52px, 7.41vw, 117px); line-height: .9; letter-spacing: -0.045em; margin-left: -0.04em; }

.events .h3 { margin-bottom: 48px; text-shadow: var(--shadow-text); }
.events__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24.96px, 3.12vw, 49.92px); }
/* Padding is offset by negative margins so text still lines up with the heading; the rust fill shows on hover */
.event { position: relative; padding: 28px 24px 32px; margin-inline: -24px; transition: background-color .35s var(--ease); }
.event::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: rgba(255,255,255,.35); transition: left .35s var(--ease), right .35s var(--ease), background-color .35s var(--ease); }
.event:hover { background: var(--maroon); }
.event:hover::before { left: 0; right: 0; background: var(--maroon); }
.event__when { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.event__when span { display: block; color: #fff; }
.event__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(17.16px, 1.4vw, 20.28px); line-height: 1.15; margin: 20px 0 0; }
.event__text { font-size: clamp(14px, 1.01vw, 14.82px); line-height: 1.6; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

@media (max-width: 1024px) { .events__list { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 768px) {
  .worship__grid { grid-template-columns: 1fr; grid-template-areas: "time" "video" "caption"; row-gap: 20px; }
  .worship__time { text-align: center; margin-bottom: 28px; }
}
@media (max-width: 520px) { .events__list { grid-template-columns: 1fr; row-gap: 40px; } }

/* =========================================================
   5. JOIN US
   ========================================================= */
/* Worship ends in black and Join Us starts in black, so its top space would double up: trim it */
.join { padding-top: calc(var(--space) * .5); }
.join .h2 { margin-bottom: clamp(15.6px, 1.72vw, 24.96px); }
.join__address {
  font-style: normal;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18.72px, 2.89vw, 42.12px); line-height: 1.15; letter-spacing: -0.015em;
  text-align: center; white-space: nowrap;
  padding-bottom: clamp(37.44px, 4.68vw, 62.4px);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.join__row { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: clamp(31.2px, 3.9vw, 49.92px); }
.join__fact { font-family: var(--f-body); font-size: clamp(14.04px, 1.17vw, 17.16px); line-height: 1.5; max-width: 34ch; color: rgba(255,255,255,.9); }
.join__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px clamp(18.72px, 2.34vw, 34.32px); flex-shrink: 0; }
.join__fact { flex: 1 1 auto; min-width: 0; }
.join__links a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; line-height: 1; font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding-block: 8px; transition: opacity .3s; }
.join__links a:hover { opacity: .7; }
.join__links svg { width: 24px; height: 24px; flex-shrink: 0; }
.join__address a { text-decoration: none; }
.join__address a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.footer__meta { display: grid; gap: 4px; justify-items: end; text-align: right; }
.footer__credit { font-size: 13px; color: rgba(255,255,255,.6); }
.footer__credit a { color: rgba(255,255,255,.85); text-underline-offset: 3px; }
.footer__credit a:hover { color: #fff; }
.footer__address { font-style: normal; font-size: 14px; color: rgba(255,255,255,.8); }

@media (max-width: 768px) {
  .join__address { white-space: normal; font-size: clamp(20.28px, 5.46vw, 28.08px); }
  .join__row { flex-direction: column; text-align: center; }
  .join__links { flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   6. COMMUNITY HUB
   ========================================================= */
.hub__kicker { text-align: center; font-family: var(--f-display); font-weight: 600; font-size: clamp(14px, 1.09vw, 15.6px); letter-spacing: .06em; text-transform: uppercase; margin: calc(var(--space) * -0.5 - 4px) 0 var(--space); }
/* Up, down, up triangles that interlock; each overlaps its neighbour by half a width minus a gap */
.hub__tris { --w: clamp(202.8px, 28.86vw, 405.6px); --g: 14px; display: flex; justify-content: center; margin-bottom: var(--block-gap); }
.hub__tri { flex: 0 0 var(--w); text-align: center; }
.hub__tri + .hub__tri { margin-left: calc(var(--w) / -2 + var(--g)); }
.tri { aspect-ratio: 1 / .88; clip-path: polygon(50% 0, 100% 100%, 0 100%); overflow: hidden; background: #ddd; }
.tri--down { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tri img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(1.35) contrast(1.04); transition: transform 1.2s var(--ease); }
.tri--down img { object-position: 50% 30%; }
/* Per-photo framing so the key furniture lands inside the triangle */
.tri--community img { object-position: 88% 85%; }
.tri--office img { object-position: 8% 80%; }
.hub__tri:hover .tri img { transform: scale(1.04); }
.hub__tri figcaption { width: min-content; margin: 24px auto 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 0.94vw, 14.04px); line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; }
.hub__text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hub__lead { font-family: var(--f-display); font-weight: 600; font-size: clamp(20.28px, 1.87vw, 28.08px); line-height: 1.2; letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; }
.hub__text .body { color: var(--muted); max-width: 52ch; }
.hub__text .btn { margin-top: 12px; }

@media (max-width: 640px) {
  .hub__tris { flex-direction: column; align-items: center; gap: 48px; }
  .hub__tri { flex: none; width: min(320px, 100%); }
  .hub__tri + .hub__tri { margin-left: 0; }
  .tri--down { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  .hub__tri figcaption { width: auto; }
}

/* =========================================================
   7. TALK TO US
   ========================================================= */
.talk__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(37.44px, 6.24vw, 99.84px); align-items: start; }
.talk__lead { font-family: var(--f-body); font-size: clamp(16.38px, 1.48vw, 20.28px); line-height: 1.45; max-width: 26ch; }
.talk__details { margin-top: 48px; display: grid; gap: 24px; }
.talk__details dt { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.talk__details dd { margin-top: 4px; }
.talk__details a { text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 4px; }
.talk__details a:hover { color: var(--maroon); text-decoration-color: currentColor; }

.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid #767676; border-radius: 0;
  padding: 14px 16px; min-height: 54px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 48px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
.field.has-error input, .field.has-error textarea { border-color: #a4161a; box-shadow: 0 0 0 1px #a4161a; }
.field__error { font-size: 15px; color: #a4161a; min-height: 0; }
.field__error:empty { display: none; }
.form__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: 16px; color: var(--green-deep); font-weight: 600; }
.form.is-sent .form__status { color: #036b60; }
.btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 900px) { .talk__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #000; color: #fff; padding-block: 64px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.footer__logo { height: 44px; width: auto; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; }
.footer__links a { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { font-size: 14px; color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .footer__meta { justify-items: center; text-align: center; } }

/* =========================================================
   MOTION: sections and headings ease in once
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.h2 { transform: translateY(18px); transition-duration: 1.1s; }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* Section entrance: the whole section's content rises and fades in, background art follows */
  .js .section > .wrap, .js .footer > .wrap { opacity: 0; transform: translateY(64px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
  .js .section.is-in > .wrap, .js .footer.is-in > .wrap { opacity: 1; transform: none; }
  .js .section > .worship__bg, .js .section > .pastors__steeple { opacity: 0; transition: opacity 1.6s var(--ease) .1s, transform 1.8s var(--ease) .1s; }
  .js .section > .worship__bg { transform: scale(1.05); }
  .js .section > .pastors__steeple { transform: translateY(40px); }
  .js .section.is-in > .worship__bg { opacity: 1; transform: none; }
  .js .section.is-in > .pastors__steeple { opacity: .75; transform: none; }
  .js .page-title, .js .page-jump { opacity: 0; transform: translateY(16px); animation: heroIn 1.2s var(--ease) forwards; }
  .js .page-title { animation-delay: .1s; }
  .js .page-jump { animation-delay: .6s; }

  .js .hero__logo, .js .hero__about { opacity: 0; transform: translateY(16px); animation: heroIn 1.2s var(--ease) forwards; }
  .js .hero__logo { animation-delay: .15s; }
  .js .hero__about { animation-delay: .45s; }
  .js .hero__bg img { transform: scale(1.06); animation: heroBg 2.4s var(--ease) forwards; }
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroBg { to { transform: scale(1); } }

@media (max-width: 768px) {
  .worship__bg { aspect-ratio: auto; height: 80vh; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%); mask-image: linear-gradient(to top, transparent 0%, #000 30%); }
  .worship__bg img { object-position: 50% 60%; }
  .worship__bg::after { background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.85) 75%, #000 100%); }
}
@media (max-width: 560px) {
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.nav__links a[aria-current="page"] { background-size: 100% 1px; }

/* Shorter photo hero for inner pages */
.hero--page { min-height: 72dvh; }
.page-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(43.68px, 7.02vw, 102.96px); line-height: .95; letter-spacing: -0.045em;
  text-transform: uppercase; text-shadow: 0 2px 6px rgba(0,0,0,.4), 0 10px 48px rgba(0,0,0,.5);
}
.hero--page .hero__about { font-size: clamp(16.38px, 1.64vw, 23.4px); max-width: 38ch; }
.page-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.page-jump a { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-shadow: var(--shadow-text); padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.page-jump a:hover { background-size: 100% 1px; }

/* Our Story: long-form text beside a sticky photo + timeline */
.story__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(37.44px, 5.46vw, 87.36px); align-items: start; }
.story__text { display: grid; gap: 22px; max-width: 64ch; }
.story__lead { font-family: var(--f-display); font-weight: 600; font-size: clamp(18.72px, 1.72vw, 24.96px); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.story__sub { font-family: var(--f-display); font-weight: 700; font-size: clamp(15.6px, 1.33vw, 18.72px); letter-spacing: -0.01em; margin-top: 18px; }
.story__text p:not(.story__lead) { color: #2b2b2b; }
.story__side { position: sticky; top: 108px; display: grid; gap: 40px; }
.story__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid #d6d6d6; font-size: 16px; line-height: 1.45; }
.timeline li:last-child { border-bottom: 1px solid #d6d6d6; }
.timeline__date { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Our Team: reuses the pastors layout */
.team__office { text-align: center; display: grid; gap: 6px; }
.team__office .pastor__label { margin: 0 0 6px; }

/* Our Beliefs */
.beliefs__mission { text-align: center; font-size: clamp(15.6px, 1.4vw, 20.28px); margin-top: calc(var(--space) * -0.5); margin-bottom: clamp(28.08px, 3.12vw, 43.68px); }
.beliefs__mission strong { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.beliefs__intro { max-width: 62ch; margin: 0 auto var(--block-gap); display: grid; gap: 20px; text-align: center; font-size: clamp(14.04px, 1.13vw, 16.38px); line-height: 1.65; }
.statement { max-width: 68ch; margin: 0 auto var(--block-gap); }
.statement__lead { text-align: center; font-family: var(--f-body); font-style: italic; font-size: clamp(18.72px, 1.72vw, 24.96px); margin: 20px 0 32px; }
.statement__list { display: grid; }
.statement__list li { padding-block: 24px; border-top: 1px solid rgba(255,255,255,.3); font-size: clamp(14.04px, 1.13vw, 16.38px); line-height: 1.65; }
.statement__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.3); }
.beliefs__values-title { margin-bottom: 40px; }

/* Closing call to visit */
.about-cta__text { font-size: clamp(14.82px, 1.25vw, 17.94px); max-width: 40ch; margin: calc(var(--space) * -0.5) auto 40px; }
.about-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; }
.about-cta .text-link { font-size: 18px; }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__side { position: static; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Team: staff and emeritus pastors under the two co-pastors */
/* Staff photos use the exact same size as the two pastor photos */
.team__grid { --photo: clamp(187.2px, 14.82vw, 234px); display: grid; grid-template-columns: repeat(3, var(--photo)); justify-content: center; gap: 72px clamp(31.2px, 4.68vw, 74.88px); margin: 0 auto var(--block-gap); }
.member { text-align: center; }
.member__photo { aspect-ratio: 560 / 526; width: 100%; margin: 0 auto 32px; background: #c4c4c4; display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo span { font-family: var(--f-display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; color: #9d9d9d; }
.member__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(16.38px, 1.33vw, 19.5px); letter-spacing: -0.02em; line-height: 1.15; }
.member__role { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 10px; }
.member__bio { font-size: 16px; line-height: 1.6; color: #2b2b2b; max-width: 32ch; margin-inline: auto; }
.board { text-align: center; margin-bottom: var(--block-gap); }
.board .pastor__label { margin: 0 0 16px; }
.board__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; max-width: 900px; margin-inline: auto; font-size: 17px; }
.board__list span { color: #555; font-size: 15px; }
@media (max-width: 1080px) { .team__grid { grid-template-columns: repeat(2, var(--photo)); } }
@media (max-width: 640px) { .team__grid { grid-template-columns: min(300px, 100%); gap: 64px; } }
/* Taller team section: keep the steeple drawing the same size as on the home page */
.team .pastors__steeple { height: min(74%, 820px); top: auto; }

/* Inner pages: the logo always shows (top left) and links home */
.nav--inner .nav__brand { opacity: 1; visibility: visible; filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
.nav--inner.is-solid .nav__brand { filter: none; }
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .section.is-in > .pastors__steeple { opacity: .45; }
}
