/* ==========================================================================
   Rakan Masjid UTP: main stylesheet
   Palette drawn from the RM logo bars (royal → sky blue) and the
   An-Nur dome at dusk (brass). Paper + ink keep it calm and readable.
   ========================================================================== */

:root {
  --ink: #0a1730;
  --ink-2: #102347;
  --ink-3: #1a3160;
  --paper: #f5f2eb;
  --paper-2: #ece7db;
  --paper-3: #e2dccd;
  --blue: #0b3ea8;
  --blue-2: #3a66d0;
  --sky: #6db0cc;
  --brass: #c49a45;
  --brass-2: #e3c27a;
  --text: #0a1730;
  --muted: #566079;
  --muted-light: rgba(245, 242, 235, 0.68);
  --line: rgba(10, 23, 48, 0.12);
  --line-light: rgba(245, 242, 235, 0.14);

  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-arabic: "Amiri", "Traditional Arabic", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html { -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(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: 999px; transform: translateY(-150%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--muted-light); }
.paper-2 { background: var(--paper-2); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.h1 { font-size: clamp(2.48rem, 8vw, 7.6rem); }
.h2 { font-size: clamp(2rem, 4.96vw, 4.32rem); line-height: 1; }
.h3 { font-size: clamp(1.44rem, 2.72vw, 2.2rem); line-height: 1.05; }
.display em, .h2 em, .h1 em { font-style: normal; color: var(--blue); }
.card__n, .prog__n, .pillar__n, .plinth__n, .statement, .quote__text, .value__t, .vid__title, .footer__big, .tl__year, .hcal__days, .ev-row__date, .person__mono, .cluster__big, .vm__vision, .house__roof-text, .mmenu__list a, .hero__slogan, .prayer__item b, .stat__num { font-weight: 600; letter-spacing: -0.03em; }
.statement, .quote__text, .vm__vision { font-weight: 500; }
.dark .display em { color: var(--sky); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--sky); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 58ch; margin: 0; }
.dark .lead { color: var(--muted-light); }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

.arabic { font-family: var(--f-arabic); direction: rtl; line-height: 1.9; }

/* split text helpers (filled by JS) */
.line-mask { display: block; overflow: hidden; padding-bottom: .17em; margin-bottom: -.17em; }
.line-mask > .line-inner { display: block; will-change: transform; }
.word { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:focus-visible::before { transform: translateY(0); }
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); flex: none; }
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
@media (hover: hover) { .btn--light:hover { color: var(--paper); } }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) { .btn--ghost:hover { color: var(--paper); } }
.dark .btn--ghost::before { background: var(--paper); }
@media (hover: hover) { .dark .btn--ghost:hover { color: var(--ink); } }
.btn--brass { --bg: var(--brass); --fg: var(--ink); }
.btn--brass::before { background: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Splash (first load) & page transition ----------
   The <head> boot script adds rm-splash (fresh load), rm-nav (arrived via an
   internal link) or rm-still (reduced motion). Only the matching layer shows. */
.splash, .pt { display: none; }
html.rm-splash .splash { display: block; }
html.rm-nav .pt { display: block; }
html.rm-done .splash, html.rm-done .pt { display: none !important; }

.splash {
  position: fixed; inset: 0; z-index: 210; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.splash__glow {
  position: absolute; left: 50%; top: 50%; width: 110vmax; height: 110vmax; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(58,102,208,.30), rgba(11,62,168,.10) 45%, rgba(10,23,48,0) 70%);
  opacity: 0;
}
.splash__stage {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(78vw, 460px); aspect-ratio: 1; display: grid; place-items: center;
}
.splash__star { position: absolute; inset: 0; color: var(--sky); opacity: .55; }
.splash__star svg { width: 100%; height: 100%; }
.splash__logo { position: relative; width: 58%; height: auto; clip-path: inset(0 0 0 100%); }
.splash__basmalah {
  position: absolute; left: 0; right: 0; top: max(7vh, 40px); margin: 0; text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--brass-2); opacity: 0;
}
.splash__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; opacity: 0;
}
.splash__slogan { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.splash__count { font-family: var(--f-display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.splash__count b { font-weight: inherit; }
.splash__bars { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; }
.splash__bars span { flex: 1; transform: scaleX(0); transform-origin: left; }
.splash__bars span:nth-child(1), .pt__bar span:nth-child(1) { background: var(--blue); }
.splash__bars span:nth-child(2), .pt__bar span:nth-child(2) { background: var(--blue-2); }
.splash__bars span:nth-child(3), .pt__bar span:nth-child(3) { background: var(--sky); }
@media (max-width: 520px) { .splash__slogan { max-width: 22ch; line-height: 1.5; font-size: 11.5px; } }

.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.pt__l1, .pt__l2 { position: absolute; inset: 0; }
.pt__l1 { background: var(--blue); }
.pt__l2 { background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.pt__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 var(--gutter); text-align: center; }
.pt__mark { width: min(150px, 38vw); height: auto; }
.pt__mask { display: block; overflow: hidden; padding: .06em 0 .14em; }
.pt__label { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -0.04em; }
.pt__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; display: flex; }
.pt__bar span { flex: 1; transform-origin: left; }

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60;
  background: var(--blue); color: #fff;
  font-size: 13.5px; font-weight: 500;
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 8px; text-align: center; }
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-2); flex: none; animation: pulse 2.4s infinite; }
.announce__close { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; opacity: .8; }
.announce__close:hover { opacity: 1; background: rgba(255,255,255,.12); }
.announce__close svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .announce .wrap { justify-content: flex-start; text-align: left; padding-right: 52px; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,194,122,.6); } 50% { box-shadow: 0 0 0 6px rgba(227,194,122,0); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--header-h);
  transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s;
  color: var(--ink);
}
.header.is-over-dark { color: var(--paper); }
.header.is-scrolled {
  background: rgba(245, 242, 235, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 74px; height: auto; transition: filter .4s; }
.header.is-over-dark:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid currentColor; padding-left: 12px; opacity: .92; }
.brand__text b { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.brand__text small { font-size: 11px; opacity: .7; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 500; border-radius: 999px;
  transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav__more { position: relative; }
.nav__more > button { display: inline-flex; align-items: center; gap: 6px; }
.nav__more > button svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.nav__more.is-open > button svg { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--paper); color: var(--ink); border-radius: 16px; padding: 8px;
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -20px rgba(10,23,48,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.nav__more.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.nav__drop a:hover, .nav__drop a[aria-current="page"] { background: var(--paper-2); }
.nav__drop a span { font-size: 11px; color: var(--muted); }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.header.is-over-dark:not(.is-scrolled) .header__cta .btn { --bg: var(--paper); --fg: var(--ink); }
.header.is-over-dark:not(.is-scrolled) .header__cta .btn:hover { color: var(--paper); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px currentColor; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
}
@media (max-width: 420px) {
  .brand__text { display: none; }
}

/* ---------- Mobile menu ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 20px) var(--gutter) 28px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
.mmenu__list { list-style: none; margin: 0; padding: 0; }
.mmenu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mmenu__list a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0; font-family: var(--f-display); font-size: clamp(1.68rem, 7.2vw, 2.56rem); line-height: 1.05;
}
.mmenu__list a small { font-family: var(--f-body); font-size: 12px; color: var(--muted-light); letter-spacing: .1em; }
.mmenu__list a[aria-current="page"] { color: var(--sky); font-style: normal; }
.mmenu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.mmenu__foot .btn { width: 100%; }
.mmenu__social { display: flex; gap: 10px; }
.mmenu__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-light); }
.mmenu__social svg { width: 18px; height: 18px; }
.header.menu-open { color: var(--paper) !important; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.menu-open .brand img { filter: brightness(0) invert(1); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--ann-h, 0px)); min-height: calc(100svh - var(--ann-h, 0px)); color: var(--paper); background: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,23,48,.62) 0%, rgba(10,23,48,.18) 32%, rgba(10,23,48,.35) 58%, rgba(10,23,48,.96) 100%),
    linear-gradient(90deg, rgba(10,23,48,.72), rgba(10,23,48,.08) 68%);
}
.hero__star { position: absolute; right: -12vw; top: 8vh; width: min(70vw, 760px); opacity: .14; color: var(--brass-2); pointer-events: none; }
.hero__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero__basmalah { font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: var(--brass-2); margin: 0 0 18px; opacity: .95; }
.hero__title { font-size: clamp(2.64rem, 7.36vw, 6.88rem); line-height: .88; letter-spacing: -0.035em; }
.hero__title .t2 { font-style: normal; color: var(--sky); padding-left: .42em; }
.hero__row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(24px, 4vw, 44px); }
.hero__slogan { font-family: var(--f-display); font-style: normal; font-size: clamp(1.2rem, 2.4vw, 1.92rem); line-height: 1.1; margin: 0; }
.hero__slogan span { color: var(--brass-2); }
.hero__intro { color: rgba(245,242,235,.8); font-size: clamp(15px, 1.2vw, 17px); max-width: 46ch; margin: 0 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__loc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(245,242,235,.85); margin-bottom: 18px; }
.hero__loc svg { width: 15px; height: 15px; color: var(--brass-2); }
.hero__loc:hover { color: #fff; }
@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__title .t2 { padding-left: .25em; }
  .hero__star { width: 120vw; right: -50vw; top: 4vh; }
}

/* prayer strip */
.prayer {
  position: relative; border-top: 1px solid var(--line-light);
  background: rgba(10,23,48,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.prayer .wrap { display: flex; align-items: stretch; gap: 0; min-height: 76px; }
.prayer__meta { display: flex; flex-direction: column; justify-content: center; padding-right: 24px; margin-right: 8px; border-right: 1px solid var(--line-light); min-width: 0; flex: none; }
.prayer__meta b { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.prayer__meta small { font-size: 12px; color: var(--muted-light); white-space: nowrap; }
.prayer__list { display: flex; flex: 1; list-style: none; margin: 0; padding: 0; }
.prayer__item { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; position: relative; min-width: 0; }
.prayer__item span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.prayer__item b { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prayer__item.is-next { color: var(--brass-2); }
.prayer__item.is-next::before { content: ""; position: absolute; top: -1px; left: 16px; right: 16px; height: 2px; background: var(--brass-2); }
.prayer__item.is-next span { color: var(--brass-2); }
.prayer__next { font-size: 11px; margin-top: 2px; color: var(--brass-2); white-space: nowrap; }
.prayer__err { display: flex; align-items: center; font-size: 13px; color: var(--muted-light); padding-left: 16px; }
@media (max-width: 860px) {
  .prayer .wrap { flex-direction: column; padding-block: 14px; }
  .prayer__meta { border-right: 0; padding: 0 0 10px; margin: 0; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .prayer__meta small { white-space: normal; text-align: right; }
  .prayer__list { margin-inline: -8px; }
  .prayer__item { padding: 8px; align-items: center; text-align: center; }
  .prayer__item span { font-size: 10px; letter-spacing: .08em; }
  .prayer__item b { font-size: 1.3rem; }
  .prayer__item.is-next::before { left: 8px; right: 8px; top: 0; }
  .prayer__next { display: none; }
}

/* ---------- Statement ---------- */
.statement { font-family: var(--f-display); font-size: clamp(1.6rem, 3.68vw, 3.28rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0; max-width: 22ch; }
.statement .word { opacity: .14; }
.statement .hl { font-style: normal; color: var(--blue); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 64px); }
.statement-grid aside { padding-top: 14px; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 100px); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.72rem, 5.6vw, 5.12rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .45em; color: var(--blue); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat:nth-child(n+3) { border-bottom: 0; }
}

/* ---------- Section head ---------- */
.shead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.shead .lead { margin-top: 20px; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; } }

/* ---------- Calendar (hijri) ---------- */
.hcal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.hcal__item { padding: 26px 22px 6px 0; border-right: 1px solid var(--line-light); }
.hcal__item + .hcal__item { padding-left: 22px; }
.hcal__item:last-child { border-right: 0; }
.hcal__days { font-family: var(--f-display); font-size: clamp(2.08rem, 3.2vw, 2.88rem); line-height: 1; color: var(--brass-2); }
.hcal__days small { font-family: var(--f-body); font-size: 13px; color: var(--muted-light); margin-left: 6px; letter-spacing: .04em; }
.hcal__name { font-weight: 600; font-size: 17px; margin: 14px 0 4px; }
.hcal__date { font-size: 13.5px; color: var(--muted-light); }
.hcal-note { font-size: 12.5px; color: var(--muted-light); margin-top: 28px; }
@media (max-width: 860px) {
  .hcal { grid-template-columns: 1fr 1fr; }
  .hcal__item { padding: 20px 14px 20px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .hcal__item + .hcal__item { padding-left: 0; }
  .hcal__item:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .hcal__item:nth-child(even) { padding-left: 14px; }
}

/* ---------- Quote / inspiration ---------- */
.quote { position: relative; overflow: hidden; }
.quote__pattern { position: absolute; inset: 0; opacity: .07; color: var(--sky); pointer-events: none; }
.quote__inner { position: relative; max-width: 1040px; margin-inline: auto; text-align: center; }
.quote__text { font-family: var(--f-display); font-size: clamp(1.52rem, 3.52vw, 3.12rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 32px; }
.quote__text .q { color: var(--brass-2); }
.quote__src { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.quote__ar { font-size: clamp(1.6rem, 3.6vw, 2.8rem); color: var(--brass-2); margin: 0 0 28px; }
.quote__nav { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.quote__nav button { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); display: grid; place-items: center; transition: background .3s, color .3s; }
.quote__nav button:hover { background: var(--paper); color: var(--ink); }
.quote__nav svg { width: 18px; height: 18px; }

/* ---------- Event cards ---------- */
.ev-empty {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 32px; border-radius: var(--radius); background: var(--paper-2);
}
.ev-empty__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--blue); }
.ev-empty__icon svg { width: 26px; height: 26px; }
.ev-empty h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.52rem; margin: 0 0 4px; line-height: 1.1; }
.ev-empty p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .ev-empty { grid-template-columns: 1fr; text-align: left; } }

.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-row { border-bottom: 1px solid var(--line); }
.ev-row > button, .ev-row > a {
  width: 100%; display: grid; grid-template-columns: 110px 1fr auto 44px; gap: 24px; align-items: center;
  padding: 26px 0; text-align: left; position: relative;
}
.ev-row__date { font-family: var(--f-display); font-size: 1.92rem; line-height: .9; }
.ev-row__date small { display: block; font-family: var(--f-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.ev-row__title { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.3; transition: color .3s; }
.ev-row__meta { font-size: 14px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ev-row__tag { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); white-space: nowrap; }
.ev-row__tag.is-up { background: var(--blue); color: #fff; }
.ev-row__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, transform .5s var(--ease); }
.ev-row__go svg { width: 16px; height: 16px; }
.ev-row > *:hover .ev-row__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.ev-row > *:hover .ev-row__title { color: var(--blue); }
@media (max-width: 760px) {
  .ev-row > button, .ev-row > a { grid-template-columns: 64px 1fr 36px; gap: 14px; padding: 20px 0; }
  .ev-row__date { font-size: 1.9rem; }
  .ev-row__tag { display: none; }
  .ev-row__go { width: 36px; height: 36px; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.values__head { position: sticky; top: calc(var(--header-h) + 32px); }
.values__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: v; }
.value { border-bottom: 1px solid var(--line); }
.value button { width: 100%; display: flex; align-items: center; gap: 24px; padding: 26px 0; text-align: left; }
.value__n { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; width: 28px; flex: none; }
.value__t { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.72rem); line-height: 1; flex: 1; transition: color .4s, transform .6s var(--ease); }
.value__i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; flex: none; transition: background .4s; }
.value__i::before, .value__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .5s var(--ease); }
.value__i::after { transform: rotate(90deg); }
.value.is-open .value__i { background: var(--ink); color: var(--paper); }
.value.is-open .value__i::after { transform: rotate(0deg); }
.value.is-open .value__t { color: var(--blue); font-style: normal; }
.value button:hover .value__t { transform: translateX(8px); }
.value__body { height: 0; overflow: hidden; }
.value__body p { padding: 0 64px 28px 52px; margin: 0; color: var(--muted); font-size: 16.5px; max-width: 60ch; }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .values__head { position: static; }
  .value button { gap: 14px; padding: 22px 0; }
  .value__body p { padding: 0 0 24px 42px; }
}

/* ---------- Programs (horizontal) ---------- */
.programs { overflow: hidden; }
.programs__top { padding-top: clamp(80px, 12vw, 150px); }
.programs__track { display: flex; gap: 20px; padding: 0 var(--gutter) clamp(80px, 12vw, 150px); width: max-content; will-change: transform; }
.prog {
  position: relative; flex: none; width: min(460px, 84vw); min-height: 540px;
  border-radius: 22px; padding: 30px; display: flex; flex-direction: column;
  background: var(--ink-2); color: var(--paper); overflow: hidden; isolation: isolate;
}
.prog__art { position: absolute; inset: 0; z-index: -1; color: var(--sky); opacity: .22; transition: transform 1.2s var(--ease), opacity .6s; }
.prog:hover .prog__art { transform: scale(1.08) rotate(6deg); opacity: .34; }
.prog::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,35,71,0) 20%, rgba(16,35,71,.92) 62%); }
.prog__top { display: flex; justify-content: space-between; align-items: flex-start; }
.prog__n { font-family: var(--f-display); font-size: 4rem; line-height: .8; color: var(--brass-2); }
.prog__cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); }
.prog__body { margin-top: auto; }
.prog__body h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.08rem); line-height: 1.02; margin: 0 0 14px; }
.prog__body p { font-size: 15px; color: var(--muted-light); margin: 0; }
.prog:nth-child(3n+2) { background: var(--blue); }
.prog:nth-child(3n+2)::after { background: linear-gradient(180deg, rgba(11,62,168,0) 20%, rgba(11,62,168,.94) 62%); }
.prog:nth-child(3n+2) .prog__art { color: var(--paper); }
.prog:nth-child(3n) { background: #13355f; }
.prog:nth-child(3n)::after { background: linear-gradient(180deg, rgba(19,53,95,0) 20%, rgba(19,53,95,.94) 62%); }
.prog:nth-child(3n) .prog__art { color: var(--brass-2); }
.programs__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vw, 70px); height: 1px; background: var(--line-light); }
.programs__progress span { position: absolute; inset: 0; background: var(--brass-2); transform-origin: left; transform: scaleX(0); }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .programs { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .programs__top { padding-top: 0; }
  .programs .shead { margin-bottom: clamp(24px, 4vh, 44px); }
  .programs__track { padding-bottom: 0; }
  .prog { min-height: clamp(380px, 54vh, 540px); }
  .programs__progress { bottom: clamp(20px, 4.5vh, 48px); }
}
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .programs__track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 72px; scroll-padding-inline: var(--gutter);
  }
  .programs__track::-webkit-scrollbar { display: none; }
  .prog { scroll-snap-align: start; min-height: 460px; }
  .programs__progress { bottom: 40px; }
}

