/* The Word Embassy Church — styles
   Direction: warm and cinematic. Deep purple-black panels, candle-gold light,
   cream accents and thin, airy type. */

:root {
  --night: #120A1C;          /* deep purple-black: hero, dark sections */
  --night-2: #1C1129;        /* raised dark surfaces */
  --night-3: #0B0612;        /* darkest tile */
  --cream: #EFE3C6;          /* buttons, tiles, text on dark */
  --cream-2: #E3D2A8;
  --gold: #C9A24A;
  --gold-ink: #8A6516;       /* gold text on light */
  --purple: #3A1D63;         /* scripture on light */
  --white: #FFFFFF;
  --paper: #F6F1E7;          /* prayer section */
  --ink: #1A1224;
  --ink-soft: #5E566B;
  --line: #E6E0D6;
  --on-dark: rgba(239, 227, 198, .9);
  --on-dark-soft: rgba(239, 227, 198, .64);
  --line-dark: rgba(239, 227, 198, .14);

  --sans: "Poppins", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.2rem + 2vw, 2.9rem);
  --step-4: clamp(1.95rem, 1.2rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.55rem, 1.2rem + 5vw, 6.25rem);

  --ease: cubic-bezier(.16, 1, .3, 1);      /* long, soft settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --header-h: 5.5rem;
  --section: clamp(5rem, 10vw, 9.5rem);

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
blockquote { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  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(--cream); color: var(--night); padding: .7rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
a[href^="tel:"] { white-space: nowrap; }

/* Arrow and star glyphs (drawn with CSS masks) */
.arrow::after {
  content: "";
  display: inline-block;
  width: .8em; height: .8em;
  margin-left: .4em;
  vertical-align: -0.04em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
  transition: transform .2s ease;
}
.arrow:hover::after { transform: translate(2px, -2px); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 3.25rem;
  padding: .8rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 .98rem/1.2 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .4s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-cream { background: var(--cream); color: var(--night); }
.btn-cream:hover { background: var(--white); }
.btn-dark { background: var(--night); color: var(--cream); }
.btn-dark:hover { background: var(--purple); }
.btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .35em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color .35s ease, height .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  --header-h: 4.5rem;
  background: rgba(18, 10, 28, .94);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand {
  display: flex; align-items: center; gap: .9rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--cream);
}
.brand img { width: 46px; height: 46px; flex: none; }
.brand-name { font-size: 1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.brand-name small { display: block; margin-top: .2rem; font-size: .8rem; font-weight: 500; color: var(--on-dark-soft); letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .5em; }
.nav-live a {
  display: inline-flex; align-items: center;
  transition: background-color .45s var(--ease), color .45s var(--ease);
  padding: .55rem 1.1rem;
  background: var(--cream);
  color: var(--night);
  font-weight: 600;
  border-radius: 2px;
}
.nav-live a:hover { background: var(--white); color: var(--night); }

.header-socials { display: flex; gap: .45rem; }
.header-socials a,
.socials a {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--night);
  transition: background-color .2s ease;
}
.header-socials a:hover,
.socials a:hover { background: var(--white); }
.header-socials svg,
.socials svg { width: 1.05rem; height: 1.05rem; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: .5rem;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(36rem, calc(100svh - 11rem));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 36% 28%;
  transform: scaleX(-1);  /* he faces toward the headline */
  filter: sepia(.12) saturate(1.05) brightness(.95) contrast(1.04);
  animation: lights-up 2.8s var(--ease) both;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 65% at 78% 22%, rgba(240, 178, 82, .4), transparent 70%);
  mix-blend-mode: screen;
  opacity: .8;
  animation: glow-in 3.2s var(--ease) .25s backwards;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,10,28,.96) 0%, rgba(18,10,28,.8) 34%, rgba(18,10,28,.22) 64%, rgba(18,10,28,.42) 100%),
    linear-gradient(0deg, rgba(18,10,28,.9) 0%, transparent 38%),
    linear-gradient(180deg, rgba(18,10,28,.55) 0%, transparent 22%);
}
.hero-inner {
  width: 100%;
  padding-block: calc(var(--header-h) + 5rem) clamp(3rem, 6vw, 5.5rem);
}
.hero h1 {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 9.5ch;
  margin-bottom: .32em;
  color: #F7EEDA;
}
.hero-lede {
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero-actions .text-link { color: var(--cream); }
/* Opening: the light comes up, then the headline rises out of its own line, then the rest */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.3s var(--ease) .35s both; }
.hero h1 .line + .line > span { animation-delay: .47s; }
.hero-lede, .hero-actions { animation: rise 1.2s var(--ease) .75s both; }
.hero-actions { animation-delay: .87s; }
@keyframes lights-up {
  from { opacity: 0; transform: scaleX(-1) scale(1.06); filter: brightness(.4); }
  to   { opacity: 1; transform: scaleX(-1) scale(1); }
}
@keyframes glow-in { from { opacity: 0; translate: 8% -6%; scale: .85; } }
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

