:root {
  --ink: #031512;
  --forest: #0a3d34;
  --jade: #1a7a66;
  --mist: #dceee8;
  --paper: #f4f7f5;
  --fog: #e8f1ed;
  --gold: #c9a227;
  --gold-soft: #e8d48a;
  --gold-deep: #9a7a12;
  --line: rgba(10, 61, 52, 0.14);
  --muted: #4a635c;
  --radius: 4px;
  --radius-md: 12px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
  --arabic: "Amiri", serif;
  --calligraphy: "Noto Naskh Arabic", "Amiri", serif;
  --shadow: 0 24px 60px rgba(3, 21, 18, 0.14);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --green: var(--jade);
  --green-dark: var(--forest);
  --green-mid: var(--jade);
  --green-soft: var(--mist);
  --green-glow: rgba(26, 122, 102, 0.18);
  --gold-bright: var(--gold-soft);
  --gold-dark: var(--gold-deep);
  --bg: var(--paper);
  --bg-deep: var(--fog);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 100% -5%, rgba(26, 122, 102, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at -5% 30%, rgba(201, 162, 39, 0.07), transparent 42%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

iframe {
  border: 0;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--ink);
}

img { display: block; height: auto; }
a { color: var(--jade); }
a:hover { color: var(--forest); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(1180px, calc(100% - clamp(1.25rem, 4vw, 2.25rem)));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.45rem 0;
}

.topbar-contact {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem;
}

.topbar-contact li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-contact i,
.topbar-give i {
  color: var(--gold-soft);
  font-size: 0.68rem;
}

.topbar-contact a { color: inherit; text-decoration: none; }
.topbar-give {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-soft); text-decoration: none; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem;
}

/* Header */
.site-header {
  background: rgba(244, 247, 245, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(3,21,18,0.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; color: var(--ink);
}

.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(201,162,39,0.35), 0 8px 20px rgba(3,21,18,0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 0.92rem;
  line-height: 1.05; display: block; letter-spacing: -0.02em;
}

.brand-place {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep);
  line-height: 1.1;
}

.site-nav {
  display: flex; align-items: center; gap: 0.1rem 1.35rem;
}

.site-nav > a:not(.btn),
.site-nav .nav-parent {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.88rem;
  position: relative; padding: 0.2rem 0;
}

.site-nav > a:not(.btn)::after,
.site-nav .nav-parent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.25rem;
  height: 1.5px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.28s var(--ease);
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn)[aria-current="page"],
.site-nav .nav-parent:hover,
.site-nav .nav-parent[aria-current="page"],
.site-nav .nav-item.is-active .nav-parent { color: var(--forest); }

.site-nav > a:not(.btn):hover::after,
.site-nav > a:not(.btn)[aria-current="page"]::after,
.site-nav .nav-parent:hover::after,
.site-nav .nav-parent[aria-current="page"]::after,
.site-nav .nav-item.is-active .nav-parent::after { transform: scaleX(1); }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-dropdown-toggle i {
  font-size: 0.62rem;
  transition: transform 0.25s var(--ease);
}

.nav-item.is-open .nav-dropdown-toggle i,
.nav-item:hover .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 13.5rem;
  padding: 0.85rem 0.45rem 0.45rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 60;
}

.nav-dropdown::before {
  content: "";
  display: block;
  background: var(--forest);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(3, 21, 18, 0.22);
  position: absolute;
  inset: 0.85rem 0 0;
  z-index: -1;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  position: relative;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block; width: 18px; height: 2px; background: var(--forest);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.95rem 1.5rem; border-radius: var(--radius); font-family: inherit;
  font-weight: 700; font-size: 0.88rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
  letter-spacing: 0.03em; text-transform: uppercase;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary, .btn-nav {
  background: var(--forest);
  color: #fff; border-color: transparent;
  box-shadow: 0 14px 32px rgba(10, 61, 52, 0.28);
}

.btn-primary:hover, .btn-nav:hover { color: #fff; background: #0d4f43; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink); border-color: transparent;
  box-shadow: 0 14px 32px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover { color: var(--ink); filter: brightness(1.04); }

.btn-ghost {
  background: transparent;
  color: #fff; border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-outline {
  background: transparent; color: var(--forest); border-color: var(--forest);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-weight: 800; font-size: 0.9rem;
  text-decoration: none; color: var(--forest); letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link::after {
  content: "→"; transition: transform 0.25s var(--ease);
}
.text-link:hover::after { transform: translateX(4px); }

/* ========== HERO ========== */
.hero {
  position: relative; color: #fff;
  min-height: min(100vh, 920px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 5.5rem; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,21,18,0.45) 0%, rgba(3,21,18,0.55) 45%, rgba(3,21,18,0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(3,21,18,0.35), transparent 70%);
}

.hero-orbit {
  position: absolute; inset: -20% -10% auto auto;
  width: min(70vw, 680px); aspect-ratio: 1;
  border: 1px solid rgba(232, 212, 138, 0.18);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-spin 48s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(232, 212, 138, 0.12);
}

.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 28%; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero-stage {
  position: relative; z-index: 1;
  max-width: min(1100px, 100%);
  margin-inline: auto;
  padding-bottom: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 100%;
  text-wrap: balance;
}

.hero-arabic {
  font-family: var(--arabic);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: var(--gold-soft);
  margin: 0 0 0.85rem;
  opacity: 0.95;
  text-align: center;
}

.arabic-inline {
  font-family: var(--arabic);
  font-weight: 700;
  font-size: 0.92em;
  color: var(--gold-deep);
  white-space: nowrap;
  margin-inline: 0.15em;
}

.hero-stage h1 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 28ch;
  color: rgba(255,255,255,0.92);
}

.hero-stage .lede {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
}

.hero-stage .cta-row {
  justify-content: center;
}

.scroll-cue {
  position: absolute; z-index: 2;
  left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  display: grid; place-items: start center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--gold-soft);
  animation: cue-drop 1.6s var(--ease) infinite;
}

@keyframes cue-drop {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Marquee */
.marquee-band {
  background: #fff;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
  opacity: 0.55;
}

.marquee-track span::after {
  content: "✦";
  margin-left: 2.5rem;
  color: var(--gold);
  opacity: 0.85;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Mission console */
.console-section {
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(26, 122, 102, 0.08), transparent 50%),
    linear-gradient(180deg, var(--fog), #fff);
  color: var(--ink);
}

.console-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.75rem;
  align-items: center;
}

.console-copy,
.console-panel,
.observatory-copy,
.observatory-meter,
.contact-panel {
  min-width: 0;
}

.console-copy h2 { max-width: 14ch; color: var(--forest); }
.console-copy .lede {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.console-meta {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.console-meta li {
  display: grid; gap: 0.15rem;
}

.console-meta span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
}

.console-meta strong {
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  color: var(--forest); letter-spacing: -0.02em;
}

.console-panel {
  min-width: 0;
}

.console-panel::before { display: none; }

/* Rahma-style donation card */
.donate-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.65rem 1.5rem 1.35rem;
  box-shadow:
    0 24px 60px rgba(3, 21, 18, 0.12),
    0 0 0 1px var(--line);
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}

.donate-card-head {
  text-align: left;
  margin-bottom: 1.15rem;
  padding: 0 0.15rem;
}

.donate-card-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.donate-card-title {
  margin: 0 0 0.55rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-transform: none;
}

.donate-card-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c5c5c;
  font-weight: 500;
}

.donate-amount-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid rgba(26, 122, 102, 0.22);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--forest);
}

