:root {
  --maroon: #6e1423;
  --maroon-deep: #4a0d18;
  --gold: #c39a3a;
  --gold-soft: #e8d29a;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --sand: #f1e8d8;
  --ink: #23191a;
  --muted: #6d5f5c;
  --line: #e6dccb;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(74, 13, 24, 0.45);
  --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="ar"] {
  --font-display: "Amiri", "Cormorant Garamond", serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--maroon-deep); }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.6rem; }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: .25em; color: var(--ink); }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--maroon); background: linear-gradient(transparent 62%, var(--gold-soft) 62%); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--maroon-deep); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--maroon-deep); }
.brand-tag { font-size: .74rem; color: var(--muted); }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-size: .95rem; color: var(--ink); opacity: .8; }
.main-nav a:hover { opacity: 1; color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--maroon); padding: 6px 10px; border-radius: 8px; }
.lang:hover { background: var(--sand); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 25%, rgba(195,154,58,.14), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-media { position: relative; padding-bottom: 40px; padding-inline-start: 40px; }
.hero-main { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 3 / 2; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-main figcaption {
  position: absolute; inset-inline-start: 16px; top: 16px; background: rgba(255,253,248,.94);
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--maroon-deep);
}
.hero-inset { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; border: 5px solid var(--paper); box-shadow: var(--shadow); }
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-inset { width: 34%; aspect-ratio: 4 / 3; inset-inline-start: 0; bottom: 0; }
.hero-inset.two { width: 24%; aspect-ratio: 1; inset-inline-start: auto; inset-inline-end: -14px; top: -22px; bottom: auto; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat { padding: 26px 20px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-value { font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--muted); }

/* Partners */
.partners { padding: 48px 0 8px; text-align: center; }
.partners-title { color: var(--muted); font-size: .95rem; }
.partners-title strong { color: var(--maroon-deep); font-weight: 600; }
.partner-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.partner-list li {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--maroon-deep);
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-portrait { margin: 0; position: relative; }
.about-portrait img { border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); border: 6px solid var(--paper); outline: 1.5px solid var(--gold); outline-offset: 6px; }
.about-portrait figcaption { margin-top: 22px; text-align: center; display: flex; flex-direction: column; color: var(--muted); font-size: .92rem; }
.about-portrait figcaption strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--maroon-deep); }
.verse { font-family: "Amiri", serif; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--maroon); margin: 0; line-height: 1.6; }
.verse-note { color: var(--muted); font-size: .85rem; margin-bottom: 1.6em; }
.checks { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }

.divider { display: flex; justify-content: center; align-items: center; gap: 16px; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(260px, 30vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.star { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.5; }

/* Programs */
.program-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.program-col { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 28px; }
.program-col figure { margin: 0 0 24px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.program-col figure img { width: 100%; height: 100%; object-fit: cover; }
.program-col > h3, .program-col > ul, .program-col > p { margin-inline: 12px; }
.program-col ul { list-style: none; padding: 0; display: grid; gap: 18px; }
.program { padding-inline-start: 18px; border-inline-start: 2px solid var(--gold-soft); }
.program p { margin: 0; color: var(--muted); font-size: .96rem; }
.program-col.org { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.program-col.org h3, .program-col.org h4 { color: #fff; }
.program-col.org .program p { color: rgba(255,255,255,.72); }
.program-col.org .program { border-color: var(--gold); }
.group-note { margin-top: 22px; padding: 12px 16px; border-radius: 10px; background: rgba(195,154,58,.18); color: var(--gold-soft); font-size: .92rem; }
.programs .center { margin-top: 40px; }
.programs .center .btn { margin-inline: auto; }

/* Journey */
.journey { background: var(--sand); }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.milestone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.milestone.flip .milestone-img { order: 2; }
.milestone-img { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.milestone-img img { width: 100%; height: 100%; object-fit: cover; }
.milestone-meta { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); margin-bottom: .6em; }
.milestone-meta .year { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.milestone-meta .place { display: inline-flex; align-items: center; gap: 6px; }
.milestone-meta svg { width: 16px; height: 16px; color: var(--maroon); }
.milestone-body p:last-child { color: var(--muted); }

/* Voices */
.voices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)) 1fr; gap: 24px; align-items: start; }
.video-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #111; }
.video-card figcaption { padding: 12px 6px 4px; font-size: .92rem; color: var(--muted); }
.voice-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.voice-photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.voice-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.quote p { font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon-deep); }
.quote footer { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.quote footer strong { color: var(--ink); }

/* Gallery */
.gallery { padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .92rem; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.tiles { columns: 4 240px; column-gap: 14px; }
.tile { display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--sand); }
.tile img { width: 100%; height: auto; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile[hidden] { display: none; }

/* Contact */
.contact { padding-top: 0; }
.contact-card {
  position: relative; overflow: hidden; background: var(--maroon); color: #fff; border-radius: 28px;
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background-image: radial-gradient(circle at 85% 40%, rgba(195,154,58,.28), transparent 55%);
}
.contact-card h2 { color: #fff; }
.contact-card > div > p { color: rgba(255,255,255,.82); max-width: 32em; }
.contact-card .eyebrow { color: var(--gold-soft); }
.contact-meta { margin-top: 1.6em; font-size: .9rem; color: rgba(255,255,255,.65) !important; }
.contact-emblem { width: min(260px, 100%); justify-self: center; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 8, 10, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: rgba(255,255,255,.8); text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 20px; top: 50%; translate: 0 -50%; }
html[dir="rtl"] .lb-prev, html[dir="rtl"] .lb-next { transform: scaleX(-1); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .main-nav {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); opacity: 1; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .voices-grid { grid-template-columns: 1fr 1fr; }
  .voice-photos { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .voice-photo:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .program-cols, .milestone, .contact-card { grid-template-columns: 1fr; }
  .milestone.flip .milestone-img { order: 0; }
  .hero-media { padding-inline-start: 0; padding-bottom: 28px; }
  .hero-inset { width: 38%; }
  .hero-inset.two { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-portrait { max-width: 380px; margin-inline: auto; }
  .contact-emblem { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-tag, .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 10px; }
  .checks { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .video-card { max-width: 340px; margin-inline: auto; width: 100%; }
  .voice-photos { grid-template-columns: 1fr 1fr; }
  .voice-photo:first-child { grid-column: 1 / -1; }
  .tiles { columns: 2 140px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