.nav li:nth-child(1) { --i: 0; } .nav li:nth-child(2) { --i: 1; } .nav li:nth-child(3) { --i: 2; } .nav li:nth-child(4) { --i: 3; }
.nav li:nth-child(5) { --i: 4; } .nav li:nth-child(6) { --i: 5; } .nav li:nth-child(7) { --i: 6; } .nav li:nth-child(8) { --i: 7; }

/* ---------- Strip under the hero ---------- */
.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 15.5rem;
  background: var(--night);
}
.strip > * { position: relative; overflow: hidden; }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; filter: saturate(.92); }
.strip-quote {
  background: var(--night-3);
  color: var(--on-dark);
  padding: 2.25rem clamp(1.5rem, 2.6vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
}
.strip-quote blockquote { font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; max-width: 30ch; color: var(--cream); }
.strip-card {
  background: var(--white);
  color: var(--ink);
  padding: 2rem clamp(1.5rem, 2.4vw, 2.75rem);
  display: flex; flex-direction: column;
}
.next-label { font-size: .9rem; color: var(--ink-soft); margin-bottom: .55rem; }
.next-date { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: .5rem; }
.next-time { font-size: .95rem; color: var(--ink-soft); margin-bottom: .1rem; }
.next-count { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.next-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: auto; }
.next-links a { font-weight: 600; font-size: .98rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.next.is-live .next-label::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem;
  border-radius: 50%; background: #C0392B; vertical-align: .05em;
}

/* ---------- About ---------- */

.statement {
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 26ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ink);
}
/* the two columns sit under the second half of the statement, not flush left like every other section */
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  width: min(100%, 64rem);
  margin-left: auto;
  color: var(--ink-soft);
}
.about-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); margin: 0; }
.about-cols .verse { margin: 0; }

/* Scripture */
.verse blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--purple);
}
.verse figcaption { margin-top: .9rem; font-size: .92rem; font-weight: 600; color: var(--gold-ink); }

/* ---------- Apostle ---------- */
.apostle { background: var(--night); color: var(--on-dark-soft); }
.apostle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
}
.apostle-photo figcaption { margin-top: .9rem; font-size: .9rem; color: var(--on-dark-soft); }
.apostle-frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); max-height: 78svh; }
.apostle-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.42);
  transform-origin: 50% 0;
  filter: saturate(.92);
}
.apostle-copy { max-width: 38rem; }
.pull { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pull blockquote {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.pull figcaption { margin-top: 1rem; font-size: .92rem; color: var(--on-dark-soft); }
.apostle h2 { font-size: var(--step-3); color: var(--cream); margin-bottom: .2em; }
.role { color: var(--gold); font-weight: 600; margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.apostle .text-link { color: var(--cream); }

/* ---------- Gatherings ---------- */
.gatherings-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.gatherings-title { position: sticky; top: 7rem; margin: 0; }
.timetable { list-style: none; margin: 0; padding: 0; }
.timetable li {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: .5rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.timetable li:last-child { border-bottom: 1px solid var(--line); }
.when { margin: 0; font-size: .95rem; line-height: 1.4; }
.when b { display: block; font-size: var(--step-1); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.timetable h3 { font-size: var(--step-1); font-weight: 700; color: var(--ink); margin-bottom: .3em; }
.timetable p:not(.when) { margin: 0; max-width: 48ch; }

/* ---------- Watch ---------- */
.watch { background: var(--night); color: var(--on-dark-soft); }
.watch h2, .testimony h2 { color: var(--cream); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: .3em; }
.section-head p { margin: 0; max-width: 40ch; }

.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-3); }
.video-btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-btn:hover img { transform: scale(1.03); }
.video-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fade-in .8s ease both; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 3.75rem; height: 3.75rem;
  translate: -50% -50%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--night);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  transition: transform .6s var(--ease);
}
.play svg { width: 1.2rem; height: 1.2rem; margin-left: .15rem; }
.video-btn:hover .play { transform: scale(1.08); }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.featured-meta .date { color: var(--gold); font-size: .92rem; font-weight: 600; }
.featured-meta h3 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--cream); margin-bottom: .6em; }
.featured-meta strong { color: var(--cream); font-weight: 600; }

