/* =====================================================================
   EMSA-BUC — Official website stylesheet (one file for the whole site)
   ---------------------------------------------------------------------
   1. Design tokens        6. Header & mobile menu   11. Activities & events
   2. Base                 7. Footer                 12. About components
   3. Layout helpers       8. Heroes                 13. Gallery & lightbox
   4. Type components      9. Cards & bento          14. Motion
   5. Buttons & links     10. Home sections          15. Utilities
   Concept: deep EMSA Green stages, photos that break out of a thin gold
   "box", rounded photo cards, bold sentence-case headlines.
   ===================================================================== */

/* ---------- 1. Design tokens ---------------------------------------- */
:root {
  /* Brand palette (design system) */
  --emsa-green: #0F4C3A;          /* primary: navigation, buttons, major elements */
  --emsa-green-700: #0A3629;      /* button hover */
  --emsa-green-900: #072A20;      /* deep stages: heroes, footer */
  --emsa-green-950: #041A13;
  --emsa-green-500: #2F6B58;
  --emsa-green-300: #8DB5A6;
  --emsa-green-100: #D6E6DF;
  --emsa-green-50:  #EAF2EE;      /* mint wash for alternating sections */

  --structural-silver: #8D9396;   /* borders, dividers, inactive UI. Not for text */
  --structural-silver-100: #E4E7E8;
  --structural-silver-300: #C5CACC;
  --structural-silver-700: #5B6265;  /* secondary text on light (AA) */

  --event-gold: #E5B82A;          /* accent. As TEXT only on green backgrounds */
  --event-gold-300: #F0D37A;
  --event-gold-100: #FBF1D3;      /* background tint only */

  --campus-grey: #F0F2F1;         /* page background */
  --white: #FFFFFF;
  --ink: #10201A;                 /* body text, green-biased near-black */

  /* Roles */
  --bg: var(--campus-grey);
  --text: var(--ink);
  --text-muted: var(--structural-silver-700);
  --line: var(--structural-silver-100);
  --focus: var(--emsa-green);

  /* Type */
  --font-display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem);
  --fs-h1: clamp(2.35rem, 1.45rem + 3.4vw, 4.1rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .55vw, 1.45rem);
  --fs-lede: clamp(1.075rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --track-tight: -0.03em;
  --track-label: .12em;
  --lh-body: 1.65;

  /* Space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(4rem, 2.6rem + 5.4vw, 7.5rem);
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --container: 76rem;           /* 1216px */

  /* Shape, depth, motion */
  --r-btn: 4px;                 /* buttons: geometric, like the cube logo */
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(7,42,32,.06), 0 6px 20px rgba(7,42,32,.06);
  --shadow-2: 0 2px 8px rgba(7,42,32,.08), 0 22px 48px rgba(7,42,32,.14);
  --shadow-3: 0 30px 80px rgba(4,26,19,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 260ms;
  --header-h: 72px;
  color-scheme: light;
}

:root[lang="ar"] {
  --font-display: "Cairo", "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Cairo", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  --track-tight: 0; --track-label: 0; --lh-body: 1.85;
}

/* ---------- 2. Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--emsa-green-900); }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--structural-silver-100); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--event-gold); color: var(--emsa-green-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark { --focus: var(--event-gold); }

.skip-link { position: absolute; inset-inline-start: 16px; top: -120px; z-index: 100; background: var(--event-gold); color: var(--emsa-green-900); font-weight: 700; padding: 12px 16px; border-radius: var(--r-btn); text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- 3. Layout helpers ----------------------------------------- */
.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--mint { background: var(--emsa-green-50); }
.section--dark { background: var(--emsa-green-900); color: var(--white); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--s-5); }
.stack-sm > * + * { margin-top: var(--s-3); }
.grid-2 { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; } }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }

/* stage glow used on dark sections */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(47,107,88,.55), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(229,184,42,.10), transparent 60%);
}