/* ---------- Partners marquee ---------- */
.partners__group { margin-top: 44px; }
.partners__label { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.partners__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; }
.plogo {
  display: flex; align-items: center; gap: 14px; flex: none;
  padding: 12px 22px 12px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.plogo__img { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.plogo__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.plogo__img b { font-size: 13px; color: var(--blue); }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.videos > .vid { aspect-ratio: auto; min-height: 320px; }
.videos__side { display: grid; gap: 20px; }
.vid { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1s var(--ease), opacity .5s; }
.vid:hover img { transform: scale(1.04); opacity: .65; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__btn { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; color: #fff; text-align: left; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.vid__play { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.vid__play svg { width: 20px; height: 20px; margin-left: 3px; }
.vid:hover .vid__play { transform: scale(1.12); }
.vid__title { font-family: var(--f-display); font-size: clamp(1.2rem, 1.92vw, 1.76rem); line-height: 1.05; }
.videos__side .vid__play { width: 48px; height: 48px; }
.videos__side .vid__title { font-size: 1.4rem; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } .videos > .vid { aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
.faq__q:hover { color: var(--blue); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 56px 26px 0; margin: 0; color: var(--muted); }
.faq__a a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq__item.is-open .value__i { background: var(--ink); color: var(--paper); }
.faq__item.is-open .value__i::after { transform: rotate(0deg); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__a p { padding-right: 0; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__title { font-size: clamp(2.4rem, 8vw, 7.2rem); line-height: .9; letter-spacing: -0.03em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.cta .lead { margin: 28px auto 0; }
.cta__star { position: absolute; left: 50%; top: 50%; width: min(140vw, 1200px); translate: -50% -50%; opacity: .07; color: var(--sky); pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { width: 140px; height: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--muted-light); font-size: 15px; max-width: 40ch; }
.footer h3 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(245,242,235,.82); transition: color .3s; font-size: 15px; }
.footer ul a:hover { color: #fff; }
.footer__contact a { display: flex; gap: 12px; align-items: flex-start; color: rgba(245,242,235,.82); font-size: 14.5px; overflow-wrap: break-word; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brass-2); }
.social { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-light); transition: background .3s, color .3s; }
.social a:hover { background: var(--paper); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer__big { font-family: var(--f-display); font-size: clamp(2.72rem, 12.4vw, 13.6rem); line-height: .8; letter-spacing: -0.04em; white-space: nowrap; color: rgba(245,242,235,.07); margin: 0 0 -0.12em; user-select: none; text-align: center; }
.footer__legal { border-top: 1px solid var(--line-light); padding-block: 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; font-size: 13px; color: var(--muted-light); }
.footer__legal a:hover { color: #fff; }
.footer__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__disc { font-size: 12.5px; color: rgba(245,242,235,.5); max-width: 90ch; padding-bottom: 28px; margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top svg { width: 14px; height: 14px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; } .footer__contact { grid-column: 1 / -1; } }

/* ---------- Inner page hero ---------- */
.phero { position: relative; background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(60px, 10vw, 130px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.phero__star { position: absolute; right: -14vw; top: -10vw; width: min(64vw, 680px); color: var(--sky); opacity: .1; pointer-events: none; }
.phero__title { font-size: clamp(2.4rem, 7.6vw, 6.88rem); line-height: .9; letter-spacing: -0.03em; max-width: 14ch; }
.phero__title em { color: var(--sky); }
.phero .eyebrow { color: var(--sky); }
.phero .lead { color: rgba(245,242,235,.78); }
.phero .display em { color: var(--sky); }
.phero__lead { margin-top: clamp(24px, 3vw, 36px); }
.phero__crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted-light); margin-bottom: 30px; }
.phero__crumbs a:hover { color: #fff; }
.phero--light { background: var(--paper); color: var(--ink); }

/* ---------- Generic cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .5s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(10,23,48,.4); }
.card__n { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--blue); margin-bottom: 40px; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--blue); margin-bottom: 36px; }
.card__icon svg { width: 24px; height: 24px; }
.dark .card { background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-light); }
.dark .card p { color: var(--muted-light); }

/* vision / mission */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.vm h2 { margin-bottom: 26px; }
.vm__vision { font-family: var(--f-display); font-size: clamp(1.28rem, 2.08vw, 1.84rem); line-height: 1.2; margin: 0; }
.mission { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mission li { counter-increment: m; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.mission li::before { content: "0" counter(m); font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; padding-top: 5px; }
@media (max-width: 860px) { .vm { grid-template-columns: 1fr; } }

/* Rumah RM house diagram */
.house { max-width: 1060px; margin: 0 auto; }
.house__roof { position: relative; height: clamp(120px, 18vw, 200px); }
.house__roof svg { width: 100%; height: 100%; overflow: visible; }
.house__roof-text { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--f-display); font-style: normal; font-size: clamp(1rem, 2.08vw, 1.6rem); color: var(--paper); padding-inline: 20%; }
.house__beam { height: 14px; background: var(--ink-3); border-radius: 3px; margin: 0 2%; }
.house__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 36px); padding: 0 6%; }
.pillar { background: linear-gradient(180deg, var(--blue) 0%, var(--ink-3) 100%); border-radius: 4px 4px 0 0; padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 26px) clamp(24px, 3vw, 40px); color: #fff; transform-origin: bottom; min-height: 300px; display: flex; flex-direction: column; }
.pillar__n { font-family: var(--f-display); font-size: 2.08rem; line-height: 1; color: var(--sky); margin-bottom: 18px; }
.pillar h4 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.05; margin: 0 0 12px; }
.pillar p { font-size: 14.5px; color: rgba(255,255,255,.78); margin: 0; }
.house__plinths { display: grid; gap: 6px; margin-top: 6px; }
.plinth { display: grid; grid-template-columns: 56px 1fr 1.4fr; align-items: center; gap: 18px; padding: 18px 24px; background: var(--paper-3); border-radius: 4px; }
.plinth:nth-child(1) { margin-inline: 3%; }
.plinth:nth-child(2) { margin-inline: 1.5%; }
.plinth__n { font-family: var(--f-display); font-size: 1.6rem; color: var(--blue); line-height: 1; }
.plinth h4 { margin: 0; font-size: 16px; font-weight: 700; }
.plinth p { margin: 0; color: var(--muted); font-size: 14.5px; }
.house__labels { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 18px 2% 0; }
@media (max-width: 760px) {
  .house__pillars { grid-template-columns: 1fr; padding: 0 4%; gap: 8px; }
  .pillar { min-height: 0; border-radius: 4px; }
  .plinth { grid-template-columns: 40px 1fr; }
  .plinth p { grid-column: 2; }
  .house__roof-text { padding-inline: 12%; }
}

/* timeline */
.tl { position: relative; max-width: 980px; margin: 0 auto; }
.tl__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); translate: -.5px 0; }
.tl__line span { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.tl__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 36px; }
.tl__item::before { content: ""; position: absolute; left: 50%; top: 52px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--blue), inset 0 0 0 3px var(--paper); translate: -50% 0; transition: background .4s; }
.tl__item.is-active::before { background: var(--blue); }
.tl__year { font-family: var(--f-display); font-size: clamp(2.88rem, 5.6vw, 4.8rem); line-height: 1; text-align: right; color: var(--blue); }
.tl__body h3 { font-size: 1.35rem; margin: 10px 0 10px; }
.tl__body p { color: var(--muted); margin: 0; }
.tl__item:nth-child(odd of .tl__item) .tl__year { order: 2; text-align: left; }
.tl__item:nth-child(odd of .tl__item) .tl__body { order: 1; text-align: right; }
@media (max-width: 760px) {
  .tl__line { left: 6px; }
  .tl__item { grid-template-columns: 1fr; gap: 6px; padding: 24px 0 24px 36px; }
  .tl__item::before { left: 6px; top: 40px; }
  .tl__year, .tl__item:nth-child(odd of .tl__item) .tl__year { order: 0; text-align: left; font-size: 3rem; }
  .tl__item:nth-child(odd of .tl__item) .tl__body { order: 1; text-align: left; }
}

/* NIC block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.split__media img { width: 100%; height: 120%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { aspect-ratio: 4 / 3; } }

/* ---------- People ---------- */
.group { padding-top: clamp(48px, 7vw, 88px); }
.group__head { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.group__head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.56rem); line-height: 1; margin: 0; }
.group__head span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1080px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }
.person { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 4 / 3.4; position: relative; overflow: hidden; background: var(--ink-2); color: var(--paper); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 4rem; letter-spacing: -0.02em; }
.person__mono svg { position: absolute; inset: -20%; width: 140%; height: 140%; opacity: .13; color: var(--sky); transition: transform 1.4s var(--ease); }
.person:hover .person__mono svg { transform: rotate(22.5deg); }
.person__mono span { position: relative; }
.person__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.person__role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.person__name { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0 0 18px; }
.person__links { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.person__links a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); overflow-wrap: break-word; min-width: 0; transition: color .3s; }
.person__links a:hover { color: var(--blue); }
.person__links svg { width: 16px; height: 16px; flex: none; }
.person--lead { grid-column: span 1; }
.person--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; }
.person--feature .person__photo { aspect-ratio: auto; min-height: 420px; }
.person--feature .person__body { padding: clamp(24px, 4vw, 52px); justify-content: center; }
.person--feature .person__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.72rem); line-height: 1.02; }
.person--feature .person__links { margin-top: 18px; }
@media (max-width: 760px) { .person--feature { grid-template-columns: 1fr; } .person--feature .person__photo { min-height: 0; aspect-ratio: 4 / 4.4; } }

