/* ==========================================================================
   Heritage Care Foundation — public website
   Colours come from /theme.css (--c-*), set by the admin palette.
   ========================================================================== */

:root {
    --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 26px;
    --section: clamp(60px, 8vw, 112px);
    --ease: cubic-bezier(.22, .7, .2, 1);
    --masthead-h: 84px;
    --tabbar-h: 0px;
    --shadow-soft: 0 18px 50px -24px rgba(var(--c-ink-rgb), .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead-h) + 16px); }
body {
    margin: 0; background: var(--c-bg); color: var(--c-ink);
    font-family: var(--font-body); font-size: 17px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--c-ink); font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-gold-soft); color: var(--c-ink); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--c-primary); color: var(--c-on-primary); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center-row { display: flex; justify-content: center; margin-top: 40px; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- type ---------- */
.display { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.35rem); font-weight: 560; letter-spacing: -.02em; }
.display--sm { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.display--light { color: var(--c-band-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold-ink); }
.eyebrow__rule { width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: #f3e6c8; }
.eyebrow--gold { color: var(--c-gold); }
.eyebrow--center { justify-content: center; width: 100%; }
.prose { color: var(--c-muted); }
.prose p:last-child { margin-bottom: 0; }
.prose--lead { font-size: 1.08rem; }
.prose--light { color: rgba(255, 255, 255, .78); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--c-ink); }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--c-ink); }
.prose a { color: var(--c-link); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--c-gold); font-family: var(--font-display); font-size: 1.2rem; color: var(--c-ink); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-size-large { font-size: 1.25em; }
.prose .ql-size-small { font-size: .85em; }

/* ---------- buttons ---------- */
.btn {
    --b-bg: var(--c-primary); --b-ink: var(--c-on-primary); --b-line: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--b-line);
    background: var(--b-bg); color: var(--b-ink); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
    text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { color: var(--b-ink); }
