:root {
  --ivory: #fbf9f5;
  --paper: #f4f0e8;
  --sand: #e7dfd0;
  --gold: #bd8e5b;
  --gold-dark: #9e7043;
  --plum: #53384f;
  --ink: #2d2926;
  --muted: #726960;
  --line: rgba(83, 56, 79, 0.16);
  --title: "Alexandria", "Tahoma", sans-serif;
  --body: "Noto Naskh Arabic", "Tahoma", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 1.15rem; line-height: 1.85; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding: 7rem 0; }
.section-pattern { position: relative; isolation: isolate; overflow: hidden; }
.section-pattern::after, .section-pattern::before { content: ""; position: absolute; z-index: -1; width: 20rem; aspect-ratio: 1; opacity: .56; background: conic-gradient(from 45deg, transparent 0 10%, var(--sand) 10% 12%, transparent 12% 23%, var(--sand) 23% 25%, transparent 25% 35%, var(--sand) 35% 37%, transparent 37% 48%, var(--sand) 48% 50%, transparent 50% 60%, var(--sand) 60% 62%, transparent 62% 73%, var(--sand) 73% 75%, transparent 75% 85%, var(--sand) 85% 87%, transparent 87%) center / 100% 100%; -webkit-mask: radial-gradient(circle, transparent 0 25%, #000 26% 28%, transparent 29% 38%, #000 39% 41%, transparent 42% 51%, #000 52% 54%, transparent 55% 64%, #000 65% 67%, transparent 68%); mask: radial-gradient(circle, transparent 0 25%, #000 26% 28%, transparent 29% 38%, #000 39% 41%, transparent 42% 51%, #000 52% 54%, transparent 55% 64%, #000 65% 67%, transparent 68%); }
.section-pattern::before { inset: -7rem auto auto -8rem; }
.section-pattern::after { inset: auto -8rem -7rem auto; transform: rotate(22deg); }
.skip-link { position: fixed; z-index: 100; top: -5rem; right: 1rem; padding: .45rem 1rem; border-radius: .5rem; color: #fff; background: var(--plum); transition: top .2s; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; padding: 1.35rem 0; transition: background .25s, box-shadow .25s, padding .25s; }
.site-header.is-stuck { position: fixed; padding: .75rem 0; background: rgba(251, 249, 245, .94); box-shadow: 0 1px 0 rgba(45, 41, 38, .07); backdrop-filter: blur(12px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; color: var(--plum); font-family: var(--title); line-height: 1.1; }
.brand strong { display: block; font-size: 1.28rem; font-weight: 800; letter-spacing: -.07em; }
.brand small { display: block; margin-top: .33rem; padding-top: .31rem; border-top: 1px solid var(--gold); color: var(--muted); font: .57rem var(--title); letter-spacing: .015em; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; color: var(--muted); font: 500 .78rem var(--title); }
.site-nav a { position: relative; padding: .35rem 0; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .2s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { color: var(--plum); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.active::after { width: 100%; }
.site-nav .nav-cta { padding: .63rem 1rem; border: 1px solid var(--gold); border-radius: .2rem; color: var(--gold-dark); }
.site-nav .nav-cta:hover { background: var(--gold); color: #fff; }
.menu-button { display: none; border: 0; background: none; cursor: pointer; }

.hero { min-height: min(770px, 100svh); display: grid; align-items: center; padding: 8rem 0 5.5rem; background: radial-gradient(circle at 50% 37%, #fff 0 13%, rgba(255,255,255,.6) 30%, transparent 55%), var(--ivory); }
.hero::before { left: -12rem; top: 2rem; opacity: .42; }
.hero::after { right: -12rem; bottom: 4rem; opacity: .42; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
.hero-copy { padding-top: 2rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--gold-dark); font: 600 .75rem var(--title); letter-spacing: .04em; }
.hero h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 1rem; color: var(--plum); font: 800 clamp(3.4rem, 7.2vw, 6rem)/1.2 var(--title); letter-spacing: -.09em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.endowment-name { max-width: 34rem; margin: -.2rem 0 1.25rem; color: var(--plum); font: 600 clamp(.82rem, 1.35vw, 1rem)/2 var(--title); }
.endowment-name span { color: var(--gold-dark); white-space: nowrap; }
.hero-lede { max-width: 35rem; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3.15rem; padding: .7rem 1.3rem; border-radius: .18rem; font: 600 .82rem var(--title); transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--plum); box-shadow: 0 .65rem 1.3rem rgba(83, 56, 79, .18); }
.button-primary:hover { background: #3f293d; }
.button-text { color: var(--gold-dark); border-bottom: 1px solid currentColor; border-radius: 0; padding-inline: .1rem; }
.button-text:hover { color: var(--plum); }
.hero-art { position: relative; width: min(100%, 30rem); height: 31rem; margin-inline: auto; }
.arch { position: absolute; right: 50%; bottom: 1.3rem; transform: translateX(50%); width: 95%; height: 84%; border: .85rem solid rgba(255,255,255,.95); border-bottom: 0; border-radius: 15rem 15rem 0 0; box-shadow: 0 0 0 .07rem rgba(231, 223, 208, .75), 0 -1rem 2.4rem rgba(189, 142, 91, .11); }
.arch-back { width: 76%; height: 94%; opacity: .78; }
.arch-front { border-radius: 12rem 12rem 0 0; }
.halo { position: absolute; z-index: -1; right: 50%; top: 18%; width: 17rem; height: 17rem; transform: translateX(50%); border-radius: 50%; background: radial-gradient(circle, rgba(246,226,196,.75), rgba(246,226,196,0) 70%); }
.kaaba-image { position: absolute; z-index: 2; top: 25%; right: 50%; width: clamp(11rem, 26vw, 14.8rem); height: auto; transform: translateX(50%) scaleY(.8); transform-origin: top center; filter: drop-shadow(0 1rem .85rem rgba(45,41,38,.18)); }
.hero-stars { position: absolute; inset: 0; z-index: -1; opacity: .75; background-image: radial-gradient(circle, var(--plum) 1px, transparent 1.5px), radial-gradient(circle, var(--gold) .7px, transparent 1.1px); background-size: 8.5rem 7rem, 11rem 9rem; background-position: 1rem 2rem, 5.2rem 4rem; }
.mosque-line { position: absolute; z-index: -1; inset: auto 0 0; height: 4.25rem; opacity: .65; background: radial-gradient(ellipse at 5% 105%, var(--sand) 0 1.7rem, transparent 1.75rem), radial-gradient(ellipse at 14% 105%, var(--sand) 0 2.1rem, transparent 2.15rem), radial-gradient(ellipse at 25% 105%, var(--sand) 0 1.35rem, transparent 1.4rem), radial-gradient(ellipse at 33% 105%, var(--sand) 0 2.7rem, transparent 2.75rem), radial-gradient(ellipse at 51% 105%, var(--sand) 0 1.7rem, transparent 1.75rem), radial-gradient(ellipse at 63% 105%, var(--sand) 0 2.6rem, transparent 2.65rem), radial-gradient(ellipse at 72% 105%, var(--sand) 0 1.5rem, transparent 1.55rem), radial-gradient(ellipse at 89% 105%, var(--sand) 0 2rem, transparent 2.05rem); }
.scroll-cue { position: absolute; bottom: 1.2rem; right: 50%; width: 1.7rem; height: 2.65rem; transform: translateX(50%); border: 1px solid rgba(83,56,79,.28); border-radius: 2rem; }
.scroll-cue span { display: block; width: .26rem; height: .55rem; margin: .45rem auto; border-radius: 1rem; background: var(--gold); animation: scroll 2s infinite; }
@keyframes scroll { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(.8rem); opacity: 0; } }

.intro { background: #fff; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8rem; align-items: start; }
.section-title h2, .section-head h2, .initiative-copy h2, .join h2 { margin-bottom: 0; color: var(--plum); font: 700 clamp(2rem, 4.1vw, 3.35rem)/1.45 var(--title); letter-spacing: -.06em; }
h2 span, .section-title h2 span { color: var(--gold); }
.intro-copy { position: relative; padding: .1rem 2.1rem 0 0; color: var(--muted); font-size: 1.32rem; }
.intro-copy::before { content: ""; position: absolute; right: 0; top: .65rem; width: .22rem; height: 5.5rem; background: var(--gold); }
.intro-copy p + p { margin-bottom: 0; }

.vision-mission { padding: 7rem 0; background: var(--paper); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card { position: relative; min-height: 25rem; padding: 3.1rem; overflow: hidden; }
.vm-card h2 { margin-bottom: 1.25rem; font: 700 clamp(2rem, 3vw, 2.8rem)/1.5 var(--title); letter-spacing: -.06em; }
.vm-card > p:last-child { margin-bottom: 0; max-width: 29rem; }
.vision { color: var(--plum); background: #fff; }
.vision::after, .mission::after { content: ""; position: absolute; width: 11rem; height: 11rem; border: 1.4rem solid rgba(189,142,91,.16); border-radius: 50%; left: -3.2rem; bottom: -3.6rem; }
.mission { color: #fff; background: var(--plum); }
.mission .eyebrow { color: #e2be91; }
.mission::after { border-color: rgba(255,255,255,.12); left: auto; right: -3.2rem; top: -3.6rem; bottom: auto; }
.card-index { position: absolute; left: 2.4rem; top: 2.1rem; color: var(--gold); font: 700 .8rem var(--title); }
.mission .card-index { color: #e2be91; }

.structure { background: #fff; }
.section-head { margin-bottom: 3.4rem; }
.section-head.centered { text-align: center; }
.section-head.centered h2 { max-width: 40rem; margin-inline: auto; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.section-head.split > p { max-width: 25rem; margin: 0; color: var(--muted); font-size: 1.16rem; }
.structure-diagram { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; max-width: 54rem; margin: 0 auto; }
.structure-node { padding: 2.2rem 1rem; border: 1px solid var(--line); text-align: center; background: var(--ivory); box-shadow: 0 .6rem 1.5rem rgba(83,56,79,.06); }
.structure-node strong { display: block; color: var(--plum); font: 700 1.22rem var(--title); }
.node-kicker { display: block; margin-bottom: .45rem; color: var(--gold-dark); font: .7rem var(--title); }
.structure-link { position: relative; height: 1px; background: var(--gold); }
.structure-link::before, .structure-link::after { content: ""; position: absolute; top: 50%; width: .75rem; height: .75rem; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.structure-link::before { right: 0; transform: translateY(-50%) rotate(45deg); }
.structure-link::after { left: 0; transform: translateY(-50%) rotate(-135deg); }
.structure-link span { position: absolute; right: 50%; bottom: .8rem; width: max-content; transform: translateX(50%); color: var(--muted); font-size: .94rem; }
.structure-note { margin: 2.25rem auto 0; max-width: 39rem; color: var(--muted); text-align: center; }

.pillars { background: var(--paper); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.pillar { min-height: 15rem; padding: 2.25rem 2rem; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.2); transition: background .2s, transform .2s; }
.pillar:hover { z-index: 1; background: #fff; transform: translateY(-.3rem); box-shadow: 0 .75rem 1.7rem rgba(83,56,79,.08); }
.pillar > span { display: inline-block; margin-bottom: 1.25rem; color: var(--gold); font: 700 .75rem var(--title); }
.pillar h3 { margin-bottom: .7rem; color: var(--plum); font: 700 1.18rem var(--title); }
.pillar p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.plan { padding: 7rem 0; background: #fff; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; max-width: 74rem; margin: 0; padding: 1rem 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 3.2rem; right: 4.8rem; left: 4.8rem; height: 1px; background: var(--line); }
.timeline li { position: relative; }
.timeline-number { display: grid; place-items: center; position: relative; z-index: 1; width: 4.4rem; height: 4.4rem; margin-bottom: 1.7rem; border: .5rem solid #fff; border-radius: 50%; color: #fff; background: var(--gold); font: 700 1rem var(--title); box-shadow: 0 0 0 1px rgba(189,142,91,.18); }
.timeline li:nth-child(2) .timeline-number { background: #ad7e57; }
.timeline li:nth-child(3) .timeline-number { background: #58534c; }
.timeline li:nth-child(4) .timeline-number { background: var(--plum); }
.timeline li:nth-child(5) .timeline-number { color: var(--gold-dark); background: var(--sand); }
.timeline h3 { min-height: 4rem; margin-bottom: .8rem; color: var(--plum); font: 700 1.06rem/1.8 var(--title); }
.timeline p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }

.initiatives { background: var(--paper); }
.initiatives-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8rem; align-items: center; }
.initiative-copy > p:last-child { max-width: 25rem; margin: 1.3rem 0 0; color: var(--muted); font-size: 1.25rem; }
.initiative-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.initiative-list li { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem .5rem; border-bottom: 1px solid var(--line); color: var(--plum); font: 600 clamp(1.1rem, 2vw, 1.38rem) var(--title); transition: color .2s, padding .2s; }
.initiative-list li:hover { padding-right: 1rem; color: var(--gold-dark); }
.initiative-icon { color: var(--gold); font-size: 1.4rem; }
.interest-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 1.35rem; padding: 1.45rem 1.6rem; border-right: .22rem solid var(--gold); background: #fff; box-shadow: 0 .75rem 1.4rem rgba(83,56,79,.06); }
.interest-cta p { margin: 0 0 .25rem; color: var(--gold-dark); font: 600 .7rem var(--title); }
.interest-cta strong { color: var(--plum); font: 700 1.1rem var(--title); }

.site-footer { padding: 2.1rem 0; color: var(--muted); background: #f0ebe1; }
.site-footer .brand strong { font-size: 1rem; }
.site-footer p { margin: 0; font-size: .92rem; }
.to-top { color: var(--gold-dark); font: 600 .72rem var(--title); }

.reveal { opacity: 0; transform: translateY(1.3rem); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { padding: 1rem 0; }
  .menu-button { display: grid; place-content: center; gap: .28rem; width: 2.8rem; height: 2.8rem; color: var(--plum); }
  .menu-button i { display: block; width: 1.3rem; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] i:nth-child(1) { transform: translateY(.38rem) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] i:nth-child(3) { transform: translateY(-.38rem) rotate(-45deg); }
  .site-nav { position: fixed; inset: 4.7rem 1rem auto; display: grid; gap: .15rem; padding: 1.1rem; border: 1px solid rgba(83,56,79,.12); background: rgba(251,249,245,.98); box-shadow: 0 1rem 2rem rgba(45,41,38,.1); transform: translateY(-1rem); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: .6rem; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-top: 8rem; }
  .hero-grid, .intro-grid, .initiatives-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { text-align: center; padding-top: 0; }
  .endowment-name, .hero-lede, .hero-actions { margin-inline: auto; justify-content: center; }
  .hero-art { height: 27rem; width: min(100%, 27rem); }
  .intro-copy { padding-right: 1.6rem; }
  .section-head.split { align-items: start; flex-direction: column; gap: 1.1rem; }
  .section-head.split > p { max-width: 37rem; }
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; padding-right: 0; }
  .timeline::before { right: 2.15rem; left: auto; top: 2.6rem; bottom: 2.6rem; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.2rem; }
  .timeline-number { margin: 0; }
  .timeline h3 { min-height: 0; margin-bottom: .45rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .container { width: min(100% - 2rem, 1120px); }
  .section { padding: 5rem 0; }
  .hero { padding-bottom: 5rem; }
  .hero h1 { font-size: 3.3rem; }
  .hero-art { height: 22rem; transform: scale(.86); margin-top: -1.8rem; margin-bottom: -1.8rem; }
  .scroll-cue { display: none; }
  .vm-grid, .pillars-grid { grid-template-columns: 1fr; }
  .vm-card { min-height: 21rem; padding: 2.3rem 1.8rem; }
  .structure-diagram { grid-template-columns: 1fr; gap: 1.5rem; }
  .structure-link { width: 1px; height: 2.6rem; margin: -1.5rem auto; }
  .structure-link::before, .structure-link::after { right: 50%; }
  .structure-link::before { top: 100%; transform: translateX(50%) rotate(135deg); }
  .structure-link::after { top: 0; transform: translateX(50%) rotate(-45deg); }
  .structure-link span { right: auto; left: .8rem; bottom: 50%; transform: translateY(50%); font-size: .8rem; }
  .pillar { min-height: auto; padding: 1.8rem; }
  .initiative-copy h2, .section-title h2, .section-head h2 { font-size: 2rem; }
  .interest-cta { align-items: flex-start; flex-direction: column; padding: 1.25rem; }
  .interest-cta .button { width: 100%; }
  .site-footer .footer-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .site-footer p { grid-column: 1 / -1; order: 3; }
  .to-top { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
