/* OD2HE International - shared styles for index.html and article.html */
/* ---------- Tokens ---------- */
:root {
  /* Palette taken from the logo artwork: navy, green, white.
     Navy and green are sampled from logo.jpeg (#032767 / #177822 family). */
  --navy:       #0A2A6B;   /* logo navy — body text, dark sections */
  --navy-deep:  #06183F;   /* deepest navy — footer */
  --blue:       #1F5FBF;   /* brighter blue — eyebrows, links, tags */
  --green:      #1B7A24;   /* logo green — primary action */
  --green-deep: #12581A;   /* shadow under green buttons */
  --green-soft: #5BC46B;   /* green that stays legible on navy */
  --white:      #FFFFFF;   /* page ground */
  --mist:       #F1F5FC;   /* alternating section ground */
  --card:       #FFFFFF;
  --tint:       #E3EDFA;   /* soft blue wash — icon chips */
  --prose:      #22314F;   /* long-form body text — navy-derived, softer than --navy */
  --muted:      #5A6B87;   /* secondary text */
  --line:       #D8E2F0;   /* hairlines and borders */

  --display: "Fraunces", Georgia, serif;
  --body:    "Public Sans", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(10, 42, 107, 0.38);
  --shadow-sm: 0 10px 30px -20px rgba(10, 42, 107, 0.42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 8px 0 -2px var(--green-deep); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 0 -2px var(--green-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-deep); }
.btn-ghost { border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
/* Logo — OD2HE International lockup */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; height: 46px; transition: transform .25s ease; }
.brand:hover img, .brand:focus-visible img { transform: scale(1.04); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
  font-weight: 600; font-size: 0.95rem; position: relative; padding: 4px 0;
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .22s ease;
}
.nav-links a.link:hover::after, .nav-links a.link:focus-visible::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--navy); transition: all .18s ease;
}
.social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.social svg { width: 16px; height: 16px; }

.menu-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 6px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; align-items: center; gap: 1px; font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; }
.lang button { background: none; border: 0; padding: 5px 7px; cursor: pointer; color: var(--muted); font: inherit; border-radius: 6px; transition: color .18s ease, background .18s ease; }
.lang button:hover { color: var(--navy); }
.lang button[aria-current="true"] { color: var(--navy); background: var(--tint); }
.lang .sep { color: var(--line); }
.mobile-nav .lang { align-self: flex-start; margin-top: 26px; border-bottom: 0; font-size: 1rem; }
.mobile-nav .lang button { color: rgba(255,255,255,.72); padding: 9px 13px; }
.mobile-nav .lang button:hover { color: var(--white); }
.mobile-nav .lang button[aria-current="true"] { color: var(--navy-deep); background: var(--white); }
.mobile-nav .lang .sep { color: rgba(255,255,255,.3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(31, 95, 191, 0.16), transparent 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(27, 122, 36, 0.13), transparent 60%);
  pointer-events: none;
}
/* Faded montage of happy students heading to school, behind the hero */
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; pointer-events: none; }
.hero-bg .cell { flex: 1 1 0; min-width: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.22) saturate(0.9) brightness(1.03) contrast(1.02);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(103deg, var(--white) 0%, rgba(255,255,255,0.92) 33%, rgba(255,255,255,0.64) 66%, rgba(255,255,255,0.52) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.18) 42%, rgba(255,255,255,0.8) 86%, var(--white) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero h1 .hl { position: relative; color: var(--navy); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 14px; z-index: -1;
  background: var(--green); border-radius: 8px 10px 7px 12px; transform: rotate(-1deg);
  opacity: .9;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .item .n { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--navy); }
.hero-meta .item .l { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Hero visual — layered "photo" placeholder */
.hero-visual { position: relative; }
.photo {
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/5;
  box-shadow: var(--shadow); background: var(--tint);
}
.photo img, .story .img img, .post-lead .img img, .post .img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.float-card {
  position: absolute; background: var(--card); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.float-card.tl { top: 22px; left: -26px; }
.float-card.br { bottom: 26px; right: -22px; display: flex; align-items: center; gap: 12px; }
.float-card .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.float-card .v { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--card);
  background: conic-gradient(from var(--a, 0deg), var(--blue), var(--green), var(--navy));
}

/* Pathways strip */
.pathways { margin-top: clamp(48px, 7vw, 80px); }
.pathways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform .2s ease;
}
.path:nth-child(2) { background: var(--blue); }
.path:nth-child(3) { background: var(--green); }
.path:hover { transform: translateY(-5px); }
.path .num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; opacity: .7; }
.path h3 { font-size: 1.4rem; margin: 14px 0 8px; color: inherit; }
.path p { font-size: 0.94rem; opacity: .88; }
.path .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; }
.path .go svg { width: 16px; transition: transform .2s ease; }
.path:hover .go svg { transform: translateX(4px); }

