/* Rocky Cross design system, v2 ("Evergreen").
   Used by pages that have moved to the new design (currently index.html only).
   Palette from Mason's swatches: evergreen, forest, glacier, stone, brass.
   System fonts only (SF on Apple devices), no outside requests.
   Motion is progressive: every word and photo is visible without scripts,
   and nothing animates under prefers-reduced-motion. */

:root {
  /* evergreen (dark surfaces) */
  --e950: #0a1310;
  --e900: #0f1b17;
  --e800: #14241e;
  --e700: #1b2f27;
  --e600: #24392f;
  --forest: #394c40;
  --glacier: #648185;

  /* stone (light surfaces) */
  --s50: #faf7f0;
  --s100: #f4eee1;
  --s200: #eee2cc;
  --s400: #c6b296;

  /* brass (accent) */
  --brass: #c2a06e;        /* on dark */
  --brass-deep: #8e6c44;
  --bronze: #7a5a33;       /* on light */

  /* text */
  --ink: #111916;
  --ink-2: #48534d;
  --cream: #f6f0e2;
  --on-dark: #f6f0e2;
  --on-dark-2: rgba(246, 240, 226, 0.72);
  --hair-dark: rgba(246, 240, 226, 0.14);
  --hair-light: rgba(17, 25, 22, 0.12);

  /* shape and layout */
  --r-xl: 44px;
  --r-lg: 32px;
  --r-md: 22px;
  --gutter: clamp(20px, 4.6vw, 72px);
  --maxw: 1320px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* type scale: nine sizes in total (these six, plus 17px body, 15px small, 14px label) */
  --t-hero: clamp(3.3rem, 15.4vw, 7.5rem);
  --t-display: clamp(2.75rem, 7.4vw, 7.25rem);
  --t-xl: clamp(1.9rem, 4.3vw, 4.25rem);
  --t-lg: clamp(1.75rem, 3.4vw, 3.375rem);
  --t-md: clamp(1.5rem, 2.3vw, 2.125rem);
  --t-lead: clamp(1.125rem, 1.55vw, 1.375rem);

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--e950);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
::selection { background: var(--brass); color: var(--e950); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--bronze); }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--e900); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 2 * var(--gutter)), var(--maxw)); margin-inline: auto; }

/* ---------- type ---------- */

.eyebrow {
  font: 600 0.875rem/1.2 var(--font);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass);
}
.light .eyebrow { color: var(--bronze); }

.display { font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.042em; }

.lead { font-size: var(--t-lead); line-height: 1.5; }
.dark .lead { color: var(--on-dark-2); }
.light .lead { color: var(--ink-2); }

