/* ==========================================================================
   Recovery & Revival Connection, Inc.
   Design system + site styles
   --------------------------------------------------------------------------
   Palette is the RRC logo itself: a near-black ground, the gold-to-orange
   bridge, a white dove. Light sections are white, never tan. The signature shape throughout the
   site is the ARCH - it reads as both the bridge in the mark and a church
   window, and it frames every photograph.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground - near-black, the dominant surface (the logo sits on black) */
  --ground-950: #050609;
  --ground-900: #0d1016;
  --ground-800: #191d26;
  --ground-700: #2a2f3c;
  --ground-600: #3b4152;

  /* Light surfaces - white, never tan */
  --light: #ffffff;
  --light-2: #f1f2f4;
  --light-3: #e2e4e8;

  /* Fire - the gold-to-orange gradient off the bridge in the mark */
  --gold: #f5a623;
  --gold-bright: #ffc94d;
  --gold-deep: #c07d12;
  --orange: #e2621f;
  --orange-deep: #b8410c;
  --coral: #ef7a55;
  --rose: #d9534f;

  /* Ink */
  --ink: #0d1016;
  --ink-soft: #4a4f5c;
  --ink-faint: #7b8090;

  /* Semantic */
  --bg: var(--light);
  --fg: var(--ink);
  --rule: rgb(from var(--ink) r g b / 0.12);
  --rule-light: rgb(from var(--light) r g b / 0.18);

  /* Gradients */
  --grad-bridge: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 34%, var(--orange) 72%, var(--orange-deep) 100%);
  --grad-bridge-soft: linear-gradient(100deg, var(--gold) 0%, var(--orange) 100%);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --shell: 1220px;
  --shell-wide: 1420px;
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(from var(--ground-950) r g b / 0.06), 0 2px 6px rgb(from var(--ground-950) r g b / 0.05);
  --shadow-md: 0 4px 12px rgb(from var(--ground-950) r g b / 0.08), 0 12px 32px rgb(from var(--ground-950) r g b / 0.09);
  --shadow-lg: 0 8px 24px rgb(from var(--ground-950) r g b / 0.1), 0 28px 64px rgb(from var(--ground-950) r g b / 0.16);

  /* Arch radius - the signature shape */
  --arch: 50vw 50vw 0 0 / 34vw 34vw 0 0;
}

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

* { margin: 0; }

/* Components below set display explicitly, which would otherwise beat the
   user-agent rule for [hidden]. Keep hidden meaning hidden. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* `clip` rather than `hidden`: it contains the off-canvas nav and the glow
     pseudo-elements without turning the root into a scroll container, which
     would break the sticky masthead. */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.34vw + 0.98rem, 1.1875rem);
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

ul, ol { padding: 0; list-style: none; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.display {
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 8, "WONK" 1;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-variation-settings: "opsz" 144, "SOFT" 6; }
h2 { font-size: clamp(2rem, 3.9vw, 3.25rem); font-variation-settings: "opsz" 96, "SOFT" 4; }
h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); letter-spacing: -0.014em; }
h4 { font-size: 1.1rem; letter-spacing: -0.008em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.prose p + p { margin-top: 1.1em; }
.prose { max-width: var(--measure); }
.prose a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--ground-800); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-bridge);
}

