/* =====================================================================
   Wellspring Ministries of Alaska — main stylesheet
   ---------------------------------------------------------------------
   1. Fonts            6. Buttons & links      11. Programs & resources
   2. Tokens           7. Header & navigation  12. Events & gatherings
   3. Base / reset     8. Hero                 13. Support & contact
   4. Layout helpers   9. About & ridges       14. Footer, dialog & forms
   5. Typography      10. Ministries/Fellowship 15. Motion, a11y, print
   ===================================================================== */

/* 1. Fonts ------------------------------------------------------------ */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout stable while the web fonts load */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97%;
  ascent-override: 98%;
  descent-override: 25%;
}

/* 2. Tokens ----------------------------------------------------------- */
:root {
  --ivory: #FBF8F2;
  --ivory-2: #F4F0E6;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --ice: #EEF5F4;
  --ice-2: #E3EEEF;
  --glacier: #8CC7DC;
  --glacier-soft: #CFE7EE;
  --turquoise: #1E9AA0;
  --teal: #0B6E73;
  --teal-deep: #0A5357;
  --ink: #10262E;
  --ink-2: #2B4651;
  --muted: #556B74;
  --line: rgba(16, 38, 46, 0.1);
  --line-strong: rgba(16, 38, 46, 0.18);
  --gold: #C9974F;
  --gold-soft: #F3E3C7;
  --rose: #E9B9B0;
  --danger: #B42318;
  --focus: #B5650F;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 7.5vw, 112px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-1: 0 1px 2px rgba(16, 38, 46, 0.05), 0 10px 30px -14px rgba(16, 58, 70, 0.18);
  --shadow-2: 0 2px 6px rgba(16, 38, 46, 0.05), 0 30px 70px -28px rgba(16, 58, 70, 0.32);
  --shadow-3: 0 4px 10px rgba(16, 38, 46, 0.06), 0 50px 110px -40px rgba(12, 52, 64, 0.42);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.72);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 64px;
}

/* 3. Base / reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }
img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
cite { font-style: italic; }
::selection { background: rgba(30, 154, 160, 0.22); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* 4. Layout helpers ---------------------------------------------------- */
.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: #fff; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 5. Typography --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #6CC4CF 45%, var(--teal) 100%);
  box-shadow: 0 0 0 4px rgba(30, 154, 160, 0.12);
}
.eyebrow--light { color: #CFEFF1; }
.section-title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.35rem, 1.45rem + 3.1vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em, .stream-card__title em, .resources__title em, .contact-card__title em {
  font-style: italic; font-weight: 330; color: var(--teal);
}
.section-title--sm { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.3rem); }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 24px 64px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .section-title { margin-top: 14px; }
.section-head__aside { color: var(--muted); font-size: 1.05rem; max-width: 30em; justify-self: end; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .section-head__aside { justify-self: center; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; padding-right: 0.08em; }

/* 6. Buttons & links ---------------------------------------------------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.97rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.1; text-decoration: none;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after { /* soft light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon--arrow { transition: transform 0.45s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  --btn-bg: var(--teal); --btn-fg: #fff; --btn-border: transparent;
  background: linear-gradient(135deg, #0E7C82 0%, var(--teal) 45%, var(--teal-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -14px rgba(11, 110, 115, 0.7);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 20px 40px -16px rgba(11, 110, 115, 0.75); }
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.6); --btn-border: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(16, 58, 70, 0.45);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.88); }
.btn--ghost { --btn-bg: transparent; --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-border: rgba(11, 110, 115, 0.35); }
.btn--light { --btn-bg: rgba(255, 255, 255, 0.94); --btn-fg: var(--ink); --btn-border: transparent; }
.btn--light:hover { --btn-bg: #fff; }
.btn--outline-light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.18); }
.ext { font-size: 0.95em; line-height: 1; opacity: 0.8; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.45s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link .icon { transition: transform 0.45s var(--ease); }
.text-link:hover .icon { transform: translate(2px, -2px); }
.text-link--light { color: #fff; }

/* 7. Header & navigation ------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: max(12px, env(safe-area-inset-top));
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 8px)); }
.site-header__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h); padding: 0 8px 0 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 50px -26px rgba(16, 58, 70, 0.35);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: background-color 0.4s, box-shadow 0.4s, height 0.4s var(--ease);
}
.site-header.is-scrolled .site-header__bar {
  --header-h: 58px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 44px -24px rgba(16, 58, 70, 0.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 14px; }
.brand__mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 10px rgba(11, 110, 115, 0.18)); transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: grid; line-height: 1; }
.brand__text strong { font-family: var(--font-display); font-weight: 450; font-size: 1.42rem; letter-spacing: -0.03em; font-variation-settings: "opsz" 36; }
.brand__text small { margin-top: 4px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--teal); }

.primary-nav { margin-inline: auto; }
.primary-nav__list { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-indicator {
  position: absolute; left: 0; top: 50%; height: 40px; width: 0; border-radius: 999px;
  background: rgba(11, 110, 115, 0.09); box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.12);
  transform: translate(var(--ix, 0), -50%); opacity: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s;
  pointer-events: none;
}
.nav-indicator.is-visible { opacity: 1; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.95rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}
.nav-link:hover { color: var(--teal); background: rgba(11, 110, 115, 0.06); }
.nav-link[aria-current="true"] { color: var(--teal); }
.icon--chev { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.nav-link--menu[aria-expanded="true"] { color: var(--teal); background: rgba(11, 110, 115, 0.07); }
.nav-link--menu[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 352px; padding: 8px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  opacity: 0; transform: translate(-50%, 8px) scale(0.98); transform-origin: 50% 0;
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.menu-panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; } /* hover bridge */
.menu-panel.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }
.menu-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 15px; text-decoration: none; color: var(--ink);
  transition: background-color 0.25s;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--ice); }