.donate-amount-note strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.donate-amount-note em {
  font-style: normal;
  font-weight: 800;
}

.donate-card-form {
  background: #0a5c4c;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
}

.donate-card-form .zeffy-embed-wrap {
  background: transparent;
  min-height: 420px;
}

.donate-card-form .zeffy-iframe-box {
  height: 480px;
}

/* Zeffy */
.zeffy-hero-card { background: transparent; }
.zeffy-embed-wrap { background: #fff; min-height: 480px; }
.zeffy-embed-fallback { display: none; }

.zeffy-iframe-box {
  position: relative; overflow: hidden; height: 520px; width: 100%;
}

.zeffy-iframe-box iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.donate-page-embed {
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Sections shared */
.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }

.section-head { margin-bottom: 2.75rem; max-width: 40rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.light h2, .section-head.light .lede { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.85rem; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep);
}

.eyebrow::before {
  content: ""; width: 1.4rem; height: 1px; background: currentColor;
}

.eyebrow.light { color: var(--gold-soft); }

h2, .page-hero h1 {
  margin: 0 0 0.95rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 700; line-height: 1.15; color: var(--forest);
  letter-spacing: -0.03em;
}

.lede { margin: 0; color: var(--muted); font-size: 1.05rem; font-weight: 500; }

/* Manifesto / about */
.manifesto-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: auto 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.manifesto-index {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center;
  color: var(--gold-deep);
}

.manifesto-index span {
  font-family: var(--display); font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.04em; color: var(--forest);
}

.manifesto-index em {
  font-style: normal; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
}

.manifesto-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 480px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}

.manifesto-media img {
  width: 100%; height: 100%; min-height: 480px; object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.manifesto-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(3,21,18,0.35));
}

.index-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 0.85rem;
}

.index-list li {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.75rem;
  align-items: baseline;
  color: var(--muted); font-weight: 560;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.index-list b {
  font-family: var(--display); font-size: 0.78rem; color: var(--gold-deep);
}

/* Hadith calligraphy band */
.hadith-band {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(26, 122, 102, 0.35), transparent 50%),
    radial-gradient(ellipse 45% 55% at 100% 10%, rgba(201, 162, 39, 0.1), transparent 48%),
    linear-gradient(165deg, #04241f 0%, var(--forest) 45%, #062e28 100%);
  color: #fff;
  text-align: center;
}

.hadith-ornament {
  position: absolute;
  inset: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid rgba(232, 212, 138, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.hadith-ornament::before,
.hadith-ornament::after {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
  background: var(--forest);
}

.hadith-ornament::before { top: -0.35rem; left: -0.35rem; }
.hadith-ornament::after { bottom: -0.35rem; right: -0.35rem; }

.hadith-inner {
  position: relative;
  z-index: 1;
  width: min(58rem, 100%);
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 6vw, 3.5rem);
  display: grid;
  justify-items: stretch;
  gap: 0;
  box-sizing: border-box;
  text-align: center;
}

.hadith-band .eyebrow {
  margin-bottom: 1.75rem;
  justify-self: center;
}

.hadith-arabic {
  margin: 0;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.hadith-arabic p {
  margin: 0;
  font-family: var(--calligraphy);
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  text-shadow: 0 12px 40px rgba(3, 21, 18, 0.35);
  text-wrap: pretty;
}

.hadith-english {
  margin: 1.75rem auto 0;
  width: 100%;
  max-width: 44rem;
  padding-inline: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hadith-cite {
  margin: 1.5rem 0 0;
  padding-inline: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 212, 138, 0.85);
  justify-self: center;
}

/* Observatory / progress */
.observatory-section {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(26,122,102,0.07), transparent 55%),
    linear-gradient(180deg, #fff, var(--fog));
  color: var(--ink);
  padding: 5rem 0;
}

.observatory-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.75rem;
  align-items: center;
}

.observatory-section h2 { color: var(--forest); }
.observatory-section .lede {
  color: var(--muted);
  margin-bottom: 1.6rem;
  max-width: 34rem;
}

.observatory-meter {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.96), rgba(244,247,245,0.98)),
    var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.observatory-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--jade));
  z-index: 1;
}

.observatory-meter::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -30%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(26,122,102,0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.meter-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.6rem 1rem 1.75rem;
  background:
    linear-gradient(180deg, rgba(10,61,52,0.04), transparent);
  border-bottom: 1px solid var(--line);
}

.meter-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}

.meter-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1.2;
}

.meter-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}

.meter-live i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(26,122,102,0.45);
  animation: meter-pulse 1.8s var(--ease) infinite;
}

@keyframes meter-pulse {
  0% { box-shadow: 0 0 0 0 rgba(26,122,102,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(26,122,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,122,102,0); }
}

.meter-gauge {
  position: relative;
  z-index: 1;
  padding: 0.85rem 1.35rem 0.35rem 1.5rem;
}

.zeffy-progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 120px;
}

.zeffy-progress iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120px;
  border: 0;
}

.meter-phases {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0.35rem 1.5rem 1.15rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.meter-phases li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

.meter-phases li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.meter-phases li::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(10,61,52,0.22);
}

.meter-phases li.is-done {
  color: var(--forest);
}

.meter-phases li.is-done::before {
  background: var(--jade);
}

.meter-phases li.is-done::after {
  background: var(--jade);
  border-color: var(--jade);
}

.meter-phases li.is-active {
  color: var(--forest);
}

.meter-phases li.is-active::before {
  background: linear-gradient(90deg, var(--jade), rgba(26,122,102,0.2));
}

.meter-phases li.is-active::after {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
}

