/* Protestant Church in Sabah — shared styles for all pages */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #0a1a2b;
  --ink-2: #12273d;
  --muted: #53647a;
  --on-dark: #b9c7d8;
  --blue: #0b5be0;
  --blue-2: #0a84d6;
  --sky: #8fd8ff;
  --coral: #ff6b3d;
  --coral-text: #c23c10;
  --line: #e0e6ee;
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 28px;
  --radius-sm: 18px;
  --gap: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 8.4vw, 7.25rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--gap); }
.section-head { max-width: 760px; padding: clamp(40px, 6vw, 72px) 8px clamp(20px, 3vw, 32px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
}
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.chip-dark { border-color: var(--line-dark); background: rgba(255, 255, 255, .08); color: #fff; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; }
.muted { color: var(--muted); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 10px; }

/* Header menu */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 12px;
}
.brand img { width: 126px; height: 42px; object-fit: contain; object-position: left; }
.site-nav { display: flex; gap: 32px; margin-left: auto; }
.nav-login { flex: none; margin-left: 24px; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.nav-login:hover { background: var(--blue); color: #fff; }
.lang { display: flex; align-items: center; gap: 12px; margin-left: 12px; padding-left: 24px; border-left: 1px solid #c9d3df; font-size: .88rem; font-weight: 700; line-height: 1.2; }
.lang a { padding: 6px 0; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--coral); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn::after { content: "\2192"; transition: transform .2s; }
.btn:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-coral { border-color: var(--coral); background: var(--coral); color: #240c03; }
.btn-coral:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home hero */
.hero { padding-top: clamp(44px, 7vw, 88px); }
.hero h1 { max-width: 11.5em; margin-bottom: .32em; }
.hero h1 span {
  background: linear-gradient(95deg, var(--blue) 10%, var(--blue-2) 60%, #10a5c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-sub p { max-width: 35em; margin: 0; }
.hero-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.hero-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 25%; }
.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Inner page heading */
.page-head { padding-block: clamp(52px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 11em; }
.page-head .lead { max-width: 36em; margin: 0; color: var(--muted); }

/* Tiles */
.tile { min-width: 0; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius); background: var(--surface); }
.tile-dark { background: var(--ink); color: #fff; }
.tile-dark .muted { color: var(--on-dark); }
.tile-blue { background: linear-gradient(120deg, var(--blue), var(--blue-2)); color: #fff; }
.tile-photo { overflow: hidden; padding: 0; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.bento-intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; grid-column: span 3; }
.bento-photo { grid-row: span 2; }
.bento-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); grid-column: span 3; margin: 0; }
.stat { min-width: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.stat dt { color: var(--blue); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat dd { margin: 10px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.4; }

.vision { padding-block: clamp(52px, 8vw, 104px); text-align: center; }
.vision h2 { max-width: 13em; margin-inline: auto; font-size: clamp(2.4rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; }
.vision p { margin: 0; font-size: 1.1rem; }

/* Bishop */
.bishop { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.portrait { width: 100%; aspect-ratio: 320 / 440; border-radius: var(--radius-sm); object-fit: cover; }
blockquote { margin: 0; }
.quote { font-size: clamp(1.55rem, 3.5vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.signature { width: 129px; height: 64px; margin: 20px 0 6px; padding: 4px 8px; border-radius: 10px; background: #fff; }
.person { margin: 0; font-weight: 700; }
.role { margin: 0; color: var(--on-dark); }

/* Fund cards on homepage */
.fund-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.fund-cards a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.fund-cards a::after { content: "\2197"; align-self: flex-end; font-size: 1.4rem; line-height: 1; }
.fund-cards a:hover { background: var(--blue); color: #fff; transform: translateY(-4px); }

/* About */
.quote-tile { padding-block: clamp(44px, 7vw, 88px); }
.quote-tile .quote { max-width: 18em; margin-bottom: 24px; font-size: clamp(1.9rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.story-photo { position: sticky; top: 82px; }
.story-photo img { aspect-ratio: 3 / 4; }
.story-cards { display: grid; gap: var(--gap); }
.story-cards h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.era { margin-bottom: 10px; color: var(--blue); font-size: .9rem; font-weight: 800; }
.source-note { margin: 22px 8px 0; color: var(--muted); font-size: .9rem; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.timeline li { min-width: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.timeline time { display: block; margin-bottom: 30px; color: var(--blue); font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.timeline h3 { margin-bottom: .45em; font-size: 1.08rem; }
.timeline p { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* Giving page */
.fund-picker { padding-bottom: var(--gap); scroll-margin-top: 82px; }

/* Details stay hidden until a category icon is tapped */
.fund-detail, .fund-card.fund-detail { display: none; }
section.fund-detail:target { display: block; }
.fund-card.fund-detail:target { display: flex; }
.detail-back { display: flex; width: fit-content; margin-bottom: 22px; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.detail-back:hover { color: var(--blue); text-decoration: underline; }
.tile-dark .detail-back { color: var(--on-dark); }
.tile-dark .detail-back:hover { color: #fff; }
main:has(#misi38:target) .fund-picker a[href="#misi38"],
main:has(#agape:target) .fund-picker a[href="#agape"],
main:has(#tadika-pcs:target) .fund-picker a[href="#tadika-pcs"],
main:has(#luther-seminary:target) .fund-picker a[href="#luther-seminary"],
main:has(#persepuluhan:target) .fund-picker a[href="#persepuluhan"],
main:has(#janji-iman:target) .fund-picker a[href="#janji-iman"],
main:has(#sumbangan:target) .fund-picker a[href="#sumbangan"],
main:has(#rakan-pcs:target) .fund-picker a[href="#rakan-pcs"] { background: var(--blue); color: #fff; }
main:has(#misi38:target) .fund-picker a[href="#misi38"] .fund-icon,
main:has(#agape:target) .fund-picker a[href="#agape"] .fund-icon,
main:has(#tadika-pcs:target) .fund-picker a[href="#tadika-pcs"] .fund-icon,
main:has(#luther-seminary:target) .fund-picker a[href="#luther-seminary"] .fund-icon,
main:has(#persepuluhan:target) .fund-picker a[href="#persepuluhan"] .fund-icon,
main:has(#janji-iman:target) .fund-picker a[href="#janji-iman"] .fund-icon,
main:has(#sumbangan:target) .fund-picker a[href="#sumbangan"] .fund-icon,
main:has(#rakan-pcs:target) .fund-picker a[href="#rakan-pcs"] .fund-icon { background: rgba(255, 255, 255, .16); color: #fff; }

.picker-head { padding-top: clamp(32px, 5vw, 56px); }
.picker-head .muted { margin: 0; }
.fund-picker ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.fund-picker a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 28px 14px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.fund-picker a:hover { background: var(--blue); color: #fff; transform: translateY(-4px); }
.fund-picker a:hover .fund-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.fund-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #e4eefc; color: var(--blue); transition: background-color .2s, color .2s; }
.fund-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fund-card > .fund-icon { margin-bottom: 18px; }
.misi-panel .fund-icon { display: flex; margin-bottom: 18px; background: rgba(255, 255, 255, .1); color: var(--sky); }
section[id] { scroll-margin-top: 82px; }

.misi-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.misi-panel h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; }
.misi-panel h3 { margin-top: 32px; }
.misi-panel > * { min-width: 0; }
.misi-panel h2 { overflow-wrap: break-word; }
.misi-panel > .panel-wide { grid-column: 1 / -1; }
.misi-panel .faq-item h3, .misi-panel .pay-card h3 { margin-top: 0; }
.tile-dark .faq-list { margin-top: 0; }
.misi-panel .why-head { margin: 4px 0 14px; color: #fff; }
.pay-details dd small { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tile-dark .faq-item { background: rgba(255, 255, 255, .06); }
.tile-dark .faq-item h3 { color: #fff; }
.tile-dark .faq-item > p { color: #dfe7f0; }
.tile-dark .verse p { color: var(--on-dark); }
.tile-dark .verse cite { color: var(--sky); }
.tile-dark .verse-source { color: var(--on-dark); }
.pay-stack { display: grid; gap: 14px; align-content: start; }
.pay-card h3 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; color: var(--ink); }
.steps { margin: 18px 0 28px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 16px 0 16px 50px; border-top: 1px solid var(--line-dark); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.pay-card { padding: 22px; border-radius: 22px; background: #fff; color: var(--ink); }
.pay-card > img { width: 100%; max-width: 240px; margin: 0 auto 14px; }
.pay-details { margin: 0; }
.pay-details div { padding-block: 11px; border-top: 1px solid var(--line); }
.pay-details dt { color: var(--muted); font-size: .84rem; }
.pay-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.account-no { color: var(--blue); font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
.acct-bank { display: inline-block; margin-bottom: 2px; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.acct-num { user-select: all; }

.fund-grid { display: grid; grid-template-columns: 1fr; }
.fund-card { display: flex; flex-direction: column; align-items: flex-start; }
.fund-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.fund-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: start; width: 100%; }
.fund-body > div > p { color: var(--muted); }
.account-stack { display: grid; gap: 14px; }
.account-box { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--bg); }
.account-box h3 { margin-bottom: 10px; font-size: 1rem; letter-spacing: 0; }
.account-box .pay-details div:first-child, .pay-card > .pay-details:first-child div:first-child { padding-top: 0; border-top: 0; }
.faq-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin-top: clamp(24px, 4vw, 40px); }
.faq-list-2 { grid-template-columns: repeat(2, 1fr); }
.faq-item > p:last-child { margin-bottom: 0; }
.faq-item { padding: 22px; border-radius: var(--radius-sm); background: var(--bg); }
.faq-item h3 { margin-bottom: 6px; font-size: 1.12rem; letter-spacing: -.01em; }
.faq-item > p { margin-bottom: 14px; }
.verse { margin: 0; padding-left: 14px; border-left: 3px solid var(--coral); }
.verse p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; font-style: italic; line-height: 1.55; }
.verse cite { color: var(--blue); font-size: .85rem; font-style: normal; font-weight: 700; }
.verse-source { width: 100%; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.pay-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.uses { margin: 4px 0 0; padding-left: 1.2em; color: var(--ink); font-size: .95rem; }
.uses li { margin-bottom: 2px; }
.points { margin: 14px 0 0; padding: 0; list-style: none; }
.points li { padding: 12px 0; border-top: 1px solid var(--line-dark); }
.points strong { display: block; color: #fff; }
.fund-card > p { margin-bottom: 26px; color: var(--muted); }
.pending { width: 100%; margin: auto 0 0 !important; padding: 15px 18px; border-radius: var(--radius-sm); background: #fff1eb; color: var(--ink) !important; font-size: .95rem; line-height: 1.45; }
.pending strong { display: block; color: var(--coral-text); }

/* What is Gereja Missioner */
.gm-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.gm-explainer h2 { max-width: 16em; }
.gm-explainer > h3 { margin: clamp(28px, 4vw, 44px) 0 4px; }
.gm-stat { padding: 26px; border-radius: var(--radius-sm); background: linear-gradient(120deg, var(--blue), var(--blue-2)); color: #fff; }
.gm-num { display: block; font-size: clamp(3.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.gm-stat p { margin: 10px 0 0; font-weight: 600; line-height: 1.45; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.tier { padding: 18px; border-top: 5px solid var(--tc); border-radius: 14px; background: var(--bg); }
.tier-name { display: block; font-size: 1.1rem; font-weight: 800; }
.tier-min { color: var(--muted); font-size: .92rem; }
.t-bronze { --tc: #b0703a; } .t-silver { --tc: #8e98a3; } .t-gold { --tc: #d4a017; } .t-platinum { --tc: #4f8fae; } .t-diamond { --tc: #7a55d6; }
@media (max-width: 1020px) { .gm-intro { grid-template-columns: 1fr; } .tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: repeat(2, 1fr); } }

.gm-link { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; }
.gm-link:hover { color: var(--sky); }
.gm-list h2 { max-width: 18em; }
.gm-group { margin-top: clamp(24px, 3vw, 36px); }
.gm-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 1.05rem; letter-spacing: 0; color: var(--muted); }
.gm-badge { padding: 5px 14px; border-radius: 999px; background: var(--tc); color: #fff; font-size: .9rem; font-weight: 800; }
.gm-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.gm-rows li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-left: 4px solid var(--tc); border-radius: 12px; background: var(--bg); }
.gm-rank { color: var(--muted); font-weight: 800; }
.gm-church { min-width: 0; }
.gm-church b { display: block; line-height: 1.3; }
.gm-church small { color: var(--muted); font-size: .85rem; }
.gm-total { font-weight: 800; color: var(--ink); white-space: nowrap; }
@media (max-width: 720px) { .gm-rows { grid-template-columns: 1fr; } .gm-rows li { grid-template-columns: 26px 1fr auto; padding: 11px 12px; gap: 10px; } }

/* Footer */
.site-footer { margin-top: var(--gap); padding-bottom: var(--gap); }
.footer-panel { padding: clamp(32px, 5vw, 60px); border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.footer-line { margin: 0 0 clamp(36px, 6vw, 72px); color: #fff; font-size: clamp(2.3rem, 7vw, 5.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .93rem; }
.footer-grid p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: var(--sky); text-decoration: underline; }

/* Tablet */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-intro, .bento-stats { grid-column: span 2; }
  .bento-stats { grid-template-columns: repeat(2, 1fr); }
  .fund-cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .misi-panel { grid-template-columns: 1fr; }
  .faq-list, .faq-list-2 { grid-template-columns: 1fr; }
  .pay-card, .pay-stack { width: 100%; max-width: 440px; }
  .fund-picker ul { grid-template-columns: repeat(4, 1fr); }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  :root { --radius: 22px; --gap: 12px; }
  .site-header { position: static; }
  .nav-pill { flex-wrap: wrap; padding-block: 10px 6px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: .92rem; }
  .nav-login { margin-left: auto; padding: 8px 16px; font-size: .86rem; }
  .lang { margin-left: 14px; padding-left: 0; border-left: 0; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-badge { left: 10px; right: 10px; bottom: 10px; padding: 9px 10px; border-radius: 16px; font-size: .78rem; text-align: center; }
  .btn-row, .btn-row .btn { width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento-intro, .bento-stats { grid-column: auto; }
  .bento-photo { grid-row: auto; }
  .bento-photo img { aspect-ratio: 4 / 3; object-position: center 60%; }
  .stat { padding: 18px; }
  .bishop { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .fund-cards { grid-template-columns: 1fr; }
  .fund-cards a { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; }
  .fund-cards a::after { align-self: center; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; }
  .story-photo img { aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: 1fr; }
  .timeline time { margin-bottom: 14px; }
  .fund-grid { grid-template-columns: 1fr; }
  .fund-body { grid-template-columns: 1fr; }
  .fund-picker ul { grid-template-columns: repeat(2, 1fr); }
  .fund-picker a { padding: 22px 10px 20px; font-size: .95rem; }
  .pay-card, .pay-stack { max-width: none; }
  section[id] { scroll-margin-top: 12px; }
}

/* Small phones */
@media (max-width: 360px) {
  .misi-panel h2 { font-size: 2.2rem; }
  .site-nav a { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