.btn .icon { transition: transform .3s var(--ease); flex: none; }
.btn:hover .icon-arrow-right { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary:hover { --b-bg: var(--c-primary-deep); --b-ink: var(--c-on-deep); }
.btn-gold { --b-bg: var(--c-gold); --b-ink: #1c1608; }
.btn-gold:hover { --b-bg: var(--c-logo-gold-light); }
.btn-outline { --b-bg: transparent; --b-ink: var(--c-ink); --b-line: var(--c-line); }
.btn-outline:hover { --b-line: var(--c-gold); --b-ink: var(--c-ink); }
.btn-ghost-light { --b-bg: rgba(255, 255, 255, .08); --b-ink: #fff; --b-line: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --b-line: #fff; --b-bg: rgba(255, 255, 255, .16); }
.btn-text-light { --b-bg: transparent; --b-ink: #fff; padding-inline: 8px; }
.btn-text-light:hover span { text-decoration: underline; text-underline-offset: 4px; }
.btn-wa { --b-bg: #1f9d55; --b-ink: #fff; }
.btn-wa:hover { --b-bg: #17854a; }
.btn-wa-outline { --b-bg: transparent; --b-ink: var(--c-ink); --b-line: var(--c-line); }
.btn-wa-outline .icon { color: #1f9d55; }
.btn-wa-outline:hover { --b-line: #1f9d55; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-gold); padding-bottom: 3px; margin-top: 8px; }
.link-arrow:hover { color: var(--c-primary); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--c-gold); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--c-ink); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--c-primary-soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--c-primary-soft); color: var(--c-link); }
.chip--light { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.chip--gold { background: var(--c-gold-soft); color: var(--c-gold-ink); }

/* ---------- topbar + masthead ---------- */
.topbar { background: var(--c-band); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__meta { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--c-gold); }
.topbar__reg { letter-spacing: .04em; }
.topbar__social { width: 28px; height: 28px; justify-content: center; }

.masthead { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.masthead.is-stuck { border-bottom-color: var(--c-line); box-shadow: 0 10px 30px -22px rgba(var(--c-ink-rgb), .45); }
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: var(--masthead-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand:hover { color: var(--c-ink); }
.brand__mark, .logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.logo-mark--img { border-radius: 50%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 650; font-size: 1.24rem; letter-spacing: -.01em; }
.brand__sub { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); margin-top: 5px; }
.brand--sm .brand__name { font-size: 1.05rem; }

.mainnav { margin-left: auto; }
.mainnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav__item { position: relative; }
.mainnav__link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border: 0; background: none; font-size: .93rem; font-weight: 650; color: var(--c-ink); text-decoration: none; border-radius: 999px; position: relative; }
.mainnav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mainnav__link:hover, .mainnav__link.is-active { color: var(--c-ink); }
.mainnav__link:hover::after, .mainnav__link.is-active::after { transform: scaleX(1); }
.mainnav__link .icon { transition: transform .25s; }
.mainnav__item.is-open .mainnav__link .icon { transform: rotate(180deg); }
.mainnav__menu { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 230px; translate: -50% 6px; list-style: none; margin: 0; padding: 8px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transition: opacity .2s, translate .25s var(--ease), visibility .2s; }
.mainnav__menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mainnav__item.is-open .mainnav__menu, .mainnav__item:hover .mainnav__menu, .mainnav__item:focus-within .mainnav__menu { opacity: 1; visibility: visible; translate: -50% 0; }
.mainnav__menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.mainnav__menu a:hover, .mainnav__menu a[aria-current] { background: var(--c-primary-soft); color: var(--c-link); }
.masthead__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.masthead__cta { margin-left: 8px; }
.menu-btn { display: none; }
.theme-btn .icon { display: none; }
html[data-theme-mode="light"] .theme-btn__light, html[data-theme-mode="dark"] .theme-btn__dark, html[data-theme-mode="auto"] .theme-btn__auto { display: block; }

/* drawer (phone menu) */
.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(8, 12, 10, .5); backdrop-filter: blur(4px); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--c-bg); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: max(14px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); animation: drawerIn .35s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.drawer__nav { display: flex; flex-direction: column; padding: 10px 0; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--c-line); background: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 560; color: var(--c-ink); text-decoration: none; text-align: left; }
.drawer__link .icon { color: var(--c-gold-ink); transition: transform .25s; }
.drawer__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__link.is-active { color: var(--c-link); }
.drawer__sub { display: flex; flex-direction: column; padding: 6px 0 12px 14px; border-bottom: 1px solid var(--c-line); }
.drawer__sub a { padding: 11px 6px; color: var(--c-muted); font-weight: 600; text-decoration: none; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.drawer__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font-size: .92rem; }
.drawer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-muted); text-decoration: none; word-break: break-word; }

/* search sheet */
.search-sheet { position: fixed; inset: 0; z-index: 130; background: rgba(8, 12, 10, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; padding: max(70px, 10vh) 16px 16px; }
.search-sheet__panel { width: min(720px, 100%); background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; align-self: flex-start; animation: rise .3s var(--ease); max-height: 80vh; display: flex; flex-direction: column; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.search-sheet__form { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.search-sheet__form input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--c-ink); padding: 12px 0; outline: none; }
.search-sheet__results { overflow-y: auto; padding: 8px; }
.search-hit { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; color: var(--c-ink); text-decoration: none; }
.search-hit:hover, .search-hit:focus { background: var(--c-primary-soft); }
.search-hit small { color: var(--c-gold-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.search-hit span { color: var(--c-muted); font-size: .9rem; }
.search-empty { padding: 18px; color: var(--c-muted); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(860px, calc(100svh - var(--masthead-h) - 40px)); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--c-band); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(var(--c-band-rgb), .92) 0%, rgba(var(--c-band-rgb), .62) 42%, rgba(var(--c-band-rgb), .12) 75%),
    linear-gradient(0deg, rgba(var(--c-band-rgb), .85) 0%, transparent 42%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 48px; align-items: end; padding-top: 96px; padding-bottom: 40px; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.1rem); font-weight: 520; line-height: 1.02; letter-spacing: -.03em; color: #fff; margin-bottom: 24px; max-width: 14ch; text-wrap: balance; font-variation-settings: "opsz" 144; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .84); max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__note { align-self: end; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px) saturate(1.2); border-radius: var(--r-lg); padding: 26px 26px 22px; max-width: 320px; justify-self: end; }
.hero__note-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--c-gold); margin-bottom: 8px; }
.hero__note-figure { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); margin: 0 0 6px; line-height: 1; }
.hero__note-figure span { font-size: 4.6rem; font-weight: 500; color: #fff; letter-spacing: -.04em; }
.hero__note-figure small { font-size: 1.1rem; color: rgba(255, 255, 255, .8); font-style: italic; }
.hero__note-text { color: rgba(255, 255, 255, .85); font-size: .95rem; margin-bottom: 10px; }
.hero__rail { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; }
.hero__dots { display: flex; gap: 14px; flex: 1; }
.hero__dot { flex: 1; max-width: 240px; display: flex; flex-direction: column; gap: 9px; padding: 8px 0; background: none; border: 0; color: rgba(255, 255, 255, .6); text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.hero__dot.is-active { color: #fff; }
.hero__dot-bar { display: block; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; border-radius: 2px; }
.hero__dot-bar i { display: block; height: 100%; width: 0; background: var(--c-gold); }
.hero__dot.is-active .hero__dot-bar i { animation: dotfill var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar i { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }
.hero__pause { color: #fff; border-color: rgba(255, 255, 255, .3); width: 38px; height: 38px; }
.hero__pause:hover { background: rgba(255, 255, 255, .12); }
.hero__pause .i-play, .hero.is-paused .hero__pause .i-pause { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section + .section { padding-top: calc(var(--section) * .55); }
.band + .section, .section + .band { padding-top: var(--section); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; }
.section-head--split .display { margin-bottom: 0; }
.section-head__lead { color: var(--c-muted); font-size: 1.06rem; margin: 0; max-width: 52ch; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center .section-head__lead { margin-inline: auto; }

.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 5 / 4; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }

/* intro */
.intro__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro__media { position: relative; padding-bottom: 60px; }
.intro__media .frame { width: 86%; }
.intro__quote { position: absolute; right: 0; bottom: 0; width: min(380px, 70%); margin: 0; padding: 28px 28px 24px; background: var(--c-band); color: var(--c-band-ink); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.intro__quote .icon { color: var(--c-gold); margin-bottom: 10px; }
.intro__quote p { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.45; margin-bottom: 12px; font-style: italic; }
.intro__quote cite { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0 26px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.facts__item { padding: 18px 16px 18px 0; }
.facts__item + .facts__item { padding-left: 18px; border-left: 1px solid var(--c-line); }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 560; line-height: 1.3; }

/* impact */
.impact { background: var(--c-surface-2); }
.impact__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.impact__lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .3s; }
.impact__lead:hover { border-color: var(--c-gold); }
.impact__lead-media { position: relative; min-height: 340px; overflow: hidden; }
.impact__lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.impact__lead:hover .impact__lead-media img { transform: scale(1.05); }
.impact__lead-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.impact__figure { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--c-muted); line-height: 1; }
.impact__figure span { font-style: normal; font-size: clamp(5rem, 3.5rem + 4vw, 8rem); font-weight: 480; color: var(--c-primary); letter-spacing: -.05em; }
.impact__lead-body h3 { font-size: 1.5rem; margin-top: 10px; }
.impact__lead-body p { color: var(--c-muted); }
.verified { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--c-link); }
.impact__side { display: flex; flex-direction: column; gap: 16px; }
.milestone { position: relative; padding: 24px 26px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); flex: 1; transition: border-color .3s; }
.milestone:hover { border-color: var(--c-gold); }
.milestone__date { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); margin-bottom: 8px; }
.milestone h3 { font-size: 1.25rem; margin-bottom: 6px; }
.milestone h3 a { color: inherit; text-decoration: none; }
.milestone p { color: var(--c-muted); margin: 0; font-size: .95rem; }
.impact__side .btn { align-self: flex-start; }

/* project mosaic */
.mosaic__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 290px; gap: 18px; }
.pcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-band); color: #fff; isolation: isolate; border: 1px solid transparent; transition: border-color .35s; }
.pcard--big { grid-column: span 2; grid-row: span 2; }
.pcard__media { position: absolute; inset: 0; z-index: -1; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(var(--c-band-rgb), .9) 100%); transition: background .4s; pointer-events: none; }
.pcard:hover { border-color: var(--c-gold); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.pcard__top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; }
.pcard__num { font-family: var(--font-display); font-size: .95rem; font-style: italic; color: rgba(255, 255, 255, .85); }
.pcard__title { font-size: 1.32rem; color: #fff; margin-bottom: 6px; }
.pcard--big .pcard__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); max-width: 18ch; }
.pcard__title a { color: inherit; text-decoration: none; }
.pcard__text { font-size: .92rem; color: rgba(255, 255, 255, .8); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.pcard--big .pcard__text, .pcard:hover .pcard__text, .pcard:focus-within .pcard__text { max-height: 3.4em; opacity: 1; margin-bottom: 12px; }
.pcard--big .pcard__text { max-width: 46ch; -webkit-line-clamp: 3; max-height: 5em; }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--c-gold); }
.rail-dots { display: none; }

