/* The People's Church — site styles */

:root {
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #7a7a7a;
  --line: #e2e0dc;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; } /* arriving via #hash lands below the fixed header */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.display { font-size: clamp(64px, 11vw, 176px); line-height: .88; letter-spacing: -0.03em; font-weight: 300; }
.h1 { font-size: clamp(52px, 8vw, 120px); line-height: .92; letter-spacing: -0.025em; font-weight: 300; }
.h2 { font-size: clamp(40px, 5.2vw, 78px); line-height: .98; letter-spacing: -0.02em; font-weight: 300; }
.h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; font-weight: 400; }
em, .italic { font-style: italic; }
/* Even line breaks: no single word stranded on its own line */
h1, h2, h3, .display, .h1, .h2, .h3, .row__title { text-wrap: balance; }
p { text-wrap: pretty; }
/* A break after a comma, switched on by main.js only when the headline wraps anyway */
.comma-br { display: none; }
.has-comma-break .comma-br { display: inline; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 22px;
}
.lead { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; color: var(--ink-soft); font-weight: 300; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #f2f0ec; }
.section--ink .eyebrow { color: #9a9894; }
.section--ink .lead { color: #cfcdc8; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px; letter-spacing: .06em; text-transform: lowercase;
  text-decoration: none; font-weight: 400;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--ink .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arrow { transform: translateX(5px); }
.text-link {
  text-decoration: none; font-weight: 400; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  display: inline-flex; gap: 10px;
}
.text-link, .row__meta > a, .row__link > a, .story__account { position: relative; }
.text-link::before, .row__meta > a::before, .row__link > a::before, .story__account::before {
  content: ""; position: absolute; inset: -12px -8px; } /* larger tap area for standalone links, nothing visible */

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .55s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { font-family: var(--serif); font-size: 28px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-size: 15px; position: relative; }
.nav a:not(.btn) { font-weight: 400; } /* one step bolder than body text */
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px; font-size: 13px; }
.nav__home { display: none; } /* phone menu only */
.site-header.is-solid, body.no-hero .site-header {
  background: rgba(255,255,255,.96); color: var(--ink);
  backdrop-filter: blur(10px); border-bottom-color: var(--line);
}
.site-header.is-solid .btn--light, body.no-hero .site-header .btn--light { color: var(--ink); }
.site-header.is-solid .btn--light:hover, body.no-hero .site-header .btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Menu button: two fine lines (the lower one shorter) that cross into an X when the menu is open */
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle__icon { position: relative; display: block; width: 26px; height: 9px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: top .45s var(--ease), width .45s var(--ease), transform .45s var(--ease);
}
.menu-toggle__icon::before { top: 0; width: 100%; }
.menu-toggle__icon::after { top: 7.5px; width: 62%; }
.menu-toggle:hover .menu-toggle__icon::after { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 3.75px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 3.75px; width: 100%; transform: rotate(-45deg); }
.menu-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; } /* answers taps at once */
.menu-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 50%; }
body.no-hero main { padding-top: 84px; }
@media (max-width: 760px) { /* phones: a slimmer header */
  .site-header .wrap { height: 66px; }
  .brand { font-size: 24px; }
  body.no-hero main { padding-top: 66px; }
  section[id] { scroll-margin-top: 66px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); color: #fff;
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 var(--gutter); gap: 8px;
    visibility: hidden;
    /* opens as a black circle growing out of the menu button, closes back into it */
    clip-path: circle(0px at var(--ox, calc(100% - 36px)) var(--oy, 33px));
    transition: clip-path .75s cubic-bezier(.76,0,.24,1), visibility 0s linear .75s;
  }
  /* the links rise in one after another once the black has spread */
  .nav > a { opacity: 0; transform: translateY(26px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  body.menu-open .nav > a { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s cubic-bezier(.2,.8,.2,1); }
  body.menu-open .nav > a:nth-child(1) { transition-delay: .28s; }
  body.menu-open .nav > a:nth-child(2) { transition-delay: .33s; }
  body.menu-open .nav > a:nth-child(3) { transition-delay: .38s; }
  body.menu-open .nav > a:nth-child(4) { transition-delay: .43s; }
  body.menu-open .nav > a:nth-child(5) { transition-delay: .48s; }
  body.menu-open .nav > a:nth-child(6) { transition-delay: .53s; }
  body.menu-open .nav > a:nth-child(7) { transition-delay: .58s; }
  body.menu-open .nav > a:nth-child(8) { transition-delay: .66s; }
  .nav a:not(.btn) { font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: 1.15; }
  .nav .nav__home { display: inline; }
  .nav .btn { margin-top: 24px; color: #fff; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { visibility: visible; clip-path: circle(150vmax at var(--ox, calc(100% - 36px)) var(--oy, 33px)); transition: clip-path .85s cubic-bezier(.76,0,.24,1), visibility 0s; }
  body.menu-open .site-header { color: #fff; background: transparent; border-color: transparent; backdrop-filter: none; }
  body.menu-open .brand { position: relative; z-index: 2; }
  body.menu-open .site-header .brand { transition: color .3s var(--ease) .2s; } /* opening the menu: turns white as the black reaches it, not before (only then, so scrolling isn't slowed) */
  /* the menu's "visit" is the one big call to action: a solid white bar across the screen */
  body.menu-open .site-header .nav .btn--light {
    align-self: stretch; justify-content: center; margin-top: 36px;
    padding: 19px 28px; font-size: 18px; letter-spacing: .03em;
    background: #fff; color: var(--ink); border-color: #fff;
  }
  body.menu-open .site-header .nav .btn--light:hover { background: transparent; color: #fff; }
  body.menu-open .site-header { transform: none; transition: none; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.8) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; padding-bottom: clamp(36px, 6vw, 72px); padding-top: 140px; }
.hero__title { max-width: 12ch; }
/* Homepage hero: weekly gatherings as "stories" */
.hero--stories { --story-duration: 6s; } /* zoom matches, so the outgoing photo ends at rest */
.hero--stories .hero__media img {
  position: absolute; inset: 0;
  opacity: 0; animation: none; transform: scale(1);
  transition: opacity 1.2s var(--ease);
}
.hero--stories .hero__media img.is-active {
  opacity: 1; transform: scale(1.08);
  animation: heroZoom var(--story-duration) linear forwards;
}
.hero__meta {
  margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 24px);
}
.hero__story {
  display: block; width: 100%; padding: 0 0 4px; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  opacity: .55; transition: opacity .5s var(--ease);
}
.hero__story:hover, .hero__story.is-active { opacity: 1; }
.hero__bar { display: block; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; margin-bottom: 22px; border-radius: 2px; }
.hero__fill { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__story.is-done .hero__fill { transform: scaleX(1); }
.hero__story.is-active .hero__fill { animation: storyFill var(--story-duration, 6s) linear forwards; }
.hero--stories.is-paused .hero__story.is-active .hero__fill,
.hero--stories.is-paused .hero__media img.is-active { animation-play-state: paused; }
@keyframes storyFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__label { display: block; font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.hero__time { display: block; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.hero__caption { display: none; }
.hero--stories .hero__content { text-align: center; }
.hero--stories .hero__content { position: static; padding-top: 0; }
.hero--stories .hero__heading {
  position: absolute; left: 0; right: 0; top: 42%; transform: translateY(-50%);
  padding: 0 var(--gutter); z-index: 1;
}
.hero--stories .hero__meta { margin-top: 0; position: relative; z-index: 1; }
.hero--stories .hero__caption { position: relative; z-index: 1; }
.hero--stories .hero__media::after {
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.48) 60%, rgba(0,0,0,.85) 100%);
}
.hero--stories .hero__title { margin-left: auto; margin-right: auto; max-width: none; font-size: clamp(56px, 8.4vw, 120px); }
.hero--stories .hero__story { text-align: center; }
@media (max-width: 760px) {
  .hero__meta { margin-top: 36px; }
  .hero__bar { margin-bottom: 0; }
  .hero__story { padding: 20px 0; } /* a comfortable tap target around the thin bar */
  .hero__story .hero__label, .hero__story .hero__time { display: none; }
  .hero__caption { display: block; margin-top: 14px; min-height: 3.2em; }
}

/* Page hero (inner pages) */
.page-hero .hero__media::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.05) 80%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.8) 100%);
}
.page-hero { position: relative; min-height: 78svh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.page-hero .hero__content { padding-top: 160px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 50ch; margin-top: 28px; }
.page-intro { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 70px); }
.page-intro .lead { max-width: 54ch; margin-top: 28px; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--top { align-items: start; }
/* Giving: title on its own row, so the EFT details start level with the text under it */
.give-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 120px); row-gap: 28px; align-items: start; }
.give-grid__head { grid-column: 1; }
.give-grid__text { grid-column: 1; grid-row: 2; }
.give-grid__eft { grid-column: 2; grid-row: 2; }
.give-grid__eft .eyebrow { margin-bottom: 18px; }
@media (max-width: 860px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-grid__text, .give-grid__eft { grid-column: 1; grid-row: auto; }
}
.split--wide-img { grid-template-columns: 1.25fr 1fr; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split--wide-img { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.statement { max-width: 18ch; }
/* Home vision (version 2): a centred statement whose words fill in as it arrives; its last
   word rolls through Word, People, Table, Presence by itself (no pinning).
   Without JS or with reduced motion it is a normal section reading the whole sentence. */
.vision2 { position: relative; background: var(--paper); overflow: hidden; }
/* dappled light behind the vision statement: wall, shade and sun colours, and how strong the shade is */
[data-dapple] { --dapple-wall: #ffffff; --dapple-shade: #d8d5cb; --dapple-light: #ffffff; --dapple-strength: 1; }
.dapple { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cta[data-dapple] { position: relative; overflow: hidden; background: var(--paper); }
/* the closing invitations share one height (taller than a normal section), content centred */
.cta[data-dapple] { min-height: clamp(640px, 90vh, 860px); min-height: clamp(640px, 90svh, 860px); padding: clamp(64px, 8vw, 96px) 0; display: flex; align-items: center; }
.cta[data-dapple] > .wrap { position: relative; width: 100%; }
@media (max-width: 760px) { .cta[data-dapple] { min-height: clamp(560px, 80svh, 700px); } }
.vision2__stage { position: relative; }
.vision2__stage { padding: clamp(90px, 12vw, 160px) 0; }
.vision2__inner { display: flex; flex-direction: column; }
.vision2__statement { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5.2vw, 88px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.vision2__line { display: block; }
.vision2__statement { text-align: center; }
.vision2__fill { transition: opacity .2s linear; }
.vision2 { --vlh: 1.3; } /* the statement's line height; the rolling word's slot follows it */
.vision2.is-live .vision2__statement { line-height: var(--vlh); }
.vision2.is-live .vision2__words { display: inline-block; vertical-align: top; height: calc(var(--vlh) * 1em); clip-path: inset(0 -50vw); text-align: left; transition: opacity .2s linear; } /* clips above and below only, so longer words can run past the slot */
.vision2__foot { display: flex; justify-content: center; align-items: flex-end; gap: 40px; margin-top: clamp(36px, 6vh, 72px); }
.vision2__verse { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.vision2__verse .quote { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.3; margin: 0; }
.vision2__verse .quote__ref { display: inline; margin-left: .6em; }
.vision2.is-live .vision2__stage { min-height: 100vh; min-height: 100svh; padding: clamp(80px, 10vh, 120px) 0; display: flex; align-items: center; }
.vision2.is-live .vision2__inner { width: 100%; }
.vision2__reel { display: block; transition: transform .7s cubic-bezier(.77,0,.175,1); }
.vision2__reel em { display: block; width: max-content; height: calc(var(--vlh) * 1em); padding-right: .06em; }
.vision2.is-live .vision2__foot { margin-top: clamp(24px, 4vh, 44px); }
.vision2__verse .quote { white-space: nowrap; } /* the verse on one line under the statement */
@media (max-width: 760px) { .vision2__verse .quote { white-space: normal; } .vision2__statement { font-size: clamp(40px, 11.5vw, 56px); } .vision2 { --vlh: 1.08; } }
@media (max-width: 760px) {
  .vision2.is-live .vision2__foot { flex-direction: column; align-items: center; gap: 28px; }
}
.stack > * + * { margin-top: 28px; }

.img-frame { position: relative; overflow: hidden; background: var(--sand); }
/* Parallax: photos are 20% taller than their frame and drift via the `translate` property (set in main.js);
   the hover zoom uses `scale`, so the two never fight. */
.img-frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; transition: scale 1.2s var(--ease); will-change: translate; }
.img-frame:hover img { scale: 1.03; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 4 / 3; }
.ratio-wide { aspect-ratio: 16 / 9; }

.full-bleed { position: relative; min-height: 92svh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.full-bleed > img { position: absolute; left: 0; right: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: translate; }
.full-bleed::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.8) 100%);
}
.full-bleed .eyebrow, .hero .eyebrow, .page-hero .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.full-bleed .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 96px); }
.full-bleed .lead { color: rgba(255,255,255,.88); max-width: 50ch; margin-top: 20px; }

/* Times grid */
.times { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.time { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
.time + .time { padding-left: 28px; border-left: 1px solid var(--line); }
.time .h3 { margin: 6px 0 12px; }
.time p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 960px) {
  .times { grid-template-columns: 1fr 1fr; }
  .time:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) { /* two across on phones, so the four times sit in one compact block */
  .time { padding: 24px 16px 24px 0; }
  .time + .time { padding-left: 0; border-left: 0; }
  .time:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .time .h3 { font-size: clamp(24px, 7vw, 30px); }
  .time p { font-size: 14px; }
}

/* Cards / list rows */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { text-decoration: none; display: block; }
.card .img-frame { margin-bottom: 22px; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 600px) { /* phones: each card becomes a compact row, photo beside its title */
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 20px; }
  .card .img-frame { grid-row: 1 / -1; margin: 0; }
  .card .eyebrow { grid-column: 2; grid-row: 2; margin-bottom: 8px; }
  .card .h3 { grid-column: 2; grid-row: 3; margin: 0; font-size: clamp(24px, 7vw, 30px); }
}

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.row__date { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.row__title { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.row__body { color: var(--ink-soft); font-size: 15px; margin-top: 10px; max-width: 60ch; }
.row__meta { font-size: 14px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.section--ink .rows, .section--ink .row { border-color: rgba(255,255,255,.18); }
.section--ink .row__body, .section--ink .row__meta { color: #cfcdc8; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row__meta { text-align: left; }
}

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }

/* Instagram feed */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, .8vw, 12px); }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #222; }
.ig-tile__media { position: absolute; inset: 0; overflow: hidden; background: #222; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.04); filter: grayscale(0); } /* black & white until hovered, then full colour */
.ig-tile__caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff; font-size: 13px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-tile:hover .ig-tile__caption, .ig-tile:focus-visible .ig-tile__caption { opacity: 1; transform: none; }
.ig-tile__play { position: absolute; top: 12px; right: 12px; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
/* Desktop hover: a white card grows in behind the photo, with the caption in black below it.
   Phones (no hover) are unchanged. */
@media (hover: hover) and (min-width: 761px) {
  .ig-tile { overflow: visible; background: none; z-index: 0; transition: z-index 0s .45s; }
  .ig-tile:hover, .ig-tile:focus-visible { z-index: 5; transition: z-index 0s; }
  .ig-tile::before {
    content: ""; position: absolute; inset: -16px -16px -112px; background: #fff;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    opacity: 0; transform: scale(.92); transform-origin: 50% 30%;
    transition: opacity .45s var(--ease), transform .55s var(--ease);
  }
  .ig-tile:hover::before, .ig-tile:focus-visible::before { opacity: 1; transform: none; }
  .ig-tile__media { z-index: 1; }
  .ig-tile__caption {
    inset: calc(100% + 16px) 0 auto; padding: 0; background: none; z-index: 1;
    color: var(--ink); font-size: 14px; line-height: 1.45;
  }
  .ig-tile:focus-visible { outline: none; }
}

/* Event rows: date | time | name | link */
.row--event { grid-template-columns: 150px 170px 1fr auto; align-items: baseline; }
.row__time { font-size: 15px; color: var(--ink-soft); }
.row__link { font-size: 14px; white-space: nowrap; text-align: right; }
.row__link a { color: inherit; }
@media (max-width: 760px) {
  .row--event { grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; }
  .row--event > div { grid-column: 1 / -1; }
  .row--event .row__link { grid-column: 1 / -1; text-align: left; }
  .row--event .row__link:empty { display: none; }
}
/* Scripture line under a lead paragraph */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--ink); }
.quote__ref { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* This Sunday (from the planning sheet) above the service times */
.this-sunday:not(:empty) + .times { border-top: 0; } /* share the row's bottom line */
.this-sunday:empty { display: none; }
.this-sunday .row { grid-template-columns: 240px 1fr auto; }
@media (max-width: 760px) { .this-sunday .row { grid-template-columns: 1fr; } }

.events-empty { padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.events-empty a { color: inherit; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.pillar { padding: 40px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.pillar .num { font-size: 13px; color: #9a9894; letter-spacing: .14em; }
.pillar .h3 { margin-top: 18px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Four boxes on a dark section (About: the four pillars) */
.times--ink, .times--ink .time { border-color: rgba(255,255,255,.18); }
.times--ink .time .h3 { margin: 0 0 12px; }
.times--ink .time p { color: #cfcdc8; }

/* About: the four pillars, each paired with its phrase from Acts 2:42 */
.verse-pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid rgba(255,255,255,.18); }
.verse-pillar:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.verse-pillar__name { font-size: clamp(36px, 4.6vw, 68px); font-weight: 300; line-height: 1; margin: 0; }
.verse-pillar__line { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; color: #cfcdc8; }
.verse-pillars__cite { margin: 22px 0 0; text-align: right; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #9a9894; }
@media (max-width: 760px) { .verse-pillar { grid-template-columns: 1fr; gap: 10px; } .verse-pillars__cite { text-align: left; } }

/* About: governance */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px) clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.gov__block .h3 { margin-bottom: 16px; }
.gov__block p { color: var(--ink-soft); }
.gov__names { font-size: 14px; letter-spacing: .04em; color: var(--muted) !important; }
.gov__people { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.person { margin: 0; }
.person figcaption { display: grid; gap: 2px; margin-top: 14px; }
.person__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.person__role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .gov { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gov__people { grid-template-columns: 1fr 1fr; } }

/* About: Our story — a timeline. Default (no JS, phones, reduced motion): a vertical timeline
   with a line and dots. On wide screens main.js adds .is-horizontal: the stage pins and the
   chapters travel sideways as you scroll, with outlined years drifting behind. */
.story { background: var(--ink); color: #f2f0ec; padding: clamp(90px, 11vw, 160px) 0 clamp(70px, 8vw, 120px); }
.story .eyebrow { color: #9a9894; }
.story .lead { color: #cfcdc8; max-width: 52ch; margin-top: 24px; }
.story .lead a { color: inherit; text-decoration: none; }
.story__intro { margin-bottom: clamp(40px, 6vw, 80px); }
.story__track { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter) 0 calc(var(--gutter) + 28px); position: relative; }
.story__track::before { content: ""; position: absolute; left: calc(var(--gutter) + 4px); top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.chapter { position: relative; display: grid; gap: 22px; padding: clamp(36px, 5vw, 64px) 0; }
.chapter::before { content: ""; position: absolute; left: -28px; top: calc(clamp(36px, 5vw, 64px) + 10px); width: 9px; height: 9px; border-radius: 50%; background: #f2f0ec; box-shadow: 0 0 0 6px var(--ink); }
.chapter__year { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(84px, 16vw, 180px); line-height: .8; letter-spacing: -0.03em; color: #3a3936; user-select: none; } /* solid dark grey on the dark section */
.chapter__year--word { font-style: italic; font-size: clamp(64px, 12vw, 140px); }
.chapter__body { position: relative; z-index: 1; max-width: 520px; }
.chapter__kicker { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #9a9894; margin-bottom: 18px; }
.chapter__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; margin: 0 0 18px; color: #fff; }
.chapter p { color: #cfcdc8; margin: 0 0 1em; }
.chapter .btn { margin-top: 10px; }
.chapter__media { margin: 0; position: relative; z-index: 1; max-width: 560px; }
.chapter__media .frame { overflow: hidden; }
.chapter__media img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.chapter__media figcaption { margin-top: 12px; font-size: 13px; color: #8f8d89; }
.chapter__quote { margin: 0; position: relative; z-index: 1; }
.chapter__quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 76px); line-height: 1.04; color: #fff; margin: 0 0 22px; max-width: 18ch; }
.chapter__quote cite { font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #9a9894; }
.chapter__aside { max-width: 46ch; font-size: 15px; }
.story__rail { display: none; }
.story__account { justify-self: start; align-self: flex-start; margin-top: 26px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); padding: 0 0 4px; cursor: pointer; font: 400 14px/1.4 var(--sans); letter-spacing: .02em; color: #fff; transition: border-color .4s var(--ease); }
.story__account:hover { border-color: #fff; }
.story__account:focus-visible { outline: 1px solid #fff; outline-offset: 6px; }
/* John Bond's full account: a pop-up opened from the timeline */
.memoir { padding: 0; border: 0; background: transparent; max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100svh - 48px); color: var(--ink); }
.memoir::backdrop { background: rgba(10,10,10,.72); backdrop-filter: blur(6px); }
.memoir__inner { position: relative; background: var(--paper); max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px); }
.memoir__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; margin: 14px 0 28px; }
.memoir .story__memoir { padding: 0; }
.memoir .story__memoir p { color: var(--ink-soft); }
.memoir .story__sign { color: var(--muted) !important; }
.memoir__close { position: sticky; top: 0; float: right; margin: -20px -20px 0 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font: 300 26px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.memoir__close:hover { background: var(--ink); color: #fff; }
.memoir[open] { animation: memoir-in .6s cubic-bezier(.16,1,.3,1); }
.memoir[open]::backdrop { animation: memoir-fade .4s ease; }
@keyframes memoir-in { from { opacity: 0; translate: 0 24px; } }
@keyframes memoir-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .memoir[open], .memoir[open]::backdrop { animation: none; } }
.story__more { margin-top: clamp(40px, 5vw, 64px); }
.story__more details { border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.story__more summary { cursor: pointer; list-style: none; padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.story__more summary::-webkit-details-marker { display: none; }
.story__more summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; transition: rotate .4s var(--ease); }
.story__more details[open] summary::after { rotate: 45deg; }
.story__memoir { padding: 0 0 36px; max-width: 70ch; }
.story__memoir p { color: #cfcdc8; }
.story__sign { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #9a9894 !important; }

/* Wide screens with motion: the pinned, sideways timeline */
.story.is-horizontal .story__pin { position: relative; }
.story.is-horizontal .story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.story.is-horizontal .story__track { display: flex; align-items: center; max-width: none; margin: 0; padding: 0 12vw 0 var(--gutter); width: max-content; will-change: transform; }
.story.is-horizontal .story__track::before { display: none; }
/* Each chapter is a small grid: the year (or word) on its own row above the text and photo, so
   nothing can overlap at any window size. Sizes use both width and height (vh) so short windows fit. */
.story.is-horizontal .chapter { flex: 0 0 auto; position: relative; display: grid; width: max-content; grid-template-columns: 440px; grid-template-rows: auto auto; column-gap: clamp(32px, 4vw, 64px); row-gap: clamp(12px, 3vh, 32px); align-content: center; height: calc(100svh - 110px); padding: 0 9vw 0 0; } /* every chapter hugs its content, so this is the gap between them */
.story.is-horizontal .chapter::before { display: none; }
.story.is-horizontal .chapter:has(.chapter__media) { grid-template-columns: 440px auto; }
.story.is-horizontal .chapter__year { position: static; grid-column: 1 / -1; grid-row: 1; font-size: min(16vw, 24vh); line-height: .82; translate: var(--yx, 0) 0; pointer-events: none; }
.story.is-horizontal .chapter__year--word { font-size: min(13vw, 20vh); }
.story.is-horizontal .chapter__body { grid-column: 1; grid-row: 2; align-self: end; max-width: none; }
.story.is-horizontal .chapter__media { grid-column: 2; grid-row: 2; align-self: end; width: auto; max-width: none; }
.story.is-horizontal .chapter--top .chapter__body { align-self: start; } /* text starts level with the top of the photo */
.story.is-horizontal .chapter__media .frame { position: relative; overflow: hidden; }
.story.is-horizontal .chapter__media img { width: auto; height: min(44vh, 460px); max-width: 44vw; object-fit: cover; scale: 1.12; translate: var(--mx, 0) 0; will-change: translate; }
.story.is-horizontal .chapter:not(:has(.chapter__year)) .chapter__body,
.story.is-horizontal .chapter:not(:has(.chapter__year)) .chapter__media { grid-row: 1; align-self: center; }
.story.is-horizontal .chapter__title { font-size: clamp(30px, min(3.4vw, 6vh), 52px); }
.story.is-horizontal .chapter p { font-size: clamp(15px, min(1.1vw, 2.2vh), 17px); }
.story.is-horizontal .chapter--quote { display: flex; flex-direction: column; justify-content: center; }
.story.is-horizontal .chapter__quote p { font-size: clamp(34px, min(4.6vw, 8vh), 72px); }
.story.is-horizontal .chapter { opacity: .35; transition: opacity .6s var(--ease); }
.story.is-horizontal .chapter.is-current { opacity: 1; }
/* Chapter entrances (main.js adds .has-entrances, then .is-shown per chapter as it comes into view).
   Pieces rise in on phones and slide in from the right on the sideways timeline. */
.story.has-entrances .ch-piece { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s cubic-bezier(.215,.61,.355,1), transform 1.3s cubic-bezier(.16,1,.3,1), filter 1.1s cubic-bezier(.215,.61,.355,1), clip-path 1.4s cubic-bezier(.77,0,.175,1); transition-delay: var(--dl, 0s); }
.story.has-entrances.is-horizontal .ch-piece { transform: translate3d(64px, 0, 0); }
.story.has-entrances .chapter__year.ch-piece { filter: blur(14px); }
.story.has-entrances .chapter__media.ch-piece { transform: none; opacity: 1; }
.story.has-entrances .chapter__media.ch-piece .frame { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.77,0,.175,1); transition-delay: inherit; }
.story.has-entrances .chapter__media.ch-piece img { scale: 1.3; transition: scale 1.8s cubic-bezier(.16,1,.3,1); transition-delay: inherit; }
.story.has-entrances .chapter__media.ch-piece figcaption { opacity: 0; transition: opacity .9s ease; transition-delay: calc(var(--dl, 0s) + .6s); }
.story.has-entrances .ch-title.is-shown .bw { opacity: 1; filter: blur(0); translate: 0 0; }
.chapter__quote p.is-reading .rw { transition: opacity .25s linear; } /* opacity set from scroll in main.js */
.story.has-entrances .ch-piece.is-shown { opacity: 1; transform: none; filter: none; }
.story.has-entrances .chapter__media.ch-piece.is-shown .frame { clip-path: inset(0 0 0 0); }
.story.has-entrances .chapter__media.ch-piece.is-shown img { scale: 1; }
.story.has-entrances.is-horizontal .chapter__media.ch-piece.is-shown img { scale: 1.12; }
.story.has-entrances .chapter__media.ch-piece.is-shown figcaption { opacity: 1; }
.story.is-horizontal .story__rail { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 44px); }
/* Skip link: top right of the pinned timeline */
.story__skip { display: none; }
.story.is-horizontal .story__skip { display: block; position: absolute; right: var(--gutter); top: clamp(24px, 4vh, 44px); z-index: 2; padding: 4px 0; font: 400 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9a9894; text-decoration: none; transition: color .4s var(--ease); }
.story.is-horizontal .story__skip:hover { color: #fff; }
.story.is-horizontal .story__skip:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.story__rail-line { display: block; height: 1px; background: rgba(255,255,255,.18); position: relative; }
.story__rail-fill { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.story__ticks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: space-between; }
.story__ticks button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 400 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #6f6d69; transition: color .4s var(--ease); }
.story__ticks button:hover, .story__ticks button.is-active { color: #fff; }
.story__ticks button:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* Contact / CTA */
.cta { text-align: center; }
.cta .h1 { margin: 0 auto; }
.cta .lead { margin: 28px auto 40px; max-width: 50ch; }
.cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.details h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.details p, .details a { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; text-decoration: none; }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } }

.details--bank { grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 4px; }
.details--bank p { margin: 0; }
.snapscan { display: block; width: 220px; height: auto; margin: 8px auto 0; }

/* YouTube embed: always 16:9 */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Cover shown until someone presses play; main.js then swaps in the YouTube player */
.video__poster { position: absolute; inset: 0; display: block; overflow: hidden; color: #fff; text-decoration: none; cursor: pointer; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: scale 1.2s var(--ease); }
.video__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.7) 100%); }
.video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(64px, 7vw, 96px); aspect-ratio: 1;
  translate: -50% -50%; border: 1px solid rgba(255,255,255,.85); border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease), scale .5s var(--ease);
}
.video__play::before {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  transition: border-left-color .35s var(--ease);
}
.video__caption { position: absolute; left: clamp(18px, 2.5vw, 32px); bottom: clamp(16px, 2.2vw, 28px); z-index: 1; display: grid; gap: 6px; }
.video__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.video__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1; }
.video__poster:hover img { scale: 1.03; }
.video__poster:hover .video__play, .video__poster:focus-visible .video__play { background: #fff; border-color: #fff; scale: 1.06; }
.video__poster:hover .video__play::before, .video__poster:focus-visible .video__play::before { border-left-color: var(--ink); }
@media (max-width: 600px) {
  .video__play { width: 52px; }
  .video__play::before { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .video__label { font-size: 11px; }
}

/* Embedded third-party form (Church Center).
   Church Center draws its own card (border, rounded corners, shadow) on a transparent page. At a
   480px-wide frame that card runs from 50px to 1275px down and across the full width. We show only
   the inside of the card, 12px in from every edge, so its border and shadow never appear, and give
   it our own white panel and padding. If the church adds or removes questions, adjust 1201px. */
.form-split { display: grid; grid-template-columns: 1fr 480px; gap: clamp(40px, 7vw, 120px); align-items: start; }
.form-split__intro { position: sticky; top: 120px; }
.embed { width: 100%; max-width: 480px; background: #fff; padding: 12px; }
.embed__clip { height: 1201px; overflow: hidden; }
.embed iframe { display: block; width: 480px; height: 1500px; margin: -62px 0 0 -12px; border: 0; }
@media (max-width: 960px) {
  .form-split { grid-template-columns: 1fr; }
  .form-split__intro { position: static; }
  .embed { margin: 0 auto; }
}
@media (max-width: 600px) {
  /* Church Center's form needs about 430px; narrower, it cuts off its own left edge. Phones get the
     same 480px framed version as desktop, edge to edge, scaled down to fit by main.js. A transform
     (not CSS zoom) so iPhone Safari scales what's inside the form too; 1225px = 1201 + 2 x 12 padding. */
  .embed-fit { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; height: calc(1225px * var(--s, 1)); }
  .embed { width: 480px; max-width: none; margin: 0; transform: scale(var(--s, 1)); transform-origin: 0 0; }
}

.map { width: 100%; aspect-ratio: 16 / 7; border: 0; filter: grayscale(1) contrast(1.05); display: block; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

.note { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #e9e7e3; padding: clamp(80px, 9vw, 130px) 0 40px; }
/* Signup band: intro on the left, one-row form on the right */
.footer-signup { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-signup .eyebrow { color: #8f8d89; }
.footer-signup .h2 { color: #fff; }
.footer-signup__intro p { margin: 22px 0 0; max-width: 40ch; color: #bdbbb6; }
.signup__row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 20px 28px; align-items: end; }
.signup__input {
  width: 100%; padding: 14px 0; background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0;
  font: 300 17px/1.4 var(--sans); transition: border-color .3s var(--ease);
}
.signup__input::placeholder { color: #8f8d89; }
.signup__input:focus { outline: none; border-bottom-color: #fff; }
.signup__input[aria-invalid="true"] { border-bottom-color: #e8a49c; }
.signup .btn { cursor: pointer; background: transparent; font-family: var(--sans); white-space: nowrap; }
.signup .btn[disabled] { opacity: .5; cursor: default; }
.signup__status { margin: 14px 0 0; min-height: 1.4em; font-size: 14px; color: #bdbbb6; }
.signup__status.is-error { color: #e8a49c; }
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__status { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); color: #fff; margin: 0; }

/* Info columns under a divider */
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.15); }
.footer-cols__split li { break-inside: avoid; }
@media (min-width: 1100px) { .footer-cols__split { columns: 2; column-gap: 24px; } }
.site-footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8f8d89; font-weight: 400; margin: 0 0 18px; }
.site-footer li { margin-bottom: 8px; }
@media (max-width: 760px) { /* phones: taller tap targets, same visual rhythm */
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding: 9px 0; }
}
.site-footer a { text-decoration: none; color: #e9e7e3; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(60px, 8vw, 110px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px; color: #8f8d89;
}
.footer-brand { font-family: var(--serif); font-size: clamp(56px, 12vw, 190px); line-height: .85; letter-spacing: -0.035em; color: #fff; margin-top: clamp(60px, 8vw, 110px); font-weight: 300; }
@media (max-width: 960px) {
  .footer-signup { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .signup__row { grid-template-columns: 1fr; }
  .signup .btn { justify-self: start; margin-top: 8px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols__split { columns: 2; column-gap: 24px; }
}

/* Headlines: each word resolves from a blur (The Unlimited's effect, a touch quicker) */
.bw { display: inline-block; opacity: 0; filter: blur(12px); translate: -8px 0;
  transition: opacity .95s cubic-bezier(.215,.61,.355,1), filter .95s cubic-bezier(.215,.61,.355,1), translate .95s cubic-bezier(.215,.61,.355,1);
  transition-delay: var(--d, 0s); }
.is-blurred-in .bw { opacity: 1; filter: blur(0); translate: 0 0; }
/* Everything else rises in, queued in screen order by main.js */
.rise { opacity: 0; translate: 0 26px; }
.rise.is-in { opacity: 1; translate: 0 0; transition: opacity .9s cubic-bezier(.215,.61,.355,1), translate 1.3s cubic-bezier(.16,1,.3,1); }
/* Until main.js has queued the entrances, keep page content hidden so nothing flashes in early */
.js-anim:not(.anim-ready) main, .js-anim:not(.anim-ready) .site-footer { visibility: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bw, .rise { opacity: 1; filter: none; translate: none; transition: none; }
  .hero__media img, .hero--stories .hero__media img.is-active { animation: none; transform: none; }
  .hero__story.is-active .hero__fill { animation: none; transform: scaleX(1); } /* no auto-advance; tap to switch */
  html { scroll-behavior: auto; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

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


@media (prefers-reduced-motion: reduce) {
  .nav, body.menu-open .nav, .nav > a, body.menu-open .nav > a { transition: none !important; }
}

@media (max-width: 760px) { /* phone menu: links and visit sit at the bottom, within thumb reach */
  .nav a:not(.btn) { font-size: 36px; line-height: 1.45; }
  .nav { justify-content: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

.find-us__address { margin: 14px 0 0; max-width: 40ch; } /* street address on Visit */