/* ---------- 4. Type components ---------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .55em; padding: .42em .85em; border-radius: 999px;
  background: var(--emsa-green-50); color: var(--emsa-green);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
}
.chip::before { content: ""; width: .5em; height: .5em; background: var(--event-gold); transform: rotate(45deg); flex: none; }
.dark .chip { background: rgba(255,255,255,.08); color: var(--emsa-green-100); border: 1px solid rgba(255,255,255,.14); }
:root[lang="ar"] .chip { letter-spacing: 0; font-size: .875rem; }

.h-hero { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.04em; text-transform: uppercase; }
.h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.04; letter-spacing: var(--track-tight); }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.08; letter-spacing: var(--track-tight); }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
:root[lang="ar"] .h-hero { letter-spacing: 0; line-height: 1.25; }
:root[lang="ar"] .h1, :root[lang="ar"] .h2 { line-height: 1.35; }
.accent { color: var(--emsa-green); }
.dark .accent, .gold { color: var(--event-gold); }
.lede { font-size: var(--fs-lede); line-height: 1.6; max-width: 40em; }
.muted { color: var(--text-muted); }
.dark .muted { color: var(--emsa-green-100); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }

.section-head { display: grid; gap: var(--s-4); justify-items: start; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: var(--s-8); } }

/* Statement block: key phrase in solid EMSA Green bars (design system) */
.statement { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, .9rem + 3.4vw, 3.9rem); line-height: 1.34; letter-spacing: -0.02em; }
.statement span { background: var(--emsa-green); color: var(--white); padding: .04em .32em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.statement span.is-gold { background: var(--event-gold); color: var(--emsa-green-900); }
:root[lang="ar"] .statement { letter-spacing: 0; line-height: 1.8; }

/* ---------- 5. Buttons & links ---------------------------------------- */
.btn {
  --bg: var(--emsa-green); --fg: var(--white); --bd: var(--emsa-green);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: .8rem 1.4rem;
  border-radius: var(--r-btn); border: 2px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 800; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
:root[lang="ar"] .btn { letter-spacing: 0; font-size: 1rem; }
.btn:hover { --bg: var(--emsa-green-700); --bd: var(--emsa-green-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,42,32,.18); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--event-gold); --fg: var(--emsa-green-900); --bd: var(--event-gold); }
.btn--gold:hover { --bg: var(--event-gold-300); --bd: var(--event-gold-300); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.45); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--emsa-green); --bd: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--emsa-green); --bd: var(--emsa-green); }
.btn--outline:hover { --bg: var(--emsa-green); --fg: var(--white); }
.btn--soft { --bg: var(--emsa-green-50); --fg: var(--emsa-green); --bd: var(--emsa-green-50); }
.btn--soft:hover { --bg: var(--emsa-green-100); --fg: var(--emsa-green); --bd: var(--emsa-green-100); }
.btn[aria-disabled="true"] { --bg: var(--structural-silver-100); --fg: var(--structural-silver-700); --bd: var(--structural-silver-100); cursor: default; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-arrow { transition: transform var(--dur) var(--ease); }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }
a:hover > .ico-arrow, button:hover > .ico-arrow { transform: translateX(3px); }
[dir="rtl"] a:hover > .ico-arrow, [dir="rtl"] button:hover > .ico-arrow { transform: scaleX(-1) translateX(3px); }

.link { display: inline-flex; align-items: center; gap: .5em; color: var(--emsa-green); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; padding-block: .3em; border-bottom: 2px solid var(--emsa-green-100); transition: border-color var(--dur) var(--ease); }
.link:hover { border-color: var(--emsa-green); }
.dark .link { color: var(--event-gold); border-color: rgba(229,184,42,.35); }
.dark .link:hover { border-color: var(--event-gold); }