/* heritage band */
.band { background: var(--c-band); color: var(--c-band-ink); overflow: hidden; isolation: isolate; }
.band__texture, .footer__texture { position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 22px, var(--c-gold) 22px 23px); }
.heritage__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.triad { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.triad__item { padding: 22px 18px 0 0; }
.triad__item + .triad__item { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.triad__num { font-family: var(--font-display); font-style: italic; color: var(--c-gold); font-size: .95rem; }
.triad h3 { color: #fff; font-size: 1.3rem; margin: 6px 0; }
.triad p { color: rgba(255, 255, 255, .7); font-size: .92rem; margin: 0; }
.heritage__visual { position: relative; padding: 0 0 50px 50px; }
.heritage__photo { border-radius: 220px 220px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.heritage__photo img { width: 100%; height: 100%; object-fit: cover; }
.heritage__seal { position: absolute; left: 0; bottom: 0; width: 168px; padding: 8px; background: var(--c-band); border-radius: 50%; }
.heritage__seal svg { width: 100%; height: auto; }

/* collage gallery */
.collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
.collage__item { position: relative; overflow: hidden; border-radius: var(--r); background: var(--c-surface-2); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage__item:hover img { transform: scale(1.06); }
.collage__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; transition: border-color .3s; }
.collage__item:hover::after { border-color: var(--c-gold); }
.collage__cap { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 6px 12px; width: fit-content; max-width: calc(100% - 24px); border-radius: 999px; background: rgba(10, 14, 12, .55); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.collage__item:hover .collage__cap, .collage__item:focus-visible .collage__cap { opacity: 1; transform: none; }
.collage--6 .collage__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.collage--6 .collage__item:nth-child(4) { grid-row: span 2; }
.collage--6 .collage__item:nth-child(5), .collage--6 .collage__item:nth-child(6) { grid-column: span 1; }
.collage--6 { grid-template-areas: none; }
.collage--5 .collage__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.collage--3, .collage--4 { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.collage--4 { --cols: 4; }

/* community */
.community__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .icon { flex: none; margin-top: 3px; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold-ink); }
.ticks strong { display: block; font-weight: 750; }
.ticks span { color: var(--c-muted); font-size: .95rem; }

/* ways to support */
.support-band { background: var(--c-surface-2); }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ways--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: border-color .3s; }
.way:hover { border-color: var(--c-gold); }
.way__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--c-primary); color: var(--c-on-primary); margin-bottom: 22px; transition: transform .5s var(--ease), background .3s; }
.way:hover .way__icon { transform: rotate(-8deg); background: var(--c-gold); color: #1c1608; }
.way__title { font-size: 1.35rem; margin-bottom: 8px; }
.way__title a { color: inherit; text-decoration: none; }
.way p { color: var(--c-muted); font-size: .95rem; flex: 1; }
.way__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--c-link); }
.way:hover .way__more .icon { transform: translateX(4px); }
.way__more .icon { transition: transform .3s; }

/* ledger (registration strip) */
.ledger { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--c-line); }
.ledger__head p { color: var(--c-muted); }
.ledger__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); }
.ledger__fact { padding: 20px 24px; border-bottom: 1px solid var(--c-line); }
.ledger__fact:nth-child(odd) { border-right: 1px solid var(--c-line); }
.ledger__fact:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; }
.ledger__facts > .ledger__fact:nth-last-child(-n+2):not(:last-child:nth-child(odd) ~ *) { border-bottom: 0; }
.ledger__fact:last-child { border-bottom: 0; }
.ledger__fact dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); margin-bottom: 4px; }
.ledger__fact dd { margin: 0; font-weight: 650; word-break: break-word; }