.menu-item strong { display: block; font-size: 0.95rem; font-weight: 600; }
.menu-item small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.35; margin-top: 2px; }
.menu-item__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #F2FAFA, #DDEFF1); color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.1);
}
.menu-item__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.primary-nav + .site-header__actions { margin-left: 0; }
.menu-toggle {
  display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 15px;
  background: rgba(11, 110, 115, 0.08); color: var(--ink);
}
.menu-toggle__lines { position: relative; width: 20px; height: 12px; }
.menu-toggle__lines span {
  position: absolute; left: 0; width: 100%; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle__lines span:first-child { top: 1px; }
.menu-toggle__lines span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1; pointer-events: auto;
  padding: calc(var(--header-h) + 36px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(140, 199, 220, 0.35), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(243, 227, 199, 0.55), transparent 60%),
    rgba(251, 248, 242, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; max-width: 560px; margin-inline: auto; }
.mobile-menu__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 350; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); transition: color 0.3s;
}
.mobile-menu__link::after { content: "→"; font-family: var(--font-body); font-size: 1.1rem; color: var(--teal); opacity: 0.6; }
.mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { color: var(--teal); }
.mobile-menu__extras { display: grid; gap: 12px; }
.mobile-menu__contact { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.mobile-menu__contact a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* Current page / section in the primary nav */
.nav-link[aria-current="page"], .nav-link[data-active] { color: var(--teal); }
.nav-link[aria-current="page"]::after, .nav-link[data-active]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--turquoise);
}

/* Mega menu panels */
.menu-panel--mega { width: min(720px, calc(100vw - 48px)); padding: 10px; }
.mega { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.mega__list { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; padding: 0; list-style: none; align-content: start; }
.mega__list--2 { grid-template-columns: 1fr 1fr; }
.mega__heading { padding: 10px 12px 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mega__feature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 18px;
  border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none;
}
.mega__feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 30, 36, 0.88) 0%, rgba(6, 30, 36, 0.35) 55%, rgba(6, 30, 36, 0.05) 100%); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #BDEBEE; }
.mega__feature strong { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.015em; }
.mega__feature span.mega__cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.mega__feature:focus-visible { outline-color: var(--focus); }

/* Header icon button (search) */
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: rgba(11, 110, 115, 0.08); color: var(--ink); transition: background-color 0.3s, color 0.3s;
}
.icon-btn:hover { background: rgba(11, 110, 115, 0.14); color: var(--teal); }
.icon-btn .icon { width: 20px; height: 20px; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font: 600 0.72rem/1 var(--font-body); color: var(--muted); box-shadow: 0 1px 0 var(--line-strong); }