.grad {
  background: linear-gradient(96deg, #fbf6ea 0%, #ecd9b4 40%, #c59f69 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- buttons and links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 1.0625rem/1 var(--font); letter-spacing: -0.012em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.button:active { transform: scale(0.97); }
.button.cream { background: var(--cream); color: var(--e900); }
.button.cream:hover { background: #fff; }
.button.glass {
  background: rgba(246, 240, 226, 0.1); color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 226, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.button.glass:hover { background: rgba(246, 240, 226, 0.22); }
.button.dark { background: var(--e800); color: var(--cream); }
.button.dark:hover { background: var(--e600); }
.button.line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(17, 25, 22, 0.32); }
.button.line:hover { background: var(--ink); color: var(--s50); }

.link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-weight: 600; color: var(--bronze);
}
.dark .link { color: var(--brass); }
.link svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link.out:hover svg { transform: translate(3px, -3px); }

/* ---------- header: floating glass bar ---------- */

.site-header {
  position: fixed; z-index: 60; top: 12px; left: 12px; right: 12px;
  max-width: 1180px; height: 56px; margin-inline: auto;
  border-radius: 999px; color: var(--on-dark);
}
/* The blur sits on a pseudo-element so the full-screen phone menu (a fixed child)
   is not trapped inside the bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(12, 22, 18, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 226, 0.13), 0 12px 40px rgba(4, 10, 8, 0.28);
}
.header-inner { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 8px 0 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 1.0625rem/1 var(--font); letter-spacing: -0.012em; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; color: var(--brass); flex: none; }
.brand span span { color: var(--on-dark-2); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 0.9375rem; color: var(--on-dark-2); white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--on-dark); background: rgba(246, 240, 226, 0.09); }
.site-nav a[aria-current="page"] { color: var(--on-dark); }
.header-cta { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; margin-left: 6px; }
.nav-toggle { display: none; }

@media (max-width: 1068px) {
  .header-inner { padding-left: 18px; }
  .header-cta { margin-left: auto; position: relative; }
  .header-cta::after { content: ""; position: absolute; inset: -4px 0; }
  .nav-toggle {
    position: relative; display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--on-dark); cursor: pointer;
  }
  .nav-toggle span[aria-hidden] { position: absolute; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
  .nav-toggle span[aria-hidden]:nth-of-type(2) { transform: translateY(-4px); }
  .nav-toggle span[aria-hidden]:nth-of-type(3) { transform: translateY(4px); }
  .menu-open .nav-toggle span[aria-hidden]:nth-of-type(2) { transform: rotate(45deg); }
  .menu-open .nav-toggle span[aria-hidden]:nth-of-type(3) { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: -2; margin: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0;
    padding: 96px var(--gutter) 56px;
    background: #080f0c;
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
  .site-nav a {
    height: auto; padding: 0.16em 0; border-radius: 0;
    font: 700 var(--t-xl)/1.16 var(--display); letter-spacing: -0.035em; color: var(--on-dark);
  }
  .site-nav a:hover { background: none; color: var(--brass); }
  .site-nav a[aria-current="page"] { color: var(--brass); }
}
@media (max-width: 480px) {
  .brand span span { display: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; z-index: 0; background: var(--e950); color: var(--on-dark); }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: max(100svh, 640px);
  padding: 108px 0 28px;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(58% 60% at 70% 34%, rgba(100, 129, 133, 0.42), transparent 72%),
    radial-gradient(46% 46% at 6% 96%, rgba(194, 160, 110, 0.16), transparent 70%);
}
.hero-media { position: absolute; z-index: -2; inset: 11vh 0 0 0; inset: 11svh 0 0 0; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 61% 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--e950) 0, var(--e950) 11svh, rgba(10, 19, 16, 0) 21svh),
    linear-gradient(0deg, var(--e950) 0, rgba(10, 19, 16, 0.5) 18%, rgba(10, 19, 16, 0) 36%);
}

.hero-content { position: relative; z-index: 0; margin-top: auto; }
.hero .eyebrow { color: #e6d3ad; }
/* a scrim that starts just above the text, wherever the text ends up */
.hero-content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -50vw; right: -50vw; top: -64px; bottom: -100vh;
  background: linear-gradient(180deg, rgba(10, 19, 16, 0) 0, rgba(10, 19, 16, 0.68) 64px, rgba(10, 19, 16, 0.86) 190px, rgba(10, 19, 16, 0.95) 330px, var(--e950) 460px);
}
.hero h1 { margin-top: 18px; font-size: var(--t-hero); line-height: 0.9; letter-spacing: -0.046em; }
.hl { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hl > span { display: inline-block; }
.hero-sub { max-width: 27em; text-wrap: balance; margin-top: 22px; font-size: var(--t-lead); line-height: 1.42; color: rgba(246, 240, 226, 0.86); }
.hero .actions { margin-top: 30px; }

/* this sunday: glass bar */
.sunday {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 36px; border-radius: var(--r-md); overflow: hidden;
  background: rgba(12, 22, 18, 0.5);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 226, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.sunday > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 20px; box-shadow: inset 0 1px 0 rgba(246, 240, 226, 0.12); }
.sunday .sb-title { grid-column: 1 / -1; box-shadow: none; padding-bottom: 6px; }
.sunday .sb-where { grid-column: 1 / -1; }
.sunday .k { font-size: 0.875rem; color: var(--on-dark-2); }
.sunday .v { font: 600 var(--t-lead)/1.1 var(--display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sunday .sb-where .v { font-size: 1.0625rem; letter-spacing: -0.012em; line-height: 1.3; white-space: normal; }
.sunday .link { font-size: 0.9375rem; white-space: nowrap; }

/* landscape windows: photo on the right, type on the left */
@media (orientation: landscape) and (min-width: 700px) {
  .hero-stage { min-height: max(100svh, 600px); padding-top: 100px; }
  .hero-media {
    inset: 0 0 0 auto; width: 61%; padding-top: 11vh;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.22) 5%, rgba(0, 0, 0, 0.68) 13%, #000 27%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.22) 5%, rgba(0, 0, 0, 0.68) 13%, #000 27%);
  }
  .hero-media img { object-position: 64% 0; }
  .hero-shade {
    background:
      linear-gradient(180deg, var(--e950) 0, var(--e950) 11vh, rgba(10, 19, 16, 0) 23vh),
      linear-gradient(0deg, var(--e950) 0, rgba(10, 19, 16, 0.8) 12%, rgba(10, 19, 16, 0.28) 27%, rgba(10, 19, 16, 0) 42%),
      linear-gradient(90deg, rgba(10, 19, 16, 0.92) 0, rgba(10, 19, 16, 0.6) 30%, rgba(10, 19, 16, 0) 47%);
  }
  .hero-content { margin-block: auto; padding-block: 12px; }
  .hero-content::before { display: none; }
  .hero-copy { max-width: min(56%, 900px); }
  .hero h1 { font-size: clamp(3.25rem, min(8.3vw, 16.4vh), 9.5rem); }
  .sunday { grid-template-columns: auto 1fr 1fr 1.9fr; margin-top: 0; }
  .sunday > div { box-shadow: inset 1px 0 0 rgba(246, 240, 226, 0.12); padding: 16px 24px; }
  .sunday .sb-title { grid-column: auto; padding-bottom: 16px; box-shadow: none; }
  .sunday .sb-where { grid-column: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
}

@media (orientation: landscape) and (min-width: 700px) and (max-width: 1068px) {
  .sunday { grid-template-columns: auto auto 1fr; }
  .sunday .sb-title { display: none; }
  .sunday > div:nth-child(2) { box-shadow: none; }
  .sunday .sb-where .v { text-wrap: balance; }
  .hero-media img { object-position: 100% 0; }
}

/* ---------- sheets (the stacked, rounded sections) ---------- */

.sheet {
  position: relative; z-index: 1;
  padding: clamp(88px, 10.5vw, 176px) 0 calc(clamp(88px, 10.5vw, 176px) + var(--r-xl));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.sheet + .sheet { margin-top: calc(-1 * var(--r-xl)); }
.sheet.light { --sheet-bg: var(--s50); background: var(--s50); color: var(--ink); }
.sheet.stone { --sheet-bg: var(--s100); background: var(--s100); }
.sheet.dark { --sheet-bg: var(--e900); background: var(--e900); color: var(--on-dark); }
.sheet.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(50% 36% at 88% 8%, rgba(100, 129, 133, 0.2), transparent 70%),
    radial-gradient(44% 34% at 4% 78%, rgba(194, 160, 110, 0.1), transparent 70%);
}

.section-head > * + * { margin-top: 18px; }
.section-head .lead { max-width: 38em; margin-top: 26px; }

/* ---------- welcome: lit statement, story, panorama ---------- */

.statement-text {
  margin-top: 26px; max-width: 20.5em;
  font: 600 var(--t-xl)/1.08 var(--display); letter-spacing: -0.032em;
}
.statement-text .w { transition: color 0.5s var(--ease); }
.statement-text.lit-ready .w { color: rgba(17, 25, 22, 0.17); }
.statement-text.lit-ready .w.on { color: var(--ink); }
.dark .statement-text.lit-ready .w { color: rgba(246, 240, 226, 0.2); }
.dark .statement-text.lit-ready .w.on { color: var(--on-dark); }
.statement-text.grand { max-width: 12em; font-size: var(--t-display); font-weight: 700; line-height: 0.98; letter-spacing: -0.042em; }

.story { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: start; margin-top: clamp(64px, 8.5vw, 136px); }
.pull { font: italic 400 var(--t-lg)/1.14 var(--serif); letter-spacing: -0.012em; color: var(--bronze); text-wrap: balance; }
.pull::before { content: ""; display: block; width: 56px; height: 1px; margin-bottom: 30px; background: var(--brass-deep); }
.story-copy p { font-size: var(--t-lead); line-height: 1.58; color: var(--ink-2); }
.story-copy p + p { margin-top: 1.1em; }
.story-copy .link { margin-top: 18px; }

.panorama { position: relative; overflow: hidden; margin-top: clamp(64px, 8.5vw, 136px); border-radius: var(--r-lg); background: var(--s200); aspect-ratio: 1800 / 742; }
.panorama picture, .panorama img { display: block; width: 100%; height: 100%; }
.panorama img { object-fit: cover; }
.panorama figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 10px 18px; border-radius: 999px;
  background: rgba(250, 247, 240, 0.82); color: var(--ink); font-size: 0.9375rem; font-weight: 600;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}

/* ---------- what to expect: steps with a pinned photo stage ---------- */

.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--e700); aspect-ratio: 4 / 5; }
.arch picture, .arch img { display: block; width: 100%; height: 100%; }
.arch img { object-fit: cover; }
[data-fig="1"] img { object-position: 36% 50%; }
[data-fig="2"] img { object-position: 60% 50%; }
[data-fig="3"] img { object-position: 90% 50%; }
[data-fig="4"] img { object-position: 50% 12%; }

.steps { margin-top: clamp(40px, 6vw, 96px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 7vw, 120px); align-items: center; padding: 40px 0; border-top: 1px solid var(--hair-dark); }
.step-num { font: 600 0.875rem/1 var(--font); letter-spacing: 0.16em; color: var(--brass); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 18px; font-size: var(--t-lg); line-height: 1; letter-spacing: -0.038em; }
.step p { max-width: 32em; margin-top: 18px; font-size: var(--t-lead); line-height: 1.5; color: var(--on-dark-2); }
.step .link { margin-top: 14px; }

/* enhanced on wide screens: the photos move into one pinned arch and cross-fade */
.scene-grid.scene-ready { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(40px, 8vw, 150px); align-items: start; }
.scene-ready .steps { margin-top: 0; }
.scene-ready .step { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 68vh; padding: 0; border: 0; opacity: 0.5; transition: opacity 0.6s var(--ease); }
.scene-ready .step.is-active { opacity: 1; }
.scene-stage { display: none; }
.scene-ready .scene-stage { display: block; position: sticky; top: max(104px, calc(50vh - 270px)); aspect-ratio: 4 / 5; margin-top: 7vh; }
.scene-ready .scene-stage::before { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(194, 160, 110, 0.42); border-radius: 999px 999px 44px 44px; pointer-events: none; }
.scene-ready .scene-stage .arch { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; transform: scale(1.05); transition: opacity 0.8s var(--ease), transform 1.3s var(--ease); }
.scene-ready .scene-stage .arch.is-active { opacity: 1; transform: none; }
.scene-count { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); font: 600 0.875rem/1 var(--font); letter-spacing: 0.16em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scene-count b { color: var(--brass); font-weight: 600; }
.scene-cta { margin-top: clamp(40px, 6vw, 88px); }
.scene-ready + .scene-cta { margin-top: clamp(72px, 9vw, 128px); }

/* ---------- next steps: bento ---------- */

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(312px, auto); gap: 18px; margin-top: clamp(40px, 5.5vw, 80px); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 312px; padding: 30px; border-radius: var(--r-lg);
  background: var(--e800); color: var(--on-dark);
}
.tile-media { position: absolute; inset: 0; z-index: -2; }
.tile-media picture, .tile-media img { display: block; width: 100%; height: 100%; }
.tile-media img { object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 19, 16, 0.92) 0, rgba(10, 19, 16, 0.5) 40%, rgba(10, 19, 16, 0) 70%); }
.tile h3 { font-size: var(--t-md); line-height: 1.04; letter-spacing: -0.034em; }
.tile p { max-width: 30em; margin-top: 10px; color: var(--on-dark-2); }
.tile .eyebrow { margin-bottom: 14px; }
.tile .go {
  position: absolute; top: 22px; right: 22px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246, 240, 226, 0.16); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease);
}
.tile .go svg { width: 18px; height: 18px; }
.tile:hover .go { background: var(--cream); color: var(--e900); transform: scale(1.08); }
.tile .more { margin-top: 16px; font-weight: 600; color: var(--brass); }