/* ---------- 6. Header & mobile menu ----------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: 0;
}
.site-header__bar {
  position: absolute; inset-inline: 0; top: 12px;
}
.nav-shell {
  display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); padding-inline: 14px 10px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(4,26,19,.14);
  transition: height var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
[dir="rtl"] .nav-shell { padding-inline: 14px 10px; }
@supports (backdrop-filter: blur(10px)) { .nav-shell { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(14px); } }
.site-header.is-condensed .nav-shell { height: 60px; background: rgba(255,255,255,.95); box-shadow: 0 8px 26px rgba(4,26,19,.16); }
.site-header__spacer { height: 0; }

.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-sm); text-decoration: none; padding: 4px; }
.brand img { height: 42px; width: auto; background: none; transition: height var(--dur) var(--ease); }
.site-header.is-condensed .brand img { height: 34px; }

.nav { display: none; margin-inline: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: var(--campus-grey); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem; color: var(--ink); white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
:root[lang="ar"] .nav__link { font-size: 1rem; }
.nav__link:hover { background: var(--white); color: var(--emsa-green); box-shadow: 0 1px 3px rgba(7,42,32,.1); }
.nav__link[aria-current="page"] { background: var(--emsa-green); color: var(--white); box-shadow: 0 4px 12px rgba(15,76,58,.28); }
.nav-actions { display: none; align-items: center; gap: 8px; flex: none; }
.nav-actions .btn { min-height: 46px; padding: .7rem 1.1rem; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; border-radius: var(--r-btn);
  color: var(--emsa-green); text-decoration: none; font-weight: 600; font-size: .9375rem; border: 1px solid var(--structural-silver-300);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang:hover { border-color: var(--emsa-green); background: var(--emsa-green-50); }
.lang[lang="ar"] { font-family: "Cairo", var(--font-body); }
.lang[lang="en"] { font-family: "Inter", var(--font-body); }
.lang .ico { width: 18px; height: 18px; }

.menu-toggle {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 0; border-radius: var(--r-btn);
  background: var(--emsa-green); color: var(--white); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .875rem;
}
.menu-toggle__bars { width: 18px; height: 12px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span { content: ""; position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars span { top: 5px; } .menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] { background: var(--event-gold); color: var(--emsa-green-900); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { opacity: 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--emsa-green-900); color: var(--white); overflow-y: auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + 104px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu__list { list-style: none; display: grid; gap: 6px; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 2.5vw, 1.9rem); background: rgba(255,255,255,.05);
}
.mobile-menu__list a[aria-current="page"] { background: var(--emsa-green); box-shadow: inset 0 0 0 1px rgba(229,184,42,.6); }
.mobile-menu__list a .ico { color: var(--event-gold); }
.mobile-menu__foot { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu .lang { color: var(--white); border-color: rgba(255,255,255,.3); justify-self: start; }
.mobile-menu .lang:hover { background: rgba(255,255,255,.08); }
.mobile-menu .social { color: var(--emsa-green-100); }
body.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav, .nav-actions { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (max-width: 420px) { .brand img { height: 36px; } :root { --header-h: 64px; } }

/* ---------- 7. Footer -------------------------------------------------- */
.site-footer { background: var(--emsa-green-950); color: var(--emsa-green-100); padding-top: var(--s-9); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-hero { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-tagline { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.1rem + 3.6vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; color: var(--white); }
.footer-tagline span { color: var(--event-gold); display: block; }
:root[lang="ar"] .footer-tagline { letter-spacing: 0; line-height: 1.3; }
@media (min-width: 900px) { .footer-hero { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.footer-grid { display: grid; gap: var(--s-7); padding-top: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { display: inline-flex; background: var(--white); padding: 12px 16px; border-radius: 12px; }
.footer-logo img { width: 160px; background: none; }
.footer-col h2 { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--event-gold); margin-bottom: var(--s-4); }
:root[lang="ar"] .footer-col h2 { font-size: .95rem; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col li { font-size: var(--fs-sm); }
.footer-small { font-size: var(--fs-sm); color: var(--emsa-green-300); max-width: 36ch; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-xs); color: var(--emsa-green-300); }
.social { display: inline-flex; align-items: center; gap: 10px; }
.social .ico { width: 18px; height: 18px; }

/* ---------- 8. Heroes -------------------------------------------------- */
/* Home hero: deep green stage, photo collage breaking out of a gold box */
.hero { background: var(--emsa-green-900); color: var(--white); padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(4rem, 2rem + 6vw, 7rem); }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero__title .line { display: block; }
.hero__title .gold { color: var(--event-gold); }
.hero__lede { font-size: var(--fs-lede); color: var(--emsa-green-100); max-width: 34em; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: var(--emsa-green-300); padding-top: var(--s-2); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; background: var(--event-gold); transform: rotate(45deg); }

.breakout { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; margin-inline: auto; }
.breakout__box { position: absolute; inset: 0 2% 0 0; color: var(--event-gold); opacity: .85; }
.breakout__box svg { width: 100%; height: 100%; overflow: visible; }
.breakout__photo { position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-3); border: 4px solid rgba(255,255,255,.95); background: var(--emsa-green); }
.breakout__photo img { width: 100%; height: 100%; object-fit: cover; }
.breakout__photo--main { inset: 22% 16% 22% 12%; }
.breakout__photo--a { width: 38%; aspect-ratio: 3 / 4; inset-inline-end: 0; top: 0; transform: rotate(4deg); }
.breakout__photo--b { width: 42%; aspect-ratio: 4 / 3; inset-inline-start: 0; bottom: 2%; transform: rotate(-4deg); }
[dir="rtl"] .breakout__photo--a { transform: rotate(-4deg); }
[dir="rtl"] .breakout__photo--b { transform: rotate(4deg); }
.breakout__badge {
  position: absolute; inset-inline-end: 4%; bottom: 10%; z-index: 3; display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-2); min-width: 9.5rem;
}
.breakout__badge b { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--emsa-green); direction: ltr; text-align: start; }
.breakout__badge span { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.breakout__mark { position: absolute; z-index: 3; width: 74px; top: 6%; inset-inline-start: 2%; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.breakout__mark img { background: none; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.08fr 1fr; gap: var(--s-7); }
}

/* Inner page hero */
.page-hero { background: var(--emsa-green-900); color: var(--white); padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem); }
.page-hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.page-hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.page-hero__copy .btn-row { justify-self: stretch; }
.page-hero__copy .lede { color: var(--emsa-green-100); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--emsa-green-300); list-style: none; }
.crumbs a { color: var(--emsa-green-100); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.page-hero__media { position: relative; }
.page-hero__media .frame { position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--event-gold); border-radius: var(--r-lg); opacity: .8; }
[dir="rtl"] .page-hero__media .frame { inset: -14px -14px 14px 14px; }
.page-hero__media .photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-3); }
.page-hero__media .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-9); } }
.page-hero--compact .page-hero__grid { grid-template-columns: 1fr; }