.meter-phases span {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.meter-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.15rem 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.meter-foot span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.meter-foot strong {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.meter-foot .text-link {
  margin-top: 0;
  flex-shrink: 0;
}

.progress-section {
  background: var(--paper);
  padding: 4.5rem 0;
}

.progress-layout {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.75rem; align-items: center;
}

.progress-copy .lede { margin-bottom: 1.5rem; max-width: 34rem; }

.progress-meter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem 1.15rem;
  box-shadow: var(--shadow);
}

.progress-meter-wide { max-width: 720px; margin-inline: auto; }

/* Bento why */
.why-section { background: var(--fog); }

.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.bento article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.bento article:hover {
  transform: translateY(-3px);
  border-color: rgba(26,122,102,0.35);
}

.bento-lg {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  background: var(--forest) !important;
  color: #fff;
  border-color: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 0 !important;
}

.bento-lg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bento-lg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 21, 18, 0.15) 0%, rgba(3, 21, 18, 0.55) 45%, rgba(3, 21, 18, 0.88) 100%);
  z-index: 1;
}

.bento-lg-copy {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem;
}

.bento-lg h3 { color: #fff !important; }
.bento-lg p { color: rgba(255, 255, 255, 0.78) !important; }
.bento-lg .bento-num { color: var(--gold-soft) !important; }

.bento-wide {
  grid-column: 2 / -1;
}

.bento-num {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.bento h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.bento p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.bento-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.bento-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 0.2rem;
}

.bento-stats span {
  font-size: 0.78rem; color: var(--muted);
}

/* Project expands */
.expand-section {
  background: #fff;
  border-block: 1px solid var(--line);
}

.expand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--fog);
}

.expand-grid li {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  background: #fff;
  border-right: 1px solid var(--line);
}

.expand-grid li:last-child { border-right: 0; }

.expand-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--jade);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
}

.expand-icon i {
  display: block;
  line-height: 1;
}

.expand-grid strong {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--forest);
  max-width: 12ch;
}

.expand-grid span:not(.expand-icon) {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 16ch;
}

.expand-note {
  margin: 1.75rem 0 0;
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--jade);
}


/* Pathways as index rows */
.pathways-section { background: #fff; }

.pathway-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}

.pathway-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.pathway-row:hover {
  background: var(--fog);
  padding-inline: 1rem;
}

.pw-num {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.pw-body {
  display: grid; gap: 0.2rem;
}

.pw-body strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.pw-body em {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

.pw-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade);
  border: 1px solid rgba(26,122,102,0.25);
  padding: 0.35rem 0.65rem;
}

/* Vision bleed */
.vision-bleed {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.vision-bleed-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.vision-bleed-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3,21,18,0.9) 0%, rgba(3,21,18,0.55) 55%, rgba(3,21,18,0.3) 100%),
    linear-gradient(transparent 20%, rgba(3,21,18,0.75));
}

.vision-bleed-copy {
  position: relative; z-index: 1;
  padding: 4.5rem 0;
  max-width: 36rem;
}

.vision-bleed-copy h2 { color: #fff; }
.vision-bleed-copy p { color: rgba(255,255,255,0.78); margin: 0 0 1.25rem; }

.vision-pills {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}

.vision-pills li {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  color: var(--gold-soft);
}

/* Steps / process */
.steps-section {
  background: var(--fog);
  color: var(--ink);
}

.steps-section h2 { color: var(--forest); }

.process-line {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: none;
  position: relative;
}

.process-line::before {
  content: "";
  position: absolute; top: 1.15rem; left: 8%; right: 8%;
  height: 1px; background: rgba(10, 61, 52, 0.15);
}

.process-line li {
  padding: 0 1.25rem;
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}

.process-line h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--forest);
}

.process-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Impact */
.impact-section { background: #fff; }

.impact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.impact-tool {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--line);
}

.impact-amount {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.impact-message {
  color: var(--muted);
  margin: 0.9rem 0 1.35rem;
}

.impact-tool input[type="range"] {
  width: 100%; accent-color: var(--jade); margin-bottom: 1rem;
}

.impact-presets {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1.35rem;
}

.impact-presets button {
  border: 1px solid var(--line);
  background: var(--fog);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font: inherit; font-weight: 700; cursor: pointer;
  color: var(--forest);
}

.impact-presets button.is-active {
  background: var(--mist);
  border-color: var(--jade);
  color: var(--jade);
}

/* Voices */
.voices-section { background: #fff; }

.voices {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.voices blockquote {
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fog);
}

.voice-lead {
  grid-row: span 2;
  background: linear-gradient(160deg, #eaf5f1, #fff) !important;
  border-color: var(--line) !important;
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
}

.voice-lead p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--forest) !important;
}

.voices p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.voices footer {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.voice-lead footer { color: var(--gold-deep) !important; }

/* FAQ */
.faq-section { background: var(--fog); }

.faq-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.75rem; align-items: start;
}

.accordion details { border-bottom: 1px solid var(--line); padding: 0.15rem 0; }

.accordion summary {
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 600;
  color: var(--forest); padding: 1.2rem 2rem 1.2rem 0;
  position: relative; font-size: 1.02rem;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold-deep); font-size: 1.35rem; font-family: var(--font);
}

.accordion details[open] summary::after { content: "–"; }
.accordion p { margin: 0 0 1.1rem; color: var(--muted); padding-right: 1rem; }

/* Inner pages */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26,122,102,0.12), transparent 50%),
    linear-gradient(180deg, #cfe6df, var(--paper));
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute; left: 50%; top: -30%;
  transform: translateX(-50%);
  width: min(520px, 70vw); aspect-ratio: 1;
  border: 1px solid rgba(10,61,52,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(10,61,52,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,61,52,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000, transparent);
}

.page-hero .wrap {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 18ch;
  margin-inline: auto;
}

.page-hero .lede {
  max-width: 36rem;
  margin-inline: auto;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-section-alt { background: #fff; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.split-media img {
  width: 100%; min-height: 340px; object-fit: cover;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
}

.split-media.logo-panel {
  background: var(--mist);
  display: grid;
  place-items: center;
  min-height: 340px;
  clip-path: none;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-media.logo-panel img {
  width: min(220px, 60%);
  min-height: 0;
  object-fit: contain;
  box-shadow: none;
  clip-path: none;
}

.split-copy p, .prose p { color: var(--muted); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.page-cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26,122,102,0.08), transparent 55%),
    var(--fog);
  padding: 4rem 0;
  text-align: center;
}

.page-cta-band h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.page-cta-band .lede {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}

.page-cta-band .cta-row {
  justify-content: center;
  margin-top: 0;
}

.check-list {
  list-style: none; margin: 1.35rem 0 1.6rem; padding: 0; display: grid; gap: 0.75rem;
}

.check-list li {
  position: relative; padding-left: 1.85rem; color: var(--muted); font-weight: 560;
}

.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--mist);
  box-shadow: inset 0 0 0 2px var(--jade);
}