/* Gold text underline flourish */
.mark {
  background: linear-gradient(transparent 62%, rgb(from var(--gold) r g b / 0.45) 62%);
  padding: 0 0.06em;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell-wide { width: min(100% - (var(--gutter) * 2), var(--shell-wide)); margin-inline: auto; }
.shell-narrow { width: min(100% - (var(--gutter) * 2), 820px); margin-inline: auto; }

section { position: relative; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
/* Sits flush under the section above it, for notes and asides. */
.section-flush { padding-block: 0 clamp(3rem, 6vw, 5rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }

.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Section heading block */
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head.center { text-align: center; margin-inline: auto; }

/* Dark sections */
.on-dark {
  background: var(--ground-900);
  color: var(--light);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--light); }
.on-dark .lede { color: rgb(from var(--light) r g b / 0.76); }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .prose a { color: var(--gold-bright); }

/* Light surface section, one step off pure white */
.on-surface { background: var(--light-2); }

/* Shared inversions for every dark field on the site */
.hero .eyebrow,
.page-head .eyebrow,
.cta-band .eyebrow,
.info-card .eyebrow { color: var(--gold); }

.hero .link-arrow,
.page-head .link-arrow,
.cta-band .link-arrow,
.info-card .link-arrow { color: var(--gold-bright); }
.hero .link-arrow:hover,
.page-head .link-arrow:hover,
.cta-band .link-arrow:hover,
.info-card .link-arrow:hover { color: var(--light); }

.info-card h2, .info-card h3, .info-card h4 { color: var(--light); }
.info-card .lede { color: rgb(from var(--light) r g b / 0.76); }

/* Subtle film grain for the navy fields */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ground-900);
  --btn-fg: var(--light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.92em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-gold {
  --btn-fg: var(--ground-950);
  background: var(--grad-bridge);
  box-shadow: 0 2px 10px rgb(from var(--orange) r g b / 0.3);
}
.btn-gold:hover { box-shadow: 0 8px 26px rgb(from var(--orange) r g b / 0.42); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ground-900);
  box-shadow: inset 0 0 0 1.5px rgb(from var(--ink) r g b / 0.24);
}
.btn-ghost:hover { --btn-bg: var(--ground-900); --btn-fg: var(--light); box-shadow: var(--shadow-md); }

/* Ghost buttons sitting on any dark field */
.on-dark .btn-ghost,
.hero .btn-ghost,
.page-head .btn-ghost,
.cta-band .btn-ghost,
.scripture .btn-ghost,
.info-card .btn-ghost {
  --btn-fg: var(--light);
  box-shadow: inset 0 0 0 1.5px rgb(from var(--light) r g b / 0.34);
}
.on-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-head .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.scripture .btn-ghost:hover,
.info-card .btn-ghost:hover { --btn-bg: var(--light); --btn-fg: var(--ground-900); }

.btn-lg { padding: 1.08em 2em; font-size: 1.05rem; }
.btn-sm { padding: 0.7em 1.15em; font-size: 0.88rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 620;
  font-size: 0.98rem;
  color: var(--orange-deep);
  text-decoration: none;
  transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform 0.22s var(--ease); }
.link-arrow:hover { gap: 0.7em; color: var(--ground-800); }
.on-dark .link-arrow { color: var(--gold-bright); }
.on-dark .link-arrow:hover { color: var(--light); }

/* --------------------------------------------------------------------------
   6. The arch - signature image treatment
   -------------------------------------------------------------------------- */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 14px 14px / 46% 46% 14px 14px;
  background: var(--ground-800);
  aspect-ratio: 4 / 5;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.arch-wide {
  border-radius: 999px 999px 16px 16px / 30% 30% 16px 16px;
  aspect-ratio: 3 / 2;
}

/* Gold keyline that traces the arch */
.arch-framed { padding: 10px; background: var(--grad-bridge); border-radius: 999px 999px 20px 20px / 46% 46% 20px 20px; }
.arch-framed .arch { border-radius: 999px 999px 8px 8px / 46% 46% 8px 8px; }

/* Placeholder state for photos we do not have yet */
.arch-placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--ground-700) 0%, var(--ground-900) 62%);
  color: rgb(from var(--light) r g b / 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.arch-placeholder svg { margin-inline: auto; opacity: 0.5; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ground-950);
  color: rgb(from var(--light) r g b / 0.82);
  font-size: 0.84rem;
}
.utility .shell-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.65rem;
  padding-block: 0.35rem;
  flex-wrap: wrap;
}
.utility a { text-decoration: none; }
.utility-help {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--light);
}
.utility-help strong { color: var(--gold-bright); }
.utility-help:hover strong { text-decoration: underline; }
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgb(from var(--gold-bright) r g b / 0.7);
  animation: pulse 2.6s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgb(from var(--gold-bright) r g b / 0.6); }
  70%  { box-shadow: 0 0 0 9px rgb(from var(--gold-bright) r g b / 0); }
  100% { box-shadow: 0 0 0 0 rgb(from var(--gold-bright) r g b / 0); }
}
.utility-social { display: flex; align-items: center; gap: 0.85rem; }
.utility-social a {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  color: rgb(from var(--light) r g b / 0.72);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.utility-social a:hover { color: var(--ground-950); background: var(--gold); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(from var(--light) r g b / 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.masthead.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 20px rgb(from var(--ground-950) r g b / 0.07);
}
.masthead .shell-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ground-900);
}
.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-home { display: none; } /* the logo is the home link on desktop */
@media (max-width: 1080px) { .nav-home { display: block; } }
.nav > li { position: relative; }
.nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ground-800);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { background: rgb(from var(--ink) r g b / 0.06); }
.nav a[aria-current="page"] { color: var(--orange-deep); font-weight: 650; }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0.42em; height: 0.42em;
  margin-left: 0.5em;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.5;
}
.subnav {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 16.5rem;
  padding: 0.5rem;
  background: var(--light);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav a { padding: 0.6rem 0.75rem; border-radius: 10px; white-space: normal; }
.subnav .sub-title { display: block; font-weight: 620; }
.subnav .sub-desc { display: block; font-size: 0.8rem; color: var(--ink-faint); font-weight: 450; line-height: 1.4; margin-top: 0.1rem; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 2.85rem; height: 2.85rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 1.8px;
  border-radius: 2px;
  background: var(--ground-900);
  transition: transform 0.28s var(--ease), background-color 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.8px;
  border-radius: 2px;
  background: var(--ground-900);
  transition: transform 0.28s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(24rem, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 6.5rem 1.35rem 2.5rem;
    background: var(--light);
    border-left: 1px solid var(--rule);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    /* Hidden while closed so it is neither focusable nor part of the
       scrollable area; visibility is delayed on the way out so the slide
       animation still plays. */
    visibility: hidden;
    transition: transform 0.36s var(--ease-out), visibility 0s linear 0.36s;
    z-index: 55;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.36s var(--ease-out), visibility 0s;
  }
  .nav a { padding: 0.85rem 0.9rem; font-size: 1.06rem; border-radius: 12px; }
  .has-sub > a::after { display: none; }
  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0.15rem 0 0.5rem 0.9rem;
    padding: 0.15rem 0;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
  }
  .subnav a { font-size: 0.98rem; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgb(from var(--ground-950) r g b / 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 54;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* Narrow phones: the masthead is the one row that can outgrow the viewport,
   because the brand and the actions both refuse to shrink. Let them. */
@media (max-width: 620px) {
  .masthead .shell-wide { gap: 0.5rem; min-height: 4.2rem; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 0.55rem; }
  .brand img { width: 38px; height: 38px; border-radius: 9px; }
  .brand-name { font-size: 0.95rem; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-name, .brand-sub { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn { padding: 0.75em 1.05em; font-size: 0.88rem; }
  .nav-toggle { width: 2.6rem; height: 2.6rem; }
  .utility { font-size: 0.78rem; }
  .utility .shell-wide { min-height: 2.4rem; }
}

@media (max-width: 460px) {
  .brand-sub { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ground-900);
  color: var(--light);
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(50% 60% at 22% 20%, rgb(from var(--orange) r g b / 0.34) 0%, transparent 68%),
    radial-gradient(46% 52% at 82% 8%, rgb(from var(--gold) r g b / 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero .shell-wide { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 30rem; margin-inline: auto; }
}

.hero .display { color: var(--light); }
.hero .lede { color: rgb(from var(--light) r g b / 0.78); max-width: 40ch; margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero .eyebrow { color: var(--gold-bright); }

/* The bridge arc drawn beneath the hero headline */
.bridge-rule {
  width: min(100%, 26rem);
  height: 3px;
  margin-top: 2.5rem;
  border-radius: 3px;
  background: var(--grad-bridge);
  opacity: 0.9;
}

/* The three doors: one for each audience, equal weight, straight in the hero */
.doors {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.door {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: rgb(from var(--light) r g b / 0.05);
  border: 1px solid rgb(from var(--light) r g b / 0.14);
  border-radius: 18px;
  text-decoration: none;
  text-align: left;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease),
              border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.door:hover {
  transform: translateY(-4px);
  background: rgb(from var(--light) r g b / 0.09);
  border-color: rgb(from var(--gold) r g b / 0.55);
  box-shadow: 0 14px 40px rgb(from var(--ground-950) r g b / 0.5);
}
.door__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  background: var(--grad-bridge);
  color: var(--ground-950);
  flex: none;
}
.door h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--light);
  margin-bottom: 0.45rem;
}
.door p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgb(from var(--light) r g b / 0.7);
}
.door .link-arrow { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

/* Hero trust line */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-light);
  font-size: 0.87rem;
  color: rgb(from var(--light) r g b / 0.66);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-trust svg { color: var(--gold); flex: none; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; }

a.card, .card-link { text-decoration: none; }
a.card:hover, .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(from var(--gold) r g b / 0.6);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--grad-bridge);
  color: var(--ground-950);
  flex: none;
}

.on-dark .card {
  background: rgb(from var(--light) r g b / 0.045);
  border-color: rgb(from var(--light) r g b / 0.14);
  box-shadow: none;
}
.on-dark .card p { color: rgb(from var(--light) r g b / 0.72); }
.on-dark a.card:hover { background: rgb(from var(--light) r g b / 0.08); border-color: rgb(from var(--gold) r g b / 0.55); }

/* Program card - photo led */
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ground-800);
}
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.program-card:hover .program-card__media img { transform: scale(1.045); }
.program-card__body { padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.program-card__body p { color: var(--ink-soft); font-size: 1rem; margin-top: 0.5rem; }
.program-card__body .link-arrow { margin-top: auto; padding-top: 1.35rem; align-self: flex-start; }

.chip {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: rgb(from var(--ground-950) r g b / 0.72);
  backdrop-filter: blur(6px);
  color: var(--light);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip-gold { background: var(--grad-bridge); color: var(--ground-950); }

/* --------------------------------------------------------------------------
   10. Alternating feature rows
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.feature.reverse .feature__media { order: 2; }
@media (max-width: 800px) {
  .feature.reverse .feature__media { order: 0; }
}

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
  border-radius: 20px;
  overflow: hidden;
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2vw, 1.8rem);
  background: var(--ground-900);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
  background: var(--grad-bridge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgb(from var(--light) r g b / 0.7);
}

/* --------------------------------------------------------------------------
   12. Scripture band
   -------------------------------------------------------------------------- */
.scripture {
  position: relative;
  overflow: hidden;
  background: var(--ground-950);
  color: var(--light);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}
.scripture::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(45% 55% at 50% 100%, rgb(from var(--gold) r g b / 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.scripture blockquote {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--light);
  text-wrap: pretty;
  font-variation-settings: "opsz" 96, "SOFT" 10, "WONK" 1;
}
.scripture cite {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 1.8rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.scripture-mark {
  position: relative;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 2rem;
  color: var(--gold);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   13. Quote / testimony block
   -------------------------------------------------------------------------- */
.testimony {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.testimony::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(2rem, 4vw, 3rem);
  width: 3.5rem; height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--grad-bridge);
}
.testimony blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 450;
  line-height: 1.42;
  letter-spacing: -0.018em;
  text-wrap: pretty;
  font-variation-settings: "opsz" 72, "SOFT" 6;
}
.testimony__by {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.testimony__by img { width: 3.1rem; height: 3.1rem; border-radius: 50%; object-fit: cover; flex: none; }
.testimony__avatar {
  display: grid; place-items: center;
  width: 3.1rem; height: 3.1rem;
  border-radius: 50%;
  background: var(--grad-bridge);
  color: var(--ground-950);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  flex: none;
}
.testimony__name { font-weight: 650; line-height: 1.3; }
.testimony__role { font-size: 0.87rem; color: var(--ink-faint); line-height: 1.35; }

/* --------------------------------------------------------------------------
   14. Steps / timeline (program phases)
   -------------------------------------------------------------------------- */
.phases { counter-reset: phase; display: grid; gap: 0; }
.phase {
  counter-increment: phase;
  position: relative;
  display: grid;
  gap: clamp(0.75rem, 2vw, 2.5rem);
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.phase:last-child { border-bottom: 1px solid var(--rule); }
.on-dark .phase { border-color: var(--rule-light); }
.phase__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-bridge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phase__num::before { content: "0" counter(phase); }
.phase__title { display: flex; flex-direction: column; gap: 0.35rem; }
.phase__meta {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.on-dark .phase__meta { color: var(--gold); }
.phase__body { color: var(--ink-soft); font-size: 1rem; }
.on-dark .phase__body { color: rgb(from var(--light) r g b / 0.72); }
@media (max-width: 820px) {
  .phase { grid-template-columns: 3rem minmax(0, 1fr); }
  .phase__body { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   15. Detail list (service info, what's provided)
   -------------------------------------------------------------------------- */
.detail-list { display: grid; gap: 0.9rem; }
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
}
.detail-list svg { flex: none; margin-top: 0.25rem; color: var(--orange); }
.on-dark .detail-list svg { color: var(--gold); }

.info-card {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--ground-900);
  color: var(--light);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule-light);
}
.info-card__row:last-of-type { border-bottom: 0; }
.info-card__k { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); flex: none; }
.info-card__v { text-align: right; font-weight: 560; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ground-800);
}
.field .req { color: var(--rose); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1.5px solid rgb(from var(--ink) r g b / 0.16);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgb(from var(--orange) r g b / 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 0.7; }
.field-hint { font-size: 0.83rem; color: var(--ink-faint); }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--orange); flex: none; }

/* Honeypot - never shown, never announced */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-note--ok { background: rgba(46, 138, 88, 0.1); color: #1d5c3a; border: 1px solid rgba(46, 138, 88, 0.28); }
.form-note--err { background: rgb(from var(--rose) r g b / 0.1); color: #8e2f3c; border: 1px solid rgb(from var(--rose) r g b / 0.3); }
.form-note[hidden] { display: none; }

/* --------------------------------------------------------------------------
   17. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.014em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.4rem; height: 1.4rem;
  margin-top: 0.2rem;
  background:
    linear-gradient(currentColor, currentColor) center/0.85rem 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.8px 0.85rem no-repeat;
  color: var(--orange-deep);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 62ch; }
.faq .faq__body p + p { margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   18. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--ground-900);
  color: var(--light);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 110%;
  background: radial-gradient(48% 58% at 28% 24%, rgb(from var(--orange) r g b / 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.page-head .shell { position: relative; z-index: 2; }
.page-head h1 { color: var(--light); }
.page-head .lede { color: rgb(from var(--light) r g b / 0.78); max-width: 54ch; margin-top: 1.35rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgb(from var(--light) r g b / 0.56);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; opacity: 0.5; }
.crumbs li { display: inline-flex; align-items: center; }

/* --------------------------------------------------------------------------
   19. Big CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--ground-900);
  color: var(--light);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -15% -70% -15%;
  height: 130%;
  background: radial-gradient(42% 50% at 50% 100%, rgb(from var(--orange) r g b / 0.32) 0%, transparent 72%);
  pointer-events: none;
}
.cta-band .shell-narrow { position: relative; z-index: 2; }
.cta-band h2 { color: var(--light); }
.cta-band p { color: rgb(from var(--light) r g b / 0.76); margin-top: 1.1rem; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { margin-top: 2.25rem; justify-content: center; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ground-950);
  color: rgb(from var(--light) r g b / 0.72);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule-light);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.site-footer a { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-links li + li { margin-top: 0.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.25rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 11px; }
.footer-brand .brand-name { color: var(--light); font-size: 1.1rem; }
.footer-brand .brand-sub { color: rgb(from var(--light) r g b / 0.55); }
.footer-blurb { max-width: 34ch; line-height: 1.6; }

.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact li + li { margin-top: 0.75rem; }
.footer-contact svg { flex: none; margin-top: 0.3rem; color: var(--gold); }
.footer-contact .k { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(from var(--light) r g b / 0.5); }

.footer-social { display: flex; gap: 0.65rem; margin-top: 1.6rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--rule-light);
  color: rgb(from var(--light) r g b / 0.78);
  transition: all 0.22s var(--ease);
}
.footer-social a:hover { background: var(--grad-bridge); border-color: transparent; color: var(--ground-950); transform: translateY(-2px); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgb(from var(--light) r g b / 0.5);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   21. Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1.25rem;
  background: var(--ground-900);
  color: var(--light);
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }

/* Draft / placeholder callout - remove before launch */
.draft-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  margin-block: 1.5rem;
  background: rgb(from var(--gold) r g b / 0.14);
  border: 1px dashed var(--gold-deep);
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #6b4a10;
}
/* Only the leading strong acts as a heading; inline emphasis stays inline. */
.draft-note > span > strong:first-child { display: block; color: #4a3208; margin-bottom: 0.2rem; }
.draft-note strong { color: #4a3208; }
.draft-note code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(107, 74, 16, 0.14);
  font-size: 0.92em;
}
.draft-note svg { flex: none; margin-top: 0.2rem; color: var(--gold-deep); }