/* ---------- 9. Cards & bento ------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: var(--s-6); }
.card--hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--emsa-green-50); color: var(--emsa-green); }
.card__icon .ico { width: 26px; height: 26px; }
.card--green { background: var(--emsa-green); color: var(--white); border-color: var(--emsa-green); }
.card--green .card__icon { background: rgba(255,255,255,.1); color: var(--event-gold); }
.card--green .muted { color: var(--emsa-green-100); }

/* Stats bento */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.stat-card { display: grid; gap: var(--s-2); align-content: start; position: relative; overflow: hidden; }
.stat-card__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2.2rem + 3vw, 4.75rem); line-height: .95; letter-spacing: -0.04em; color: var(--emsa-green); direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .stat-card__value { text-align: end; }
.stat-card__unit { font-size: .5em; vertical-align: top; margin-inline-start: .06em; color: var(--emsa-green-500); }
.stat-card__label { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.stat-card__note { font-size: var(--fs-sm); color: var(--text-muted); max-width: 30ch; }
.stat-card--lead { background: var(--emsa-green); border-color: var(--emsa-green); color: var(--white); }
.stat-card--lead .stat-card__value { color: var(--white); font-size: clamp(4rem, 2.6rem + 5vw, 7rem); }
.stat-card--lead .stat-card__unit { color: var(--event-gold); }
.stat-card--lead .stat-card__note { color: var(--emsa-green-100); }
.stat-card--lead::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -60px; bottom: -70px; border: 2px solid rgba(229,184,42,.45); border-radius: 28px; transform: rotate(30deg); }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } .stat-card--lead { grid-column: span 2; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: auto; }
  .stat-card--lead { grid-column: auto; grid-row: span 2; align-content: end; }
  .bento > .stat-card:nth-child(4):last-child { grid-column: span 2; }
}
.bento--6 { }
@media (min-width: 1000px) { .bento--6 { grid-template-columns: repeat(3, 1fr); } .bento--6 .stat-card--lead { grid-row: auto; grid-column: span 1; } }

/* Feature (top three) photo cards */
.top3 { display: grid; gap: var(--s-4); }
.feature {
  position: relative; display: block; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate;
  background: var(--emsa-green-900); box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease); }
.feature:hover > img { transform: scale(1.05); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,26,19,0) 25%, rgba(4,26,19,.55) 55%, rgba(4,26,19,.94) 100%); }
.feature__body { position: absolute; inset: auto 0 0 0; padding: var(--s-6); display: grid; gap: var(--s-3); }
.feature__rank { position: absolute; top: var(--s-5); inset-inline-start: var(--s-5); display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--event-gold); color: var(--emsa-green-900); font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.feature__meta { font-size: var(--fs-sm); color: var(--emsa-green-100); font-weight: 600; }
.feature__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.12; color: var(--event-gold); letter-spacing: -0.02em; }
:root[lang="ar"] .feature__title { line-height: 1.4; letter-spacing: 0; }
.feature__kpi { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feature__kpi b { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; direction: ltr; }
.feature__kpi span { font-size: var(--fs-sm); color: var(--emsa-green-100); }
@media (min-width: 900px) {
  .top3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
  .feature--lead { grid-row: span 2; min-height: 620px; }
}

/* ---------- 10. Home sections ------------------------------------------ */
.marquee { background: var(--event-gold); color: var(--emsa-green-900); overflow: hidden; border-block: 1px solid rgba(7,42,32,.1); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding: 16px 14px; flex: none; }
.marquee__group span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
:root[lang="ar"] .marquee__group span { letter-spacing: 0; font-size: 1.15rem; }
.marquee__group i { width: 10px; height: 10px; background: var(--emsa-green); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

.intro-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-9); align-items: start; } }
.big-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.25rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.big-text mark { background: linear-gradient(transparent 58%, var(--event-gold-100) 58%); color: var(--emsa-green); padding: 0 .1em; }
:root[lang="ar"] .big-text { letter-spacing: 0; line-height: 1.7; }
.fact-list { display: grid; gap: var(--s-3); }
.fact { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
:root[lang="ar"] .fact b { letter-spacing: 0; font-size: .875rem; }
.fact .card__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.fact .card__icon .ico { width: 22px; height: 22px; }
.fact strong { font-family: var(--font-display); font-size: 1.05rem; }

.motto-band { position: relative; }
.motto-grid { display: grid; gap: var(--s-7); align-items: center; }
.motto-photos { position: relative; aspect-ratio: 5 / 4; }
.motto-photos .p { position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2); border: 4px solid var(--white); }
.motto-photos .p img { width: 100%; height: 100%; object-fit: cover; }
.motto-photos .p1 { inset: 0 18% 22% 0; }
.motto-band .statement { font-size: clamp(1.5rem, .8rem + 2.1vw, 2.6rem); }
.motto-photos .p2 { width: 52%; aspect-ratio: 4 / 3; inset-inline-end: 0; bottom: 0; }
@media (min-width: 960px) { .motto-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-9); } }