/* ---------- Departments ---------- */
.cluster { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.cluster:first-of-type { border-top: 0; }
.cluster__side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.cluster__tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.cluster__side h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.84rem, 3.36vw, 3.04rem); line-height: 1; margin: 12px 0 0; }
.cluster__big { font-family: var(--f-display); font-size: clamp(4.8rem, 9.6vw, 8.8rem); line-height: .8; color: var(--paper-3); margin-top: 22px; }
.dept { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: clamp(22px, 3vw, 36px); }
.dept + .dept { margin-top: 18px; }
.dept__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.dept h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.36rem, 2.08vw, 1.84rem); line-height: 1.05; margin: 0; }
.dept__abbr { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--blue); letter-spacing: .08em; flex: none; }
.dept ul { list-style: none; margin: 0; padding: 0; }
.dept li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.dept li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; background: var(--sky); transform: rotate(45deg); }
@media (max-width: 860px) { .cluster { grid-template-columns: 1fr; } .cluster__side { position: static; } .cluster__big { display: none; } }

.helwi { border-radius: 26px; padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.helwi__star { position: absolute; right: -10%; bottom: -30%; width: 60%; opacity: .1; color: var(--brass-2); }
@media (max-width: 860px) { .helwi { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field label i { color: var(--blue); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); outline: 0;
  transition: border-color .3s, box-shadow .3s; font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1730' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(58,102,208,.14); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c2412d; }
.field__err { font-size: 12.5px; color: #c2412d; min-height: 0; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid { color: #c2412d; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; flex: 1; min-width: 220px; }
.form__status { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; background: #e7efe7; color: #1d4d2a; font-size: 14.5px; display: none; }
.form__status.is-shown { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

.form-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-wrap__side { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } .form-wrap__side { position: static; } }

.info-list { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.info-list a, .info-list div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--blue); }
.info-list svg { width: 19px; height: 19px; }
.info-list b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-list span { overflow-wrap: break-word; }
.info-list a:hover span { color: var(--blue); }

/* ---------- Events page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; outline: 0; font-size: 16px; }
.search input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(58,102,208,.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; transition: background .35s, color .35s, box-shadow .35s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); position: relative; margin-bottom: 28px; }
.tabs button { position: relative; z-index: 1; min-height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: color .35s; }
.tabs button.is-active { color: var(--paper); }
.tabs__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1080px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ev-grid { grid-template-columns: 1fr; } }
.evc { text-align: left; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .5s; width: 100%; }
.evc:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -28px rgba(10,23,48,.45); }
.evc__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--ink-2); color: var(--paper); }
.evc__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.evc:hover .evc__media img { transform: scale(1.05); }
.evc__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.evc__ph svg { position: absolute; right: -25%; top: -25%; width: 90%; opacity: .16; color: var(--sky); transition: transform 1.4s var(--ease); }
.evc:hover .evc__ph svg { transform: rotate(45deg); }
.evc__ph b { position: relative; font-family: var(--f-display); font-weight: 600; font-size: 3.68rem; line-height: .85; }
.evc__ph small { position: relative; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-top: 8px; }
.evc__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge { font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); letter-spacing: .02em; }
.badge--done { background: rgba(10,23,48,.75); color: var(--paper); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge--up { background: var(--brass-2); color: var(--ink); }
.evc__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.evc__date { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.evc__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0; }
.evc__meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.evc__meta span { display: flex; gap: 8px; align-items: flex-start; }
.evc__meta svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.empty { text-align: center; padding: 72px 20px; border-radius: var(--radius); background: var(--paper-2); }
.empty h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.76rem; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 auto; max-width: 46ch; }
.empty .btn { margin-top: 24px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.is-open { display: block; }
.modal__bg { position: absolute; inset: 0; background: rgba(10,23,48,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 100%);
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.modal__close { position: sticky; top: 0; align-self: flex-end; z-index: 2; flex: none; margin: 14px 14px -60px 0; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__media { flex: none; background: var(--ink); }
.modal__media img { width: 100%; max-height: 70vh; object-fit: contain; }
.modal__body { padding: clamp(24px, 4vw, 44px); }
.modal__body h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.02; margin: 12px 0 22px; }
.modal__facts { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: 22px; }
.modal__facts span { display: flex; gap: 10px; font-size: 15px; }
.modal__facts svg { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 3px; }
.modal__desc { white-space: pre-line; color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.modal__desc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Join / donate ---------- */
.status-card { border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.status-card__pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: #f6e7e2; color: #a5391f; margin-bottom: 18px; }
.status-card__pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-card h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.56rem); line-height: 1.04; margin: 0 0 14px; }
.status-card__next { text-align: center; padding: 28px 36px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.status-card__next small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.status-card__next b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 2.08rem; line-height: 1.05; margin: 6px 0; }
@media (max-width: 760px) { .status-card { grid-template-columns: 1fr; } }

.bank { display: grid; gap: 0; border-top: 1px solid var(--line-light); margin-top: 28px; }
.bank__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.bank__row small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.bank__row b { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.bank__acc { font-family: var(--f-display); font-weight: 600 !important; font-size: clamp(1.6rem, 3.52vw, 2.4rem) !important; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); font-size: 13.5px; font-weight: 600; transition: background .3s, color .3s; }
.copy:hover { background: var(--paper); color: var(--ink); }
.copy svg { width: 15px; height: 15px; }
.qr { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 40px); text-align: center; box-shadow: 0 0 0 1px var(--line); }
.qr img { width: min(280px, 100%); margin: 8px auto 20px; border-radius: 12px; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.44rem, 2.4vw, 1.92rem); line-height: 1.1; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion initial states (only with JS) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.js.reduced [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.js.reduced .statement .word { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 404 ---------- */
.nf {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 56px;
}
.nf__pattern { position: absolute; inset: 0; color: var(--sky); opacity: .06; }
.nf__glow { position: absolute; width: 70vmax; height: 70vmax; left: 30%; top: 45%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(58,102,208,.28), rgba(10,23,48,0)); pointer-events: none; }
.nf__grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.nf__code {
  display: flex; align-items: center; gap: .04em; margin: 8px 0 18px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 19vw, 15rem); line-height: .85; letter-spacing: -0.06em;
}
.nf__mask { display: block; overflow: hidden; padding: .02em .02em .06em; }
.nf__digit { display: block; }
.nf__star { position: relative; display: block; width: .82em; height: .82em; color: var(--brass-2); flex: none; }
.nf__star svg { width: 100%; height: 100%; }
.nf__star::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, rgba(227,194,122,.35), rgba(227,194,122,0) 70%); }
.nf__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; }
.nf__title em { font-style: normal; color: var(--sky); }
.nf .eyebrow { color: var(--sky); }
.nf__text { color: var(--muted-light); font-size: clamp(15px, 1.2vw, 17px); max-width: 48ch; margin: 0 0 28px; }
.nf__path { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; padding: 2px 8px; border-radius: 6px; background: rgba(245,242,235,.08); color: var(--paper); overflow-wrap: anywhere; }
.nf__links { display: grid; border-top: 1px solid var(--line-light); }
.nf__links-h { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 18px 0 6px; }
.nf__links a {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: baseline; gap: 4px 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line-light); transition: padding .5s var(--ease), color .3s;
}
.nf__links a span { font-size: 12px; font-weight: 700; color: var(--muted-light); letter-spacing: .08em; }
.nf__links a b { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.nf__links a small { font-size: 13.5px; color: var(--muted-light); text-align: right; }
.nf__links a:hover { padding-left: 10px; color: var(--sky); }
@media (max-width: 900px) {
  .nf__grid { grid-template-columns: 1fr; }
  .nf { align-items: flex-start; }
}
@media (max-width: 420px) { .nf__links a small { display: none; } }

/* ---------- Draft preview bar (admin) ---------- */
.preview-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 140;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--brass-2); color: var(--ink); font-size: 13.5px; font-weight: 700;
  box-shadow: 0 14px 34px -14px rgba(10,23,48,.55);
}
.preview-bar span { display: inline-flex; align-items: center; gap: 8px; }
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 2.4s infinite; }
.preview-bar button { min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }

