/* ==========================================================================
   Meta Church VR — "Autumn Sanctuary" design system
   Warm parchment page, evergreen-teal dark surfaces, maple / amber / gold
   accents from the trees, brand cyan as the thread back to the wordmark.

   CONTENTS
    1. Tokens                     9. Shared content components
    2. Reset / base                  (prose, verse, notice, cards, split, steps,
    3. Surfaces (light / dark)        week, deflist, findus, pills, team, accordion,
    4. Layout helpers                 form, video, gallery + lightbox, post-card,
    5. Type helpers                   verse-band, cta-band)
    6. Buttons, links, chips     10. Homepage sections
    7. Header + navigation       11. Footer
    8. Heroes (home, page-hero)  12. Mobile dock
                                 13. Reveal, reduced motion, print
   See STYLEGUIDE.md for copy-paste markup.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* --- colour: light surfaces --- */
  --parchment: #F5ECD9;
  --cream: #FBF6EA;
  --paper: #FFFDF8;
  --sand: #EADDC2;

  /* --- colour: ink --- */
  --ink: #1C2B2A;
  --ink-soft: #4A5956;
  --line: rgba(28, 43, 42, .14);
  --line-strong: rgba(28, 43, 42, .24);
  --field-border: #76827F;                 /* 3:1+ against paper for form controls */

  /* --- colour: dark surfaces --- */
  --evergreen: #0A3236;
  --evergreen-deep: #062427;
  --evergreen-soft: #14474D;
  --ember: #3A1712;
  --on-dark: #FBF6EA;
  --on-dark-soft: rgba(251, 246, 234, .82);
  --line-dark: rgba(251, 246, 234, .16);
  --line-dark-strong: rgba(251, 246, 234, .34);
  --scrim: 6, 36, 39;                      /* rgb triplet of --evergreen-deep, for rgba(var(--scrim), a) */

  /* --- colour: autumn accents --- */
  --maple: #B3311C;
  --maple-deep: #8E2414;
  --maple-bright: #D6452A;                 /* decorative only (leaves, live pulse) */
  --amber: #DE8A1F;
  --gold: #F0B440;
  --gold-bright: #F6C35C;
  --gold-soft: #F7D58A;
  --gold-ink: #1B1A10;                     /* text on gold */
  --on-maple: #FFF8EC;                     /* text on maple */

  /* --- colour: brand --- */
  --cyan: #19E3FF;
  --cyan-line: rgba(25, 227, 255, .38);

  /* --- type --- */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-100: .75rem;                                        /* micro labels, badges, timer units */
  --fs-200: .8125rem;                                      /* eyebrows, meta, cites */
  --fs-300: .9375rem;                                      /* small text, captions, small buttons */
  --fs-400: clamp(1rem, .96rem + .2vw, 1.125rem);          /* body */
  --fs-500: clamp(1.125rem, 1.04rem + .45vw, 1.375rem);    /* lede, verses, list headings */
  --fs-600: clamp(1.3rem, 1.15rem + .7vw, 1.75rem);        /* h3, serif lede, pull quotes */
  --fs-700: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);         /* card / aside headings, big numerals */
  --fs-800: clamp(2.1rem, 1.35rem + 3.2vw, 3.75rem);       /* h2 */
  --fs-900: clamp(2.6rem, 1.2rem + 6.4vw, 4.6rem);         /* h1 */
  --fs-display: clamp(3rem, 2rem + 4.5vw, 5.25rem);        /* proof numbers only */

  /* --- spacing --- */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --gap-grid: clamp(2.5rem, 6vw, 6rem);    /* between the two halves of a section */
  --gutter: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --section-pad-sm: clamp(3rem, 6vw, 5rem);
  --container: 75rem;
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));   /* viewport edge -> container edge */
  --header-h: 4.5rem;
  --tap: 2.75rem;                          /* 44px minimum touch target */

  /* --- radii --- */
  --r-sm: .5rem;
  --r-md: 1.125rem;
  --r-lg: clamp(1.25rem, 2.4vw, 2rem);
  --r-pill: 999px;
  --r-leaf: 2px 70% 2px 70%;

  /* --- shadows --- */
  --shadow-soft: 0 1px 2px rgba(28, 43, 42, .06), 0 12px 32px -12px rgba(28, 43, 42, .22);
  --shadow-lift: 0 2px 4px rgba(28, 43, 42, .08), 0 28px 60px -20px rgba(28, 43, 42, .38);
  --shadow-dark: 0 30px 60px -24px rgba(0, 0, 0, .62);
  --shadow-gold: 0 10px 24px -10px rgba(240, 180, 64, .7);

  /* --- z-index --- */
  --z-raised: 2;
  --z-dock: 50;
  --z-header: 60;
  --z-skip: 200;

  /* --- motion --- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: .2s;
  --dur-2: .3s;
  --dur-3: .6s;
  --dur-4: .9s;
}

@media (min-width: 68.75em) {
  :root { --header-h: 5.25rem; }
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-gutter: stable;                /* no sideways jump when the scroll lock hides the scrollbar */
}
/* the fixed mobile dock (section 12) must never cover a control the browser scrolls into view for keyboard focus */
@media (max-width: 68.74em) {
  html { scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 300; }

h1 { font-size: var(--fs-900); line-height: .98; letter-spacing: -.028em; }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); line-height: 1.2; letter-spacing: -.01em; }
h4 { font-size: var(--fs-500); line-height: 1.25; letter-spacing: -.005em; }

p { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 700; }
abbr[title] { text-decoration: none; }
cite { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: .9em; padding: .1em .35em; border-radius: 4px; background: var(--tint); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

::selection { background: var(--gold); color: var(--gold-ink); }

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

.skip-link {
  position: fixed;
  top: var(--sp-3); left: var(--sp-3);
  z-index: var(--z-skip);
  padding: .85rem 1.25rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  border-radius: var(--r-pill);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-1) var(--ease);
}
.skip-link:focus { transform: none; }

#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ==========================================================================
   3. Surfaces
   Components read these custom properties, so the same markup works on
   parchment and on evergreen. Add .on-dark to any dark section you create;
   add .on-light to a light card nested inside a dark one.
   ========================================================================== */
:root,
.on-light,
.countdown, .card, .snap, .person, .post-card, .island__card, .clipping__main, .give, .form {
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--maple);
  --accent-2: var(--amber);
  --link: var(--maple);
  --link-line: rgba(179, 49, 28, .35);
  --link-hover-line: currentColor;
  --tint: rgba(10, 50, 54, .06);
  --focus: var(--maple);
  --tick: none;
}

.on-dark,
.site-header, .hero, .page-hero, .verse-band, .join, .community, .connect, .cta-band,
.site-footer, .dock, .lightbox, .video, .clipping__quote,
.section--evergreen, .section--ember {
  --fg: var(--on-dark);
  --fg-soft: var(--on-dark-soft);
  --rule: var(--line-dark);
  --rule-strong: var(--line-dark-strong);
  --accent: var(--gold-soft);
  --accent-2: var(--gold);
  --link: var(--gold-soft);
  --link-line: rgba(247, 213, 138, .45);
  --link-hover-line: var(--cyan);
  --tint: rgba(251, 246, 234, .07);
  --focus: var(--cyan);
  --tick: block;
  color: var(--fg);
}
.on-light,
.countdown, .card, .snap, .person, .post-card, .island__card, .clipping__main, .give, .form { color: var(--fg); }

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - var(--gutter) * 2, 48rem); }
.container--prose { width: min(100% - var(--gutter) * 2, 42rem); }