.gallery-bento { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9.5rem; grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); display: block; text-decoration: none; background: var(--structural-silver-100); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__cap { position: absolute; inset-inline-start: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--emsa-green); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); line-height: 1.3; }
:root[lang="ar"] .tile__cap { font-size: .85rem; }
.t-tall { grid-row: span 2; } .t-wide { grid-column: span 2; } .t-big { grid-column: span 2; grid-row: span 2; }
@media (min-width: 760px) { .gallery-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 11rem; } }
@media (min-width: 1100px) { .gallery-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 12rem; gap: var(--s-4); } .t-big { grid-column: span 3; } }

.network-cards { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .network-cards { grid-template-columns: repeat(3, 1fr); } }
.net-card { display: grid; gap: var(--s-3); align-content: start; }
.net-card__role { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
:root[lang="ar"] .net-card__role { letter-spacing: 0; font-size: .9rem; }
.net-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--emsa-green); letter-spacing: -0.01em; }
.net-card__status { justify-self: start; margin-top: var(--s-2); font-size: var(--fs-xs); font-weight: 700; color: var(--emsa-green); background: var(--emsa-green-50); padding: 4px 10px; border-radius: 999px; }

.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: var(--emsa-green); color: var(--white); padding: clamp(2rem, 1rem + 4vw, 4.5rem); display: grid; gap: var(--s-6); }
.cta-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(40rem 22rem at 100% 0%, rgba(229,184,42,.22), transparent 60%), radial-gradient(30rem 20rem at 0% 100%, rgba(4,26,19,.55), transparent 60%); }
.cta-card__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.1rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; text-transform: uppercase; }
.cta-card__title span { color: var(--event-gold); }
:root[lang="ar"] .cta-card__title { letter-spacing: 0; line-height: 1.35; }
.cta-card p { color: var(--emsa-green-100); max-width: 38ch; }
.cta-card__box { position: absolute; z-index: -1; width: 280px; inset-inline-end: -40px; bottom: -60px; color: var(--event-gold); opacity: .35; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.5fr 1fr; align-items: end; } }

/* Partner logos (EMSA, Shamseya, BUC) */
.logo-slot, .net-logo, .node-logo { display: flex; align-items: center; flex: none; }
.logo-slot img, .net-logo img, .node-logo img { width: auto; height: auto; background: none; object-fit: contain; }
.logo-slot { order: 2; margin-inline-start: auto; width: 180px; height: 64px; justify-content: flex-end; }
.logo-slot img { max-width: 100%; max-height: 100%; }
.fact { align-items: center; }
.net-card .link { justify-self: start; }
@media (max-width: 520px) { .fact { flex-direction: column; align-items: flex-start; } .logo-slot { order: 0; margin-inline-start: 0; justify-content: flex-start; height: 56px; } }
.net-logo { height: 64px; margin-bottom: var(--s-2); }
.net-logo img { max-height: 60px; max-width: 200px; }
.node-logo { justify-content: center; height: 48px; margin-bottom: 4px; }
.node-logo img { max-height: 44px; max-width: 150px; }
.link--sm { font-size: var(--fs-xs); justify-self: start; margin-top: var(--s-2); }
.body-node .link--sm { justify-self: center; }
.link .ico:not(.ico-arrow) { width: 1em; height: 1em; }