/* Site search dialog */
.search-dialog {
  width: min(720px, calc(100% - 24px)); max-height: min(80vh, 720px); margin-top: min(12vh, 120px); padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden;
  opacity: 0; transform: translateY(-10px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.search-dialog[open] { opacity: 1; transform: none; }
@starting-style { .search-dialog[open] { opacity: 0; transform: translateY(-10px) scale(0.985); } }
.search-dialog::backdrop { background: rgba(16, 38, 46, 0.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.search { display: flex; flex-direction: column; max-height: inherit; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.search__bar > .icon { width: 22px; height: 22px; color: var(--teal); }
.search__bar input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 1.15rem; color: var(--ink); }
.search__bar input:focus { outline: none; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__hint { padding: 12px 20px 4px; font-size: 0.88rem; color: var(--muted); }
.search__results { margin: 0; padding: 6px 10px 12px; list-style: none; overflow-y: auto; }
.search__result { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.search__result:hover, .search__result:focus-visible { background: var(--ice); outline: none; box-shadow: inset 0 0 0 2px rgba(11, 110, 115, 0.35); }
.search__page { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.search__title { font-family: var(--font-display); font-weight: 430; font-size: 1.15rem; letter-spacing: -0.01em; }
.search__text { font-size: 0.9rem; color: var(--muted); }
.search mark { background: rgba(30, 154, 160, 0.18); color: inherit; border-radius: 3px; padding: 0 1px; }
.search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 20px 18px; font-size: 0.85rem; color: var(--muted); }
.search__suggest button { min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.search__suggest button:hover { border-color: var(--teal); color: var(--teal); }

/* Mobile menu groups */
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; border: 0; background: transparent;
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 350; letter-spacing: -0.02em; color: var(--ink); text-align: left;
}
.mobile-menu__group > button .icon { width: 22px; height: 22px; color: var(--teal); transition: transform 0.4s var(--ease); }
.mobile-menu__group > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__sub { display: grid; gap: 2px; margin: 0 0 12px; padding: 0 0 0 4px; list-style: none; }
.mobile-menu__sub a { display: block; padding: 9px 12px; border-radius: 12px; font-size: 1.05rem; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.mobile-menu__sub a:hover, .mobile-menu__sub a[aria-current="page"] { background: rgba(11, 110, 115, 0.08); color: var(--teal); }
.mobile-menu.is-open .mobile-menu__group { animation: menu-in 0.6s var(--ease) both; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { animation-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(6) { animation-delay: 0.2s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Cross-document view transitions (progressive enhancement) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Subpage hero entrance (compositor-driven, like the home hero) */
.js .page-hero [data-hero-item] { animation: hero-item 1.1s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 0.09s + 0.05s); }

/* 8. Hero ---------------------------------------------------------------- */
.hero {
  --photo-x: 30%; --photo-y: -6%; --photo-w: 72%; --water: 70%; --water-px: 560px;
  --drop-x: 70%; --drop-y: 62%; --drop-r: 110px;
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 940px;
  background: var(--ivory);
}
.hero__media, .hero__fallback, .hero__canvas, .hero__veil { position: absolute; inset: 0; }
.hero__media { z-index: 0; }
.hero__fallback { overflow: hidden; }
/* Hidden until hero-scene.js has positioned it, so the photo never jumps (no layout shift). */
.js .hero__fallback { opacity: 0; transition: opacity 0.7s var(--ease); }
.js .hero__fallback.is-laid-out { opacity: 1; }
.hero__photo img {
  --photo-cut: 90%;
  position: absolute; left: var(--photo-x); top: var(--photo-y); width: var(--photo-w); max-width: none;
  /* fade in from the left, and stop exactly at the shoreline (the lake below is the reflection) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Static reflection used when WebGL is unavailable; JS sets the background image and offsets. */
.hero__reflection {
  --fade-a: 30%; --fade-b: 60%;
  position: absolute; left: 0; width: 100%; top: var(--water-px); height: calc(100% - var(--water-px));
  background-repeat: no-repeat; transform: scaleY(-1);
  opacity: 0.62; filter: blur(1.2px) saturate(0.85) brightness(0.97);
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 100%), linear-gradient(90deg, transparent var(--fade-a), #000 var(--fade-b));
  mask-image: linear-gradient(0deg, #000 30%, transparent 100%), linear-gradient(90deg, transparent var(--fade-a), #000 var(--fade-b));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__reflection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(120, 175, 185, 0.18), rgba(251, 248, 242, 0.6)); }
.hero--portrait .hero__photo img {
  -webkit-mask-image: linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
  mask-image: linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
}
.hero__droplet {
  position: absolute; left: calc(var(--drop-x) - var(--drop-r)); top: calc(var(--drop-y) - var(--drop-r));
  width: calc(var(--drop-r) * 2); height: calc(var(--drop-r) * 2); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0 6%, rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 60% 70%, rgba(126, 214, 222, 0.55), rgba(16, 110, 120, 0.25) 60%, rgba(220, 250, 255, 0.55) 92%);
  box-shadow: inset -14px -18px 30px rgba(10, 80, 90, 0.25), inset 10px 12px 24px rgba(255, 255, 255, 0.6), 0 30px 60px -30px rgba(10, 60, 70, 0.45);
  backdrop-filter: blur(3px) saturate(1.4); -webkit-backdrop-filter: blur(3px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero__canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-webgl .hero__canvas { opacity: 1; }
.hero.is-webgl .hero__fallback, .js .hero.is-webgl .hero__fallback.is-laid-out { opacity: 0; transition: opacity 1.4s 0.2s var(--ease); }
.hero__veil {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.92) 0%, rgba(251, 248, 242, 0.55) 26%, rgba(251, 248, 242, 0) 44%),
    linear-gradient(0deg, var(--ivory) 0%, rgba(251, 248, 242, 0) 18%);
}
.hero.is-webgl .hero__veil {
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.55) 0%, rgba(251, 248, 242, 0.18) 26%, rgba(251, 248, 242, 0) 40%),
    linear-gradient(0deg, var(--ivory) 0%, rgba(251, 248, 242, 0) 10%);
}
.hero__inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: calc(var(--header-h) + 10px); padding-bottom: 72px; pointer-events: none; }
.hero__copy { max-width: 640px; pointer-events: auto; }
.hero__eyebrow {
  padding: 8px 14px 8px 12px; border-radius: 999px; color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.72rem;
}
.hero__title {
  margin: 22px 0 22px;
  font-family: var(--font-display); font-weight: 340;
  font-size: clamp(3.3rem, 1.6rem + 5.6vw, 7.3rem);
  line-height: 0.94; letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0.1em 0.12em 0; margin-bottom: -0.1em; }
.hero__title .line__inner { display: inline-block; }
.hero__title em {
  font-style: italic; font-weight: 300; letter-spacing: -0.035em;
  background: linear-gradient(100deg, var(--teal-deep) 0%, var(--teal) 30%, #178C92 52%, var(--teal) 74%, var(--teal-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
  padding-right: 0.06em;
}
@keyframes shimmer { to { background-position: 100% 0; } }
/* Hero intro: compositor-driven CSS animation, so it plays smoothly even while the WebGL scene warms up */
@keyframes hero-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes hero-item { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero__title .line__inner { animation: hero-line 1.5s var(--ease) 0.12s backwards; }
.js .hero__title .line + .line .line__inner { animation-delay: 0.24s; }
.js .hero__eyebrow { animation: hero-item 1.2s var(--ease) 0.05s backwards; }
.js .hero__lead { animation: hero-item 1.2s var(--ease) 0.5s backwards; }
.js .hero__actions { animation: hero-item 1.2s var(--ease) 0.62s backwards; }
.js .next-chip { animation: hero-item 1.2s var(--ease) 0.74s backwards; }
.js .hero__meta { animation: hero-item 1.2s var(--ease) 0.9s backwards; }

.hero__lead { max-width: 30em; font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.2rem); color: var(--ink-2); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.next-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 9px 16px 9px 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, 0.58); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.88rem; box-shadow: 0 10px 26px -18px rgba(16, 58, 70, 0.5);
  transition: background-color 0.3s, transform 0.45s var(--ease);
}
.next-chip:hover { background: rgba(255, 255, 255, 0.86); transform: translateY(-1px); }
.next-chip__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); }
.next-chip__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--turquoise); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.next-chip__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.next-chip__value { font-weight: 600; }
.hero__meta {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none;
}
.hero__meta > * { pointer-events: auto; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 44px; min-height: 44px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.scroll-cue__line { position: relative; width: 1.5px; height: 44px; background: rgba(16, 38, 46, 0.14); overflow: hidden; border-radius: 2px; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--teal); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }
.photo-credit { font-size: 0.74rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.55); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.photo-credit a { color: inherit; font-weight: 600; }

/* 9. About & ridges -------------------------------------------------------- */
.about { padding-bottom: calc(clamp(40px, 4.5vw, 72px) + clamp(130px, 15vw, 230px)); background: var(--ivory); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__copy .section-title { margin: 16px 0 24px; }
.pillars { display: grid; gap: 0; margin: 34px 0 30px; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pillar__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--teal);
  background: linear-gradient(150deg, #FFFFFF, #E4F1F2); box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.12), 0 10px 22px -16px rgba(11, 110, 115, 0.6);
}
.pillar__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.3rem; letter-spacing: -0.015em; font-variation-settings: "opsz" 36; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin-top: 2px; }

.about__visual { position: relative; height: clamp(560px, 50vw, 680px); margin-top: clamp(0px, 3vw, 44px); }
.about__figure { position: absolute; overflow: hidden; background: var(--ice-2); }
.about__figure img { width: 100%; height: 100%; object-fit: cover; }
.about__figure--main {
  right: 0; top: 0; width: 80%; height: 88%;
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  box-shadow: var(--shadow-3);
}
.about__figure--main img { object-position: 40% 30%; }
.about__figure--accent {
  left: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); border: 8px solid var(--paper); box-shadow: var(--shadow-2);
}
.glass-tag {
  position: absolute; right: 18px; top: 46%; padding: 7px 13px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.about__quote {
  position: absolute; right: -2%; bottom: 2%; width: min(330px, 62%);
  padding: 22px 24px; border-radius: var(--r-lg);
  background: rgba(255, 253, 249, 0.84); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-2);
}
.about__quote p { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.about__quote footer { margin-top: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

/* Quick pathways — intent-based shortcuts that sit in the soft gap under the hero */
.pathways { position: relative; z-index: 2; margin-top: calc(-1 * var(--section) + clamp(26px, 2.4vw, 36px)); margin-bottom: clamp(56px, 6.5vw, 96px); }
.pathways__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.pathway {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 100%; min-height: 84px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-border); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  color: var(--ink); text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s;
}
.pathway:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); background: var(--white); }
.pathway__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg, var(--white), var(--ice)); border: 1px solid var(--line); color: var(--teal); }
.pathway__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pathway__text { display: grid; gap: 3px; }
.pathway__text strong { font-family: var(--font-display); font-weight: 460; font-size: 1.12rem; line-height: 1.15; letter-spacing: -0.012em; font-variation-settings: "opsz" 36; }
.pathway__text small { color: var(--muted); font-size: 0.86rem; line-height: 1.3; }
.pathway__arrow { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.pathway:hover .pathway__arrow, .pathway:focus-visible .pathway__arrow { transform: translateX(4px); }
.pathway:focus-visible { border-radius: var(--r-md); }
@media (max-width: 1080px) { .pathways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pathway { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-height: 0; padding: 14px 14px 16px; }
  .pathway__icon { width: 38px; height: 38px; }
  .pathway__icon svg { width: 20px; height: 20px; }
  .pathway__arrow { position: absolute; top: 16px; right: 14px; }
  .pathway__text strong { font-size: 1.04rem; }
}
.ripples { position: absolute; left: 30%; bottom: 8%; width: 150px; height: 150px; pointer-events: none; }
.ripples span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(11, 110, 115, 0.28); transform: scale(0.2); opacity: 0; animation: ripple 6s var(--ease) infinite; }
.ripples span:nth-child(2) { animation-delay: 2s; }
.ripples span:nth-child(3) { animation-delay: 4s; }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.ridges { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(150px, 17vw, 270px); pointer-events: none; overflow: hidden; }
.ridges__defs { position: absolute; }
.ridge { position: absolute; left: -8%; width: 116%; max-width: none; height: 100%; bottom: 0; }
.ridge--4 { fill: var(--ice); left: -2%; width: 104%; }
.ridge--1 path, .ridge--2 path { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ridges__mist { position: absolute; left: 0; right: 0; bottom: 18%; height: 38%; background: linear-gradient(180deg, rgba(238, 245, 244, 0) 0%, rgba(238, 245, 244, 0.85) 60%, rgba(238, 245, 244, 0) 100%); filter: blur(6px); }

/* 10. Ministries & Fellowship -------------------------------------------- */
.streams { background: linear-gradient(180deg, var(--ice) 0%, var(--ice) 55%, var(--ivory) 100%); padding-top: clamp(40px, 5vw, 72px); }
.streams__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.stream-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 44vw, 640px); border-radius: var(--r-xl);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ink); background: #DCEBEE;
  box-shadow: var(--shadow-2);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.stream-card--fellowship { margin-top: clamp(0px, 6vw, 72px); }