.sermon-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.sermon h3 { margin: 1rem 0 .25rem; font-size: 1.05rem; font-weight: 600; color: var(--cream); transition: color .2s ease; }
.sermon:hover h3 { color: var(--white); }
.sermon .date { margin: 0; font-size: .88rem; }
.sermon .play { width: 2.9rem; height: 2.9rem; }
.sermon .play svg { width: 1rem; height: 1rem; }

/* ---------- Testimony ---------- */
.testimony { background: var(--night); color: var(--on-dark-soft); padding-top: 0; }
.testimony > .wrap { padding-top: clamp(1rem, 3vw, 3rem); }
.verse.verse-large { text-align: center; max-width: 52rem; margin: 0 auto clamp(3.5rem, 7vw, 6rem); }
.verse.verse-large blockquote { font-size: var(--step-4); line-height: 1.12; color: var(--cream); letter-spacing: -0.02em; }
.verse.verse-large figcaption { color: var(--gold); margin-top: 1.5rem; }
.testimony-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.testimony h2 { font-size: var(--step-3); }
.testimony-copy p { max-width: 42ch; }

/* ---------- Visit ---------- */
.visit.section { position: relative; padding: 0; }
.visit-layer {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center;
  pointer-events: none;
}
.visit-card {
  pointer-events: auto;
  width: min(100%, 27rem);
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 0 30px 60px -30px rgba(18, 10, 28, .45);
}
.visit-card h2 { font-size: var(--step-3); }
.address { font-size: var(--step-1); font-weight: 600; line-height: 1.4; margin-bottom: 1.5rem; }
.expect { list-style: none; margin: 1.75rem 0 0; padding: 0; color: var(--ink-soft); font-size: .95rem; }
.expect li + li { margin-top: .75rem; }
.expect strong { color: var(--ink); font-weight: 700; }
.map { height: clamp(34rem, 72vh, 46rem); background: var(--paper); }
.map iframe { width: 100%; max-width: none; height: 100%; border: 0; }

/* ---------- Prayer ---------- */
.prayer { background: var(--paper); }
.prayer-column { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; }
.prayer-head { color: var(--ink-soft); margin-bottom: clamp(2rem, 4vw, 3rem); }
.prayer-head h2 { color: var(--ink); }
.form { display: grid; gap: 1.5rem; background: var(--white); padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #D6CEC1;
  border-radius: 2px;
  padding: .85rem 1rem;
  transition: border-color .2s ease;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #A3341F; }
.field-error { color: #A3341F; font-size: .9rem; margin: .4rem 0 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .98rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--night); flex: none; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.form-status { margin: 0; padding: 1rem 1.25rem; background: var(--paper); border-left: 2px solid var(--gold); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-soft); }
.footer-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: clamp(4rem, 7vw, 6rem) clamp(2rem, 3.5vw, 3rem);
}
.footer-head h2 { font-size: var(--step-4); color: var(--cream); margin: 0; }
.footer-head p { margin: 0; font-size: var(--step-1); max-width: 40ch; }

/* Four ways to reach the church, as one row of tiles split by hairlines */
.contact-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.contact-tiles li { display: flex; background: var(--night); }
.tile {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem 3.25rem 1.85rem 1.75rem;
  text-decoration: none;
  white-space: normal !important; /* beats the global a[href^="tel:"] nowrap */
  color: var(--on-dark-soft);
  transition: background-color .4s var(--ease);
}
.tile:hover { background: var(--night-2); }
.tile.arrow::after { position: absolute; top: 1.85rem; right: 1.6rem; margin: 0; color: var(--cream); }
.tile-label { font-size: .88rem; font-weight: 600; color: var(--gold); padding-bottom: 1.6rem; }
.tile-value {
  font-size: clamp(1.1rem, .95rem + .45vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.tile[href^="tel:"] .tile-value { white-space: nowrap; overflow-wrap: normal; }
.tile-note { font-size: .9rem; line-height: 1.45; }

.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.footer-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--cream); margin-right: auto; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand span { font-weight: 700; line-height: 1.25; }
.footer-brand small { display: block; font-size: .85rem; font-weight: 500; color: var(--on-dark-soft); }
.footer-follow { margin: 0; font-size: .92rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }

.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .88rem;
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--cream); }

