/* ============================================================
   UKRAINIAN BROTHERHOOD OF DESTINY — Design System
   Palette: heraldic navy + gold, drawn from the UBD crest.
   Type:    Cinzel (display) / Cormorant Garamond (editorial italic)
            / Manrope (body & UI)
   ============================================================ */

:root {
  --navy-950: #030918;
  --navy-900: #050E24;
  --navy-800: #0A1A3A;
  --navy-700: #12264F;
  --navy-600: #1B3568;
  --gold: #D9A93B;
  --gold-2: #F1C860;
  --gold-deep: #A87B1E;
  --ua-blue: #1E5BC6;
  --ua-yellow: #FFD500;
  --ivory: #F4EFE3;
  --ivory-2: #EAE3D2;
  --steel: #C5CBD8;
  --steel-2: #8E97AB;
  --white: #FBFAF7;

  --bg: var(--navy-800);
  --bg-deep: var(--navy-900);
  --surface: var(--navy-700);
  --text: var(--white);
  --muted: var(--steel);
  --line: rgba(217, 169, 59, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --gutter: clamp(20px, 5vw, 88px);
  --max: 1440px;
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
body::after { content: ''; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- Type scale ---------- */
.display-xl { font-size: clamp(2.6rem, 7.2vw, 6.4rem); letter-spacing: 0.01em; line-height: 1; }
.display-lg { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.no-line::before { display: none; }
.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--steel);
  max-width: 60ch;
}
.lede em { color: var(--gold-2); font-style: italic; }
.body-lg { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5vw, 76px); }
.section-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lede { text-align: center; }
.ivory { background: var(--ivory); color: var(--navy-900); }
.ivory .lede, .ivory .muted, .ivory .body-lg { color: #4D5468; }
.ivory .eyebrow { color: var(--gold-deep); }
.ivory .eyebrow::before { background: var(--gold-deep); }
.ivory ::selection { background: var(--navy-800); color: var(--ivory); }
.deep { background: var(--bg-deep); }

/* Flag stripe motif (the one place the pure flag colours appear) */
.flag-stripe { height: 6px; display: grid; grid-template-columns: 1fr 1fr; }
.flag-stripe span:first-child { background: var(--ua-blue); }
.flag-stripe span:last-child { background: var(--ua-yellow); }

/* Heraldic hairline frame */
.frame { position: relative; }
.frame::before {
  content: ''; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy-900);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: 2px; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), transform .3s var(--ease-out);
  will-change: transform;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn.ghost::after { background: var(--white); }
.btn.ghost:hover { color: var(--navy-900); border-color: var(--white); }
.btn.gold-outline { --btn-bg: transparent; --btn-fg: var(--gold-2); border: 1px solid var(--gold); }
.btn.gold-outline::after { background: var(--gold); }
.btn.gold-outline:hover { color: var(--navy-900); }
.ivory .btn.ghost { --btn-fg: var(--navy-900); border-color: rgba(10,26,58,.3); }
.ivory .btn.ghost::after { background: var(--navy-900); }
.ivory .btn.ghost:hover { color: var(--ivory); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow::after { display: none; }
.ivory .link-arrow { color: var(--gold-deep); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy-950);
  display: grid; place-items: center;
}
.preloader__inner { display: grid; justify-items: center; gap: 26px; }
.preloader__logo { width: clamp(120px, 16vw, 190px); opacity: 0; transform: scale(.86); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.preloader__line { width: 160px; height: 1px; background: rgba(217,169,59,.25); position: relative; overflow: hidden; }
.preloader__line::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.preloader__word { font-family: var(--font-display); font-size: .72rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.preloader.done { pointer-events: none; }


/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease-out), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(5,14,36,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line-soft); }
.header.hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header.scrolled .header__inner { height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 50px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: .86rem; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; }
.brand__sub { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); padding: 6px 0; transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 13px 22px; font-size: .72rem; }
.nav .btn::after { display: block; }
.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 3.5px 0; transition: transform .4s var(--ease-out), opacity .3s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--navy-950); display: grid; place-items: center; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); }
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu ul { display: grid; gap: 22px; text-align: center; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.mobile-menu a.active { color: var(--gold-2); }
.mobile-menu .btn { margin-top: 20px; font-family: var(--font-body); font-size: .8rem; letter-spacing: .22em; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; padding-block: 160px 90px; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.12); }
.hero__veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,14,36,.55) 0%, rgba(5,14,36,.15) 35%, rgba(10,26,58,.78) 78%, var(--navy-800) 100%),
    linear-gradient(90deg, rgba(5,14,36,.6) 0%, rgba(5,14,36,0) 60%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; align-items: end; }