.check-list li::after {
  content: ""; position: absolute; left: 0.35rem; top: 0.58rem;
  width: 0.45rem; height: 0.28rem; border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest); transform: rotate(-45deg);
}

.pillar-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

.pillar-list li {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}

.pillar-list h3 {
  margin: 0 0 0.4rem; font-family: var(--display); color: var(--forest); font-size: 1.05rem;
}

.pillar-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.subject-grid {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
}

.subject-grid li {
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  font-weight: 700; color: var(--forest);
}

.gallery {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 0.75rem;
}

.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:first-child img { min-height: 460px; }

.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem;
  background: linear-gradient(transparent, rgba(3,21,18,0.85));
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

.donate-band { background: var(--forest); color: #fff; padding: 4rem 0; }
.donate-band h2 { color: #fff; }
.donate-band p { color: rgba(255,255,255,0.85); max-width: 36rem; }
.donate-band .tip { margin-top: 1rem; font-size: 0.9rem; }
.donate-band .tip strong { color: var(--gold-soft); }

.form-stack { display: grid; gap: 1rem; max-width: 36rem; }
.form-stack label {
  display: grid; gap: 0.35rem; font-weight: 700; color: var(--forest); font-size: 0.88rem;
}
.form-stack input, .form-stack textarea {
  font: inherit; padding: 0.9rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-stack input:focus, .form-stack textarea:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.contact-meta {
  list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.95rem; color: var(--muted);
}
.contact-meta strong {
  display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.console-meta a {
  color: inherit;
  text-decoration: none;
}

.console-meta a:hover { color: var(--jade); }

.field-error {
  color: #8b1e1e;
  font-size: 0.85rem;
  font-weight: 600;
}

.pathway-row {
  cursor: default;
}

a.pathway-row { cursor: pointer; }

.prose-narrow {
  max-width: 42rem;
}

.prose-narrow p { color: var(--muted); }

.timeline-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.timeline-list li > span {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

.timeline-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--forest);
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dept-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.dept-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--forest);
}

.dept-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dept-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.curriculum-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.curriculum-grid li {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.curriculum-grid strong {
  font-family: var(--display);
  color: var(--forest);
  font-size: 1rem;
}

.curriculum-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.academics-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: -1.5rem;
}

.academics-subnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.academics-subnav a:hover,
.academics-subnav a[aria-current="page"] {
  color: var(--forest);
  border-color: var(--forest);
  background: var(--mist);
}

.academics-link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.academics-link-grid a {
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 100%;
  transition: color 0.2s var(--ease);
}

.academics-link-grid a:hover {
  color: var(--forest);
}

.academics-link-grid strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--forest);
}

.academics-link-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.curriculum-intro-inner {
  display: grid;
  gap: 1.75rem;
}

.curriculum-intro .section-head {
  margin-bottom: 0;
}

.curriculum-intro .lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.curriculum-jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.curriculum-jump a {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(220, 238, 232, 0.55), transparent 70%),
    #fff;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.curriculum-jump a:hover,
.curriculum-jump a.is-active {
  transform: translateY(-2px);
  border-color: rgba(10, 61, 52, 0.28);
  background:
    linear-gradient(180deg, rgba(26, 122, 102, 0.12), transparent 70%),
    #fff;
}

.curriculum-jump-year {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
}

.curriculum-jump-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.curriculum-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(244, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.curriculum-sticky[hidden] {
  display: none;
}

.curriculum-sticky-inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.curriculum-sticky-inner::-webkit-scrollbar {
  display: none;
}

.curriculum-sticky a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.curriculum-sticky a:hover,
.curriculum-sticky a.is-active {
  color: var(--forest);
  background: var(--mist);
  border-color: rgba(10, 61, 52, 0.16);
}

.curriculum-year {
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
}

.curriculum-year-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.curriculum-year-head .section-head,
.curriculum-year-head h2 {
  margin: 0;
}

.curriculum-year-head .eyebrow {
  margin-bottom: 0.35rem;
}

.curriculum-year-count {
  margin: 0;
  text-align: right;
  display: grid;
  gap: 0.15rem;
  min-width: 9rem;
}

.curriculum-year-count strong {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--forest);
  line-height: 1;
}

.curriculum-year-count span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.curriculum-semester {
  margin-top: 2rem;
}

.curriculum-semester-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.curriculum-semester-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--forest);
}

.curriculum-semester-count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.curriculum-course-list {
  display: grid;
  gap: 0;
}

.curriculum-course {
  padding: 1.35rem 0 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.curriculum-course:hover {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(220, 238, 232, 0.45), transparent 55%);
}

.curriculum-course-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.curriculum-course-titles {
  min-width: 0;
}

.course-code {
  margin: 0 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.84rem;
}

.course-code code {
  font-family: var(--font);
  font-weight: 800;
  color: var(--forest);
  background: var(--mist);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.course-arabic {
  font-family: var(--arabic);
  font-size: 1.05rem;
  color: var(--jade);
}

.curriculum-course h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.course-credits {
  margin: 0;
  flex-shrink: 0;
}

.course-credits span {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(232, 212, 138, 0.22);
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(10, 61, 52, 0.08);
}

.course-meta div {
  display: grid;
  gap: 0.2rem;
}

.course-meta-full {
  grid-column: 1 / -1;
}

.course-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
}

.course-meta dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.course-desc {
  margin: 0.95rem 0 0;
  color: var(--muted);
  max-width: 52rem;
  line-height: 1.55;
}

.course-topics {
  margin-top: 0.95rem;
  border-top: 1px solid rgba(10, 61, 52, 0.08);
}

.course-topics summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  user-select: none;
}

.course-topics summary::-webkit-details-marker {
  display: none;
}

.course-topics summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.course-topics[open] summary::after {
  content: "–";
}

.course-topics-count {
  margin-left: auto;
  margin-right: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.course-topics ul {
  margin: 0 0 0.35rem;
  padding: 0 0 0.35rem 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  max-width: 48rem;
}

.course-topics li::marker {
  color: var(--gold);
}

.schedule-intro-inner {
  display: grid;
  gap: 1.75rem;
}

.schedule-intro .section-head {
  margin-bottom: 0;
}

.schedule-intro .lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.schedule-jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.schedule-jump a {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(220, 238, 232, 0.55), transparent 70%),
    #fff;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.schedule-jump a:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 61, 52, 0.28);
  background:
    linear-gradient(180deg, rgba(26, 122, 102, 0.1), transparent 70%),
    #fff;
}