.stream-card:hover { box-shadow: var(--shadow-3); }
.stream-card__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.stream-card__media picture, .about__figure picture, .gatherings__backdrop picture { display: block; width: 100%; height: 100%; }
.stream-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.stream-card:hover .stream-card__media img { transform: scale(1.05); }
.stream-card--fellowship .stream-card__media img { object-position: 62% 50%; }
.stream-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 28, 34, 0.24) 0%, rgba(6, 28, 34, 0) 46%);
}
.stream-card--fellowship::before {
  background: linear-gradient(0deg, rgba(6, 28, 34, 0.24) 0%, rgba(6, 28, 34, 0) 46%);
}
.stream-card__sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.2), transparent 60%);
  mix-blend-mode: soft-light;
}
.stream-card:hover .stream-card__sheen { opacity: 1; }
/* Copy sits on a frosted glass panel so the photograph stays bright and fully visible above it */
.stream-card__body {
  position: relative; z-index: 1; margin: clamp(12px, 1.4vw, 18px); padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.86); border: 1px solid var(--glass-border); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
}
.stream-card .eyebrow--light { color: var(--teal); }
.stream-card__title {
  margin: 12px 0 14px; font-family: var(--font-display); font-weight: 350;
  font-size: clamp(2.1rem, 1.4rem + 2.1vw, 3.3rem); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 144;
}
.stream-card__title em { color: var(--teal); }
.stream-card__text { color: var(--ink-2); max-width: 30em; }
.stream-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.facts { display: grid; gap: 10px; margin-top: 4px; }
.facts li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 0.98rem; }
.facts .icon { width: 20px; height: 20px; color: var(--teal); }
.facts strong { font-weight: 600; color: var(--ink); }