.section { position: relative; padding-block: var(--section-pad); }
.section--sm { padding-block: var(--section-pad-sm); }
.section--flush-top { padding-top: 0; }
.section--parchment { background: var(--parchment); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--evergreen { background: var(--evergreen); }
.section--ember { background: var(--ember); }
.section--glow {
  /* soft gold wash in the top-right corner, as on the homepage schedule */
  background-image: radial-gradient(60rem 30rem at 100% 0%, rgba(240, 180, 64, .16), transparent 60%);
}

/* eyebrow + h2 + lede block that opens a section */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede, .section-head > p:not(.eyebrow) { margin-top: 1.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* grid children must be allowed to shrink, or one long word widens the page */
.times__list, .times__intro, .join__text, .connect__side, .connect__lead, .about__text, .pastor__text, .community__text, .community__who, .cta-band__text, .hero__copy { min-width: 0; }

/* vertical rhythm for a simple run of elements */
.flow > * + * { margin-top: var(--flow, 1.1rem); }

.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; margin-top: var(--sp-6); }
.actions--tight { gap: var(--sp-3); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--nudge { transition: transform var(--dur-2) var(--ease); }
a:hover .icon--nudge, a:focus-visible .icon--nudge { transform: translateX(4px); }

.leaf { width: 1em; height: 1em; flex: none; color: var(--accent-2); }

/* ==========================================================================
   5. Type helpers
   ========================================================================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 1.1rem;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
/* On dark surfaces (or with the old --light / --warm modifiers) the eyebrow picks up
   gold and a short cyan tick: the thread back to the cyan wordmark. */
.eyebrow--light, .eyebrow--warm { color: var(--gold-soft); }
.eyebrow--light .leaf { color: var(--gold); }
.eyebrow--warm .leaf { color: var(--amber); }
.eyebrow::after {
  content: "";
  display: var(--tick, none);             /* dark surfaces set --tick: block */
  flex: none;
  width: 1.75rem; height: 2px;
  margin-left: .25em;
  border-radius: 2px;
  background: var(--cyan);
  opacity: .85;
}

.lede {
  font-size: var(--fs-500);
  line-height: 1.55;
  color: var(--fg);
  max-width: 38em;
}
.lede--serif {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-600);
  line-height: 1.38;
  letter-spacing: -.008em;
}
.muted { color: var(--fg-soft); }
.small { font-size: var(--fs-300); line-height: 1.55; }
.measure { max-width: 38em; }

/* ==========================================================================
   6. Buttons, links, chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-400);
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 3.5rem; padding-inline: 1.75rem; }
.btn--sm { min-height: var(--tap); padding: .5rem 1.1rem; font-size: var(--fs-300); }
.btn--block { display: flex; width: 100%; }

.btn--gold { background: var(--gold); color: var(--gold-ink); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--gold-bright); box-shadow: 0 16px 30px -10px rgba(240, 180, 64, .75); }

.btn--maple { background: var(--maple); color: var(--on-maple); box-shadow: 0 10px 24px -12px rgba(142, 36, 20, .8); }
.btn--maple:hover { background: var(--maple-deep); }

.btn--ghost-light { border-color: rgba(251, 246, 234, .55); color: var(--on-dark); }
.btn--ghost-light:hover { background: rgba(251, 246, 234, .12); border-color: var(--cyan); }

.btn--ghost-dark { border-color: rgba(28, 43, 42, .45); color: var(--ink); }
.btn--ghost-dark:hover { background: rgba(28, 43, 42, .06); border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: var(--tap);
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  text-decoration-color: var(--link-line);
  transition: text-decoration-color var(--dur-1);
}
.text-link:hover { text-decoration-color: var(--link-hover-line); }
.text-link--light { color: var(--gold-soft); text-decoration-color: rgba(247, 213, 138, .45); }
.text-link--light:hover { text-decoration-color: var(--cyan); }

/* .chip-link = small outlined link (store links, tags that go somewhere)
   .pill      = the same shape as a static label (platforms, categories) */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-link, .pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-300);
  line-height: 1.25;
  color: var(--fg);
}
.chip-link {
  min-height: var(--tap);
  text-decoration: none;
  transition: background-color var(--dur-1), border-color var(--dur-1);
}
.chip-link:hover { background: var(--tint); border-color: var(--accent-2); }
.chip-link .icon, .pill .icon { width: 1.05em; height: 1.05em; color: var(--accent-2); }
.pill { min-height: 2.25rem; background: var(--tint); border-color: transparent; }
.chip-link--go { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip-link--go .icon { color: var(--gold-ink); }
.chip-link--go:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.icon-btn {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1.5px solid var(--line-dark-strong);
  border-radius: 50%;
  background: rgba(var(--scrim), .55);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color var(--dur-1), border-color var(--dur-1);
}
.icon-btn:hover { background: rgba(var(--scrim), .85); border-color: var(--cyan); }

/* ---------- Photo cards ---------- */
.photo-card { margin: 0; }
.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.photo-card--wide img { aspect-ratio: 16 / 9; }
.photo-card--tall img { aspect-ratio: 4 / 5; }
.photo-card figcaption, .caption {
  margin-top: .85rem;
  padding-left: 1rem;
  border-left: 2px solid var(--amber);
  font-size: var(--fs-300);
  line-height: 1.5;
  color: var(--fg-soft);
}
.on-dark .photo-card img, .photo-card--dark img { box-shadow: var(--shadow-dark); }
.photo-card--dark figcaption { color: var(--on-dark-soft); }

/* arch-topped photo (About) */
.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-pill) var(--r-pill) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lift);
  background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }

/* ==========================================================================
   7. Header + navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--evergreen);
  transition: box-shadow var(--dur-2);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.site-header::after, .site-footer::before, .cta-band::before {
  /* brand hairline: wordmark cyan on the left, autumn gold on the right */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(25, 227, 255, 0) 32%, rgba(240, 180, 64, 0) 68%, var(--gold));
  opacity: .8;
  pointer-events: none;
}
.site-footer::before, .cta-band::before { inset: 0 0 auto 0; }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* logo.png has a large transparent margin: crop it inside a fixed-ratio box.
   The white "VR" vanishes on light backgrounds, so the logo only ever sits on evergreen. */
.logo {
  display: block;
  flex: none;
  width: 6.5rem;
  aspect-ratio: 1280 / 700;
  overflow: hidden;
  border-radius: 4px;
}
.logo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.logo--lg { width: 9.5rem; }
@media (min-width: 68.75em) { .logo { width: 7.5rem; } .logo--lg { width: 11rem; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  padding: .5rem .9rem .5rem 1.1rem;
  border: 1.5px solid var(--line-dark-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--on-dark);
  font-weight: 700;
  font-size: var(--fs-300);
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 1.375rem; height: 1rem; display: block; }
.nav-toggle__icon span {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1);
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 7px; }
.nav-toggle__icon span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel (default) */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--evergreen-deep);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.no-js .site-nav {
  /* no JS: the nav simply sits open under the bar */
  position: static;
  visibility: visible; opacity: 1; transform: none;
  padding: 0 0 1.25rem;
  background: transparent;
  overflow: visible;
}
.no-js .nav-toggle { display: none; }
.no-js .site-header__bar { flex-wrap: wrap; }
/* no JS + small screen: the open nav makes the header very tall, so it must scroll away instead of sticking.
   relative (not static) keeps the ::after hairline and the z-index anchored to the header. */
@media (max-width: 68.74em) {
  .no-js .site-header { position: relative; }
}

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  font-weight: 400;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--on-dark);
}
.site-nav__list a:hover { color: var(--gold-soft); }
.site-nav__list a[aria-current="page"] { color: var(--gold-soft); }
.site-nav__list a[aria-current="page"]::before {
  content: "";
  flex: none;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--cyan);
}
.site-nav__cta { align-self: stretch; min-height: 3.5rem; }

/* Scroll lock (mobile nav + lightbox). main.js stores the scroll offset in --lock-top.
   body is pinned so iOS cannot rubber-band the page behind the panel; the header
   switches from sticky to fixed and body padding keeps the layout identical. */
html.scroll-locked { overflow: hidden; scroll-behavior: auto !important; }
html.scroll-locked body {
  position: fixed;
  top: var(--lock-top, 0px);
  left: 0; right: 0;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-h);
}
html.scroll-locked .site-header { position: fixed; top: 0; left: 0; right: 0; }

@media (min-width: 68.75em) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 0;
    background: transparent;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list { display: flex; align-items: center; gap: clamp(.25rem, 1vw, .9rem); }
  .site-nav__list a {
    position: relative;
    min-height: var(--tap);
    padding: 0 .55rem;
    border: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-300);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--on-dark-soft);
    transition: color var(--dur-1);
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: .55rem; right: .55rem; bottom: .45rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .site-nav__list a:hover { color: var(--on-dark); }
  .site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); }
  .site-nav__list a[aria-current="page"] { color: var(--on-dark); }
  .site-nav__list a[aria-current="page"]::before { display: none; }
  .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--cyan); }
  .site-nav__cta { align-self: center; min-height: 3rem; }
}