/* ---------- 11. Activities & events ------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1px solid var(--structural-silver-300); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--emsa-green); color: var(--emsa-green); }
.filter[aria-pressed="true"] { background: var(--emsa-green); border-color: var(--emsa-green); color: var(--white); }
.filter__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--emsa-green-50); color: var(--emsa-green); font-size: .75rem; font-weight: 800; }
.filter[aria-pressed="true"] .filter__count { background: var(--event-gold); color: var(--emsa-green-900); }
.results-note { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-4); }

.event-grid { display: grid; gap: var(--s-5); }
@media (min-width: 680px) { .event-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .event-grid { grid-template-columns: repeat(3, 1fr); } .event-grid .event-card--wide { grid-column: span 2; } }
.event-card {
  display: grid; grid-template-rows: auto 1fr; background: var(--emsa-green); color: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-card[hidden] { display: none; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.event-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.event-card--wide .event-card__media { aspect-ratio: 16 / 8; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.05); }
.event-card__type { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--emsa-green); font-family: var(--font-display); font-weight: 700; font-size: .75rem; }
:root[lang="ar"] .event-card__type { font-size: .85rem; }
.event-card__top { position: absolute; top: 14px; inset-inline-end: 14px; padding: 6px 12px; border-radius: 999px; background: var(--event-gold); color: var(--emsa-green-900); font-family: var(--font-display); font-weight: 800; font-size: .75rem; }
.event-card__body { padding: var(--s-5) var(--s-5) var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.event-card__date { font-size: var(--fs-sm); color: var(--emsa-green-300); font-weight: 600; }
.event-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--event-gold); letter-spacing: -0.01em; }
:root[lang="ar"] .event-card__title { line-height: 1.45; letter-spacing: 0; }
.event-card__summary { font-size: var(--fs-sm); color: var(--emsa-green-100); }
.event-card__kpi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: var(--s-3); margin-top: auto; border-top: 1px solid rgba(255,255,255,.14); }
.event-card__kpi b { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; direction: ltr; }
.event-card__kpi span { font-size: var(--fs-xs); color: var(--emsa-green-100); }

/* Event detail */
.event-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.event-subtitle { font-size: var(--fs-lede); color: var(--event-gold); font-family: var(--font-display); font-weight: 600; }
.facts-strip { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: calc(-1 * var(--s-8)); position: relative; z-index: 2; box-shadow: var(--shadow-2); }
.facts-strip > div { background: var(--white); padding: var(--s-5) var(--s-6); display: grid; gap: 4px; }
.facts-strip dt { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
:root[lang="ar"] .facts-strip dt { letter-spacing: 0; font-size: .875rem; }
.facts-strip dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--emsa-green); }
.facts-strip dd.big { font-size: 2rem; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .facts-strip dd.big { text-align: end; }
.facts-strip { grid-template-columns: 1fr 1fr; }
.facts-strip > div:last-child { grid-column: span 2; }
@media (min-width: 760px) { .facts-strip { grid-template-columns: 1fr 1fr 1.3fr; } .facts-strip > div:last-child { grid-column: auto; } }
@media (max-width: 759px) { .facts-strip > div { padding: var(--s-4) var(--s-5); } .facts-strip dd { font-size: 1.05rem; } }

.story { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .story { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); align-items: start; } }
.story-steps { display: grid; gap: var(--s-4); counter-reset: step; }
.story-step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding: var(--s-6); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.story-step__label { display: grid; justify-items: center; gap: 6px; }
.story-step__num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--emsa-green); color: var(--event-gold); font-family: var(--font-display); font-weight: 900; }
.story-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--emsa-green); margin-bottom: 6px; }
.side-stack { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) { .side-stack { position: sticky; top: 100px; } }
.kpi-card { background: var(--emsa-green); color: var(--white); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-2); position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -50px; top: -50px; border: 2px solid rgba(229,184,42,.4); border-radius: 22px; transform: rotate(30deg); }
.kpi-card__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--event-gold); }
:root[lang="ar"] .kpi-card__label { letter-spacing: 0; font-size: .9rem; }
.kpi-card__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .kpi-card__value { text-align: end; }
.kpi-card__text { color: var(--emsa-green-100); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: var(--s-3); }
.pill-list li { padding: 8px 14px; border-radius: 999px; background: var(--emsa-green-50); color: var(--emsa-green); font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--event-gold-100); color: #6B4E00; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--event-gold); box-shadow: 0 0 0 3px rgba(229,184,42,.3); }
.note { font-size: var(--fs-sm); color: var(--text-muted); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); background: var(--campus-grey); border-inline-start: 3px solid var(--structural-silver); }