/* balanced heading wraps (no single-word orphans) */
h1, h2, h3, .nf__title, .lead, .statement { text-wrap: balance; }
.prose p, .lead { text-wrap: pretty; }

/* ---------- Donate ---------- */
.dn-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(140px, 16vw, 200px); }
.dn-hero .eyebrow { color: var(--sky); }
.dn-hero .lead { color: rgba(245,242,235,.78); }
.dn-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.dn-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.dn-ways span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-right: 6px; }
.dn-ways a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-light); transition: background .3s, color .3s; }
.dn-ways a:hover { background: var(--paper); color: var(--ink); }
.dn-verse { margin: 0; padding: 26px 0 0 26px; border-left: 1px solid rgba(227,194,122,.4); }
.dn-verse .arabic { font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--brass-2); margin: 0 0 16px; line-height: 2; }
.dn-verse blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; letter-spacing: -0.015em; }
.dn-verse figcaption { margin-top: 14px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }

.dn-pay { position: relative; margin-top: clamp(-120px, -12vw, -80px); padding-bottom: clamp(56px, 8vw, 104px); }
.pay { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); background: #fff; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(10,23,48,.45); overflow: hidden; }
.pay__side { background: var(--paper-2); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.pay__h { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; margin: 0; }
.pay__tabs { display: grid; gap: 8px; }
.pay__tab {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px;
  text-align: left; padding: 16px; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .35s, box-shadow .35s, color .35s;
}
.pay__tab:hover { background: rgba(255,255,255,.6); }
.pay__tab.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.pay__tab-n { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.pay__tab.is-active .pay__tab-n { color: var(--sky); }
.pay__tab-t { display: grid; gap: 2px; min-width: 0; }
.pay__tab-t b { font-size: 16px; }
.pay__tab-t small { font-size: 13px; color: var(--muted); }
.pay__tab.is-active .pay__tab-t small { color: var(--muted-light); }
.pay__tab-tag { position: absolute; top: -9px; right: 14px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--brass-2); color: var(--ink); }
.pay__trust { margin: auto 0 0; display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; color: var(--muted); }
.pay__trust svg { width: 20px; height: 20px; color: #2f8a52; }
.pay__panels { position: relative; padding: clamp(24px, 4vw, 48px); min-width: 0; }
.pay__panel[hidden] { display: none; }
@media (min-width: 961px) {
  /* all panels share one cell, so the card keeps the tallest height and never jumps */
  .pay__panels { display: grid; align-items: center; }
  .pay__panel { grid-area: 1 / 1; }
  .pay__panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
}
.pay__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.pay__intro { margin: 0 0 22px; max-width: 58ch; }
.pay__qr { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.pay__qr--small { grid-template-columns: 170px minmax(0, 1fr); }
.qrcard { position: relative; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(10,23,48,.5); overflow: hidden; }
.qrcard img { width: 100%; height: auto; }
.qrcard__scan { position: absolute; left: 22%; right: 22%; top: 30%; height: 2px; background: linear-gradient(90deg, rgba(58,102,208,0), rgba(58,102,208,.9), rgba(58,102,208,0)); box-shadow: 0 0 14px rgba(58,102,208,.7); opacity: 0; }
.qrcard--small { border-radius: 16px; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 13px 0 13px 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li b { color: var(--ink); font-weight: 700; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--paper-2); color: var(--blue); }
.pay__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct { margin: 0 0 18px; border-top: 1px solid var(--line); }
.acct__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.acct dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acct dd { margin: 0; font-size: 17px; font-weight: 600; min-width: 0; }
.acct__row--num { background: linear-gradient(90deg, rgba(58,102,208,.07), rgba(58,102,208,0)); margin: 0 -14px; padding-inline: 14px; border-radius: 12px; border-bottom-color: transparent; }
.acct dd.acct__num { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.copy--light { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.copy--light:hover { background: var(--ink); color: var(--paper); }
.copy--solid { background: var(--blue); color: #fff; box-shadow: none; }
.copy--solid:hover { background: var(--ink); color: #fff; }
.pay__tip { margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: #fbf4e3; color: #6b4f12; font-size: 14.5px; }
.dn-trust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: 24px; background: var(--paper-2); }
.dn-trust__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.35; letter-spacing: -0.015em; margin: 0; }
.dn-contact { display: grid; gap: 4px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.dn-contact small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.dn-contact b { font-size: 17px; }
.dn-contact span { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.dn-contact .link-arrow { color: var(--blue); overflow-wrap: break-word; }

@media (max-width: 960px) {
  .dn-hero__grid { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .pay__side { padding-bottom: 18px; }
  .pay__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pay__tab { grid-template-columns: 1fr; gap: 2px; padding: 12px 8px; text-align: center; justify-items: center; }
  .pay__tab-n, .pay__tab-t small, .pay__tab-tag { display: none; }
  .pay__tab-t b { font-size: 14px; }
  .pay__trust { margin-top: 4px; }
  .dn-trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pay__qr, .pay__qr--small { grid-template-columns: 1fr; }
  .qrcard { max-width: 280px; margin: 0 auto; width: 100%; }
  .qrcard--small { max-width: 180px; }
  .acct__row { grid-template-columns: minmax(0, 1fr) auto; }
  .acct dt { grid-column: 1 / -1; }
  .acct dd.acct__num { font-size: clamp(1.35rem, 6.4vw, 1.8rem); }
  .acct__row--num { grid-template-columns: minmax(0, 1fr); }
  .acct__row--num .copy { justify-self: stretch; justify-content: center; min-height: 46px; }
  .pay__actions .btn { flex: 1 1 100%; }
}

/* ---------- Scrollbars (themed) ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 999px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
::-webkit-scrollbar-thumb:active { background: var(--blue-2); }
::-webkit-scrollbar-corner { background: var(--paper-2); }
.mmenu::-webkit-scrollbar-track { background: var(--ink); }
.mmenu::-webkit-scrollbar-thumb { background: var(--ink-3); border-color: var(--ink); }
.modal__panel::-webkit-scrollbar-track { background: var(--paper); }
.modal__panel::-webkit-scrollbar-thumb { border-color: var(--paper); }
textarea::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar-thumb { border-color: #fff; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--ink-3) var(--paper-2); scrollbar-width: thin; }
  .mmenu { scrollbar-color: var(--ink-3) var(--ink); }
}