/* ==========================================================================
   8a. Home hero
   < 56.25em   photo band on top, copy then bulletin card stacked on evergreen
   56.25–75em  photo band on top, copy and card side by side beneath it
   >= 75em     full-bleed photo; scrim only behind the copy column so the
               sanctuary, cross and red foliage stay bright on the right
   ========================================================================== */
.hero {
  --band: clamp(14rem, 56vw, 24rem);
  position: relative;
  z-index: var(--z-raised);             /* lets the bulletin card overlap the next section */
  display: grid;
  background: var(--evergreen-deep);
}
.hero__media { position: absolute; inset: 0 0 auto 0; height: var(--band); overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__media::after {
  /* band scrim: the copy only ever starts where this is ~opaque */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), .1) 0%, rgba(var(--scrim), .16) 45%, rgba(var(--scrim), .8) 80%, rgba(var(--scrim), .98) 93%, var(--evergreen-deep) 100%);
}

.hero__inner {
  position: relative;
  align-self: end;
  display: grid;
  gap: 2.5rem;
  padding-top: calc(var(--band) - 1.25rem);
}
.hero__copy { max-width: 34rem; }

.hero h1 { text-shadow: 0 2px 24px rgba(var(--scrim), .45); }
.hero h1 em { display: block; color: var(--gold-soft); margin-top: .08em; }
.hero__lede {
  margin-top: var(--sp-5);
  max-width: 33em;
  font-size: var(--fs-500);
  line-height: 1.55;
  color: rgba(251, 246, 234, .94);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: var(--sp-6); }
.hero__ways {
  display: flex; flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-300);
  font-weight: 500;
  color: var(--on-dark-soft);
}
.hero__ways li { display: inline-flex; align-items: center; gap: .45em; }
.hero__ways .icon { width: 1.05em; height: 1.05em; color: var(--gold); }
.hero__find { margin-top: 1.6rem; }

/* hero entrance (CSS only, no JS dependency) */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__copy > *, .hero .countdown { animation: rise var(--dur-4) var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__copy > :nth-child(6) { animation-delay: .4s; }
.hero .countdown { animation-delay: .45s; margin-bottom: -3.5rem; }   /* overlaps the next section */

/* drifting leaves: decorative, finite, and pausable ([data-motion-toggle]) */
.hero__leaves { position: absolute; inset: 0; pointer-events: none; }
.fleaf {
  position: absolute;
  top: -40px;
  left: var(--x, 50%);
  width: 18px; height: 18px;
  border-radius: var(--r-leaf);
  opacity: 0;
  animation: leaf-fall var(--d, 16s) linear var(--delay, 0s) 3;
  will-change: transform, opacity;
}
.fleaf--gold { background: var(--gold); }
.fleaf--amber { background: var(--amber); }
.fleaf--maple { background: var(--maple-bright); }
@keyframes leaf-fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--s, 1)); }
  8%   { opacity: .9; }
  50%  { transform: translate3d(calc(var(--drift, -80px) * .35), 460px, 0) rotate(210deg) scale(var(--s, 1)); }
  85%  { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--drift, -80px), 940px, 0) rotate(420deg) scale(var(--s, 1)); }
}
.motion-paused .fleaf { animation-play-state: paused; }
.motion-toggle {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  z-index: 1;
  width: var(--tap); height: var(--tap);
}
.motion-toggle .icon { width: 1.1rem; height: 1.1rem; }
.motion-toggle .motion-toggle__play, .motion-paused .motion-toggle .motion-toggle__pause { display: none; }
.motion-paused .motion-toggle .motion-toggle__play { display: block; }

/* ---- Countdown "bulletin" card ---- */
.countdown {
  position: relative;
  justify-self: stretch;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 1.75rem;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.countdown::before {
  /* maple ribbon, like the marker in a Bible */
  content: "";
  position: absolute;
  top: -6px; right: 2.25rem;
  width: 1.5rem; height: 2.6rem;
  background: var(--maple);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.countdown__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-right: 3rem; }
.countdown__status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-100); font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--maple);
}
.pulse { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); flex: none; }
.is-live .pulse { background: var(--maple-bright); }
.is-live .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit;
  animation: ping 1.6s ease-out 3;         /* 3 x 1.6s = 4.8s: stops by itself in under 5s (WCAG 2.2.2); the solid dot + "Live now" text carry the state */
}
/* on dark surfaces the live pulse is brand cyan */
.dock.is-live .pulse, .cta-band .is-live .pulse, .on-dark .is-live .pulse { background: var(--cyan); }
.countdown.is-live .pulse { background: var(--maple-bright); }   /* the paper card keeps the autumn red */
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.countdown__all {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--fs-300); font-weight: 700; color: var(--ink-soft);
  text-underline-offset: .25em;
}
.countdown__all:hover { color: var(--maple); }
.countdown__name {
  margin-top: .15rem;
  font-family: var(--font-serif);
  font-size: var(--fs-700);
  line-height: 1.08;
  letter-spacing: -.018em;
}
.countdown__when { margin-top: .4rem; font-size: var(--fs-300); line-height: 1.45; color: var(--ink-soft); }
.countdown__also { margin-top: .2rem; font-size: var(--fs-300); line-height: 1.45; color: var(--ink-soft); }
.countdown__timer { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1.5px dashed var(--line-strong); }
.countdown__label { font-size: var(--fs-200); font-weight: 600; color: var(--ink-soft); margin-bottom: .55rem; }
.countdown__digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cell {
  display: flex; flex-direction: column; align-items: center;
  padding: .7rem .25rem .6rem;
  border-radius: 1rem;
  background: var(--parchment);
}
.cell__num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-700);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  min-width: 2ch;
  text-align: center;
  color: var(--evergreen);
}
.cell__unit { margin-top: .35rem; font-size: var(--fs-100); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__note {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1.5px dashed var(--line-strong);
  font-size: var(--fs-300); line-height: 1.5; color: var(--ink-soft);
}
.countdown__note strong { color: var(--ink); }
.countdown__join {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; margin-top: 1rem;
  border-radius: var(--r-pill);
  background: var(--maple); color: var(--on-maple);
  font-weight: 700; text-decoration: none;
  transition: background-color var(--dur-1);
}
.countdown__join:hover { background: var(--maple-deep); }
.countdown__tz { margin-top: .75rem; font-size: var(--fs-200); line-height: 1.4; color: var(--ink-soft); }

/* Countdown gating: main.js adds .cd-ready to <html> after the first successful render.
   [data-cd-static] = schedule text for no-JS / unsupported browsers
   [data-cd-live]   = anything that only makes sense once the clock is running */
html:not(.cd-ready) [data-cd-live] { display: none !important; }
html.cd-ready [data-cd-static] { display: none !important; }

@media (min-width: 56.25em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: var(--sp-7);
  }
  .hero .countdown { margin: -4.5rem 0 0; padding: 1.75rem 1.75rem 1.5rem; }
}

@media (min-width: 75em) {
  .hero {
    min-height: min(calc(100vh - var(--header-h)), 54rem);
    min-height: min(calc(100svh - var(--header-h)), 54rem);
  }
  .hero__media { inset: 0; height: auto; }
  .hero__media img { object-position: 72% 60%; }
  .hero__media::after {
    /* stops are lengths from the container edge, so the dark part always ends where the copy column ends */
    background:
      linear-gradient(90deg,
        rgba(var(--scrim), .95) 0,
        rgba(var(--scrim), .9) calc(var(--edge) + 34rem),
        rgba(var(--scrim), .32) calc(var(--edge) + 42rem),
        rgba(var(--scrim), .06) calc(var(--edge) + 52rem),
        rgba(var(--scrim), 0) 100%),
      linear-gradient(0deg, rgba(var(--scrim), .5) 0%, rgba(var(--scrim), 0) 26%);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: 0;
  }
  .hero__copy { padding-bottom: clamp(3rem, 5vw, 5rem); }
  .hero .countdown {
    /* slides toward the viewport edge on wide screens so it never sits on the cross */
    margin: 0 max(-7.5rem, min(0px, calc((var(--container) - (100vw - var(--gutter) * 2)) / 2))) -4.5rem 0;
  }
}