/* closing CTA */
.cta-band { position: relative; padding-block: clamp(80px, 11vw, 150px); color: #fff; text-align: center; isolation: isolate; overflow: hidden; background: var(--c-band); }
.cta-band__media { position: absolute; inset: 0; z-index: -1; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--c-band-rgb), .72), rgba(var(--c-band-rgb), .88)); }
.cta-band__inner { max-width: 820px; }
.cta-band__lead { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 5vw, 64px); background: var(--c-band); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--c-band-rgb), .94) 0%, rgba(var(--c-band-rgb), .7) 55%, rgba(var(--c-band-rgb), .4) 100%); }
.page-hero__title { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); font-weight: 520; letter-spacing: -.025em; max-width: 18ch; margin-bottom: 16px; text-wrap: balance; }
.page-hero__lead { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: var(--c-gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .3s; }
.card:hover { border-color: var(--c-gold); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge { position: absolute; top: 14px; left: 14px; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); margin-bottom: 8px; }
.card__title { font-size: 1.32rem; margin-bottom: 8px; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-muted); font-size: .95rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--c-link); }
.card__foot .icon { transition: transform .3s; }
.card:hover .card__foot .icon { transform: translateX(4px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.statement { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); height: 100%; }
.statement--band { background: var(--c-band); color: var(--c-band-ink); border-color: transparent; }
.statement--band h2, .statement--band .display { color: #fff; }
.statement p { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); line-height: 1.45; margin: 0; }
.statement--band p { color: rgba(255, 255, 255, .9); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.numbered { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-line); }
.numbered li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--c-line); }
.numbered li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--c-line); }
.numbered__n { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--c-gold-ink); line-height: 1; display: block; margin-bottom: 14px; }
.numbered h3 { font-size: 1.25rem; margin-bottom: 6px; }
.numbered p { color: var(--c-muted); margin: 0; font-size: .95rem; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--masthead-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 26px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.panel--band { background: var(--c-band); color: var(--c-band-ink); border-color: transparent; }
.panel--band h2, .panel--band h3 { color: #fff; }
.panel--band p { color: rgba(255, 255, 255, .78); }
.panel h2, .panel h3 { font-size: 1.25rem; }
.panel .btn + .btn { margin-top: 10px; }
.meta-list { margin: 0; display: grid; gap: 14px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--c-line); }
.meta-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt { color: var(--c-muted); font-size: .9rem; }
.meta-list dd { margin: 0; font-weight: 700; text-align: right; }
.lead-figure { display: flex; align-items: center; gap: 22px; padding: 26px 28px; margin-bottom: 32px; border-radius: var(--r-lg); background: var(--c-primary-soft); }
.lead-figure strong { font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--c-primary); font-weight: 480; }
.lead-figure span { font-weight: 650; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.thumbs a { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; display: block; position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.thumbs a:hover img { transform: scale(1.06); }
.cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 36px; background: var(--c-surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.related { margin-top: var(--section); }

.masonry { columns: 3 280px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--r); overflow: hidden; position: relative; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry a:hover img { transform: scale(1.04); }
.album-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.album-tabs a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
.album-tabs a:hover { border-color: var(--c-gold); }
.album-tabs a[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.person { text-align: center; padding: 28px 22px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); transition: border-color .3s; }
.person:hover { border-color: var(--c-gold); }
.person__photo { width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); font-family: var(--font-display); font-size: 2.4rem; border: 3px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-gold); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person h3 { font-size: 1.2rem; margin-bottom: 4px; }
.person__role { color: var(--c-gold-ink); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: 10px; }
.person p { color: var(--c-muted); font-size: .92rem; margin: 0; }

.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold-ink); margin-bottom: 16px; }
.empty h2, .empty h3 { font-size: 1.4rem; }
.empty p { color: var(--c-muted); max-width: 52ch; margin: 0 auto; }