.hero h1 { color: var(--white); text-shadow: 0 10px 40px rgba(0,0,0,.4); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero__side { display: grid; gap: 28px; padding-bottom: 12px; border-left: 1px solid var(--line); padding-left: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel-2); }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); display: block; position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--white); transform: translateY(-100%); animation: scrollpulse 2.2s var(--ease-in-out) infinite; }
@keyframes scrollpulse { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
.hero__crest { position: absolute; right: var(--gutter); top: 120px; width: clamp(90px, 10vw, 150px); opacity: .9; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); z-index: 1; }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 70svh; display: grid; align-items: end; padding-block: 170px 80px; overflow: hidden; isolation: isolate; }
.page-hero .hero__media img { object-position: center; }
.page-hero__inner { display: grid; gap: 22px; max-width: 900px; }
.page-hero h1 { color: var(--white); }
.breadcrumb { display: flex; gap: 12px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-2); }
.breadcrumb a:hover { color: var(--gold-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; background: var(--navy-900); }
.marquee__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 34px; padding-inline: 17px; font-family: var(--font-display); font-size: .86rem; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.marquee__item i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); display: inline-block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--line); display: grid; gap: 10px; position: relative; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(217,169,59,.12), transparent 60%); opacity: 0; transition: opacity .5s; }
.stat:hover::before { opacity: 1; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .45em; color: var(--gold-2); vertical-align: top; margin-left: 2px; }
.stat__label { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.stat__note { font-size: .9rem; color: var(--steel-2); }

/* ---------- Mission split ---------- */
.mission { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.mission__copy { display: grid; gap: 26px; }
.mission__copy p { max-width: 58ch; }
.mission__media { position: relative; }
.mission__media .img-frame { aspect-ratio: 4 / 5; }
.mission__media .img-frame.second { position: absolute; right: -36px; top: -36px; width: 42%; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0,0,0,.45); z-index: 2; }
.mission__media .img-frame.second::after { border-color: rgba(217,169,59,.4); }
.mission__media .badge {
  position: absolute; left: -28px; bottom: 40px; background: var(--gold); color: var(--navy-900);
  padding: 22px 26px; display: grid; gap: 4px; max-width: 240px; box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.mission__media .badge b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.mission__media .badge span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }

.img-frame { position: relative; overflow: hidden; background: var(--navy-700) url('../assets/logo-96.png') center / 48px no-repeat; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); will-change: transform; }
.img-frame:hover img { transform: scale(1.0); }
.img-frame::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }

/* ---------- Pillars (programs grid) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.pillar { position: relative; background: var(--navy-800); min-height: 460px; display: grid; align-content: end; padding: 32px 28px; overflow: hidden; isolation: isolate; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; transform: scale(1.08); transition: transform 1.3s var(--ease-out), opacity .7s; filter: saturate(.9); }
.pillar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,58,0) 25%, rgba(5,14,36,.55) 60%, rgba(5,14,36,.95) 100%); transition: opacity .6s; }
.pillar:hover img { transform: scale(1); opacity: 1; filter: saturate(1); }
.pillar__num { font-family: var(--font-display); font-size: .78rem; letter-spacing: .3em; color: var(--gold); margin-bottom: 14px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 12px; }
.pillar p { font-size: .95rem; color: var(--steel); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease-out), opacity .5s .1s, margin .5s; }
.pillar:hover p { max-height: 160px; opacity: 1; margin-bottom: 16px; }
.pillar .link-arrow { margin-top: 6px; }

/* ---------- Sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.story__sticky { position: sticky; top: 120px; align-self: start; display: grid; gap: 26px; }
.story__steps { display: grid; gap: clamp(60px, 8vw, 120px); padding-top: 20px; }
.story__step { display: grid; gap: 20px; }
.story__step .img-frame { aspect-ratio: 5 / 4; }
.story__step h3 { font-size: 1.45rem; }
.story__step p { color: var(--steel); max-width: 52ch; }
.story__year { font-family: var(--font-display); color: var(--gold); letter-spacing: .3em; font-size: .78rem; }

/* ---------- Quote ---------- */
.quote { text-align: center; display: grid; justify-items: center; gap: 30px; max-width: 980px; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 400; line-height: 1.3; font-style: italic; text-wrap: balance; }
.quote blockquote strong { color: var(--gold-2); font-weight: 500; }
.quote cite { font-style: normal; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.quote__mark { width: 52px; height: 52px; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; gap: 14px; }
.gallery .img-frame { grid-column: span 4; grid-row: span 2; }
.gallery .img-frame.wide { grid-column: span 8; }
.gallery .img-frame.tall { grid-row: span 4; }
.gallery .img-frame.small { grid-column: span 4; grid-row: span 2; }
.gallery .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(transparent, rgba(5,14,36,.85)); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease-out); }
.gallery .img-frame:hover .caption { opacity: 1; transform: none; }