/* ==========================================================================
   8b. Page hero (every subpage)
   ========================================================================== */
.page-hero {
  --ph-fade: clamp(6rem, 22vw, 11rem);
  position: relative;
  display: grid;
  min-height: clamp(21rem, 46vw, 33rem);
  background: var(--evergreen-deep);
  isolation: isolate;
}
.page-hero--compact { --ph-fade: clamp(3.5rem, 9vw, 6rem); min-height: clamp(13rem, 24vw, 18rem); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.page-hero__media--crop img { transform: scale(1.08); }        /* for sanctuary-aerial-wide.jpg (black side bars) */
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(var(--scrim), .16); }
.page-hero__body {
  align-self: end;
  padding-top: var(--ph-fade);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  /* evergreen scrim sized to the text block: copy always sits on >= .92 */
  background: linear-gradient(0deg, rgba(var(--scrim), .97) 0, rgba(var(--scrim), .92) calc(100% - var(--ph-fade)), rgba(var(--scrim), 0) 100%);
}
.page-hero h1 { max-width: 16em; text-shadow: 0 2px 24px rgba(var(--scrim), .45); }
.page-hero h1 em { color: var(--gold-soft); }
.page-hero--compact h1 { font-size: var(--fs-800); line-height: 1.04; }
.page-hero__lede { margin-top: 1.1rem; max-width: 36rem; font-size: var(--fs-500); line-height: 1.55; color: rgba(251, 246, 234, .94); }
.page-hero__meta { margin-top: 1rem; font-size: var(--fs-300); color: var(--on-dark-soft); }
.page-hero .actions { margin-top: var(--sp-5); }     /* hero buttons (join, bible-island, 404): same gap on every page */

.breadcrumb { margin-bottom: 1rem; font-size: var(--fs-300); color: var(--on-dark-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-inline: .6em; color: var(--cyan); opacity: .8; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); text-underline-offset: .25em; }
.breadcrumb a:hover { color: var(--on-dark); text-decoration-color: var(--cyan); }
.breadcrumb [aria-current] { color: var(--on-dark); font-weight: 600; }

@media (min-width: 56.25em) {
  .page-hero__body {
    align-self: stretch;
    display: grid;
    align-content: end;
    padding-top: var(--sp-8);
    background:
      linear-gradient(90deg,
        rgba(var(--scrim), .95) 0,
        rgba(var(--scrim), .9) calc(var(--edge) + 38rem),
        rgba(var(--scrim), .3) calc(var(--edge) + 54rem),
        rgba(var(--scrim), .1) 100%),
      linear-gradient(0deg, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 40%);
  }
  .page-hero__body > .container > * { max-width: 38rem; }
}

/* ==========================================================================
   9. Shared content components
   ========================================================================== */

/* ---------- 9.1 Prose (blog, legal, beliefs) ---------- */
.prose { max-width: 65ch; color: var(--fg); }
.prose--center { margin-inline: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-700); line-height: 1.1; margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-600); margin-top: 1.9em; }
.prose h4 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-soft); }
.prose strong { color: var(--fg); }
.prose .lede { color: var(--fg); }
.prose a:not(.btn):not(.chip-link) {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  text-decoration-color: var(--link-line);
  overflow-wrap: anywhere;
}
.prose a:not(.btn):not(.chip-link):hover { text-decoration-color: var(--link-hover-line); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.75rem; }
.prose li + li { margin-top: .55em; }
.prose ul > li::before {
  content: "";
  position: absolute; left: .15rem; top: .55em;
  width: .65rem; height: .65rem;
  border-radius: var(--r-leaf);
  background: var(--accent-2);
}
.prose ol { counter-reset: prose; }
.prose ol > li { counter-increment: prose; }
.prose ol > li::before {
  content: counter(prose) ".";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.prose blockquote:not(.verse) {
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--amber);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-600);
  line-height: 1.36;
  color: var(--fg);
}
.prose blockquote:not(.verse) p { color: inherit; }
.prose figure { margin-block: 2.2em; }
.prose figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.prose figcaption { margin-top: .85rem; padding-left: 1rem; border-left: 2px solid var(--amber); font-size: var(--fs-300); line-height: 1.5; color: var(--fg-soft); }
.prose hr {
  width: 4rem; height: 2px;
  margin: 2.5em 0;
  border: 0;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  border-radius: 2px;
}
.prose .verse, .prose .notice { margin-block: 1.8em; }

/* ---------- 9.2 Verse ---------- */
.verse { padding-left: 1.25rem; border-left: 2px solid var(--amber); }
.verse p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-500);
  line-height: 1.45;
  color: var(--fg);
}
.verse p + p { margin-top: .7em; }
.verse cite {
  display: block;
  margin-top: .6rem;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.verse--lg { padding-left: clamp(1.25rem, 3vw, 2rem); border-left-width: 3px; }
.verse--lg p { font-size: var(--fs-600); line-height: 1.36; letter-spacing: -.008em; }

/* ---------- 9.3 Notice ("good to know") ---------- */
.notice {
  display: grid;
  gap: .4rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm);
  background: var(--tint);
  font-size: var(--fs-300);
  line-height: 1.55;
  color: var(--fg-soft);
}
.notice strong, .notice__title { color: var(--fg); }
.notice__title { font-family: var(--font-sans); font-size: var(--fs-300); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.notice .text-link { justify-self: start; }

/* ---------- 9.4 Card grids ---------- */
.cards { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.card--sand { background: var(--sand); box-shadow: none; }
.card--outline { background: transparent; box-shadow: none; border: 1.5px solid var(--rule-strong); }
.card__media { margin: calc(clamp(1.5rem, 3vw, 2.25rem) * -1); margin-bottom: 1.5rem; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.card__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--maple-deep);
}
.card--sand .card__icon { background: var(--paper); }
.card__icon .icon { width: 1.4rem; height: 1.4rem; }
.card > h2, .card > h3 { font-size: var(--fs-600); line-height: 1.2; }
.card > p { margin-top: .7rem; color: var(--fg-soft); }
.card > .verse, .card > .leaf-list { margin-top: 1rem; }
.card > .text-link, .card > .btn, .card > .actions { margin-top: auto; align-self: flex-start; }   /* pinned to the card's foot */
.card > p:last-of-type:not(:last-child) { margin-bottom: 1.25rem; }
@media (min-width: 40em) { .cards--2, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* leaf bullet list */
.leaf-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.leaf-list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .75rem; align-items: start; font-weight: 600; line-height: 1.45; }
.leaf-list .leaf { margin-top: .25em; width: 1.1rem; height: 1.1rem; color: var(--accent); }

/* ---------- 9.5 Split (media + text) ---------- */
.split { display: grid; gap: var(--gap-grid); align-items: center; }
.split__media { margin: 0; min-width: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focus-pos, 50% 50%); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.on-dark .split__media img, .section--evergreen .split__media img, .section--ember .split__media img { box-shadow: var(--shadow-dark); }
.split__media figcaption { margin-top: .85rem; padding-left: 1rem; border-left: 2px solid var(--amber); font-size: var(--fs-300); line-height: 1.5; color: var(--fg-soft); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 16 / 10; }
.split__media .arch img { aspect-ratio: auto; height: 100%; border-radius: 0; box-shadow: none; }
.split__text { min-width: 0; }
.split__text > p:not(.eyebrow):not(.lede) { margin-top: 1rem; color: var(--fg-soft); max-width: 38em; }
.split__text > .lede { margin-top: 1.5rem; }
.split__text > .verse, .split__text > .notice, .split__text > .leaf-list, .split__text > .deflist, .split__text > .pills { margin-top: 1.75rem; }
@media (min-width: 62em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--reverse > .split__media { order: 2; }
  .split--top { align-items: start; }
}

/* ---------- 9.6 Steps ---------- */
.steps { position: relative; display: grid; gap: 2.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.steps::before {
  /* the trail between steps */
  content: "";
  position: absolute;
  top: 1.5rem; bottom: 1.5rem; left: 1.7rem;
  border-left: 2px dashed var(--accent-2);
  opacity: .45;
}
.step { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.step__num {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--step-bg, var(--parchment));
  border: 2px solid var(--accent-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-600);
  line-height: 1;
  color: var(--accent);
}
.on-dark .step__num, .join .step__num, .section--evergreen .step__num { --step-bg: var(--evergreen); color: var(--gold); }
.section--cream .step__num { --step-bg: var(--cream); }
.step h3 { padding-top: .55rem; }
.step__opt { font-style: italic; font-weight: 300; color: var(--accent); }
.step p { margin-top: .5rem; color: var(--fg-soft); max-width: 34em; }
.step .step__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; max-width: none; }
.step--go .step__num { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* ---------- 9.7 Week schedule ---------- */
.tzline {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--evergreen);
}
.on-dark .tzline { color: var(--on-dark); }

.week { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.week__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .6rem;
  padding: 1.35rem .9rem;
  border-bottom: 1px solid var(--rule);
}
.week__row::before {
  /* highlight card for "up next" / "live": stays inside the list, so nothing bleeds past the gutter */
  content: "";
  position: absolute;
  inset: -1px 0;
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: scale(.985);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  z-index: 0;
}
.week__row > * { position: relative; z-index: 1; }
.week__row.is-next::before, .week__row.is-live::before { opacity: 1; transform: none; }
.week__row.is-next, .week__row.is-live {
  /* the highlighted row is a paper card, so it takes the light palette even inside a dark section */
  --fg: var(--ink); --fg-soft: var(--ink-soft); --accent: var(--maple);
  color: var(--ink);
}

.week__day {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-700);
  line-height: 1.1;
  color: var(--accent);
}
.week__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.week__body p { margin-top: .3rem; font-size: var(--fs-300); line-height: 1.55; color: var(--fg-soft); }
.week__body p strong { color: var(--fg); font-weight: 600; }
.week__badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  background: var(--evergreen);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-100); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.5;
}
[data-event].is-live .week__badge { background: var(--maple); color: var(--on-maple); }
.week__time { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .9rem; }
.week__et { font-weight: 700; white-space: nowrap; }
.week__local { font-size: var(--fs-300); color: var(--fg-soft); }