.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); }
.doc__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-link); }
.doc__body { flex: 1; min-width: 0; }
.doc__body h3 { font-size: 1.08rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 750; }
.doc__body p { margin: 0; color: var(--c-muted); font-size: .88rem; }

/* contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); align-items: flex-start; }
.contact-card .icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--c-primary); color: var(--c-on-primary); }
.contact-card h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); margin: 0 0 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--c-ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--c-link); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); aspect-ratio: 16 / 7; background: var(--c-surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
html[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* ---------- forms ---------- */
.form-card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 7px; }
.field .req { color: #c0392b; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; }
.textarea { min-height: 140px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #c0392b; }
.field__error { display: block; color: #c0392b; font-size: .84rem; font-weight: 600; margin-top: 6px; }
html[data-theme="dark"] .field__error, html[data-theme="dark"] .field .req { color: #ff8a7a; }
.field__hint { display: block; color: var(--c-muted); font-size: .82rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--c-muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-primary); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; align-items: flex-start; }
.alert .icon { flex: none; margin-top: 2px; }
.alert--ok { background: color-mix(in srgb, #1f9d55 14%, var(--c-surface)); color: var(--c-ink); border: 1px solid color-mix(in srgb, #1f9d55 40%, transparent); }
.alert--err { background: color-mix(in srgb, #c0392b 12%, var(--c-surface)); color: var(--c-ink); border: 1px solid color-mix(in srgb, #c0392b 40%, transparent); }
.alert--info { background: var(--c-gold-soft); color: var(--c-ink); border: 1px solid color-mix(in srgb, var(--c-gold) 45%, transparent); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; }
.amount span { display: grid; place-items: center; min-height: 54px; border-radius: 12px; border: 1.5px solid var(--c-line); font-weight: 750; font-size: 1.05rem; transition: border-color .2s, background .2s; cursor: pointer; }
.amount input:checked + span { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-link); }
.amount input:focus-visible + span { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.tabs-seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs-seg button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--c-muted); }
.tabs-seg button[aria-selected="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 4px 14px -8px rgba(var(--c-ink-rgb), .4); }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th, .bank-table td { text-align: left; padding: 12px 0; border-bottom: 1px dashed var(--c-line); }
.bank-table th { color: var(--c-muted); font-weight: 600; width: 44%; font-size: .9rem; }
.bank-table td { font-weight: 750; word-break: break-all; }
.copy-btn { margin-left: 8px; border: 1px solid var(--c-line); background: none; border-radius: 8px; padding: 2px 8px; font-size: .75rem; font-weight: 700; color: var(--c-link); }
.progress { height: 10px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; margin: 12px 0 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-gold)); border-radius: inherit; }
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 750; font-size: 1.05rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--c-gold-ink); transition: transform .3s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--c-muted); margin: 0 0 20px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--c-band); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 96px); isolation: isolate; overflow: hidden; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.brand--footer { color: #fff; align-items: center; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand__name { font-size: 1.4rem; }
.brand--footer .brand__sub { color: var(--c-gold); letter-spacing: .08em; text-transform: none; font-size: .8rem; }
.footer__about { margin: 22px 0; max-width: 42ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: border-color .2s, background .2s; }
.footer__social a:hover { border-color: var(--c-gold); background: rgba(255, 255, 255, .06); color: var(--c-gold); }
.footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 20px; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer a:hover { color: var(--c-gold); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { flex: none; margin-top: 3px; color: var(--c-gold); }
.footer__contact a, .footer__contact span { word-break: break-word; }
.footer__wa { margin-top: 18px; }
.footer__reg { margin: 0 0 16px; display: grid; gap: 10px; }
.footer__reg dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer__reg dd { margin: 0; color: #fff; font-weight: 650; word-break: break-word; }
.footer .link-arrow { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer__credit a { color: var(--c-gold); }

/* ---------- floating + tabbar ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 999px; background: #1f9d55; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(31, 157, 85, .6); transition: background .2s, padding .3s var(--ease); }
.wa-float:hover { background: #17854a; color: #fff; }
.wa-float__label { font-weight: 700; font-size: .92rem; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 69; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.to-top .icon { transform: rotate(-90deg); }
.tabbar { display: none; }
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--c-ink); color: var(--c-bg); font-weight: 600; box-shadow: var(--shadow-soft); animation: rise .3s var(--ease); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(6, 9, 8, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 56px 12px; }
.lightbox .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .25); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; justify-content: center; min-width: 0; }
.lightbox__figure img { max-height: calc(100vh - 170px); max-width: 100%; width: auto; border-radius: 12px; object-fit: contain; animation: rise .3s var(--ease); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .85); text-align: center; font-size: .95rem; }
.lightbox__count { position: absolute; top: 22px; left: 22px; margin: 0; color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }

/* ---------- reveal (only when JS is running — content never hidden without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- dark mode refinements ---------- */
html[data-theme="dark"] .masthead { background: color-mix(in srgb, var(--c-bg) 86%, transparent); }
html[data-theme="dark"] .btn-gold { --b-ink: #15110a; }
html[data-theme="dark"] .logo-mark { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
html[data-theme="dark"] .way__icon { color: var(--c-on-primary); }
html[data-theme="dark"] .hero__shade { background: linear-gradient(90deg, rgba(var(--c-band-rgb), .95) 0%, rgba(var(--c-band-rgb), .7) 45%, rgba(var(--c-band-rgb), .2) 78%), linear-gradient(0deg, rgba(var(--c-band-rgb), .9) 0%, transparent 45%); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .mainnav__link { padding-inline: 10px; font-size: .9rem; }
    .masthead__cta span { display: none; }
    .masthead__cta { padding-inline: 13px; }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    :root { --masthead-h: 72px; }
    .mainnav, .masthead__cta { display: none; }
    .menu-btn { display: inline-grid; }
    .masthead__actions { margin-left: auto; }
    .hero__inner { grid-template-columns: 1fr; gap: 28px; }
    .hero__note { justify-self: start; max-width: 420px; }
    .section-head--split, .intro__grid, .heritage__grid, .community__grid, .split, .ledger { grid-template-columns: 1fr; }
    .impact__grid, .detail { grid-template-columns: 1fr; }
    .detail__aside { position: static; }
    .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numbered li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
    .numbered li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--c-line); }
    .heritage__visual { max-width: 560px; }
    .mosaic__track { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 270px; }
    .pcard--big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 760px) {
    :root { --masthead-h: 64px; --tabbar-h: 68px; }
    body { font-size: 16px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    body:not(:has(.tabbar)) { padding-bottom: 0; }
    .hide-sm { display: none !important; }
    .topbar__reg { display: none; }
    .brand__mark { width: 46px; height: 46px; }
    .brand__name { font-size: 1.02rem; }
    .brand__sub { font-size: .6rem; letter-spacing: .12em; }
    .masthead__actions .icon-btn { width: 40px; height: 40px; }
    .masthead__actions [data-search-open] { display: none; }

    /* phone hero: compact inset card, app-like */
    .hero { min-height: 0; margin: 10px 12px 0; border-radius: 24px; }
    .hero__inner { padding-top: 120px; padding-bottom: 18px; gap: 16px; }
    .hero__title { font-size: clamp(2rem, 8.6vw, 2.6rem); margin-bottom: 14px; max-width: none; }
    .hero__lead { font-size: .98rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero__actions { gap: 8px; }
    .hero__actions .btn-lg { min-height: 50px; padding: 12px 20px; font-size: .95rem; }
    .hero__actions .btn-text-light { display: none; }
    .hero__note { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; max-width: none; width: 100%; }
    .hero__note-eyebrow, .hero__note .link-arrow { display: none; }
    .hero__note-figure span { font-size: 2.8rem; }
    .hero__note-figure small { display: none; }
    .hero__note-figure { margin: 0; }
    .hero__note-text { margin: 0; font-size: .88rem; }
    .hero__rail { padding-bottom: 16px; }
    .hero__dot-cap { display: none; }
    .hero__shade { background: linear-gradient(0deg, rgba(var(--c-band-rgb), .96) 10%, rgba(var(--c-band-rgb), .55) 60%, rgba(var(--c-band-rgb), .25) 100%); }

    .facts { grid-template-columns: 1fr; }
    .facts__item + .facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line); }
    .facts__item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; align-items: baseline; }
    .facts dd { text-align: right; font-size: 1rem; }
    .intro__media { padding-bottom: 0; }
    .intro__media .frame { width: 100%; aspect-ratio: 4 / 3; }
    .intro__quote { position: relative; width: auto; margin: -40px 14px 0; padding: 22px; }
    .impact__lead { grid-template-columns: 1fr; }
    .impact__lead-media { min-height: 220px; }

    /* phone rails: whole cards, swipe, dots */
    .mosaic__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .mosaic__track::-webkit-scrollbar { display: none; }
    .pcard, .pcard--big { flex: 0 0 100%; height: 400px; scroll-snap-align: start; }
    .pcard__text { max-height: 5em; opacity: 1; margin-bottom: 12px; -webkit-line-clamp: 3; }
    .rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
    .rail-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--c-line); transition: width .3s, background .3s; }
    .rail-dots button.is-active { width: 26px; background: var(--c-gold); }

    .triad { grid-template-columns: 1fr; }
    .triad__item + .triad__item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
    .triad__item { padding: 16px 0; }
    .heritage__visual { padding: 0 0 40px 30px; }
    .heritage__seal { width: 116px; }

    .collage, .collage--3, .collage--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
    .collage--6 .collage__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .collage--6 .collage__item:nth-child(4) { grid-row: span 1; }
    .collage--5 .collage__item:nth-child(1) { grid-column: span 2; }
    .collage__cap { display: none; }

    .ways, .ways--3, .ways--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ways--3 .way:last-child:nth-child(odd) { grid-column: span 2; }
    .way { padding: 20px 16px 18px; }
    .way__icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
    .way__title { font-size: 1.1rem; }
    .way p { font-size: .86rem; }
    .way__more { font-size: .8rem; }

    .ledger__facts { grid-template-columns: 1fr; }
    .ledger__fact:nth-child(odd) { border-right: 0; }
    .ledger__fact:last-child:nth-child(odd) { grid-column: auto; }
    .ledger__fact { border-bottom: 1px solid var(--c-line) !important; padding: 16px 18px; }
    .ledger__fact:last-child { border-bottom: 0 !important; }

    .listing, .pair, .team-grid, .numbered { grid-template-columns: 1fr; }
    .numbered li, .numbered li:nth-child(even) { padding: 20px 0; border-left: 0; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .person { padding: 20px 12px; }
    .person__photo { width: 92px; height: 92px; font-size: 1.8rem; }
    .form-grid { grid-template-columns: 1fr; }
    .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map { aspect-ratio: 4 / 3; }
    .page-hero { margin: 10px 12px 0; border-radius: 24px; padding: 56px 0 30px; }
    .page-hero__title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
    .page-hero__lead { font-size: 1rem; }
    .crumbs { margin-bottom: 14px; }
    .cta-band { padding-block: 72px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .masonry { columns: 2; column-gap: 10px; }
    .masonry a { margin-bottom: 10px; }
    .lightbox { grid-template-columns: 1fr; padding: 60px 8px 80px; }
    .lightbox__nav { position: absolute; bottom: 18px; }
    .lightbox__nav--prev { left: calc(50% - 56px); }
    .lightbox__nav--next { right: calc(50% - 56px); }

    /* app-style bottom tab bar */
    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--c-line); }
    .tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--c-muted); text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .02em; border-radius: 14px; }
    .tabbar__icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: background .25s; }
    .tabbar__item.is-active { color: var(--c-link); }
    .tabbar__item.is-active .tabbar__icon { background: var(--c-primary-soft); }
    .tabbar__item--accent .tabbar__icon { background: var(--c-gold); color: #1c1608; }
    .wa-float { right: 14px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); height: 52px; width: 52px; padding: 0; justify-content: center; }
    .wa-float:not(.has-tabbar) { bottom: 16px; }
    .wa-float__label { display: none; }
    .to-top { right: 20px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 78px); }
    .to-top:not(.has-tabbar) { bottom: 80px; }
    .toast-region { bottom: calc(var(--tabbar-h) + 20px); }
}
@media (max-width: 380px) {
    .brand__sub { display: none; }
    .ways, .ways--3, .ways--2 { grid-template-columns: 1fr; }
    .ways--3 .way:last-child:nth-child(odd) { grid-column: auto; }
    .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero__slide img { transform: none !important; }
}