/* 11. Programs & resources -------------------------------------------------- */
.programs { background: var(--ivory); padding-top: clamp(44px, 5vw, 80px); padding-bottom: clamp(48px, 5.5vw, 88px); }
.program-rail { display: flex; gap: 12px; height: clamp(440px, 38vw, 540px); }
.program { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow 0.8s var(--ease); }
.program.is-active { flex-grow: 3.4; }
.program__card { position: relative; height: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; background: #20404A; box-shadow: var(--shadow-1); }
.program__media, .program__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.program__media { z-index: -2; }
.program__media img { object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter 0.8s; filter: saturate(0.9); }
.program.is-active .program__media img { transform: scale(1); filter: saturate(1); }
.program__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 28, 34, 0.88) 0%, rgba(6, 28, 34, 0.5) 40%, rgba(6, 28, 34, 0.12) 70%);
  transition: background 0.8s;
}
.program__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.program__num {
  position: absolute; top: 18px; left: 20px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}
.program__title { font-family: var(--font-display); font-weight: 380; font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem); line-height: 1.12; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.program.is-active .program__title { font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem); }
.program__trigger {
  all: unset; cursor: pointer; display: block; border-radius: 8px;
  text-wrap: balance;
}
.program__trigger::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.program__trigger:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.program__detail {
  position: relative; z-index: 1;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.7s var(--ease), opacity 0.5s 0.1s, margin 0.7s var(--ease);
}
.program__detail > * { min-height: 0; overflow: hidden; }
.program.is-active .program__detail { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.program__detail-inner { display: grid; gap: 14px; }
.program__detail p { color: rgba(255, 255, 255, 0.88); max-width: 30em; font-size: 0.98rem; }

.resources {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(48px, 7vw, 96px); padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl); background: linear-gradient(140deg, #FFFFFF 0%, var(--paper) 50%, #F1F7F7 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.resources__title { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.resources__copy > p { color: var(--muted); margin: 14px 0 22px; max-width: 28em; }
.resource-links { display: grid; gap: 10px; }
.resource-links a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.resource-links a:hover { border-color: rgba(11, 110, 115, 0.3); transform: translateX(4px); box-shadow: var(--shadow-1); }
.resource-links strong { display: block; font-weight: 600; }
.resource-links small { display: block; color: var(--muted); font-size: 0.85rem; }
.resource-links__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ice); color: var(--teal); }
.resource-links__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.resource-links a > .icon { color: var(--teal); }