/* ---------- Section frame ---------- */
section.block { padding: clamp(64px, 9vw, 112px) 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 16px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

/* Programs */
.programs { background: var(--mist); }
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prog {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 20px; align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.prog .ico {
  flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--navy);
}
.prog:nth-child(2) .ico { background: #DCEFDD; color: var(--green-deep); }
.prog:nth-child(3) .ico { background: #D3E3FA; }
.prog:nth-child(4) .ico { background: #E6F3E7; color: var(--green-deep); }
.prog .ico svg { width: 26px; height: 26px; }
.prog h3 { font-size: 1.35rem; }
.prog p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }
.prog .tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-top: 12px; display: inline-block; }

/* ---------- Impact ledger (SIGNATURE) ---------- */
.impact { background: var(--navy); color: var(--white); }
.impact .eyebrow { color: var(--green-soft); }
.impact .eyebrow::before { background: var(--green-soft); }
.impact .sec-head h2 { color: var(--white); }
.impact .sec-head p { color: rgba(255,255,255,.72); }
.ledger {
  background: var(--card); color: var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ledger-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px; border-bottom: 2px dashed var(--line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.ledger-rows { display: grid; grid-template-columns: repeat(4, 1fr); }
.lrow {
  padding: 34px 26px; border-right: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.lrow:last-child { border-right: 0; }
.lrow .num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--navy); }
.lrow .num .plus { color: var(--blue); }
.lrow .cap { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lrow .desc { font-size: 0.9rem; color: var(--muted); }
.ledger-foot {
  padding: 16px 26px; border-top: 2px dashed var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.stamp {
  border: 2px solid var(--green); color: var(--green); border-radius: 8px;
  padding: 4px 10px; font-weight: 700; letter-spacing: 0.14em; transform: rotate(-4deg);
}

/* ---------- Donation ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.give-copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 16px; }
.give-copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.give-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.give-copy li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.give-copy li svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

.give-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.give-card h3 { font-size: 1.5rem; }
.progress-wrap { margin: 20px 0 24px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.progress-meta .raised { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.progress-meta .goal { color: var(--muted); align-self: flex-end; }
.bar { height: 12px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.pct { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 8px; }

.amount-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amt {
  border: 2px solid var(--line); background: transparent; border-radius: 12px;
  padding: 14px 6px; font-weight: 700; font-size: 1.05rem; color: var(--navy);
  transition: all .16s ease;
}
.amt:hover { border-color: var(--green); }
.amt.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.custom { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 8px; }
.custom .cur { font-weight: 700; color: var(--muted); }
.custom input { border: 0; outline: 0; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 12px 0; width: 100%; background: transparent; color: var(--navy); }
.freq { display: flex; gap: 8px; margin: 16px 0; }
.freq button { flex: 1; border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: 9px; font-weight: 600; font-size: 0.9rem; color: var(--navy); transition: all .16s ease; }
.freq button.active { background: var(--tint); border-color: var(--navy); }
.give-card .btn-green { width: 100%; justify-content: center; margin-top: 6px; }
.give-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Stories ---------- */
.stories { background: var(--mist); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.story:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.story .img { aspect-ratio: 3/2; position: relative; }
.story:nth-child(1) .img { background: conic-gradient(from 120deg at 50% 40%, #0A2A6B, #2E63A8, #0A2A6B); }
.story:nth-child(2) .img { background: conic-gradient(from 200deg at 40% 50%, #12581A, #2E9B39, #12581A); }
.story:nth-child(3) .img { background: conic-gradient(from 80deg at 60% 50%, #123C7A, #2E63A8, #123C7A); }
.story .cat { position: absolute; top: 14px; left: 14px; background: var(--card); color: var(--navy); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.story .body { padding: 22px 22px 26px; }
.story h3 { font-size: 1.3rem; }
.story p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }
.story .read { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: 0.88rem; color: var(--blue); }
.story .read svg { width: 15px; transition: transform .2s ease; }
.story:hover .read svg { transform: translateX(4px); }

/* ---------- Testimonials ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.quote .qmark { font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: 0.6; color: var(--green); height: 30px; }
.quote p { font-size: 1.02rem; margin: 8px 0 22px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .pic { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(from 90deg, var(--blue), var(--green), var(--navy)); flex: none; }
.quote .who .nm { font-family: var(--display); font-weight: 700; }
.quote .who .rl { font-size: 0.82rem; color: var(--muted); }

/* ---------- Blog ---------- */
.blog { background: var(--mist); }
.blog-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.post-lead, .post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; transition: transform .2s ease, box-shadow .2s ease;
}
.post-lead:hover, .post:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post-lead { flex-direction: column; }
.post-lead .img { aspect-ratio: 16/8; background: conic-gradient(from 150deg at 50% 50%, #0A2A6B, #2E63A8, #2E9B39, #0A2A6B); position: relative; }
.post-lead .body { padding: 26px; }
.post-lead h3 { font-size: 1.7rem; margin-top: 10px; }
.post-lead p { color: var(--muted); margin-top: 10px; }
.side-posts { display: grid; gap: 22px; grid-template-rows: repeat(3, 1fr); }
.post { align-items: stretch; }
.post .img { flex: none; width: 120px; background: conic-gradient(from 40deg at 50% 50%, #12581A, #2E9B39, #12581A); position: relative; }
.post:nth-child(2) .img { background: conic-gradient(from 220deg at 50% 50%, #123C7A, #2E63A8, #123C7A); }
.post:nth-child(3) .img { background: conic-gradient(from 300deg at 50% 50%, #0A2A6B, #2E63A8, #0A2A6B); }
.post .body { padding: 18px 20px; }
.post h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.date { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ---------- Final CTA ---------- */
.final { background: var(--green); color: var(--white); text-align: center; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; margin: 0 auto; }
.final p { max-width: 46ch; margin: 20px auto 0; opacity: .92; font-size: 1.08rem; }
.final .final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.final .btn-ghost { color: var(--white); }
.final .btn-ghost:hover { background: var(--white); color: var(--green); border-color: var(--white); }
/* On the green band the green button would vanish — invert it. */
.final .btn-green { background: var(--white); color: var(--green); box-shadow: 0 8px 0 -2px rgba(6, 24, 63, 0.28); }
.final .btn-green:hover { box-shadow: 0 12px 0 -2px rgba(6, 24, 63, 0.28); }
.final .eyebrow::before { background: var(--white); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 72px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
/* Footer logo sits on a light plate — the lockup is navy/green artwork */
.foot .brand { background: var(--white); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.foot .brand img { height: 96px; }
.foot p.desc { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.foot .contact { margin-top: 20px; display: grid; gap: 8px; font-size: 0.92rem; }
.foot .contact .ph { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-soft); }
.foot h4 { font-family: var(--display); color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot ul a { font-size: 0.93rem; transition: color .16s ease, padding .16s ease; }
.foot ul a:hover { color: var(--green-soft); padding-left: 4px; }
.foot-bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem; color: rgba(255,255,255,.6);
}
.foot-bottom .social a { border-color: rgba(255,255,255,.24); color: var(--white); }
.foot-bottom .social a:hover { background: var(--green-soft); color: var(--navy-deep); border-color: var(--green-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
  padding: 28px 24px;
}
.mobile-nav.open { transform: none; }
.mobile-nav .close { align-self: flex-end; background: none; border: 0; color: var(--white); }
.mobile-nav .close svg { width: 30px; height: 30px; }
.mobile-nav a { font-family: var(--display); font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.mobile-nav .brand { align-self: flex-start; background: var(--white); border-radius: 12px; padding: 12px 16px; margin: 2px 0 20px; border-bottom: 0; }
.mobile-nav .brand img { height: 40px; }
.mobile-nav .btn { margin-top: 24px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .float-card.tl { left: 6px; }
  .float-card.br { right: 6px; }
  .pathways-grid, .prog-grid, .story-grid, .quotes-grid { grid-template-columns: 1fr; }
  .ledger-rows { grid-template-columns: repeat(2, 1fr); }
  .lrow:nth-child(2) { border-right: 0; }
  .lrow:nth-child(1), .lrow:nth-child(2) { border-bottom: 1px dashed var(--line); }
  .donate-grid { grid-template-columns: 1fr; gap: 34px; }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-actions .social { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .ledger-rows { grid-template-columns: 1fr; }
  .lrow { border-right: 0 !important; border-bottom: 1px dashed var(--line); }
  .lrow:last-child { border-bottom: 0; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .post { flex-direction: column; }
  .post .img { width: 100%; aspect-ratio: 16/8; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar span { transition: none; }
}

/* ---------- Article page ---------- */
.wrap-narrow { width: min(100% - 44px, 780px); margin-inline: auto; }
.article { padding: clamp(30px, 5vw, 52px) 0 clamp(60px, 9vw, 104px); }
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--blue); margin-bottom: 26px;
}
.article-back svg { width: 16px; transition: transform .2s ease; }
.article-back:hover svg { transform: translateX(-4px); }

.notice {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; margin-bottom: 34px;
}
.notice strong { font-weight: 700; }

.article-meta {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.article-meta .cat { color: var(--blue); font-weight: 700; }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 16px 0 0; }
.article .lede { font-size: 1.16rem; color: var(--muted); margin-top: 18px; }

.article-hero {
  margin: 36px 0 40px; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/8; box-shadow: var(--shadow); background: var(--tint);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body > p { margin-top: 20px; font-size: 1.05rem; color: var(--prose); }
.article-body h2 { font-size: 1.5rem; margin-top: 40px; }
.article-body blockquote {
  margin: 34px 0; padding: 20px 26px; border-left: 4px solid var(--green);
  background: var(--mist); border-radius: 0 12px 12px 0;
  font-family: var(--display); font-size: 1.22rem; line-height: 1.35;
}

.article-cta {
  margin-top: 56px; padding: 32px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.article-cta h3 { font-size: 1.45rem; max-width: 20ch; color: var(--white); }

.article-next { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-next .k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.article-next a {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy);
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
}
.article-next a svg { width: 18px; transition: transform .2s ease; }
.article-next a:hover { color: var(--blue); }
.article-next a:hover svg { transform: translateX(4px); }

.not-found { text-align: center; padding: clamp(60px, 12vw, 120px) 0; }
.not-found h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.not-found p { color: var(--muted); margin: 16px 0 28px; }

@media (max-width: 560px) {
  .article-cta { flex-direction: column; align-items: flex-start; }
}