.pager { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; gap: 4px; padding: var(--s-5) var(--s-6); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pager a:hover { border-color: var(--emsa-green); transform: translateY(-2px); }
.pager small { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pager strong { font-family: var(--font-display); font-weight: 800; color: var(--emsa-green); font-size: 1.1rem; }
.pager .next { text-align: end; justify-items: end; }

/* ---------- 12. About components --------------------------------------- */
/* Three-bodies diagram */
.bodies { display: grid; gap: var(--s-3); justify-items: stretch; }
.body-node { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: 6px; text-align: center; box-shadow: var(--shadow-1); }
.body-node b { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--emsa-green); }
.body-node span { font-size: var(--fs-sm); color: var(--text-muted); }
.body-node--center { background: var(--emsa-green); border-color: var(--emsa-green); color: var(--white); padding: var(--s-6); justify-items: center; }
.body-node--center b { color: var(--event-gold); font-size: 1.5rem; }
.body-node--center span { color: var(--emsa-green-100); }
.body-node--center img { width: 64px; background: none; }
.link-line { display: grid; place-items: center; position: relative; min-height: 56px; }
.link-line::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; border-inline-start: 2px dashed var(--emsa-green-300); }
.link-line span { position: relative; padding: 4px 12px; border-radius: 999px; background: var(--event-gold); color: var(--emsa-green-900); font-family: var(--font-display); font-weight: 800; font-size: .75rem; }
:root[lang="ar"] .link-line span { font-size: .85rem; }
.bodies__mobile-order { display: contents; }
@media (min-width: 900px) {
  .bodies { grid-template-columns: 1fr 150px 1.1fr 150px 1fr; grid-template-rows: auto 70px auto; align-items: center; }
  .bodies .n-egypt { grid-column: 1; grid-row: 1; }
  .bodies .l-egypt { grid-column: 2; grid-row: 1; }
  .bodies .n-center { grid-column: 3; grid-row: 1; }
  .bodies .l-shams { grid-column: 4; grid-row: 1; }
  .bodies .n-shams { grid-column: 5; grid-row: 1; }
  .bodies .l-hub { grid-column: 3; grid-row: 2; height: 100%; }
  .bodies .n-hub { grid-column: 3; grid-row: 3; }
  .bodies .l-egypt::before, .bodies .l-shams::before { top: 50%; bottom: auto; inset-inline: 0; border-inline-start: 0; border-top: 2px dashed var(--emsa-green-300); }
}

/* Vision & mission */
.vm { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm .card { padding: clamp(1.75rem, 1rem + 2.4vw, 3rem); display: grid; gap: var(--s-4); align-content: start; }
.vm h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); }
.vm p { font-size: var(--fs-lede); line-height: 1.6; }
.vm .card--green h3 { color: var(--event-gold); }

/* Timeline */
.timeline { list-style: none; position: relative; display: grid; gap: var(--s-5); }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 2px; background: linear-gradient(var(--emsa-green-300), var(--emsa-green-100)); }
.tl-item { position: relative; padding-inline-start: 48px; }
.tl-dot { position: absolute; inset-inline-start: 4px; top: 22px; width: 16px; height: 16px; background: var(--emsa-green); border: 3px solid var(--emsa-green-50); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--emsa-green); }
.tl-item--milestone .tl-dot { background: var(--event-gold); box-shadow: 0 0 0 2px var(--event-gold); }
.tl-card { display: grid; gap: var(--s-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
a.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--emsa-green-100); }
.tl-date { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--emsa-green-500); }
:root[lang="ar"] .tl-date { letter-spacing: 0; font-size: .9rem; }
.tl-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.tl-text { font-size: var(--fs-sm); color: var(--text-muted); }
.tl-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .tl-card--photo { grid-template-columns: 220px 1fr; align-items: center; } .tl-thumb { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) {
  .timeline::before { inset-inline-start: calc(50% - 1px); }
  .tl-item { padding-inline-start: 0; display: grid; grid-template-columns: 1fr 72px 1fr; }
  .tl-item .tl-card { grid-column: 1; }
  .tl-item:nth-child(even) .tl-card { grid-column: 3; }
  .tl-dot { inset-inline-start: calc(50% - 8px); }
  .tl-item:nth-child(n+2) { margin-top: -72px; }
  .tl-card--photo { grid-template-columns: 1fr; }
  .tl-thumb { aspect-ratio: 16 / 9; }
}

/* Pillars */
.pillars { display: grid; gap: var(--s-3); }
.pillar { display: grid; gap: var(--s-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5) var(--s-6); }
.pillar__name { display: flex; align-items: center; gap: var(--s-4); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--emsa-green); }
.pillar__name .card__icon { width: 46px; height: 46px; border-radius: 12px; }
.pillar dl { display: grid; gap: var(--s-3); margin: 0; }
.pillar dt { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
:root[lang="ar"] .pillar dt { letter-spacing: 0; font-size: .85rem; }
.pillar dd { margin: 2px 0 0; font-size: var(--fs-sm); }
.pillar dd.result { font-family: var(--font-display); font-weight: 800; color: var(--emsa-green); font-size: 1rem; }
@media (min-width: 1000px) {
  .pillar { grid-template-columns: 1.1fr 2.4fr; align-items: center; }
  .pillar dl { grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-5); }
}