/* ---------- Responsive ---------- */
/* the email addresses need about 22rem a tile, so four across only on very wide screens */
@media (max-width: 1640px) {
  .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  .sermon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sermon-grid > :nth-child(n+7) { display: none; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-toggle .bar { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease), opacity .3s ease; }
  .nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; transform: translateX(4px); }
  .nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.is-open { display: block; animation: unroll .6s var(--ease) both; }
  .nav.is-open li { animation: menu-item .6s var(--ease) backwards; animation-delay: calc(.06s + var(--i) * .035s); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .nav li a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-dark); }
  .nav-live { margin-top: 1.25rem; }
  .nav .nav-live a { display: flex; justify-content: center; padding: .9rem 1rem; border: 0; }
  .header-inner { gap: 1rem; }

  .strip { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .strip > * { min-height: 15rem; }
  .strip-card { grid-column: 1 / -1; min-height: 0; }

  .apostle-grid, .gatherings-grid, .testimony-grid, .featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-cols { width: 100%; }
  .apostle-photo { max-width: 34rem; }
  .gatherings-title { position: static; }
}

@media (max-width: 720px) {
  :root {
    --header-h: 4.25rem;
    --section: 4rem;
    --step-3: 1.6rem;
    --step-4: 1.8rem;
    --step-5: clamp(2.5rem, 1.6rem + 4vw, 3rem);
  }
  .site-header.is-solid { --header-h: 4.25rem; }
  .brand { gap: .7rem; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .95rem; }
  .brand-name br { display: none; }
  .brand-name small { margin-top: .1rem; font-size: .75rem; }
  .header-socials { display: none; }
  .nav-toggle { margin-right: -.5rem; }

  /* Phone hero: the photo sits as a band across the top at a sensible crop,
     and the headline starts where it fades into the night background. */
  .hero { display: block; min-height: 0; }
  .hero-media, .hero-glow, .hero::before { bottom: auto; height: 22rem; }
  .hero-bg { object-position: 74% 0; } /* face on the right, curtain behind the headline */
  .hero-glow { background: radial-gradient(ellipse 70% 55% at 72% 25%, rgba(240, 178, 82, .32), transparent 70%); }
  .hero::before {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(18,10,28,.82) 22%, rgba(18,10,28,0) 58%),
      linear-gradient(180deg, rgba(18,10,28,.6) 0%, rgba(18,10,28,0) 30%);
  }
  .hero-inner { padding-block: 16rem 3rem; }
  .hero h1 { max-width: none; }
  .hero-lede { font-size: 1.2rem; margin-bottom: 1.75rem; }
  .hero-lede br { display: none; }
  .hero-actions { gap: 1rem 1.5rem; }

  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > * { min-height: 0; }
  .strip-photo { aspect-ratio: 16 / 10; }

  .statement { letter-spacing: -0.03em; margin-bottom: 2rem; }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .about-lead { font-size: 1.12rem; }

  .apostle-grid { gap: 2.5rem; }
  .pull { margin-bottom: 2.5rem; }
  .pull blockquote { font-size: 1.4rem; }
  .verse.verse-large { margin-bottom: 2.5rem; }
  .verse.verse-large blockquote { font-size: 1.6rem; }

  .visit-layer { position: static; display: block; padding-block: 3rem 2rem; }
  .visit-card { width: 100%; padding: 0; box-shadow: none; }

  .timetable li { grid-template-columns: minmax(0, 1fr); padding-block: 1.25rem; }

  .featured { margin-bottom: 2.5rem; }
  .sermon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .sermon-grid > :nth-child(n+5) { display: none; }
  .sermon h3 { margin-top: .65rem; font-size: .92rem; line-height: 1.3; }
  .sermon .date { font-size: .8rem; }
  .sermon .play { width: 2.3rem; height: 2.3rem; }
  .sermon .play svg { width: .8rem; height: .8rem; }

  .form { padding: 1.25rem; gap: 1.25rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }

  .footer-head { padding-block: 3.5rem 1.5rem; }
  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 1.25rem; }
  .tile-label { padding-bottom: .5rem; }
  .tile-value { font-size: 1.1rem; }
  .footer-brand { margin-right: 0; width: 100%; }
  .map { height: 20rem; }
}

@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menu-item { from { opacity: 0; transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