@media (min-width: 40em) {
  .week__row { grid-template-columns: 5rem minmax(0, 1fr) auto; column-gap: 1.5rem; padding: 1.6rem 1.1rem; align-items: start; }
  .week__time { grid-column: 3; flex-direction: column; align-items: flex-end; text-align: right; gap: .1rem; min-width: 9.5rem; }
}

/* ---------- 9.8 Definition rows ---------- */
.deflist { margin: 0; border-top: 1px solid var(--rule); }
.deflist > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.deflist dt { font-weight: 600; color: var(--fg); }
.deflist dt small, .deflist dt em { display: block; font-style: normal; font-weight: 400; font-size: var(--fs-300); color: var(--fg-soft); }
.deflist dd { margin: 0; color: var(--fg-soft); text-align: right; }
.deflist dd a { color: var(--link); font-weight: 600; text-underline-offset: .22em; overflow-wrap: anywhere; }

/* ---------- 9.9 "Find us in VRChat" identifier strip ---------- */
.findus { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.findus > div {
  display: grid;
  gap: .1rem;
  padding: .5rem .85rem .55rem;
  border: 1px solid var(--findus-line, var(--rule-strong));
  border-radius: .8rem;
  background: var(--findus-bg, var(--paper));
}
.findus dt { font-size: var(--fs-100); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--findus-label, var(--maple)); }
.findus dd { margin: 0; font-weight: 700; font-size: var(--fs-300); line-height: 1.3; color: var(--fg); }
.on-dark .findus, .hero .findus, .page-hero .findus, .cta-band .findus, .join .findus, .connect .findus, .section--evergreen .findus {
  --findus-line: var(--cyan-line);
  --findus-bg: rgba(var(--scrim), .72);
  --findus-label: var(--cyan);
}
.findus__title { margin-bottom: .6rem; font-size: var(--fs-200); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- 9.10 Team ---------- */
.mono {
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap);
  border-radius: 50%;
  background: var(--sand);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-600);
  line-height: 1;
  color: var(--maple-deep);
  flex: none;
}
.mono--lg { width: 5.5rem; height: 5.5rem; font-size: var(--fs-800); }

.team { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40em) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person {
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.person__photo { width: 5.5rem; height: 5.5rem; margin-bottom: .75rem; border-radius: 50%; overflow: hidden; background: var(--sand); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 35%); }
.person .mono { margin-bottom: .75rem; }
.person h3 { font-size: var(--fs-600); }
.person__role { font-size: var(--fs-200); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--maple); }
.person p:not(.person__role) { margin-top: .5rem; font-size: var(--fs-300); line-height: 1.55; color: var(--ink-soft); }
.person--lead { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .person--lead { grid-template-columns: auto minmax(0, 1fr); column-gap: 2rem; align-items: start; }
  .person--lead .person__photo { width: 9rem; height: 9rem; grid-row: span 6; margin: 0; }
}

/* compact inline list (homepage) */
.team-mini { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.team-mini__intro { font-size: var(--fs-300); color: var(--fg-soft); }
.team-mini__list { display: flex; flex-wrap: wrap; gap: .9rem 1.75rem; margin: 1.1rem 0 .75rem; }
.team-mini__list li { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-300); color: var(--fg-soft); line-height: 1.3; }
.team-mini__list strong { display: block; font-size: var(--fs-400); color: var(--fg); }

/* ---------- 9.11 Accordion (<details>) ---------- */
.accordion { max-width: 48rem; border-top: 1px solid var(--rule); }
.accordion--full { max-width: none; }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.75rem;
  padding: .9rem .25rem;
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  margin-right: .35rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--dur-2) var(--ease);
}
.accordion details[open] > summary::after { transform: translateY(15%) rotate(-135deg); }
.accordion summary:hover { color: var(--accent); }
.accordion__body { padding: 0 .25rem 1.5rem; max-width: 65ch; color: var(--fg-soft); }
.accordion__body > * + * { margin-top: .9em; }
.accordion__body strong { color: var(--fg); }

/* ---------- 9.12 Form ---------- */
.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field label, .field__label { font-weight: 700; font-size: var(--fs-300); color: var(--ink); }
.field__req { color: var(--maple); font-weight: 600; }
.field__help { font-size: var(--fs-200); line-height: 1.45; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .95rem;
  border: 1.5px solid var(--field-border);
  border-radius: .8rem;
  background: #fff;
  color: var(--ink);
  font-size: max(1rem, var(--fs-400));          /* >= 16px: no iOS zoom on focus */
  line-height: 1.4;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2B2A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.500 12 15.500 18 9.500'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1.15rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--maple);
  outline-offset: 2px;
  border-color: var(--ink);
  border-radius: .8rem;
}
.field__error { display: none; font-size: var(--fs-200); font-weight: 600; line-height: 1.45; color: var(--maple-deep); }
.field.is-invalid .field__error, .field [aria-invalid="true"] ~ .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea,
.field [aria-invalid="true"] { border-color: var(--maple); box-shadow: inset 0 0 0 1px var(--maple); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; }
.form__status {
  display: grid; gap: .35rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--evergreen-soft);
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm);
  background: rgba(10, 50, 54, .08);
  font-size: var(--fs-300);
  line-height: 1.55;
  color: var(--ink);
}
.form__status--error { border-left-color: var(--maple); background: rgba(179, 49, 28, .08); }
/* empty = visually hidden but still in the accessibility tree, so the live region exists before its text arrives */
.form__status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 9.13 Video facade ---------- */
.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: var(--evergreen-deep);
  box-shadow: var(--shadow-lift);
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 30% 50%); transition: transform var(--dur-4) var(--ease); }
.video:hover img { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(0deg, rgba(var(--scrim), .92) 0, rgba(var(--scrim), .8) 5.5rem, rgba(var(--scrim), .2) 11rem, rgba(var(--scrim), .12) 100%);
}
.video__btn {
  display: grid; place-items: center;
  width: clamp(3.5rem, 8vw, 4.75rem); height: clamp(3.5rem, 8vw, 4.75rem);
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  flex: none;
  transition: transform var(--dur-2) var(--ease);
}
.video__btn .icon { width: 45%; height: 45%; margin-left: 6%; }
.video__play:hover .video__btn, .video__play:focus-visible .video__btn { transform: scale(1.08); }
/* Sits beside the play button, inside the dark end of the scrim (never floating over the photo). */
.video__label { align-self: flex-end; min-height: clamp(3.5rem, 8vw, 4.75rem); align-content: center; display: grid; gap: .15rem; font-family: var(--font-serif); font-size: var(--fs-500); line-height: 1.2; }
.video__note { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; letter-spacing: .02em; color: var(--on-dark-soft); }
.video__play:focus-visible { outline-offset: -6px; border-radius: var(--r-lg); }