/* ---------- Dispatches (news) ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.news__card { display: grid; gap: 16px; align-content: start; }
.news__card .img-frame { aspect-ratio: 16 / 10; }
.news__meta { display: flex; gap: 14px; align-items: center; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.news__meta time { color: var(--steel-2); font-weight: 500; letter-spacing: .12em; }
.news__card h3 { font-size: 1.25rem; line-height: 1.25; }
.news__card p { color: var(--steel); font-size: .97rem; }
.news__card .link-arrow { margin-top: 4px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(10,26,58,.12); border: 1px solid rgba(10,26,58,.15); }
.testi__card { background: var(--ivory); padding: 40px 34px; display: grid; gap: 22px; align-content: start; position: relative; }
.testi__card::before { content: '“'; position: absolute; top: 18px; right: 28px; font-family: var(--font-serif); font-size: 6rem; line-height: 1; color: rgba(168,123,30,.25); }
.testi__card p { font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.4; color: var(--navy-800); }
.testi__who { display: flex; align-items: center; gap: 14px; }
.testi__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; outline: 1px solid var(--gold-deep); outline-offset: 3px; }
.testi__who b { display: block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-900); }
.testi__who span { font-size: .8rem; color: #6C7386; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; }
.partners span { font-family: var(--font-display); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-2); transition: color .4s; }
.partners span:hover { color: var(--gold-2); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(100px, 13vw, 200px); text-align: center; }
.cta .hero__media img { object-position: center 30%; }
.cta__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,14,36,.85), rgba(5,14,36,.7)); }
.cta__inner { display: grid; justify-items: center; gap: 28px; max-width: 900px; margin-inline: auto; }
.cta h2 { color: var(--white); }
.cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-block: 80px 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 60px; border-bottom: 1px solid var(--line-soft); }
.footer__brand { display: grid; gap: 22px; }
.footer__brand img { width: 84px; }
.footer__brand p { color: var(--steel-2); font-size: .95rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { color: var(--steel); font-size: .95rem; transition: color .3s; }
.footer ul a:hover { color: var(--white); }
.footer__news { display: grid; gap: 14px; }
.footer__news form { display: flex; border: 1px solid var(--line); }
.footer__news input { flex: 1; background: transparent; border: 0; color: var(--white); padding: 14px 16px; font: inherit; font-size: .92rem; min-width: 0; }
.footer__news input::placeholder { color: var(--steel-2); }
.footer__news button { background: var(--gold); color: var(--navy-900); padding: 0 18px; font-weight: 700; letter-spacing: .2em; font-size: .7rem; text-transform: uppercase; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: .78rem; color: var(--steel-2); letter-spacing: .06em; }
.footer__bottom .socials { display: flex; gap: 20px; }
.footer__bottom .socials a:hover { color: var(--gold-2); }

/* ---------- ABOUT page ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--navy-800); padding: 44px 36px; display: grid; gap: 18px; align-content: start; transition: background .5s; }
.value:hover { background: var(--navy-700); }
.value__icon { width: 44px; height: 44px; color: var(--gold); }
.value h3 { font-size: 1.15rem; letter-spacing: .06em; }
.value p { color: var(--steel); font-size: .98rem; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; padding-block: 34px; }
.tl-item__year { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold-2); }
.tl-item__dot { justify-self: center; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 8px var(--navy-800), 0 0 0 9px var(--line); }
.tl-item__body { display: grid; gap: 8px; }
.tl-item__body h3 { font-size: 1.2rem; }
.tl-item__body p { color: var(--steel); max-width: 44ch; }
.tl-item:nth-child(odd) .tl-item__year { grid-column: 1; text-align: right; padding-right: 34px; }
.tl-item:nth-child(odd) .tl-item__body { grid-column: 3; padding-left: 34px; }
.tl-item:nth-child(even) .tl-item__year { grid-column: 3; grid-row: 1; padding-left: 34px; }
.tl-item:nth-child(even) .tl-item__body { grid-column: 1; grid-row: 1; text-align: right; padding-right: 34px; justify-items: end; }
.tl-item:nth-child(even) .tl-item__dot { grid-column: 2; grid-row: 1; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member { display: grid; gap: 14px; }
.member .img-frame { aspect-ratio: 3 / 4; }
.member .img-frame img { filter: grayscale(1) contrast(1.05); transition: filter .8s, transform 1.2s var(--ease-out); }
.member:hover .img-frame img { filter: grayscale(0); }
.member b { font-family: var(--font-display); font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; }
.member span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.transparency { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.bars { display: grid; gap: 18px; }
.bar { display: grid; gap: 8px; }
.bar__head { display: flex; justify-content: space-between; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.bar__track { height: 8px; background: rgba(10,26,58,.1); position: relative; overflow: hidden; }
.bar__fill { position: absolute; inset: 0; background: var(--navy-800); transform: scaleX(0); transform-origin: left; }
.bar__fill.gold { background: var(--gold-deep); }

/* ---------- PROGRAMS page ---------- */
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding-block: clamp(60px, 8vw, 120px); border-top: 1px solid var(--line-soft); }
.prog:first-of-type { border-top: 0; }
.prog:nth-child(even) .prog__media { order: 2; }
.prog__media { position: relative; }
.prog__media .img-frame { aspect-ratio: 5 / 4; }
.prog__media .num { position: absolute; top: -26px; left: -10px; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .8; z-index: 2; }
.prog__copy { display: grid; gap: 22px; }
.prog__copy p { color: var(--steel); max-width: 56ch; }
.prog__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 8px; }
.fact { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid var(--gold); }
.fact b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--white); }
.fact span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-2); }
.prog__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); color: var(--gold-2); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.process__step { display: grid; gap: 14px; position: relative; padding-top: 26px; border-top: 1px solid rgba(10,26,58,.2); }
.process__step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: .78rem; letter-spacing: .3em; color: var(--gold-deep); }
.process__step h3 { font-size: 1.1rem; letter-spacing: .04em; }
.process__step p { color: #4D5468; font-size: .96rem; }

/* ---------- GET INVOLVED page ---------- */
.donate { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.donate__panel { background: var(--navy-900); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); display: grid; gap: 28px; position: sticky; top: 110px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.toggle button { padding: 14px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--steel-2); transition: background .3s, color .3s; }
.toggle button.active { background: var(--gold); color: var(--navy-900); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amounts button { padding: 20px 10px; border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; color: var(--white); transition: background .3s, border-color .3s, transform .3s var(--ease-out); }
.amounts button:hover { border-color: var(--gold); transform: translateY(-2px); }
.amounts button.active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.custom { display: flex; align-items: center; border: 1px solid var(--line); padding: 0 18px; }
.custom span { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-2); }
.custom input { flex: 1; background: transparent; border: 0; color: var(--white); font-family: var(--font-display); font-size: 1.3rem; padding: 16px 12px; min-width: 0; }
.impact-line { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--steel); min-height: 2.6em; }
.impact-line strong { color: var(--gold-2); font-weight: 500; }
.donate__panel .btn { justify-content: center; }
.secure { display: flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }
.secure svg { width: 16px; height: 16px; color: var(--gold); }
.tiers { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.tier { background: var(--navy-800); padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 20px 26px; align-items: start; transition: background .4s; }
.tier:hover { background: var(--navy-700); }
.tier b { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-2); line-height: 1; }
.tier h3 { font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 8px; }
.tier p { color: var(--steel); font-size: .96rem; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.way { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; align-content: end; padding: 30px; isolation: isolate; }
.way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.way::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5,14,36,.95)); }
.way:hover img { transform: scale(1); }
.way h3 { font-size: 1.3rem; margin-bottom: 10px; }
.way p { color: var(--steel); font-size: .95rem; margin-bottom: 16px; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.contact__info { display: grid; gap: 34px; align-content: start; }
.info-row { display: grid; gap: 6px; padding-left: 18px; border-left: 1px solid var(--gold-deep); }
.info-row span { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.info-row b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.info-row p { color: #4D5468; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: var(--navy-800); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(10,26,58,.35); padding: 12px 0; font: inherit; color: var(--navy-900); transition: border-color .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: .86rem; color: #4D5468; }
.form__success { grid-column: 1 / -1; display: none; padding: 20px; background: var(--navy-800); color: var(--ivory); font-family: var(--font-serif); font-size: 1.2rem; }
.form.sent .form__success { display: block; }
.faq { display: grid; max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border: 1px solid var(--gold); position: relative; flex: none; transition: transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq summary i::before { width: 12px; height: 1px; }
.faq summary i::after { width: 1px; height: 12px; transition: opacity .3s; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { opacity: 0; }
.faq details p { padding: 0 0 26px; color: var(--steel); max-width: 66ch; }

/* ---------- Reveal (only when JS present) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); }
.js [data-stagger].in > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-stagger].in > *:nth-child(1) { transition-delay: 0s; }
.js [data-stagger].in > *:nth-child(2) { transition-delay: .1s; }
.js [data-stagger].in > *:nth-child(3) { transition-delay: .2s; }
.js [data-stagger].in > *:nth-child(4) { transition-delay: .3s; }
.js [data-stagger].in > *:nth-child(5) { transition-delay: .4s; }
.js [data-stagger].in > *:nth-child(6) { transition-delay: .5s; }
.js [data-stagger].in > *:nth-child(7) { transition-delay: .6s; }
.js [data-stagger].in > *:nth-child(8) { transition-delay: .7s; }
.img-reveal { position: relative; }
.img-reveal::before { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--navy-900); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.js .img-reveal::before { transform: scaleY(1); }
.js .img-reveal.in::before { transform: scaleY(0); transition: transform 1.2s var(--ease-in-out); }
.js .img-reveal img { transform: scale(1.18); }
.js .img-reveal.in img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.js .img-reveal.in:hover img { transform: scale(1); }

/* Gold rule that draws in */
.rule { height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; }
.js .rule.in { transform: scaleX(1); transition: transform 1.4s var(--ease-in-out); }

/* Dev: full-page screenshot mode (?shot) */
.shot .hero, .shot .page-hero { min-height: 0; }
.shot .header { position: absolute; }

/* Back to top */
.totop { position: fixed; right: 26px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 50px; height: 50px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); background: rgba(5,14,36,.6); backdrop-filter: blur(8px); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease-out), background .3s; }
.totop.show { opacity: 1; transform: none; }
.totop:hover { background: var(--gold); color: var(--navy-900); }
.totop svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero__grid, .mission, .story, .transparency, .prog, .donate, .contact, .section-head.split { grid-template-columns: 1fr; }
  .hero__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .hero__crest { display: none; }
  .hero { min-height: 84svh; padding-top: 130px; }
  .story__sticky { position: static; }
  .prog:nth-child(even) .prog__media { order: 0; }
  .testi, .values, .ways { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; }
  .gallery .img-frame, .gallery .img-frame.wide, .gallery .img-frame.small { grid-column: span 6; grid-row: span 2; }
  .gallery .img-frame.tall { grid-column: span 3; grid-row: span 3; }
  .timeline::before { left: 5px; }
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: 30px 1fr; }
  .tl-item .tl-item__dot, .tl-item:nth-child(even) .tl-item__dot { grid-column: 1; grid-row: 1; justify-self: start; }
  .tl-item .tl-item__year, .tl-item:nth-child(even) .tl-item__year { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl-item .tl-item__body, .tl-item:nth-child(even) .tl-item__body { grid-column: 2; grid-row: 2; text-align: left; padding: 8px 0 0; justify-items: start; }
  .mission__media .badge { left: 16px; bottom: 16px; }
  .mission__media .img-frame.second { right: 0; top: -20px; width: 40%; }
  .donate__panel { position: static; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .pillars, .team, .process, .footer__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 340px; }
  .pillar p { max-height: none; opacity: 1; margin-bottom: 14px; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .tier { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .totop { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .img-reveal, .js .rule { opacity: 1; transform: none; clip-path: none; }
  .preloader { display: none; }
}