.shelf { position: relative; perspective: 1600px; }
.shelf__books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: end; padding: 12px 6px 30px; position: relative; isolation: isolate; }
.shelf__books::after { /* the shelf, behind the books */
  content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: 12px; height: 16px; border-radius: 6px;
  background: linear-gradient(180deg, #F7F1E6, #E6DCCB); box-shadow: 0 18px 30px -16px rgba(80, 60, 30, 0.45);
}
.book {
  --tilt: -16deg;
  position: relative; display: block; aspect-ratio: 2 / 3; text-decoration: none; color: #fff; z-index: 1;
  transform-style: preserve-3d; transform: rotateY(var(--tilt)) translateY(0);
  transition: transform 0.9s var(--ease);
  border-radius: 4px 10px 10px 4px;
}
.book:hover, .book:focus-visible { --tilt: -4deg; transform: rotateY(var(--tilt)) translateY(-12px); }
.book:focus-visible { outline-offset: 6px; }
.book__cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14% 12% 12%; border-radius: 3px 10px 10px 3px; overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 40px -24px rgba(10, 40, 50, 0.65), inset 4px 0 6px -2px rgba(255, 255, 255, 0.35), inset -1px 0 0 rgba(0, 0, 0, 0.15);
}
.book__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.book:hover .book__art { transform: scale(1.06); }
.book__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.book--1 .book__cover::before { background: linear-gradient(180deg, rgba(10, 70, 76, 0.2), rgba(8, 52, 58, 0.86)); }
.book--2 .book__cover::before { background: linear-gradient(180deg, rgba(20, 60, 90, 0.25), rgba(14, 44, 70, 0.88)); }
.book--3 .book__cover::before { background: linear-gradient(180deg, rgba(14, 98, 100, 0.15), rgba(10, 70, 72, 0.86)); }
.book--4 .book__cover::before { background: linear-gradient(180deg, rgba(120, 70, 70, 0.15), rgba(70, 40, 56, 0.86)); }
.book__cover::after { /* page edge sheen */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.18) 60%, transparent);
}
.book__kind { align-self: flex-start; padding: 3px 8px; border-radius: 999px; font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.74rem); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(6, 28, 34, 0.6); }
.book__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(0.9rem, 0.7rem + 0.55vw, 1.22rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.book__spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22px; transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(90deg, #0A4A4F, #0D6166); border-radius: 3px 0 0 3px;
}
.shelf__note { margin-top: 8px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* 12. Events & gatherings ------------------------------------------------- */
.gatherings { background: var(--ivory); overflow: hidden; }
.gatherings__backdrop { position: absolute; inset: 0 0 auto; height: 76%; z-index: 0; overflow: hidden; }
.gatherings__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.42; filter: saturate(0.7) brightness(1.18) contrast(0.9); }
.gatherings__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(234, 244, 247, 0.55), transparent 70%),
    linear-gradient(180deg, var(--ivory) 0%, rgba(251, 248, 242, 0.62) 24%, rgba(244, 249, 250, 0.55) 52%, var(--ivory) 100%);
}
.gatherings__inner { position: relative; z-index: 1; }
.gatherings .section-title { margin-top: 14px; }
.gatherings .section-head__aside { margin-top: 6px; color: var(--ink-2); }
.events { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.event-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-2);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.event-card__date {
  display: grid; justify-items: center; align-content: center; gap: 2px; align-self: start;
  width: 92px; padding: 14px 0 12px; border-radius: 22px; color: #fff; text-align: center;
  background: linear-gradient(160deg, #1A9097 0%, var(--teal) 50%, var(--teal-deep) 100%);
  box-shadow: 0 18px 30px -18px rgba(11, 110, 115, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.event-card__dow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }
.event-card__day { font-family: var(--font-display); font-size: 2.6rem; font-weight: 380; line-height: 1; font-variation-settings: "opsz" 72; }
.event-card__mon { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.92; }
.event-card__when { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal); }
.event-card__title { margin: 6px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.95rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.event-card__text { color: var(--muted); font-size: 0.98rem; }
.event-card__countdown { margin-top: 12px; font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.event-card__countdown:empty { display: none; }
.event-card__countdown strong { color: var(--teal); }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.week-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 6px clamp(24px, 4vw, 64px); align-items: start;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(234, 244, 245, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-1);
}
.week-card__title { grid-column: 1; font-family: var(--font-display); font-weight: 420; font-size: 1.35rem; letter-spacing: -0.015em; font-variation-settings: "opsz" 36; }
.week-card .btn { grid-column: 1; justify-self: start; margin-top: 8px; }
.week-card__note { grid-column: 1; margin-top: 6px; }
.week-list { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.week-list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.week-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.week-list__day { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.week-list__name { font-weight: 550; }
.week-list__time { color: var(--muted); font-variant-numeric: tabular-nums; }
.week-card__note { font-size: 0.82rem; color: var(--muted); max-width: 30em; }

/* 13. Support & contact ------------------------------------------------- */
.support { background: linear-gradient(180deg, var(--ivory) 0%, #F6F3EC 100%); padding-top: clamp(24px, 3vw, 48px); }
.support__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.give-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.give-card__media { position: relative; height: clamp(150px, 15vw, 210px); overflow: hidden; }
.give-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.give-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, #fff 100%); }
.give-card__body { position: relative; padding: 0 clamp(22px, 3.4vw, 48px) clamp(24px, 3.4vw, 44px); margin-top: -36px; }
.give-card__body .section-title { margin: 12px 0 14px; }
.give-card__lead { color: var(--muted); max-width: 34em; }
.give-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 18px; padding: 0; border: 0; }
.give-choice__legend { padding: 0; margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.give-option { position: relative; display: block; cursor: pointer; }
.give-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.give-option__box {
  display: flex; align-items: flex-start; gap: 12px; height: 100%;
  padding: 16px; border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--paper);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.4s var(--ease);
}
.give-option:hover .give-option__box { border-color: rgba(11, 110, 115, 0.45); }
.give-option input:checked + .give-option__box { border-color: var(--teal); background: #F1F8F8; box-shadow: 0 0 0 4px rgba(11, 110, 115, 0.1); }
.give-option input:focus-visible + .give-option__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.give-option__radio { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; transition: border 0.3s, box-shadow 0.3s; }
.give-option input:checked + .give-option__box .give-option__radio { border: 6px solid var(--teal); }
.give-option__text strong { display: block; font-weight: 600; }
.give-option__text small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 2px; }
.give-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.give-ways dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.give-ways dd { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; }
.give-ways a { color: var(--teal); font-weight: 600; }
.give-card__more { margin-top: 20px; }
.give-card__trust { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.give-card__trust .icon { color: var(--teal); width: 20px; height: 20px; }

.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(140, 199, 220, 0.32), transparent 55%),
    linear-gradient(170deg, #EDF5F5 0%, #F7F4EC 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.contact-card__title { margin: 12px 0 18px; font-family: var(--font-display); font-weight: 360; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.8); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.12); }
.contact-list__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.contact-list p { color: var(--ink-2); }
.contact-list .text-link { margin-top: 4px; font-size: 0.93rem; }
.contact-list__strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 420; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.contact-list__strong:hover { color: var(--teal); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.contact-card { position: relative; overflow: hidden; isolation: isolate; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card::after {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 92 L40 70 L70 82 L118 44 L160 74 L196 60 L240 30 L286 66 L320 54 L362 76 L410 40 L452 62 L496 50 L540 72 L600 58 L600 120 L0 120Z' fill='%23D7E9EE'/><path d='M0 104 C80 94 140 100 220 96 C320 90 380 104 470 98 C530 94 570 100 600 98 L600 120 L0 120Z' fill='%23E6F1F3'/></svg>") bottom / 100% 100% no-repeat;
  opacity: 0.9;
}

/* 14. Footer, dialog & forms ------------------------------------------- */
.site-footer { background: #EAF2F2; border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 26px; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer__brand p { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.site-footer__heading { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.site-footer__col ul { display: grid; gap: 6px; }
.site-footer__col a, .site-footer address a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover, .site-footer address a:hover { color: var(--teal); text-decoration: underline; }
.site-footer address { color: var(--ink-2); line-height: 1.7; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.site-footer__bottom a { color: var(--ink-2); }

.dialog {
  width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
.dialog[open] { opacity: 1; transform: none; }
@starting-style { .dialog[open] { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dialog::backdrop { background: rgba(16, 38, 46, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-form { padding: clamp(22px, 4vw, 36px); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog__title { margin-top: 8px; font-family: var(--font-display); font-weight: 380; font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.05; }
.dialog__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ice); color: var(--ink); }
.dialog__close:hover { background: var(--ice-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: #fff; font-size: 1rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 115, 0.14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1); }
.field__error { min-height: 0; font-size: 0.84rem; color: var(--danger); }
.field__error:empty { display: none; }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.form-status .notice { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--ice); border: 1px solid rgba(11, 110, 115, 0.2); color: var(--ink-2); font-size: 0.95rem; }
.form-status .notice--warn { background: #FBF3E6; border-color: rgba(181, 101, 15, 0.3); }
.form-status .notice--ok { background: #EAF6EF; border-color: rgba(30, 120, 70, 0.3); }
.form-status .notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.dialog__hint { font-size: 0.88rem; color: var(--muted); }
.dialog__hint a { color: var(--teal); font-weight: 600; }

/* Credits page */
.page-simple { padding: calc(var(--header-h) + 64px) 0 80px; }
.page-simple h1 { font-family: var(--font-display); font-weight: 360; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 16px; }
.page-simple .lead { margin-bottom: 36px; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.credit { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 110px; }
.credit:target { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 115, 0.12); }
.credit img { width: 112px; height: 84px; object-fit: cover; border-radius: 12px; }
.credit__title { font-weight: 600; }
.credit__title a { color: var(--ink); }
.credit__meta { font-size: 0.9rem; color: var(--ink-2); }
.credit__meta a { color: var(--teal); }
.credit__note { font-size: 0.8rem; color: var(--muted); }

/* 15. Motion states (only while motion is allowed and before an element is revealed) */
.motion-ok [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(26px); }
.motion-ok [data-clip-reveal]:not(.is-revealed) { clip-path: inset(12% 8% 12% 8% round var(--r-xl)); }
.motion-ok [data-split]:not(.is-split) { visibility: hidden; }

/* Responsive --------------------------------------------------------------- */
/* Portrait screens (phones, portrait tablets): scene on top, copy below on ivory.
   Mirrors the `portrait` test in hero-scene.js (width/height < 1.05 or width < 700px). */
@media (max-aspect-ratio: 21/20), (max-width: 699px) {
  .hero { min-height: 100svh; max-height: none; height: auto; }
  .hero__inner { align-items: flex-start; height: auto; padding-top: max(52svh, 360px); padding-bottom: 76px; }
  .hero__photo img {
    -webkit-mask-image: linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
    mask-image: linear-gradient(180deg, #000 var(--photo-cut), transparent var(--photo-cut));
  }
  .hero__veil { background: linear-gradient(0deg, var(--ivory) 0%, rgba(251, 248, 242, 0) 30%); }
  .hero.is-webgl .hero__veil { background: none; }
}
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header__actions { margin-left: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { min-height: 0; height: clamp(420px, 70vw, 620px); max-width: 720px; width: 100%; margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { justify-self: start; }
  .section-head--center .section-head__aside { justify-self: center; }
  .resources { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .streams__grid { grid-template-columns: 1fr; }
  .stream-card--fellowship { margin-top: 0; }
  .stream-card { min-height: 540px; }
  /* Programs become a vertical accordion */
  .program-rail { flex-direction: column; height: auto; gap: 10px; }
  .program, .program.is-active { flex: none; }
  .program__card { height: 112px; transition: height 0.7s var(--ease); }
  .program.is-active .program__card { height: 340px; }
  .program__body { padding: 18px 20px; }
  .program__num { display: none; }
  .program__title, .program.is-active .program__title { font-size: 1.5rem; }
  .program__card::after { background: linear-gradient(0deg, rgba(6, 28, 34, 0.86) 0%, rgba(6, 28, 34, 0.55) 55%, rgba(6, 28, 34, 0.25) 100%); }
  .events { grid-template-columns: 1fr; }
  .week-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .week-list { grid-template-columns: 1fr; }
  .week-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 1rem; }
  .site-header__bar { padding: 0 6px 0 10px; border-radius: 18px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__text strong { font-size: 1.24rem; }
  .brand__text small { font-size: 0.56rem; letter-spacing: 0.15em; }
  .about { padding-top: 40px; }
  .hero__eyebrow { padding: 6px 12px 6px 10px; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 4.2rem); margin: 14px 0 14px; }
  .hero__lead { font-size: 1rem; line-height: 1.6; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; min-height: 52px; }
  .next-chip { margin-top: 18px; font-size: 0.82rem; }
  .hero__meta { bottom: 16px; }
  .photo-credit { font-size: 0.68rem; }
  .scroll-cue span:last-child { display: none; }
  .about__visual { height: 112vw; max-height: 560px; }
  .about__figure--main { width: 86%; height: 86%; }
  .about__figure--accent { width: 42%; bottom: 0; }
  .about__quote { right: 0; bottom: -2%; width: 70%; padding: 16px 18px; }
  .about__quote p { font-size: 1.05rem; }
  .give-choice { grid-template-columns: 1fr; }
  .give-ways { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; gap: 16px; }
  .event-card__date { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; width: auto; padding: 10px 16px; border-radius: 16px; }
  .event-card__day { font-size: 1.7rem; }
  .shelf__books { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .shelf__books::after { display: none; }
  .book { --tilt: -10deg; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .site-footer__brand, .site-footer__grid > .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__col ul { gap: 4px; }
  .site-footer { font-size: 0.92rem; }
  .site-footer__bottom { flex-direction: column; gap: 6px; margin-top: 26px; }
}
/* Small phones: the menu sheet carries search, so the header keeps the full brand name on one line */
@media (max-width: 439px) { .site-header__actions .icon-btn[data-search-open] { display: none; } }
@media (max-width: 480px) {
  .site-header__actions .btn--primary { padding: 8px 14px; min-height: 40px; }
  .site-header__actions .btn--primary .icon { display: none; }
}
@media (max-width: 359px) {
  .site-header__actions .btn--primary { display: none; }
}

/* Hover-capable devices only: avoid sticky hover on touch */
@media (hover: none) {
  .btn:hover, .event-card:hover, .resource-links a:hover { transform: none; }
  .stream-card:hover .stream-card__media img { transform: none; }
}

/* Accessibility preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .about__figure img { transform: none; }
}
@media (forced-colors: active) {
  .btn, .nav-link, .give-option__box, .event-card, .week-card, .contact-card, .give-card { border: 1px solid CanvasText; }
  .hero__title em { color: LinkText; background: none; -webkit-background-clip: initial; background-clip: initial; }
}
@media print {
  .site-header, .hero__media, .ridges, .dialog, .scroll-cue { display: none !important; }
  .hero { height: auto; min-height: 0; }
  .motion-ok [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Phone refinements (v2) ---------- */
@media (max-width: 860px) {
  .stream-card { min-height: 480px; }
}
@media (max-width: 640px) {
  /* Shorter homepage: the cover shelf repeats the library links above it */
  .shelf { display: none; }
  .about__visual { height: 78vw; }
  .about__figure--accent { display: none; }
  .scroll-cue { display: none; }
  .hero__meta { justify-content: flex-end; }
  /* Paired buttons share a row evenly, or stack as full-width pills */
  .cta-band__actions .btn, .stream-card__actions .btn, .contact-card__actions .btn, .event-card__actions .btn { flex: 1 1 auto; }
  /* The phone menu's call link is a comfortable target */
  .mobile-menu__contact a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Search on touch devices: no Esc key hint; suggestions give way to results */
@media (hover: none) { .search__bar .kbd { display: none; } }
.search__results:not(:empty) ~ .search__suggest { display: none; }

/* About: the ministry's own teaching line (replaces the pillars, which repeated the cards below) */
.about__teach { margin: 34px 0 28px; padding: 22px 26px; border-left: 3px solid var(--turquoise); border-radius: 0 var(--r-md) var(--r-md) 0; background: rgba(255, 255, 255, 0.62); }
.about__teach-label { margin-bottom: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.about__teach p { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: clamp(1.22rem, 1.08rem + 0.5vw, 1.48rem); line-height: 1.38; letter-spacing: -0.01em; color: var(--ink); font-variation-settings: "opsz" 36; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stream-card--fellowship .stream-card__media img { object-position: 92% 50%; }