/* ---------- 9.14 Gallery tiles + lightbox ---------- */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sand);
  color: var(--on-dark);
  text-decoration: none;
  isolation: isolate;
  --focus: var(--maple);
}
.tile img {
  --s: 1;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 50%);
  transform: scale(var(--s));
  transition: transform var(--dur-4) var(--ease);
}
.tile--crop img { --s: 1.08; }               /* crops the black bars baked into sanctuary-aerial-wide.jpg */
.tile:hover img, .tile:focus-visible img { transform: scale(calc(var(--s) + .05)); }
/* captions are opaque chips: never bare text on a photo */
.tile__cap {
  position: absolute; left: .5rem; bottom: .5rem;
  z-index: 2;
  display: grid; gap: .05rem;
  max-width: calc(100% - 1rem);
  padding: .45rem .75rem .5rem;
  border-radius: .75rem;
  background: rgba(var(--scrim), .92);
}
.tile__cap strong { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-400); line-height: 1.2; }
.tile__cap span { display: none; font-size: var(--fs-200); line-height: 1.35; color: var(--on-dark-soft); }
.tile__zoom {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(var(--scrim), .82);
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease);
}
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: 4px; border-radius: var(--r-md); }
.on-dark .tile, .section--evergreen .tile, .section--ember .tile { --focus: var(--cyan); }

/* even grid for subpages */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery .tile { aspect-ratio: 4 / 3; }
.gallery .tile--wide { grid-column: span 2; aspect-ratio: 16 / 7; }

/* art-directed mosaic (homepage) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(8.5rem, 42vw, 13rem);
  gap: .75rem;
}
.mosaic .tile--a, .mosaic .tile--e { grid-column: span 2; }
.mosaic .tile--a { grid-row: span 2; }

@media (min-width: 45em) {
  .tile { border-radius: var(--r-lg); }
  .tile:focus-visible { border-radius: var(--r-lg); }
  .tile__cap { left: .85rem; bottom: .85rem; max-width: calc(100% - 1.7rem); padding: .6rem 1rem .7rem; border-radius: 1rem; }
  .tile__cap strong { font-size: var(--fs-500); }
  .tile__cap span { display: block; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
  .gallery .tile--wide { aspect-ratio: 8 / 3; }
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(10rem, 17vw, 14.5rem); gap: clamp(.75rem, 1.4vw, 1.25rem); }
  .mosaic .tile--a { grid-column: span 7; grid-row: span 2; }
  .mosaic .tile--b, .mosaic .tile--c { grid-column: span 5; }
  .mosaic .tile--d { grid-column: span 4; }
  .mosaic .tile--e { grid-column: span 5; }
  .mosaic .tile--f { grid-column: span 3; }
}

/* Lightbox: every control lives in the top bar, and the image is capped at
   96vh minus that bar (--lb-chrome), so prev / next / close can never fall off a short landscape screen. */
.lightbox {
  width: min(96vw, 84rem);
  max-width: none;
  max-height: 96vh;
  max-height: 96dvh;
  padding: .5rem;                          /* room for focus rings inside the scroll box */
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: auto;
  --lb-chrome: 5.25rem;                    /* bar 3rem + gap .75rem + padding 1rem, rounded up */
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(4, 24, 26, .95); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.lightbox__count { font-size: var(--fs-300); font-weight: 600; letter-spacing: .08em; color: var(--on-dark-soft); }
.lightbox__controls { display: flex; gap: .5rem; }
.lightbox__figure { display: grid; justify-items: center; gap: .85rem; }
.lightbox__frame { width: fit-content; max-width: 100%; overflow: hidden; border-radius: var(--r-md); background: var(--evergreen-deep); }
.lightbox__frame img { width: auto; height: auto; max-width: 100%; max-height: calc(96vh - var(--lb-chrome) - 4.5rem); max-height: calc(96dvh - var(--lb-chrome) - 4.5rem); }
.lightbox__frame img.is-cropped { transform: scale(1.08); }
.lightbox figcaption { max-width: 44em; padding: 0 .5rem .25rem; text-align: center; font-family: var(--font-serif); font-size: var(--fs-400); line-height: 1.45; }
@media (max-height: 34em) {
  .lightbox__frame img { max-height: calc(96vh - var(--lb-chrome)); max-height: calc(96dvh - var(--lb-chrome)); }   /* caption scrolls below */
}

/* ---------- 9.15 Post card (blog teaser) ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.post-card__media { overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--focus-pos, 50% 40%); transition: transform var(--dur-4) var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 3vw, 2.25rem); }
.post-meta { font-size: var(--fs-200); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-card h2, .post-card h3 { margin-top: .9rem; font-size: var(--fs-700); line-height: 1.1; }
.post-card h2 a, .post-card h3 a, .clipping h3 a {
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  transition: background-size var(--dur-3) var(--ease);
}
.post-card h2 a:hover, .post-card h3 a:hover, .post-card h2 a:focus-visible, .post-card h3 a:focus-visible,
.clipping h3 a:hover, .clipping h3 a:focus-visible { background-size: 100% 2px; }
.post-card__body > p:not([class]) { margin-top: 1rem; color: var(--ink-soft); }
.post-card__body > .text-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
@media (min-width: 56.25em) {
  .post-card--wide { flex-direction: row; }
  .post-card--wide .post-card__media { flex: 0 0 44%; }
  .post-card--wide .post-card__media img { height: 100%; aspect-ratio: auto; }
}

/* byline row for a post */
.byline { display: flex; align-items: center; gap: .85rem; font-size: var(--fs-300); color: var(--fg-soft); line-height: 1.35; }
.byline strong { display: block; color: var(--fg); }
.byline__photo { width: 3.25rem; height: 3.25rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--sand); }
.byline__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- 9.16 Verse band: full-bleed in-world image moment ---------- */
.verse-band {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(24rem, 50vw, 38rem);
  padding-block: clamp(1.25rem, 4vw, 3.5rem);
  background: var(--evergreen-deep);
  isolation: isolate;
  overflow: hidden;
}
.verse-band__media { position: absolute; inset: 0; z-index: -1; }
.verse-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.verse-band__media--crop img { transform: scale(1.08); }
.verse-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--scrim), .45) 0%, rgba(var(--scrim), 0) 55%); }
.verse-band__plate {
  /* the text sits on its own evergreen plate, so the photo can stay bright */
  max-width: 40rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--cyan-line);
  border-radius: var(--r-lg);
  background: rgba(var(--scrim), .9);
  box-shadow: var(--shadow-dark);
}
.verse-band__plate p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-700);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--on-dark);
}
.verse-band__plate cite { display: flex; align-items: center; gap: .55em; margin-top: 1rem; font-size: var(--fs-200); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .verse-band__plate { background: rgba(var(--scrim), .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* ---------- 9.17 CTA band: closes every subpage ---------- */
.cta-band {
  position: relative;
  padding-block: var(--section-pad-sm);
  background:
    radial-gradient(44rem 24rem at 100% 100%, rgba(240, 180, 64, .12), transparent 62%),
    var(--evergreen);
}
.cta-band__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-band h2 { font-size: var(--fs-800); }
.cta-band h2 em { color: var(--gold-soft); }
.cta-band__text > p:not(.eyebrow) { margin-top: 1.1rem; max-width: 34em; color: var(--on-dark-soft); }
.cta-band .actions { margin-top: 1.75rem; }
.cta-band .findus { margin-top: 1.5rem; }
.cta-band__next {
  display: grid;
  gap: .3rem;
  padding: 1.35rem 1.5rem 1.4rem;
  border: 1px solid var(--cyan-line);
  border-radius: 1.5rem;
  background: rgba(var(--scrim), .6);
}
.cta-band__status { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-100); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-soft); }
.cta-band__name { font-family: var(--font-serif); font-size: var(--fs-700); line-height: 1.1; letter-spacing: -.015em; color: var(--on-dark); }
.cta-band__when { font-size: var(--fs-300); line-height: 1.45; color: var(--on-dark-soft); }
.cta-band__in { margin-top: .6rem; padding-top: .75rem; border-top: 1.5px dashed var(--line-dark-strong); font-size: var(--fs-300); color: var(--on-dark-soft); }
.cta-band__in strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-700); line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; color: var(--gold-soft); }
.cta-band__note { margin-top: .5rem; font-size: var(--fs-200); line-height: 1.45; color: var(--on-dark-soft); }
.cta-band__note .text-link { min-height: 0; padding-block: .85rem; margin-block: -.85rem; font-size: inherit; }
@media (min-width: 56.25em) {
  .cta-band__grid { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); }
}