@media print {
    .topbar, .masthead, .tabbar, .wa-float, .to-top, .footer, .drawer, .search-sheet { display: none !important; }
    body { padding: 0; background: #fff; color: #000; }
}

/* refinements */
.impact__lead-body h3 a, .milestone h3 a { color: inherit; text-decoration: none; }
html[data-theme="dark"] .impact__figure span, html[data-theme="dark"] .lead-figure strong { color: var(--c-gold); }

/* collage: explicit areas — every cell filled, no empty gaps */
.collage--6, .collage--5, .collage--4, .collage--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collage--6 { grid-template-areas: "a a b c" "a a d e" "f f d e"; grid-auto-rows: 210px; }
.collage--5 { grid-template-areas: "a a b c" "a a d e"; }
.collage--4 { grid-template-areas: "a a b c" "a a d d"; }
.collage--3 { grid-template-areas: "a a b c"; grid-auto-rows: 300px; }
.collage .collage__item:nth-child(1) { grid-area: a; }
.collage .collage__item:nth-child(2) { grid-area: b; }
.collage .collage__item:nth-child(3) { grid-area: c; }
.collage .collage__item:nth-child(4) { grid-area: d; }
.collage .collage__item:nth-child(5) { grid-area: e; }
.collage .collage__item:nth-child(6) { grid-area: f; }
@media (max-width: 760px) {
    .collage--6, .collage--5, .collage--4, .collage--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .collage--6 { grid-template-areas: "a a" "a a" "b c" "d e" "f f"; }
    .collage--5 { grid-template-areas: "a a" "a a" "b c" "d e"; }
    .collage--4 { grid-template-areas: "a a" "a a" "b c" "d d"; }
    .collage--3 { grid-template-areas: "a a" "b c"; }
}

/* 7–8 photo collage: same look, every cell filled */
.collage--8, .collage--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
.collage--8 { grid-template-areas: "a a b c" "a a d e" "f g d h"; }
.collage--7 { grid-template-areas: "a a b c" "a a d e" "f f d g"; }
.collage .collage__item:nth-child(7) { grid-area: g; }
.collage .collage__item:nth-child(8) { grid-area: h; }
@media (max-width: 760px) {
    .collage--8, .collage--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .collage--8 { grid-template-areas: "a a" "a a" "b c" "d e" "f g" "h h"; }
    .collage--7 { grid-template-areas: "a a" "a a" "b c" "d e" "f g"; }
}

/* image placeholder while a photo loads */
.collage__item, .pcard__media, .frame, .card__media, .impact__lead-media, .heritage__photo, .thumbs a, .masonry a { background: linear-gradient(110deg, var(--c-surface-2) 35%, color-mix(in srgb, var(--c-surface-2) 70%, var(--c-gold) 8%) 50%, var(--c-surface-2) 65%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.form-card, .panel:not(.panel--band), .statement:not(.statement--band) { color: var(--c-ink); }
.band .form-card .field label, .band .form-card .check { color: var(--c-ink); }

/* phone header: brand shrinks and wraps instead of pushing the page wider */
@media (max-width: 760px) {
    .masthead__inner { gap: 8px; }
    .masthead .brand { flex: 1 1 auto; min-width: 0; gap: 9px; }
    .masthead .brand__text { min-width: 0; }
    .masthead .brand__name { font-size: clamp(.9rem, 3.9vw, 1.02rem); line-height: 1.15; white-space: normal; }
    .masthead__actions { gap: 2px; }
}
@media (max-width: 360px) { .masthead .brand__mark { width: 40px; height: 40px; } }

/* long words / emails never widen the page; buttons may wrap on small phones */
.prose, .page-hero__lead, .panel, .form-card, .contact-card, .doc__body, .alert { overflow-wrap: anywhere; }
.btn { max-width: 100%; }
@media (max-width: 480px) {
    .btn { white-space: normal; text-align: center; line-height: 1.25; }
    .tabs-seg { display: flex; width: 100%; }
    .tabs-seg button { flex: 1 1 auto; padding: 10px 12px; }
    .form-card { padding: 20px 16px; }
}
