/* ==========================================================================
   MAN Foundation — Design System
   Brand: black / white / logo grey, Trajan-style serif, tracked sans labels
   ========================================================================== */

:root {
  --ink: #0f0f10;
  --char: #1b1b1d;
  --graphite: #2a2a2d;
  --stone: #6f6f72;      /* logo grey */
  --mist: #a8a59f;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line: rgba(15, 15, 16, 0.12);
  --bone: #f2efe9;
  --paper: #faf8f4;
  --white: #ffffff;
  --gold: #b48f5a;       /* dawn light from the brand hero image */
  --gold-soft: #d8c3a0;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 11vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--char { background: var(--char); color: var(--bone); }
.section--bone { background: var(--bone); }
.section--dark .eyebrow, .section--char .eyebrow { color: var(--mist); }
.section--dark .rule, .section--char .rule { border-color: var(--line-dark); }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse > :first-child { order: 2; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--even { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.display { font-size: clamp(48px, 8.4vw, 124px); line-height: .95; font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 400; }
h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 400; }
h3 { font-size: clamp(26px, 2.4vw, 34px); }
h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
em, .italic { font-style: italic; }
h1 em, h2 em, .display em { color: var(--stone); }
.section--dark h1 em, .section--dark h2 em, .hero em, .page-hero em, .cta em, .section--char h2 em { color: var(--gold-soft); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--graphite); max-width: 40ch; }
.section--dark .lead, .section--char .lead { color: #cfccc6; }
.muted { color: var(--stone); }
.section--dark .muted, .section--char .muted { color: var(--mist); }
.small { font-size: 14px; }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--stone);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow .num { font-variant-numeric: tabular-nums; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.2; margin: 0;
}
.cite { display: block; margin-top: 22px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--stone); }
.section--dark .cite, .hero .cite { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: var(--radius); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow .arrow { transition: transform .35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-solid, .site-header.is-light { background: rgba(250, 248, 244, .94); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-color: var(--line); }
.site-header.is-solid .logo-light, .site-header.is-light .logo-light { display: none; }
.site-header.is-solid .logo-dark, .site-header.is-light .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a.nav-link {
  position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); padding: 8px 0;
}
.nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.site-header.is-solid .nav a.nav-link, .site-header.is-light .nav a.nav-link { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 12px; }
.site-header:not(.is-solid):not(.is-light) .nav .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-header:not(.is-solid):not(.is-light) .nav .btn:hover { background: transparent; color: var(--paper); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: var(--paper); }
.site-header.is-solid .menu-toggle, .site-header.is-light .menu-toggle { color: var(--ink); }
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform .35s var(--ease), opacity .35s; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.mobile-menu .top img { height: 30px; }
.mobile-menu .close { background: none; border: 0; color: var(--bone); font-size: 34px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.mobile-menu nav { margin-top: 6vh; display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.25; padding: 6px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu nav a small { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; color: var(--mist); }
.mobile-menu .btn-row { margin-top: auto; padding-top: 32px; }
.mobile-menu .btn-row .btn { flex: 1; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); background: var(--ink); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; transform: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.05) 35%, rgba(10,10,11,.25) 60%, rgba(10,10,11,.88) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero-grid .lead { color: rgba(255,255,255,.82); margin-bottom: 32px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero::after { background: linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,.45) 40%, rgba(10,10,11,.9) 100%); } }
.verse { margin: 0; }

.hero-meta {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.2);
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 7vh, 80px);
}
.hero-meta div { padding: 20px 20px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-meta dd { margin: 0; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--paper); margin-top: 4px; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); } }