/* ==========================================================================
   10. Homepage sections
   ========================================================================== */

/* ---------- Weekly rhythm ---------- */
.times {
  padding-top: calc(var(--section-pad) + 3.5rem);           /* room for the hero card that overlaps this section */
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(240, 180, 64, .16), transparent 60%),
    var(--parchment);
}
.times__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.times__intro .lede { margin-top: 1.4rem; }
.times__photo { margin-top: 2.25rem; }
.times__note { margin-top: 1.75rem; display: grid; gap: .9rem; }
.times__note p { font-size: var(--fs-300); color: var(--ink-soft); }
.times__note p strong { color: var(--ink); }
@media (min-width: 62em) {
  .times__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .times__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (min-width: 62em) and (max-height: 46em) {
  .times__intro { position: static; }                        /* un-stick when the column cannot fit the viewport */
}

/* ---------- About / why VR ---------- */
.about { background: var(--cream); }
.about__grid { display: grid; gap: var(--gap-grid); }
.about__text .lede { margin-top: 1.75rem; }
.about__cols { display: grid; gap: 1.25rem; margin-top: 1.75rem; color: var(--ink-soft); }
.about__links { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.about__figure { max-width: 26rem; justify-self: center; width: 100%; }
.about__figure .arch { --focus-pos: 47% 50%; }
.about__figure figcaption { margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--amber); font-size: var(--fs-300); line-height: 1.5; color: var(--ink-soft); }

.proof { display: grid; margin-top: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--rule); }
.proof li { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .5rem; }
.proof strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--accent);
}
.proof span { max-width: 22em; color: var(--fg-soft); line-height: 1.5; }

@media (min-width: 48em) {
  .about__cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  /* Equal thirds that may shrink; the numeral is sized so "100,000+" (the widest, ~3.9em) always fits its column. */
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .proof strong { font-size: min(var(--fs-display), calc(8.3vw - 1.4rem)); white-space: nowrap; }
  .proof li { padding: 2.25rem 2rem 2.25rem 0; border-bottom: 0; }
  .proof li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
}
@media (min-width: 62em) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; }
  .about__figure { justify-self: end; }
}

/* ---------- How to join ---------- */
.join {
  background:
    radial-gradient(50rem 30rem at 0% 100%, rgba(240, 180, 64, .10), transparent 60%),
    var(--evergreen);
}
.join__grid { display: grid; gap: var(--gap-grid); }
.join__figure { position: relative; margin: 0; }
.join__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-dark);
}
.join__figure figcaption { position: absolute; left: .85rem; right: .85rem; bottom: .85rem; }
.join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.75rem; }
@media (min-width: 62em) {
  .join__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .join__figure img { aspect-ratio: 4 / 5; }
}

/* ---------- Explore the world ---------- */
.explore { background: var(--parchment); }
.explore__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.explore__intro { color: var(--ink-soft); max-width: 34em; }
@media (min-width: 56.25em) {
  .explore__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}

/* ---------- Bible Island ---------- */
.island { background: var(--cream); }
.island__spread { display: grid; }
.island__figure { margin: 0; }
.island__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 55% 60%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.island__figure figcaption { display: none; max-width: 66%; margin-top: .85rem; font-size: var(--fs-300); color: var(--ink-soft); }
.island__card {
  position: relative;
  z-index: 1;
  margin: -3rem .75rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.island__card h2 { font-size: var(--fs-700); line-height: 1.08; }
.island__card > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--ink-soft); }
.island__card .leaf-list { margin: 1.5rem 0 2rem; }
@media (min-width: 62em) {
  .island__spread { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .island__figure { grid-column: 1 / 9; grid-row: 1; }
  .island__figure figcaption { display: block; }
  .island__card { grid-column: 7 / 13; grid-row: 1; margin: 0 0 -2.5rem; }
  .island { padding-bottom: calc(var(--section-pad) + 2.5rem); }
}

/* ---------- Community: "come as you are" ---------- */
.community {
  background:
    radial-gradient(48rem 28rem at 92% 8%, rgba(222, 138, 31, .18), transparent 62%),
    var(--ember);
}
.community__top { display: grid; gap: var(--gap-grid); }
.community__text > p:not(.eyebrow) { margin-top: 1.75rem; color: var(--on-dark-soft); max-width: 36em; }

.pullquote { margin-top: 2.25rem; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 3px solid var(--amber); }
.pullquote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-600);
  line-height: 1.36;
  letter-spacing: -.008em;
  color: var(--fg);
}
.pullquote footer { margin-top: 1.1rem; font-size: var(--fs-300); color: var(--fg-soft); }
.pullquote footer a { color: var(--link); text-underline-offset: .22em; }
.pullquote footer a:hover { text-decoration-color: var(--link-hover-line); }

.collage { position: relative; padding-bottom: 22%; max-width: 34rem; width: 100%; justify-self: center; }
.snap {
  margin: 0;
  padding: .55rem .55rem .2rem;
  border-radius: 1.1rem;
  background: var(--cream);
  box-shadow: var(--shadow-dark);
  transition: transform var(--dur-3) var(--ease);
}
.snap img { width: 100%; object-fit: cover; border-radius: .7rem; }
.snap figcaption { padding: .6rem .35rem .5rem; font-size: var(--fs-200); line-height: 1.4; color: var(--ink-soft); }
.snap--main { width: 90%; margin-left: auto; transform: rotate(1.2deg); }
/* Square crop of the aerial service photo, centred on the couches. */
.snap--main img { aspect-ratio: 1 / 1; object-position: 40% 55%; }
.snap--small { position: absolute; left: 0; bottom: 0; width: 50%; transform: rotate(-2.4deg); }
.snap--small img { aspect-ratio: 16 / 10; object-position: 40% 50%; }
.collage:hover .snap--main { transform: rotate(.4deg); }
.collage:hover .snap--small { transform: rotate(-1.2deg) translateY(-4px); }
/* Browsers without aspect-ratio (Safari 14 and older) cannot make the safe crop of the old sunset photo, which
   contains an outdated service-times poster, so about.html (.era--sunset) and the blog post (.post-figure--sunset)
   hide it there. !important beats the display values set in the page stylesheets. */
@supports not (aspect-ratio: 1 / 1) {
  .era--sunset, .post-figure--sunset { display: none !important; }
  .collage { padding-bottom: 0; }
  .collage .snap--small { position: static; width: 100%; }
}