.tile-visit { grid-column: span 2; grid-row: span 2; padding: 38px; }
.tile-visit h3 { font-size: var(--t-xl); line-height: 0.96; letter-spacing: -0.042em; }
.tile-visit p { font-size: var(--t-lead); }

.tile-groups { grid-column: span 2; justify-content: space-between; background: linear-gradient(140deg, #2a3f34 0%, var(--e700) 52%, var(--e800) 100%); }
.tile-groups h3 { max-width: 17em; line-height: 1.1; letter-spacing: -0.03em; }
.when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 26px; padding-right: 56px; }
.when-time { font: 700 var(--t-display)/0.84 var(--display); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.when-time small { margin-left: 0.14em; font-size: 0.3em; letter-spacing: 0; font-weight: 600; }
.when-day { font: 600 0.875rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

.tile-watch .tile-media img { object-position: 82% 50%; }

.tile-give { background: linear-gradient(160deg, #a37c4a 0%, #86633a 46%, #5f4526 100%); }
.tile-mark { position: absolute; z-index: -1; left: -8%; top: -14%; width: 78%; height: auto; color: rgba(255, 255, 255, 0.1); }
.tile-give p { color: rgba(255, 255, 255, 0.86); }
.tile-give .go { background: rgba(255, 255, 255, 0.2); }
/* brass text on the brass tile is unreadable (1.5:1); use cream there */
.tile-give .more { color: var(--cream); }

/* ---------- closing ---------- */

.closing { text-align: center; }
.closing .display { max-width: 11.5em; margin: 20px auto 0; }
.closing .lead { margin-top: 28px; }
.closing .actions { justify-content: center; margin-top: 34px; }

.times { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1px; max-width: 1040px; margin: clamp(48px, 6.5vw, 96px) auto 0; overflow: hidden; border-radius: var(--r-lg); background: var(--hair-dark); text-align: left; }
.times > div { display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 32px; background: var(--e800); }
.times dt { font: 600 0.875rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.times dd { font: 700 var(--t-xl)/0.95 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.times dd small { margin-left: 0.16em; font-size: 0.36em; letter-spacing: 0; font-weight: 600; color: var(--on-dark-2); }
.times dd.addr { font: 600 var(--t-lead)/1.3 var(--display); letter-spacing: -0.02em; }
.times dd.dir { margin-top: auto; font: inherit; letter-spacing: inherit; }
.times .link { margin-bottom: -10px; }

.elevation { width: min(1180px, 100%); margin: 0 auto; color: var(--brass); }
.elevation svg { width: 100%; height: auto; overflow: visible; }
.elevation path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.elevation .soft { opacity: 0.5; }

/* ---------- inner page heroes ---------- */

.page-hero {
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  padding: clamp(140px, 15vw, 216px) 0 calc(clamp(64px, 8vw, 120px) + var(--r-xl));
  background: var(--e950); color: var(--on-dark);
}
.page-hero + .sheet { margin-top: calc(-1 * var(--r-xl)); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 70% at 84% 18%, rgba(100, 129, 133, 0.36), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(194, 160, 110, 0.14), transparent 70%);
}
.page-hero h1 { max-width: 11em; margin-top: 18px; font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.042em; }
.page-hero .lead { max-width: 33em; margin-top: 28px; color: rgba(246, 240, 226, 0.84); }
.page-hero .actions { margin-top: 34px; }

.page-hero.split .container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero.split .arch { width: 100%; max-width: 420px; justify-self: end; }

.page-hero.photo { display: flex; align-items: flex-end; min-height: min(92svh, 920px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 30%; }
.page-hero.photo::before {
  background:
    linear-gradient(180deg, rgba(10, 19, 16, 0.62) 0, rgba(10, 19, 16, 0) 24%),
    linear-gradient(0deg, var(--e950) 0, rgba(10, 19, 16, 0.9) 24%, rgba(10, 19, 16, 0.42) 54%, rgba(10, 19, 16, 0) 76%);
}

.page-hero.light { background: var(--s50); color: var(--ink); }
.page-hero.light::before { background: radial-gradient(48% 60% at 92% 8%, rgba(198, 178, 150, 0.42), transparent 70%); }
.page-hero.light .lead { color: var(--ink-2); }
.page-hero.light.split .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero-frame { overflow: hidden; border-radius: var(--r-lg); background: var(--s200); aspect-ratio: 1800 / 1539; }
.hero-frame picture, .hero-frame img { display: block; width: 100%; height: 100%; }
.hero-frame img { object-fit: cover; }

.page-hero.tall { display: flex; align-items: center; min-height: min(88svh, 860px); }
.hero-mark { position: absolute; z-index: -1; right: -4%; top: 50%; width: min(58vw, 720px); height: auto; transform: translateY(-50%); color: rgba(246, 240, 226, 0.05); }

.facts { display: grid; grid-template-columns: auto auto 1fr; margin-top: 36px; overflow: hidden; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--hair-light); }
.facts > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 22px; }
.facts > div + div { box-shadow: inset 1px 0 0 var(--hair-light); }
.facts dt { font-size: 0.875rem; color: var(--ink-2); }
.facts dd { font: 600 var(--t-lead)/1.15 var(--display); letter-spacing: -0.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts .where dd { font-size: 1.0625rem; letter-spacing: -0.012em; white-space: normal; text-wrap: balance; }

.h-xl { font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.036em; }

/* ---------- timeline ---------- */

.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: clamp(48px, 6vw, 96px); }
.timeline.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--hair-dark); }
.light .timeline::before { background: var(--hair-light); }
.t-item { position: relative; padding-top: 44px; }
.t-item::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 7px var(--sheet-bg, var(--e900)); }
.light .t-item::before { background: var(--brass-deep); }
.t-item h3 { margin-top: 12px; font-size: var(--t-lead); line-height: 1.18; letter-spacing: -0.022em; }
.t-item p:not(.eyebrow) { margin-top: 10px; color: var(--on-dark-2); }
.light .t-item p:not(.eyebrow) { color: var(--ink-2); }
.t-num { font: 600 0.875rem/1 var(--font); letter-spacing: 0.16em; color: var(--brass); font-variant-numeric: tabular-nums; }

/* ---------- two-column sections: heading beside a list ---------- */

.aside-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.aside-head > * + * { margin-top: 18px; }
.aside-head .lead { margin-top: 24px; }
.aside-head .arch { max-width: 380px; margin-top: 44px; }
.aside-head.sticky { position: sticky; top: 120px; }

.rows { border-top: 1px solid var(--hair-light); }
.row { padding: 30px 0; border-bottom: 1px solid var(--hair-light); }
.row h3 { font-size: var(--t-md); line-height: 1.08; letter-spacing: -0.032em; }
.row .eyebrow + h3 { margin-top: 12px; }
.row p:not(.eyebrow) { max-width: 34em; margin-top: 12px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }

.accordion { border-top: 1px solid var(--hair-light); }
.accordion-item { border-bottom: 1px solid var(--hair-light); }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; min-height: 76px; padding: 20px 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: 600 var(--t-lead)/1.25 var(--display); letter-spacing: -0.022em;
}
.accordion-trigger::after {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--s200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23111916' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease);
}
.accordion-trigger:hover::after { background-color: var(--s400); }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { max-width: 40em; padding: 0 56px 28px 0; }
.accordion-panel p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.accordion-panel a { color: var(--bronze); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; overflow-wrap: anywhere; }

/* ---------- tiles and cards for facts ---------- */

.fact-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5.5vw, 80px); }
.fact-tile { display: flex; flex-direction: column; min-height: 330px; padding: 30px; border-radius: var(--r-lg); background: var(--e800); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.fact-tile .big { font: 700 var(--t-display)/0.84 var(--display); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.fact-tile .big small { margin-left: 0.12em; font-size: 0.3em; letter-spacing: 0; font-weight: 600; }
.fact-tile .big-sub { margin-top: 14px; font: 600 0.875rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.fact-tile h3 { margin-top: auto; padding-top: 28px; font-size: var(--t-lead); line-height: 1.18; letter-spacing: -0.022em; }
.fact-tile h3 + p { margin-top: 10px; color: var(--on-dark-2); }
.fact-tile.accent { background: linear-gradient(160deg, #2a3f34, var(--e700)); }
.sheet-note { max-width: 40em; margin-top: 36px; font-size: var(--t-lead); color: var(--on-dark-2); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.card { padding: 30px; border-radius: var(--r-lg); background: var(--s100); }
.stone .card { background: var(--s50); }
.card h3 { font-size: var(--t-md); line-height: 1.08; letter-spacing: -0.032em; }
.card .eyebrow + h3, .card .card-num + h3 { margin-top: 44px; }
.card h3 + p { margin-top: 12px; color: var(--ink-2); }
.card-num { display: block; font: 600 0.875rem/1 var(--font); letter-spacing: 0.16em; color: var(--bronze); font-variant-numeric: tabular-nums; }
.feature { margin-top: clamp(40px, 5.5vw, 80px); padding: clamp(30px, 4.5vw, 64px); border-radius: var(--r-lg); background: var(--e900); color: var(--on-dark); }
.feature h3 { font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.036em; }
.feature p { max-width: 38em; margin-top: 20px; font-size: var(--t-lead); color: var(--on-dark-2); }
.after-cards { margin-top: 30px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5.5vw, 80px); }
.pillar { padding-top: 26px; border-top: 1px solid var(--hair-dark); }
.pillar .num { font: 700 var(--t-xl)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.pillar h3 { margin-top: 22px; font-size: var(--t-md); line-height: 1.08; letter-spacing: -0.032em; }
.pillar h3 + p { margin-top: 12px; color: var(--on-dark-2); }
.divide { margin-top: clamp(88px, 10.5vw, 176px); }

/* ---------- about: story and pastor ---------- */

.story-lit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 112px); align-items: start; margin-top: clamp(40px, 5.5vw, 80px); }
.story-lit .statement-text { margin-top: 0; max-width: none; font-size: var(--t-lg); line-height: 1.14; letter-spacing: -0.028em; }
.story-lit .arch { width: 100%; max-width: 400px; justify-self: end; }

.pastor { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.pastor .arch { position: sticky; top: 120px; }
.pastor-copy h2 { margin-top: 18px; }
.pastor-copy > p:not(.eyebrow) { margin-top: 1.1em; font-size: var(--t-lead); line-height: 1.58; color: var(--ink-2); }
.pastor-copy h2 + p { margin-top: 30px; }
.arch figcaption {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px;
  background: rgba(250, 247, 240, 0.86); color: var(--ink); font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.quote { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hair-light); }
.quote blockquote { margin: 0; font: italic 400 var(--t-md)/1.26 var(--serif); letter-spacing: -0.008em; color: var(--bronze); }
.quote figcaption { margin-top: 18px; font-size: 0.9375rem; font-weight: 600; }

/* ---------- connect ---------- */

.groups { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.groups-copy > * + * { margin-top: 18px; }
.groups-copy .lead { margin-top: 26px; }
.groups-copy .actions { margin-top: 32px; }
.ticket { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 380px; padding: 36px; border-radius: var(--r-lg); background: linear-gradient(140deg, #2a3f34 0%, var(--e700) 52%, var(--e800) 100%); color: var(--on-dark); }
.ticket .when-time { font-size: var(--t-hero); }
.ticket .when-day { color: var(--brass); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(40px, 5.5vw, 80px); }
.duo .tile { min-height: 340px; padding: 36px; }
.duo .tile h3 { font-size: var(--t-xl); line-height: 1; letter-spacing: -0.04em; }
.tile-forest { background: linear-gradient(140deg, #2a3f34 0%, var(--e700) 52%, var(--e800) 100%); }

/* ---------- give ---------- */

.give-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-top: clamp(40px, 5.5vw, 80px); }
.give-online { grid-row: span 2; justify-content: space-between; min-height: 440px; padding: 38px; }
/* This tile has small text at its top, where the standard brass is too light for
   cream text (3.3:1). A slightly deeper brass keeps every line at 4.5:1 or better. */
.give-online { background: linear-gradient(160deg, #896639 0%, #775630 46%, #553d21 100%); }
.give-online .eyebrow { color: var(--cream); }
.give-online h3 { font-size: var(--t-xl); line-height: 1; letter-spacing: -0.04em; }
.give-online .button { align-self: flex-start; margin-top: 28px; }
.paypal-copy-status { min-height: 1.5em; margin-top: 12px; font-size: 0.9375rem; color: #fff; }

/* ---------- forms ---------- */

.form-card { padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--hair-light); }
.site-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.form-field { display: grid; gap: 8px; align-content: start; }
.form-field.full { grid-column: 1 / -1; }
.form-field span { font-size: 0.9375rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px;
  background: var(--s50); box-shadow: inset 0 0 0 1px rgba(17, 25, 22, 0.18);
  font: inherit; color: var(--ink); transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23111916' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--bronze); }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; background: #e4efe2; color: #1d4a2a; font-weight: 600; }
.form-success[hidden] { display: none; }

/* ---------- footer ---------- */

/* the footer is the last sheet: it slides over whatever came before, and the line drawing sits on its horizon */
.site-footer {
  position: relative; z-index: 1; margin-top: calc(-1 * var(--r-xl)); padding: clamp(56px, 7vw, 104px) 0 36px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(180deg, var(--e900) 0, var(--e950) 560px); color: var(--on-dark-2); font-size: 0.9375rem; line-height: 1.5;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 36px; padding-top: 56px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--on-dark); font-weight: 600; font-size: 1.0625rem; }
.footer-brand svg { width: 20px; height: 20px; color: var(--brass); }
.site-footer h2 { margin-bottom: 14px; font: 600 0.875rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.site-footer a { display: inline-block; padding: 5px 0; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--on-dark); }
.footer-times div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.footer-times strong { color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-email { overflow-wrap: break-word; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--hair-dark); font-size: 0.875rem; }

/* ---------- motion ---------- */

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-ready [data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal-ready [data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal-ready [data-reveal-delay="3"] { transition-delay: 0.24s; }

.reveal-ready .elevation path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal-ready .elevation.is-visible path { animation: draw 2.6s var(--ease) forwards; }
.reveal-ready .elevation.is-visible .d2 { animation-delay: 0.35s; }
.reveal-ready .elevation.is-visible .d3 { animation-delay: 0.8s; }
.reveal-ready .elevation.is-visible .d4 { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrance animations fill "backwards" only. A fill that lingers after the end
     (forwards/both) keeps an opacity or transform effect on the element, which in
     Chrome switches off backdrop blur for everything inside it (the header glass)
     and traps fixed children (the phone menu). */
  .hl > span { animation: line-up 1.1s var(--ease-out) backwards; }
  .hl:nth-of-type(2) > span { animation-delay: 0.1s; }
  .hero .eyebrow { animation: fade-up 1s var(--ease-out) 0.05s backwards; }
  .hero-sub { animation: fade-up 1s var(--ease-out) 0.3s backwards; }
  .hero .actions { animation: fade-up 1s var(--ease-out) 0.42s backwards; }
  .sunday { animation: fade-up 1s var(--ease-out) 0.56s backwards; }
  .hero-media img { animation: settle 2.2s var(--ease-out) backwards; }
  /* opacity only: a transform animation here would trap the full-screen menu inside the bar */
  .site-header { animation: fade-in 0.9s var(--ease-out) 0.15s backwards; }
  .menu-open .site-nav a { animation: fade-up 0.6s var(--ease-out) backwards; }
  .menu-open .site-nav a:nth-child(2) { animation-delay: 0.04s; }
  .menu-open .site-nav a:nth-child(3) { animation-delay: 0.08s; }
  .menu-open .site-nav a:nth-child(4) { animation-delay: 0.12s; }
  .menu-open .site-nav a:nth-child(5) { animation-delay: 0.16s; }
  .menu-open .site-nav a:nth-child(6) { animation-delay: 0.2s; }
}
@keyframes line-up { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* scroll-linked touches where the browser supports them (Chrome, Edge, Safari 26+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .panorama img { transform-origin: 50% 50%; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.12) translateY(-3.5%); } to { transform: scale(1.12) translateY(3.5%); } }
  }
}
@media (min-width: 1069px) and (min-height: 680px) {
  .hero { position: sticky; top: 0; }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .hero-stage { animation: recede linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; transform-origin: 50% 40%; }
      @keyframes recede { to { transform: scale(0.93); opacity: 0.35; } }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .reveal-ready .elevation path { stroke-dashoffset: 0; }
  .scene-ready .step { opacity: 1; }
}

/* ---------- tablet and below ---------- */

@media (max-width: 1068px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-visit { grid-row: auto; min-height: clamp(380px, 62vw, 560px); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; max-width: 34em; }
}

/* ---------- phone ---------- */

@media (max-width: 734px) {
  :root { --r-xl: 30px; --r-lg: 26px; }
  .site-header .header-cta { min-height: 40px; }
  .hero .eyebrow { letter-spacing: 0.08em; }
  .hero .actions { gap: 10px; }
  .hero .actions .button { flex: 1 1 auto; padding: 0 16px; font-size: 1rem; }
  .sunday { margin-top: 28px; }
  .sunday > div { padding: 12px 18px; }
  .sunday .sb-title { padding: 14px 18px 4px; }
  .step { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .step .arch { order: -1; width: min(100%, 420px); aspect-ratio: 4 / 4.6; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile-visit, .tile-groups { grid-column: auto; }
  .tile, .tile-visit { padding: 26px; }
  .tile-visit { min-height: 460px; }
  .when { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
  .times { grid-template-columns: 1fr 1fr; }
  .times .where { grid-column: 1 / -1; }
  .times > div { padding: 22px 18px 24px; }
  .times dt { letter-spacing: 0.06em; white-space: nowrap; }
  .footer-times { grid-column: 1 / -1; max-width: 22em; }
  .closing .actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  .panorama { aspect-ratio: 4 / 3; }
  .panorama figcaption { left: 12px; bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer a { padding: 12px 0; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- inner pages: tablet and phone ---------- */

@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow { animation: fade-up 1s var(--ease-out) 0.05s backwards; }
  .page-hero h1 { animation: fade-up 1.1s var(--ease-out) 0.12s backwards; }
  .page-hero .lead { animation: fade-up 1s var(--ease-out) 0.26s backwards; }
  .page-hero .actions, .page-hero .facts { animation: fade-up 1s var(--ease-out) 0.38s backwards; }
  .page-hero .arch, .hero-frame { animation: fade-up 1.2s var(--ease-out) 0.3s backwards; }
  .hero-bg img { animation: settle 2.2s var(--ease-out) backwards; }
  .accordion-panel:not([hidden]) { animation: fade-up 0.45s var(--ease-out) backwards; }
}

@media (max-width: 1068px) {
  .page-hero.split .container, .page-hero.light.split .container { grid-template-columns: 1fr; align-items: start; }
  .page-hero.split .arch { justify-self: start; max-width: 340px; }
  .hero-frame { max-width: 680px; }
  .timeline, .timeline.n4, .timeline.n3 { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 4px; bottom: 4px; width: 1px; height: auto; }
  .t-item { padding: 0 0 36px 44px; }
  .t-item:last-child { padding-bottom: 0; }
  .t-item::before { top: 2px; }
  .aside-grid, .pastor, .groups, .story-lit { grid-template-columns: 1fr; }
  .aside-head.sticky { position: static; }
  /* relative, not static: the photo caption is positioned against the frame */
  .pastor .arch { position: relative; top: auto; }
  .pastor .arch, .story-lit .arch { width: 100%; max-width: 360px; justify-self: start; }
  .fact-tiles, .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .give-grid { grid-template-columns: 1fr; }
  .give-online { grid-row: auto; min-height: 340px; }
}

/* Tablet widths, which include the app's own preview pane (about 800px): keep each
   photo beside its text. Stacked, the photo sat alone on the left with empty space
   next to it. Phones (734px and under) still stack. */
@media (min-width: 735px) and (max-width: 1068px) {
  .page-hero.split:not(.light) .container { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: end; }
  .page-hero.split:not(.light) .arch { justify-self: end; max-width: 300px; }
  .story-lit { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
  .pastor { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
  .pastor .arch, .story-lit .arch { max-width: none; justify-self: stretch; }
  /* heading across the top, then the photo beside the list */
  .aside-grid.with-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 40px; row-gap: 0; }
  .aside-grid.with-photo .aside-head { display: contents; }
  .aside-grid.with-photo .aside-head > :not(.arch) { grid-column: 1 / -1; }
  .aside-grid.with-photo .aside-head .arch { grid-column: 1; max-width: none; margin-top: 40px; }
  .aside-grid.with-photo > .rows { grid-column: 2; margin-top: 40px; }
}

@media (max-width: 734px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .where { grid-column: 1 / -1; box-shadow: inset 0 1px 0 var(--hair-light); }
  .fact-tiles, .cards3, .duo, .site-form-grid { grid-template-columns: 1fr; }
  .fact-tile { min-height: 0; }
  .fact-tile h3 { padding-top: 36px; }
  .card .eyebrow + h3, .card .card-num + h3 { margin-top: 28px; }
  .accordion-panel { padding-right: 0; }
  .ticket { min-height: 300px; padding: 28px; }
  .duo .tile, .give-online { padding: 26px; }
  .footer-grid { padding-top: 40px; }
}

@media print {
  .site-header, .actions, .site-footer, .hero-media, .tile-media { display: none; }
  body, .sheet.dark, .hero { background: #fff; color: #000; }
}