/* Members waffle */
.structure { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .structure { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }
.waffle { display: grid; grid-template-columns: repeat(35, 1fr); gap: 4px; padding: var(--s-5); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); direction: ltr; }
.waffle i { aspect-ratio: 1; border-radius: 3px; background: var(--structural-silver-300); }
.waffle i.core { background: var(--emsa-green); }
.waffle i.dept { background: var(--emsa-green-300); }
@media (max-width: 760px) { .waffle { grid-template-columns: repeat(25, 1fr); gap: 3px; padding: var(--s-4); } }
.legend { display: grid; gap: var(--s-3); list-style: none; }
.legend li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: var(--white); border-radius: var(--r-sm); border: 1px solid var(--line); }
.legend i { width: 18px; height: 18px; border-radius: 4px; background: var(--structural-silver-300); }
.legend i.core { background: var(--emsa-green); } .legend i.dept { background: var(--emsa-green-300); }
.legend b { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--emsa-green); direction: ltr; }
.legend span small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }

/* Values */
.values { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(3, 1fr); } .values .value--feature { grid-column: span 1; grid-row: span 2; } }
.value { display: grid; gap: var(--s-3); align-content: start; }
.value h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.value--feature { background: var(--emsa-green-900); color: var(--white); border-color: var(--emsa-green-900); align-content: space-between; min-height: 320px; }
.value--feature h3 { color: var(--event-gold); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.value--feature p { color: var(--emsa-green-100); }
.value--feature .card__icon { background: rgba(255,255,255,.08); color: var(--event-gold); }

/* Ledger of figures (impact) */
.ledger { display: grid; border-top: 1px solid var(--structural-silver-300); }
.ledger__row { display: grid; gap: var(--s-2) var(--s-6); padding-block: var(--s-6); border-bottom: 1px solid var(--structural-silver-300); align-items: baseline; }
.ledger__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .9; color: var(--emsa-green); letter-spacing: -0.04em; direction: ltr; text-align: start; }
[dir="rtl"] .ledger__value { text-align: end; }
.ledger__label { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.ledger__note { color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 860px) { .ledger__row { grid-template-columns: 16rem 1fr auto; } }

.check-list { list-style: none; display: grid; gap: var(--s-3); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; padding: var(--s-4) var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.check-list .ico { color: var(--emsa-green); width: 22px; height: 22px; margin-top: 3px; }
.dark .check-list li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dark .check-list .ico { color: var(--event-gold); }

/* Contact */
.contact-cards { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; gap: var(--s-4); align-content: start; }
.contact-card__value { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--emsa-green); word-break: break-word; }
.copy-btn { justify-self: start; }

/* ---------- 13. Gallery & lightbox ------------------------------------- */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; grid-auto-flow: dense; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 13rem; gap: var(--s-4); } }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-auto-rows: 14rem; } }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--structural-silver-100); display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: rgba(7,42,32,0); transition: background var(--dur) var(--ease); }
.gallery__item:hover::after { background: rgba(7,42,32,.12); }
.g-big { grid-column: span 2; grid-row: span 2; } .g-tall { grid-row: span 2; } .g-wide { grid-column: span 2; }
.gallery--few { grid-auto-rows: auto; }
.gallery--few .gallery__item { aspect-ratio: 4 / 3; grid-column: span 2; }
@media (min-width: 760px) { .gallery--few { grid-template-columns: repeat(2, 1fr); } .gallery--few .gallery__item { grid-column: span 1; } .gallery--few .gallery__item:only-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

.lightbox { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: rgba(4,26,19,.96); color: var(--white); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(12px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.lightbox__count { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--emsa-green-100); direction: ltr; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: min(100%, 1600px); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: none; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { text-align: center; font-size: var(--fs-sm); color: var(--emsa-green-100); padding: 14px 8px 4px; max-width: 60rem; margin-inline: auto; }
.lb-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; transition: background var(--dur) var(--ease); }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn .ico { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-start: 4px; } .lightbox__next { inset-inline-end: 4px; }
[dir="rtl"] .lightbox__nav .ico { transform: scaleX(-1); }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: -6px; transform: none; } }

/* ---------- 14. Motion ------------------------------------------------- */
/* Everything is visible at rest; motion only adds a gentle lift. */
.js [data-reveal] { transform: translateY(24px); opacity: .5; transition: transform 900ms var(--ease), opacity 900ms var(--ease); }
.js [data-reveal].is-in { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- 15. Utilities ---------------------------------------------- */
.todo { background: var(--event-gold-100); color: #5A4300; border: 1px dashed #B88A00; padding: .1em .4em; border-radius: 4px; font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