.community__bottom { display: grid; gap: clamp(2.5rem, 5vw, 5rem); margin-top: clamp(4rem, 8vw, 7rem); }
.community__who h3 { font-size: var(--fs-700); line-height: 1.1; }
.community__who-src { margin-top: .6rem; color: var(--on-dark-soft); font-size: var(--fs-300); }
.community__who .notice { margin-top: 1.75rem; }
.who { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.who li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.who li::before {
  content: "";
  position: absolute; left: .1rem; top: 1.2rem;
  width: .65rem; height: .65rem;
  border-radius: var(--r-leaf);
  background: var(--amber);
}
@media (min-width: 62em) {
  .community__top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .collage { justify-self: end; }
  .community__bottom { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

/* ---------- Pastor Mike + blog clipping ---------- */
.pastor { background: var(--parchment); }
.pastor__grid { display: grid; gap: var(--gap-grid); }
.pastor__figure { position: relative; margin: 0; max-width: 36rem; }
.pastor__photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); transform: rotate(-1deg); }
.pastor__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }  /* wide enough to keep both the wave and the thumbs-up */
.pastor__sticker {
  position: absolute;
  right: 0; bottom: -1.5rem;
  padding: .7rem 1.15rem;
  border-radius: 1rem;
  background: var(--evergreen);
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-500);
  line-height: 1.2;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-soft);
}
.pastor__sticker span { display: block; font-family: var(--font-sans); font-style: normal; font-size: var(--fs-100); font-weight: 600; letter-spacing: .04em; color: var(--gold-soft); margin-top: .15rem; }
.pastor__text .lede { margin-top: 1.5rem; }
.pastor__text > p:not(.eyebrow):not(.lede) { margin-top: 1rem; color: var(--ink-soft); max-width: 36em; }

.clipping {
  display: grid;
  margin-top: clamp(4rem, 7vw, 6.5rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.clipping__main { padding: clamp(1.5rem, 4vw, 3rem); }
.clipping h3 { margin-top: .9rem; font-size: var(--fs-700); line-height: 1.1; letter-spacing: -.018em; }
.clipping__main > p:not([class]) { margin-top: 1.1rem; color: var(--ink-soft); max-width: 40em; }
.clipping__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.clipping__quote { display: grid; align-content: center; gap: 1rem; padding: clamp(1.75rem, 4vw, 3rem); background: var(--evergreen); }
.clipping__quote p { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: var(--fs-700); line-height: 1.2; letter-spacing: -.01em; }
.clipping__quote footer { font-size: var(--fs-300); color: var(--gold-soft); }
@media (min-width: 62em) {
  .pastor__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
  .clipping { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

/* ---------- Sermons + Give ---------- */
.watch { background: var(--cream); }
.watch__grid { display: grid; gap: clamp(3rem, 5vw, 5rem); }
.watch__sermons .lede { margin-top: 1.4rem; }
.watch__sermons .video { margin-top: 2rem; }
.watch__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }

.give {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(240, 180, 64, .35), transparent 65%),
    var(--sand);
  --accent: var(--maple-deep);
  --link: var(--maple-deep);
}
.give h2 { font-size: var(--fs-700); line-height: 1.08; }
.give .verse { margin: 1.5rem 0; border-left-color: var(--maple); }
.give > p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--fs-300); }
.give__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; }
@media (min-width: 62em) {
  .watch__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

/* ---------- Connect band ---------- */
.connect { background: var(--evergreen); }
.connect__grid { display: grid; gap: var(--gap-grid); }
.connect__lead > p:not(.eyebrow):not(.connect__mail) { margin-top: 1.5rem; color: var(--on-dark-soft); max-width: 34em; }
.connect__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.connect__mail { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; color: var(--gold-soft); }
.connect__mail a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; text-underline-offset: .25em; overflow-wrap: anywhere; }
.connect__mail a:hover { text-decoration-color: var(--cyan); }
.connect__h { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: .75rem; }
.socials a {
  display: flex; align-items: center; gap: .8rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  text-decoration: none;
  color: var(--fg);
  transition: color var(--dur-1), transform var(--dur-2) var(--ease);
}
.socials a .icon { color: var(--accent-2); width: 1.15em; height: 1.15em; transition: color var(--dur-1); }
.socials a:hover { color: var(--accent); transform: translateX(6px); }
.on-dark .socials a:hover .icon, .connect .socials a:hover .icon { color: var(--cyan); }

.serve { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--r-md); background: var(--evergreen-soft); }
.serve p { margin-top: .6rem; font-size: var(--fs-300); color: var(--on-dark-soft); }
.serve strong { color: var(--on-dark); }
.serve .text-link { margin-top: .5rem; }
@media (min-width: 62em) {
  .connect__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--evergreen-deep);
  color: var(--on-dark-soft);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  font-size: var(--fs-300);
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: .25em; }
.site-footer a.btn--gold, .site-footer a.btn--gold:hover { color: var(--gold-ink); text-decoration: none; }

.site-footer__verse {
  max-width: 50rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__verse p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-700);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--on-dark);
}
.site-footer__verse cite { display: block; margin-top: 1rem; font-size: var(--fs-200); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand, .site-footer__times { grid-column: 1 / -1; }
.site-footer__brand p { margin-top: 1.1rem; max-width: 26em; }
.site-footer__mail a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: underline; text-underline-offset: .25em; overflow-wrap: anywhere; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; margin-left: -.6rem; }
.site-footer__social a { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; transition: background-color var(--dur-1), color var(--dur-1); }
.site-footer__social a:hover { background: rgba(251, 246, 234, .1); }
.site-footer__social .icon { width: 1.35rem; height: 1.35rem; }

.site-footer h2 { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .6rem; }
.site-footer h2 span { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--on-dark-soft); }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer__times ul { margin-bottom: 1.5rem; }
.site-footer__times li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line-dark); }
.site-footer__times li span:first-child { color: var(--on-dark); font-weight: 600; }
.site-footer__times li em { display: block; font-style: normal; font-weight: 400; font-size: var(--fs-200); color: var(--on-dark-soft); }
.site-footer__times li span:last-child { white-space: nowrap; }

.site-footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-300);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); }

@media (min-width: 62em) {
  .site-footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr); gap: 3rem; }
  .site-footer__brand, .site-footer__times { grid-column: auto; }
}


/* ==========================================================================
   12. Mobile dock (next gathering + join). Driven by [data-countdown]; shown by main.js
   once every [data-dock-hide] element (hero, cta-band, footer) has left the viewport.
   ========================================================================== */
.dock {
  position: fixed;
  left: max(.75rem, env(safe-area-inset-left, 0px)); right: max(.75rem, env(safe-area-inset-right, 0px));
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-dock);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem .55rem .55rem 1.15rem;
  border: 1px solid var(--cyan-line);
  border-radius: 1.9rem;
  background: var(--evergreen-deep);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(140%);
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-2), visibility 0s linear var(--dur-3);
}
.dock.is-visible { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.dock__text { display: grid; min-width: 0; font-size: var(--fs-200); line-height: 1.3; color: var(--on-dark-soft); }
.dock__text strong { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-300); color: var(--on-dark); }
.dock__text strong > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.dock .pulse { width: .5rem; height: .5rem; }
.dock .btn { flex: none; }
@media (max-width: 22.5em) { .dock .btn .icon { display: none; } .dock { padding-left: .95rem; } }
@media (min-width: 68.75em) { .dock { display: none !important; } }

/* ==========================================================================
   13. Reveal, reduced motion, print
   ========================================================================== */
/* Opt-in: main.js adds .reveal-on to <html> only when IntersectionObserver exists and the
   visitor has not asked for reduced motion. Without it, .reveal content is simply visible. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero__leaves, .motion-toggle { display: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .btn:hover, .socials a:hover { transform: none; }
  .tile:hover img, .tile:focus-visible img { transform: scale(var(--s)); }
  .video:hover img, .post-card:hover .post-card__media img { transform: none; }
}

@media print {
  .site-header, .dock, .hero__leaves, .motion-toggle, .lightbox, .skip-link, .cta-band { display: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
  /* Browsers drop backgrounds when printing. Dark surfaces keep theirs, so light text
     (and the logo, whose white "VR" vanishes on paper) never lands on white. */
  .on-dark, .hero, .page-hero, .page-hero__body, .page-hero__media::after, .verse-band, .verse-band__plate,
  .join, .community, .connect, .site-footer, .section--evergreen, .section--ember, .clipping__quote, .video, .tile__cap {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