/* Page hero (interior pages) */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; }
.page-hero .hero-media img { object-position: center 40%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.15) 40%, rgba(10,10,11,.85) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: clamp(48px, 8vh, 88px); }
.page-hero .eyebrow { color: rgba(255,255,255,.72); }
.page-hero .lead { color: rgba(255,255,255,.82); margin-top: 24px; max-width: 46ch; }
.breadcrumb { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- Section header ---------- */
.section-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.section-head .lead { max-width: 48ch; }
@media (max-width: 960px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Media ---------- */
.frame { position: relative; overflow: hidden; background: var(--bone); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.caption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-top: 14px; }
.bw img { filter: grayscale(1) contrast(1.05); }

/* Full-bleed image band */
.band { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--paper); overflow: hidden; background: var(--ink); }
.band .hero-media img { transform: none; animation: none; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,.55); }
.band .container { position: relative; z-index: 2; text-align: center; }
.band .quote { max-width: 26ch; margin: 0 auto; }
.band .cite { color: rgba(255,255,255,.72); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.pillar { position: relative; padding: 40px 32px 44px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); min-height: 420px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.pillar .bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.pillar .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.35); }
.pillar:hover .bg, .pillar:focus-within .bg { opacity: 1; }
.pillar .num { font-size: 12px; letter-spacing: .24em; color: var(--mist); }
.pillar .icon { height: 56px; width: auto; align-self: flex-start; margin: 40px 0 28px; opacity: .92; }
.pillar h3 { font-size: 34px; margin-bottom: 14px; }
.pillar p { color: #c9c6c0; font-size: 15.5px; }
.pillar .link-arrow { margin-top: auto; padding-top: 24px; align-self: flex-start; font-size: 11.5px; border-bottom: 0; color: var(--gold-soft); }
@media (max-width: 1020px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

.icon-dark { filter: invert(1); }

/* Pillar detail rows */
.pillar-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.pillar-row:first-child { border-top: 0; }
.pillar-row:nth-child(even) .frame { order: 2; }
.pillar-row .icon { height: 52px; width: auto; display: block; margin-bottom: 28px; }
.pillar-row h2 { margin-bottom: 24px; }
.pillar-row .scripture { margin: 32px 0 0; padding-left: 22px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--graphite); }
.pillar-row .scripture span { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); color: var(--graphite); }
@media (max-width: 860px) { .pillar-row { grid-template-columns: 1fr; } .pillar-row:nth-child(even) .frame { order: 0; } }

/* ---------- Cards / lists ---------- */
.card { border-top: 1px solid var(--line); padding-top: 28px; }
.section--dark .card, .section--char .card { border-color: var(--line-dark); }
.card .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--stone); margin-bottom: 20px; display: block; }
.section--dark .card .num { color: var(--gold-soft); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--graphite); font-size: 16px; }
.section--dark .card p, .section--char .card p { color: #c2bfb9; }

.path-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: border-color .4s var(--ease), transform .5s var(--ease); }
.path-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.path-card .frame { aspect-ratio: 4 / 3; }
.path-card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.path-card .who { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.path-card h3 { margin-bottom: 12px; }
.path-card p { color: var(--graphite); font-size: 16px; }
.path-card .link-arrow { margin-top: auto; padding-top: 20px; align-self: flex-start; border: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.values > div { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); padding-left: 28px; }
.values > div:first-child { padding-left: 0; }
.values > div:last-child { border-right: 0; }
.values h3 { font-size: 30px; margin-bottom: 8px; }
.values p { color: var(--stone); font-size: 15px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } .values > div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* Facts list (who/what/where) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 26px 24px 26px 0; }
.facts dt { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Schedule table */
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.schedule th { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); font-weight: 500; }
.schedule td:first-child { font-family: var(--serif); font-size: 20px; color: var(--mist); width: 56px; }
.schedule td.seg { font-family: var(--serif); font-size: 24px; color: var(--bone); }
.schedule td.time { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gold-soft); width: 100px; }
.schedule td.note { color: var(--mist); font-size: 15px; }
.schedule tfoot td { border-bottom: 0; font-weight: 600; color: var(--bone); }
.timeline-bar { display: flex; height: 6px; margin: 8px 0 40px; gap: 3px; }
.timeline-bar span { display: block; background: var(--graphite); }
.timeline-bar span.hl { background: var(--gold); }
@media (max-width: 620px) { .schedule td.note { display: none; } .schedule th:last-child { display: none; } }

/* Lessons list */
.lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: l; }
.lessons li { counter-increment: l; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.lessons li::before { content: counter(l, decimal-leading-zero); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--stone); min-width: 24px; }
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lessons { grid-template-columns: 1fr; } }

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.person { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.person .initials { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--stone); margin-bottom: 18px; }
.person h3 { font-size: 26px; margin-bottom: 4px; }
.person .role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }

.name-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 40px; }
.name-list li { font-family: var(--serif); font-size: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.section--dark .name-list li, .section--char .name-list li { border-color: var(--line-dark); }
@media (max-width: 860px) { .name-list { columns: 2; } }
@media (max-width: 480px) { .name-list { columns: 1; } }

/* Designations (Give) */
.designations { counter-reset: d; border-top: 1px solid var(--line-dark); }
.designation { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.designation .n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold-soft); }
.designation h3 { font-size: 32px; }
.designation p { color: #c2bfb9; margin: 0; }
@media (max-width: 760px) { .designation { grid-template-columns: 60px 1fr; } .designation p { grid-column: 2; } .designation .n { font-size: 40px; } }

/* Donate widget */
.donate-box { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.seg-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 24px; }
.seg-toggle button { background: transparent; border: 0; min-height: 48px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amounts button { min-height: 56px; background: transparent; border: 1px solid var(--line); font-family: var(--serif); font-size: 24px; cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.amounts button:hover { border-color: var(--ink); }
.amounts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.donate-note { font-size: 13px; color: var(--stone); margin-top: 16px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.field .req { color: var(--gold); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180,143,90,.18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #a4452c; }
.error-msg { color: #a4452c; font-size: 13px; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); font-size: 14px; cursor: pointer; transition: all .25s; }
.check input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--graphite); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.form-status { padding: 18px 20px; border-left: 2px solid var(--gold); background: var(--bone); font-size: 15px; display: none; }
.form-status.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

.form-card { background: var(--bone); padding: clamp(28px, 4vw, 56px); }
.form-card .input, .form-card .select, .form-card .textarea, .form-card .check span { background: var(--paper); }

/* Tabs (Get Involved) */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 18px 28px 18px 0; margin-right: 28px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--stone); cursor: pointer; position: relative; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 28px; bottom: -1px; height: 2px; background: var(--ink); }
.tab-panel[hidden] { display: none; }

/* Downloads */
.downloads { border-top: 1px solid var(--line); }
.download { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.download:hover { padding-left: 12px; }
.download h4 { font-family: var(--serif); font-size: 24px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.download .meta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; counter-increment: s; padding: 28px 28px 8px 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 40px; color: var(--stone); margin-bottom: 14px; }
.steps h4 { margin-bottom: 8px; }
.steps p { color: var(--graphite); font-size: 15.5px; }
ol.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Scripture carousel */
.verses { position: relative; min-height: 260px; }
.verse { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); display: flex; flex-direction: column; justify-content: center; }
.verse.is-active { opacity: 1; position: relative; }
.verse-dots { display: flex; gap: 10px; margin-top: 36px; }
.verse-dots button { width: 34px; height: 12px; border: 0; background: none; cursor: pointer; padding: 5px 0; }
.verse-dots button::before { content: ""; display: block; height: 1px; background: var(--mist); transition: background .3s, height .3s; }
.verse-dots button[aria-current="true"]::before { background: var(--gold); height: 2px; }

/* Partner strip */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partners > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.partners h3 { font-size: 26px; }
.partners .type { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.cta .hero-media img { transform: none; animation: none; opacity: .35; filter: grayscale(.3); }
.cta .container { position: relative; z-index: 2; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding: clamp(96px, 12vw, 180px) 0; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: clamp(72px, 9vw, 120px) 0 36px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo { height: 40px; width: auto; margin-bottom: 24px; }
.site-footer h4 { color: var(--bone); margin-bottom: 20px; font-size: 11.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--paper); }
.site-footer .pillar-line { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); margin-top: 20px; }
.site-footer .newsletter { display: flex; margin-top: 16px; border-bottom: 1px solid rgba(255,255,255,.35); }
.site-footer .newsletter input { flex: 1; background: none; border: 0; padding: 14px 0; color: var(--paper); min-width: 0; }
.site-footer .newsletter input::placeholder { color: var(--stone); }
.site-footer .newsletter input:focus { outline: none; }
.site-footer .newsletter button { background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding: 0 0 0 16px; }
.site-footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 13px; color: var(--stone); }
.site-footer .wordmark { font-family: var(--serif); font-size: clamp(64px, 17vw, 260px); line-height: .8; letter-spacing: .08em; color: rgba(255,255,255,.06); text-align: center; margin: 56px 0 0; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-status { font-size: 13px; color: var(--gold-soft); margin-top: 10px; min-height: 1em; }
@media (max-width: 960px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; } .mt-4 { margin-top: 88px; }
.mb-2 { margin-bottom: 32px; } .mb-3 { margin-bottom: 56px; }
.center { text-align: center; }
.sticky { position: sticky; top: 120px; }
@media (max-width: 960px) { .sticky { position: static; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Client edits (Oct 2026) --- */
.hero h1 em { color: #e6c992; text-shadow: 0 2px 28px rgba(15,15,16,.55), 0 1px 2px rgba(15,15,16,.35); }
.hero .btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 560px; }
.hero .btn-row .btn { width: 100%; white-space: nowrap; padding: 0 18px; }
.hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero .btn-row { grid-template-columns: 1fr; max-width: 360px; } }
.nowrap { white-space: nowrap; }
.cta .lead { color: #fff; }
.partners > a { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: background .35s var(--ease); }
.partners > a:hover { background: var(--bone); }
.partners > a h3 { color: var(--stone); font-style: italic; }

/* ---------- Partner with logo (Get Involved) ---------- */
.partners--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .partners--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .partners--4 { grid-template-columns: 1fr; } }
.partners > a.partner-logo img { display: block; width: 100%; max-width: 200px; height: auto; margin-top: 24px; }

/* ---------- Footer design credit ---------- */
.site-footer .credit a { text-decoration: underline; text-underline-offset: 3px; }