.schedule-jump-label {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--forest);
}

.schedule-jump-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.schedule-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.schedule-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.schedule-cat-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #fff;
  background: var(--forest);
}

.schedule-cat-dot.schedule-cat-worship { background: var(--forest); }
.schedule-cat-dot.schedule-cat-study { background: var(--jade); }
.schedule-cat-dot.schedule-cat-meal { background: var(--gold-deep); }
.schedule-cat-dot.schedule-cat-rest { background: #35554d; }
.schedule-cat-dot.schedule-cat-free { background: #5a7a70; }

.schedule-board-section {
  padding-top: 2.5rem;
}

.schedule-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem;
}

.schedule-period-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.schedule-period-label {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.schedule-period-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.schedule-blocks {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}

.schedule-blocks::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(10, 61, 52, 0.18));
}

.schedule-block {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem 1.15rem;
  padding: 0.85rem 0 1.15rem;
  position: relative;
}

.schedule-block-marker {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.schedule-block-dot {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  background: var(--forest);
  box-shadow: 0 0 0 4px #fff;
}

.schedule-period {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.schedule-period.reveal:nth-child(1) { transition-delay: 0.02s; }
.schedule-period.reveal:nth-child(2) { transition-delay: 0.06s; }
.schedule-period.reveal:nth-child(3) { transition-delay: 0.1s; }
.schedule-period.reveal:nth-child(4) { transition-delay: 0.14s; }
.schedule-period.reveal:nth-child(5) { transition-delay: 0.18s; }

.schedule-cat-worship .schedule-block-dot { background: var(--forest); }
.schedule-cat-study .schedule-block-dot { background: var(--jade); }
.schedule-cat-meal .schedule-block-dot { background: var(--gold-deep); }
.schedule-cat-rest .schedule-block-dot { background: #35554d; }
.schedule-cat-free .schedule-block-dot { background: #5a7a70; }

.schedule-block-body {
  min-width: 0;
  padding: 0.15rem 0 0.35rem;
}

.schedule-block.is-emphasis .schedule-block-body {
  padding: 1rem 1.15rem;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(26, 122, 102, 0.1), transparent 55%),
    #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
}

.schedule-block-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.schedule-block-time {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.schedule-block-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-block-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.schedule-block-items {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.schedule-block-items li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--forest);
  padding: 0.28rem 0.65rem;
  background: var(--mist);
  border: 1px solid rgba(10, 61, 52, 0.1);
}

.schedule-block-note {
  margin: 0.7rem 0 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.schedule-block-note i {
  color: var(--jade);
  margin-top: 0.2rem;
}

.campus-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.campus-duo figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.campus-duo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.campus-duo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(3,21,18,0.85));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps-plain {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps-plain li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--muted);
}

.steps-plain strong {
  font-family: var(--display);
  color: var(--gold-deep);
  font-size: 0.85rem;
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500 !important;
  color: var(--muted) !important;
}

.check-label input {
  margin-top: 0.3rem;
  accent-color: var(--jade);
}

.form-stack select {
  font: inherit;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.home-study-teaser {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.home-study-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.home-study-chips li {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
}

.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: 1rem;
  z-index: 220;
  display: grid;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(3, 21, 18, 0.16);
  color: var(--forest);
  transform: translateX(1.25rem);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.toast.is-visible {
  transform: none;
  opacity: 1;
}

.toast.is-leaving {
  transform: translateX(1.25rem);
  opacity: 0;
}

.toast-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #fff;
  background: var(--jade);
}

.toast-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.toast-title {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.toast-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.1rem;
  border-radius: var(--radius);
}

.toast-close:hover {
  color: var(--forest);
  background: var(--fog);
}

.toast-success .toast-icon { background: var(--jade); }
.toast-success {
  border-color: rgba(26, 122, 102, 0.28);
  background: linear-gradient(180deg, #f3faf7, #fff);
}

.toast-error .toast-icon { background: #a33b3b; }
.toast-error {
  border-color: rgba(163, 59, 59, 0.25);
}

.toast-warning .toast-icon { background: var(--gold-deep); }
.toast-info .toast-icon { background: var(--forest); }

@media (max-width: 720px) {
  .toast-stack {
    top: auto;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

/* Banner + footer */
.banner-cta {
  background:
    linear-gradient(105deg, var(--gold-deep), var(--gold) 45%, var(--gold-soft));
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}

.banner-cta::before {
  content: "";
  position: absolute; inset: -40% auto auto 60%;
  width: 480px; aspect-ratio: 1;
  border: 1px solid rgba(3,21,18,0.12);
  border-radius: 50%;
}

.banner-cta-inner {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}

.banner-cta h2 {
  margin: 0; color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  max-width: 16ch;
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 4rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 2rem; margin-bottom: 2.25rem;
}

.footer-brand img {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem;
  border: 1px solid rgba(201,162,39,0.4);
}

.footer-title {
  margin: 0 0 0.5rem; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}

.site-footer h3 {
  margin: 0 0 0.9rem; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-soft);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

.footer-contact {
  gap: 0.7rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.footer-contact i {
  width: 1.1rem;
  margin-top: 0.22em;
  color: var(--gold-soft);
  font-size: 0.82rem;
  text-align: center;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.38); margin: 0 auto;
}

.mobile-donate {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}

.mobile-donate .btn { width: 100%; }
.mobile-donate.is-visible { transform: translateY(0); }

.scroll-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 75;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 14px 32px rgba(10, 61, 52, 0.28);
  opacity: 0;
  transform: translateY(0.65rem);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background 0.2s, box-shadow 0.2s;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scroll-top:hover {
  background: #0d4f43;
  box-shadow: 0 18px 36px rgba(10, 61, 52, 0.34);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Site donate modal */
.donate-modal[hidden] { display: none !important; }

.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.donate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 21, 18, 0.55);
  backdrop-filter: blur(6px);
}

.donate-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(88vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(3, 21, 18, 0.35);
  animation: modal-in 0.28s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.donate-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--fog);
  color: var(--forest);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.donate-modal-close:hover {
  background: var(--mist);
}

.donate-modal-head {
  padding: 1.5rem 1.5rem 1rem;
  padding-right: 3rem;
  flex: 0 0 auto;
}

.donate-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 1rem 1rem;
}

.donate-modal-frame {
  background: #0a5c4c;
  border-radius: 16px;
  overflow: hidden;
  height: min(520px, 58vh);
}

.donate-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a5c4c;
}

body.donate-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .donate-modal {
    padding: 0.65rem;
    align-items: flex-end;
  }

  .donate-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 12px 12px;
  }

  .donate-modal-frame {
    height: min(480px, 62vh);
  }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.hero-stage .reveal { transition-delay: 0s; }
.hero-stage .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero-stage .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero-stage .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero-stage .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ========== RESPONSIVE ========== */

/* Large tablet / small desktop */
@media (max-width: 1200px) {
  .console-layout,
  .observatory-layout,
  .manifesto-grid,
  .impact-layout,
  .faq-grid,
  .progress-layout,
  .home-study-teaser {
    gap: 2rem;
  }

  .site-nav {
    gap: 0.1rem 1rem;
  }

  .site-nav > a:not(.btn),
  .site-nav .nav-parent {
    font-size: 0.82rem;
  }
}

/* Tablet landscape */
@media (max-width: 1100px) {
  .expand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .expand-grid li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .expand-grid li:nth-child(3n) { border-right: 0; }
  .expand-grid li:nth-child(n+4) { border-bottom: 0; }

  .bento {
    grid-template-columns: 1.2fr 1fr;
  }

  .bento-lg {
    grid-row: span 2;
  }

  .bento-wide {
    grid-column: 1 / -1;
  }

  .process-line {
    gap: 1rem;
  }

  .process-line li {
    padding: 0 0.75rem;
  }

  .dept-grid,
  .dept-grid-4,
  .pillar-list,
  .fgrf-grid,
  .fgrf-grid-4,
  .fgrf-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-grid article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Tablet portrait / mobile nav */
@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 2.1rem) 0 auto 0;
    max-height: calc(100dvh - var(--header-h) - 2.1rem);
    overflow-y: auto;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.15rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
    box-shadow: 0 18px 40px rgba(3,21,18,0.08);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav > a:not(.btn),
  .site-nav .nav-item {
    padding: 0.85rem 0.65rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a:not(.btn)::after,
  .site-nav .nav-parent::after { display: none; }

  .site-nav .nav-item {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav .nav-parent {
    font-size: 1rem;
    flex: 1;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.55rem;
    padding: 0.45rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    background: var(--forest);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--radius);
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-item.is-open .nav-dropdown {
    display: grid;
  }

  .nav-item:hover .nav-dropdown {
    display: none;
  }

  .nav-item.is-open:hover .nav-dropdown {
    display: grid;
  }

  .nav-dropdown a {
    text-align: left;
  }

  .site-nav .btn-nav {
    width: 100%;
    margin-top: 0.75rem;
  }

  .academics-link-grid {
    grid-template-columns: 1fr;
  }

  .course-meta {
    grid-template-columns: 1fr;
  }

  .curriculum-jump {
    grid-template-columns: 1fr 1fr;
  }

  .curriculum-jump a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .curriculum-year-head {
    flex-direction: column;
    align-items: start;
  }

  .curriculum-year-count {
    text-align: left;
  }

  .curriculum-course-head {
    flex-direction: column;
    gap: 0.75rem;
  }

  .schedule-jump {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-jump a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .console-layout,
  .manifesto-grid,
  .observatory-layout,
  .impact-layout,
  .voices,
  .faq-grid,
  .footer-grid,
  .split,
  .fgrf-about-layout,
  .fgrf-reach-layout,
  .fgrf-join-layout,
  .gallery,
  .subject-grid,
  .progress-layout,
  .campus-duo,
  .home-study-teaser,
  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .fgrf-awards-track li {
    flex-basis: calc((100% - 2rem) / 3);
  }

  .fgrf-dept-cards article {
    flex: 1 1 calc(50% - 1rem);
    max-width: none;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-lg {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
  }

  .bento-wide {
    grid-column: 1 / -1;
  }

  .expand-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius);
  }

  .expand-grid li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    justify-items: center;
    text-align: center;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0.55rem;
    padding: 1.4rem 1rem;
  }

  .expand-grid li:nth-child(2n) { border-right: 0; }
  .expand-grid li:nth-child(n+5) { border-bottom: 0; }

  .expand-icon {
    grid-row: auto;
  }

  .expand-grid strong,
  .expand-grid span:not(.expand-icon) {
    max-width: 18ch;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-line::before { display: none; }

  .process-line li {
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.85rem 1rem;
    align-items: start;
  }

  .process-line .step-num {
    margin: 0;
    grid-row: span 2;
  }

  .process-line h3,
  .process-line p {
    grid-column: 2;
  }

  .curriculum-grid {
    grid-template-columns: 1fr 1fr;
  }

  .manifesto-index { display: none; }
  .pathway-row { grid-template-columns: 2.5rem 1fr; }
  .pw-tag { display: none; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:first-child img { min-height: 240px; }
  .manifesto-media, .manifesto-media img { min-height: 280px; }
  .split-media img,
  .split-media.logo-panel { min-height: 260px; }

  .meter-phases {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding-bottom: 0.85rem;
  }

  .meter-phases li {
    grid-template-columns: 2rem 1fr;
    align-items: baseline;
    padding: 0.55rem 0 0.55rem 0.85rem;
    border-left: 2px solid var(--line);
  }

  .meter-phases li::before { display: none; }

  .meter-phases li::after {
    top: 0.75rem;
    left: -5px;
  }

  .meter-phases li.is-done,
  .meter-phases li.is-active {
    border-left-color: var(--jade);
  }

  .meter-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .meter-head {
    flex-wrap: wrap;
  }

  .console-section,
  .observatory-section {
    padding: 3.5rem 0;
  }

  .console-copy h2,
  .page-cta-band h2,
  .banner-cta h2 {
    max-width: none;
  }

  .zeffy-embed-wrap { min-height: 440px; }
  .zeffy-iframe-box { height: 460px; }
  .donate-card-form .zeffy-iframe-box { height: 440px; }

  .banner-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-cta .cta-row {
    width: 100%;
  }

  .mobile-donate { display: block; }
  body { padding-bottom: 4.5rem; }

  .scroll-top {
    bottom: calc(4.85rem + env(safe-area-inset-bottom));
  }
  .topbar-contact li:last-child { display: none; }

  .hero {
    min-height: min(92svh, 820px);
    padding-bottom: 4rem;
  }

  .hero-stage {
    padding-inline: 0.15rem;
  }

  .hero-brand {
    font-size: clamp(1.55rem, 8vw, 2.75rem);
  }

  .page-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .vision-bleed {
    min-height: min(62vh, 480px);
  }

  .vision-bleed-copy {
    padding: 3rem 0;
  }

  .vision-bleed-veil {
    background:
      linear-gradient(180deg, rgba(3,21,18,0.35) 0%, rgba(3,21,18,0.82) 100%);
  }
}

/* Phablet / large phone */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .topbar-inner {
    padding: 0.4rem 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .bento,
  .expand-grid,
  .dept-grid,
  .dept-grid-4,
  .pillar-list,
  .curriculum-grid,
  .subject-grid,
  .voices,
  .fgrf-grid,
  .fgrf-grid-2,
  .fgrf-grid-4,
  .fgrf-grid-5,
  .fgrf-checks,
  .fgrf-reach-pillars,
  .fgrf-env-stats,
  .fgrf-env-photos {
    grid-template-columns: 1fr;
  }

  .fgrf-env-photos img {
    height: 7rem;
  }

  .fgrf-sdg-grid {
    max-width: 28rem;
  }

  .fgrf-dept-cards article {
    flex-basis: 100%;
  }

  .fgrf-awards-track li {
    flex-basis: 78%;
  }

  .fgrf-reach-impact {
    padding: 2rem 1.25rem 1.75rem;
  }

  .fgrf-reach-environment {
    padding: 0;
  }

  .expand-grid li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    text-align: left;
    gap: 0.2rem 1rem;
    padding: 1.2rem 1.1rem;
  }

  .expand-grid li:nth-child(2n),
  .expand-grid li:nth-child(n+5) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .expand-grid li:last-child { border-bottom: 0; }

  .expand-icon {
    grid-row: span 2;
    align-self: center;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.35rem;
  }

  .expand-grid strong,
  .expand-grid span:not(.expand-icon) {
    max-width: none;
  }

  .bento-lg,
  .bento-wide,
  .voice-lead {
    grid-row: auto;
    grid-column: auto;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cta-row .btn,
  .banner-cta .btn,
  .page-cta-band .btn,
  .impact-tool .btn {
    width: 100%;
  }

  .hero-stage .cta-row {
    width: min(100%, 22rem);
  }

  .hero-stage .lede {
    font-size: 0.98rem;
  }

  .hero-orbit { opacity: 0.45; }

  .scroll-cue { display: none; }

  .marquee-track { gap: 1.75rem; }
  .marquee-track span { font-size: 0.7rem; letter-spacing: 0.14em; }
  .marquee-track span::after { margin-left: 1.75rem; }

  .console-meta {
    gap: 0.85rem;
  }

  .meter-head,
  .meter-gauge,
  .meter-phases,
  .meter-foot {
    padding-left: 1.25rem;
    padding-right: 1.15rem;
  }

  .impact-tool {
    padding: 1.75rem 1.15rem;
  }

  .impact-amount {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .impact-presets button {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .voices blockquote {
    padding: 1.35rem 1.15rem;
  }

  .voice-lead { min-height: 0; }

  .accordion summary {
    font-size: 0.98rem;
    padding-right: 1.75rem;
  }

  .campus-duo img {
    height: 220px;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .zeffy-embed-wrap { min-height: 400px; }
  .zeffy-iframe-box { height: 420px; }
  .donate-card { padding: 1.25rem 1rem 1.1rem; border-radius: 18px; }
  .donate-card-form { border-radius: 14px; min-height: 380px; }
  .donate-card-form .zeffy-iframe-box { height: 400px; }

  .form-stack { max-width: none; }

  .contact-panel {
    padding: 1.35rem 1.15rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.1rem);
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .schedule-jump {
    grid-template-columns: 1fr;
  }

  .schedule-jump a:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .curriculum-jump {
    grid-template-columns: 1fr;
  }

  .curriculum-jump a:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .curriculum-course {
    padding-left: 0.65rem;
  }

  .schedule-block.is-emphasis .schedule-block-body {
    padding: 0.85rem 0.9rem;
  }

  h2, .page-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 3.25rem;
  }

  .hero-brand {
    font-size: clamp(1.35rem, 9vw, 1.9rem);
    line-height: 1.12;
  }

  .hero-stage h1 {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    max-width: 22ch;
  }

  .hero-arabic {
    font-size: 1.05rem;
  }

  .arabic-inline {
    display: inline-block;
    white-space: normal;
  }

  .btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.82rem;
  }

  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .page-hero h1 {
    max-width: none;
  }

  .observatory-meter::before {
    width: 2px;
  }

  .meter-title {
    font-size: 1.02rem;
  }

  .banner-cta {
    padding: 2.5rem 0;
  }

  .banner-cta h2 {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 3rem 0 1.25rem;
  }

  .donate-modal-body {
    padding: 0 0.75rem 0.85rem;
  }

  .donate-modal-head {
    padding: 1.25rem 1.15rem 0.75rem;
    padding-right: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* 404 */
.error-page {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 40rem);
  display: grid;
  place-items: center;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(26, 122, 102, 0.14), transparent 55%),
    linear-gradient(180deg, #cfe6df 0%, var(--paper) 55%, #fff 100%);
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(10, 61, 52, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 61, 52, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
}

.error-page-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.error-page .eyebrow {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.error-code {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--forest);
  opacity: 0.14;
  user-select: none;
}

.error-page h1 {
  margin: -1.5rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
}

.error-page .lede {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
}

.error-page .cta-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.error-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.error-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.error-links a:hover {
  color: var(--forest);
  border-bottom-color: var(--jade);
}

body.page-404 .banner-cta {
  display: none;
}

/* FGRF Canada page */
.page-fgrf .page-hero h1 {
  max-width: 22ch;
}

.page-fgrf .page-hero .cta-row {
  justify-content: center;
  margin-top: 1.35rem;
}

.fgrf-about-section {
  padding-top: 3.5rem;
  background: #fff;
}

.fgrf-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.fgrf-campaign {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #d9c08a;
}

.fgrf-campaign a {
  display: block;
  color: inherit;
}

.fgrf-campaign img {
  width: 100%;
  height: auto;
  display: block;
}

.fgrf-about-copy h2 {
  margin: 0 0 0.65rem;
  color: var(--jade);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
}

.fgrf-about-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.fgrf-about-lead strong {
  color: var(--forest);
}

.fgrf-tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.fgrf-tablist button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  border-radius: 999px 999px 0 0;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
}

.fgrf-tablist button.is-active {
  background: var(--jade);
  color: #fff;
  border-bottom-color: var(--jade);
}

.fgrf-tablist button:hover:not(.is-active) {
  color: var(--forest);
  border-bottom-color: var(--jade);
}

.fgrf-tablist button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.fgrf-tabpanel {
  min-height: 7.5rem;
}

.fgrf-tabpanel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.fgrf-tabpanel p:last-child {
  margin-bottom: 0;
}

.fgrf-checks {
  list-style: none;
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.25rem;
}

.fgrf-checks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.fgrf-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--jade);
}

.fgrf-checks li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.42rem;
  width: 0.48rem;
  height: 0.28rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.fgrf-about-donate {
  border-radius: 999px;
  min-width: 10.5rem;
}

.fgrf-reach-section {
  padding: 0;
  width: 100%;
}

.fgrf-reach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.fgrf-reach-impact {
  position: relative;
  overflow: hidden;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem) 2.75rem;
  color: #fff;
  background: linear-gradient(160deg, #0c3d82 0%, #0a2f68 55%, #08285a 100%);
}

.fgrf-reach-map {
  position: absolute;
  inset: 8% -6% auto auto;
  width: 86%;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.fgrf-reach-map svg {
  width: 100%;
  height: auto;
}

.fgrf-reach-impact h2,
.fgrf-reach-impact p,
.fgrf-reach-pillars {
  position: relative;
  z-index: 1;
}

.fgrf-reach-impact h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.fgrf-reach-impact > p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  max-width: none;
}

.fgrf-reach-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-top: 1.6rem;
}

.fgrf-reach-pillars article {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.fgrf-reach-pillars span {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7ec8e3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.fgrf-reach-pillars h3 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 0.98rem;
}

.fgrf-reach-pillars p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.5;
}

.fgrf-reach-environment {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.fgrf-reach-environment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 980px) {
  .fgrf-reach-layout {
    grid-template-columns: 1fr;
  }

  .fgrf-reach-environment img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.fgrf-env-copy {
  position: relative;
  z-index: 1;
  max-width: none;
}

.fgrf-reach-environment h2 {
  margin: 0 0 0.9rem;
  color: #1d4f9c;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fgrf-reach-environment h2 span {
  display: block;
}

.fgrf-env-copy p {
  margin: 0 0 0.75rem;
  color: #4a5b73;
  font-size: 0.92rem;
}

.fgrf-env-slogan-label {
  margin-bottom: 0.15rem !important;
  font-weight: 600;
}

.fgrf-env-slogan {
  margin: 0 0 0.85rem !important;
  color: #1aa3b5 !important;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.fgrf-env-stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  margin: 1.1rem 0 1rem;
  overflow: hidden;
}

.fgrf-env-stats div {
  padding: 0.85rem 1rem;
  color: #fff;
  background: #17a2b8;
}

.fgrf-env-stats div:last-child {
  background: #128fa3;
}

.fgrf-env-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
}

.fgrf-env-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fgrf-env-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.fgrf-env-photos img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
}

.fgrf-join-section {
  background: #fff;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.fgrf-join-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.fgrf-sdg-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.fgrf-sdg-grid li {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.28rem 0.35rem;
  color: #fff;
  text-align: center;
  background: var(--sdg, #1a7a66);
}

.fgrf-sdg-grid i {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.fgrf-sdg-grid span {
  font-size: clamp(0.46rem, 0.78vw, 0.58rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.fgrf-join-copy h2 {
  margin: 0 0 1rem;
  color: #1aa3b5;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.15;
}

.fgrf-join-copy h2 span {
  color: #1aa3b5;
}

.fgrf-join-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.fgrf-join-copy p strong {
  color: var(--ink);
}

.fgrf-join-donate {
  display: inline-flex;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #1aa3b5;
  color: #fff;
  padding: 0.7rem 1.5rem;
}

.fgrf-join-donate:hover {
  background: #128fa3;
  color: #fff;
}

.fgrf-dept-section {
  background: #f4f7fb;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.fgrf-dept-heading {
  margin: 0 0 2rem;
  text-align: center;
  color: #1aa3b5;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.fgrf-dept-heading span {
  color: #1aa3b5;
}

.fgrf-dept-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.35rem;
}

.fgrf-dept-cards article {
  flex: 0 1 calc(25% - 1.05rem);
  max-width: 270px;
  min-width: 220px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(12, 47, 84, 0.08);
  padding: 0.7rem 0.7rem 1.25rem;
  text-align: center;
}

.fgrf-dept-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #0b3a6e;
}

.fgrf-dept-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fgrf-dept-cards h3 {
  margin: 0.95rem 0 0.4rem;
  color: #0b3a6e;
  font-size: 1.02rem;
}

.fgrf-dept-cards p {
  margin: 0;
  color: #5b6b7c;
  font-size: 0.86rem;
  line-height: 1.5;
}

.fgrf-meals-banner {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 0;
  text-align: center;
  background: #0d5a86;
}

.fgrf-meals-map {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.fgrf-meals-map svg {
  width: 100%;
  height: 100%;
}

.fgrf-meals-banner h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.35;
  max-width: 28ch;
  margin-inline: auto;
}

.fgrf-meals-banner h2 span {
  color: #5ec8d8;
}

.fgrf-awards-section {
  background: #fff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.fgrf-awards-heading {
  margin: 0 0 1.75rem;
  text-align: center;
  color: #0d5a86;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.fgrf-awards-heading span {
  color: #1aa3b5;
}

.fgrf-awards-carousel {
  display: block;
}

.fgrf-awards-viewport {
  overflow: hidden;
}

.fgrf-awards-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.fgrf-awards-track li {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 0;
}

.fgrf-awards-track img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #eef3f6;
  box-shadow: 0 10px 24px rgba(13, 90, 134, 0.12);
}

.fgrf-awards-carousel.is-expanded {
  grid-template-columns: 1fr;
}

.fgrf-awards-carousel.is-expanded .fgrf-awards-viewport {
  overflow: visible;
}

.fgrf-awards-carousel.is-expanded .fgrf-awards-track {
  flex-wrap: wrap;
  justify-content: center;
}

.fgrf-awards-carousel.is-expanded .fgrf-awards-track li {
  flex: 0 1 10.5rem;
}

.fgrf-awards-more-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.fgrf-awards-more {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #0d5a86;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
}

.fgrf-awards-more:hover {
  background: #1aa3b5;
}

.fgrf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fgrf-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.fgrf-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.fgrf-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.fgrf-depts article:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .fgrf-depts article:last-child {
    grid-column: auto;
  }
}

.fgrf-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.fgrf-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--jade);
  background: var(--mist);
  font-size: 1.05rem;
}

.fgrf-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--forest);
}

.fgrf-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-fgrf .split .console-meta {
  margin-top: 1.35rem;
}
