/* =========================================================
   IAYA UK — Homepage redesign
   Brand palette from the current site & logo:
   navy #0b1f44 · royal blue #1848a8 · sky #8cc4f2 · lapis #0f2f6b
   Two themes (light / dark) driven by tokens. Font: IBM Plex.
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7faff;
  --bg-2: #eaf2fb;
  --bg-3: #e3eefb;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --fg: #0b1f44;
  --fg-soft: rgba(11, 31, 68, 0.78);
  --muted: #3d4c6b;
  --line: rgba(11, 31, 68, 0.1);
  --line-strong: rgba(11, 31, 68, 0.22);
  --accent: #1848a8;
  --accent-2: #2f7fd0;
  --accent-soft: rgba(24, 72, 168, 0.07);
  --accent-border: rgba(24, 72, 168, 0.3);
  --btn-bg: #1848a8;
  --btn-fg: #ffffff;
  --btn-hover: #0b1f44;
  --btn-hover-fg: #ffffff;
  --em: linear-gradient(100deg, #1848a8, #2f7fd0 60%, #4b9be0);
  --glass: rgba(247, 250, 255, 0.74);
  --shadow-stack: 0 -24px 60px rgba(11, 31, 68, 0.08);
  --shadow-card: 0 1px 2px rgba(11, 31, 68, 0.04), 0 22px 44px -22px rgba(11, 31, 68, 0.22);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%231848a8' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");

  /* inverted band (lapis on light) */
  --inv-bg: #0f2f6b;
  --inv-fg: #f2f7ff;
  --inv-muted: rgba(242, 247, 255, 0.8);
  --inv-accent: #8cc4f2;
  --inv-line: rgba(242, 247, 255, 0.16);
  --inv-em: linear-gradient(100deg, #d4ebfb, #8cc4f2 50%, #5aa6e6);
  --inv-btn-bg: #8cc4f2;
  --inv-btn-fg: #0b1f44;
  --inv-card: rgba(255, 255, 255, 0.06);
  --inv-card-border: rgba(242, 247, 255, 0.14);
  --inv-accent-soft: rgba(140, 196, 242, 0.14);
}

[data-theme="dark"],
.force-dark,
.header:not(.is-scrolled):not(.on-menu) {
  color-scheme: dark;
  --bg: #071329;
  --bg-2: #0b1f44;
  --bg-3: #102a5a;
  --surface: #0c2149;
  --surface-2: #0a1b3c;
  --fg: #f2f7ff;
  --fg-soft: rgba(242, 247, 255, 0.8);
  --muted: #a9bad6;
  --line: rgba(242, 247, 255, 0.1);
  --line-strong: rgba(242, 247, 255, 0.24);
  --accent: #8cc4f2;
  --accent-2: #b9dcf7;
  --accent-soft: rgba(140, 196, 242, 0.08);
  --accent-border: rgba(140, 196, 242, 0.38);
  --btn-bg: #8cc4f2;
  --btn-fg: #0b1f44;
  --btn-hover: #f2f7ff;
  --btn-hover-fg: #0b1f44;
  --em: linear-gradient(100deg, #d4ebfb, #8cc4f2 50%, #4f93d8);
  --glass: rgba(7, 19, 41, 0.8);
  --shadow-stack: 0 -30px 60px rgba(0, 0, 0, 0.35);
  --shadow-card: none;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%238cc4f2' stroke-opacity='.08'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");

  /* inverted band (paper on dark) */
  --inv-bg: #f7faff;
  --inv-fg: #0b1f44;
  --inv-muted: #3d4c6b;
  --inv-accent: #1848a8;
  --inv-line: rgba(11, 31, 68, 0.14);
  --inv-em: linear-gradient(100deg, #1848a8, #2f7fd0 60%, #4b9be0);
  --inv-btn-bg: #1848a8;
  --inv-btn-fg: #ffffff;
  --inv-card: #ffffff;
  --inv-card-border: rgba(11, 31, 68, 0.1);
  --inv-accent-soft: rgba(24, 72, 168, 0.08);
}

.invert {
  --bg: var(--inv-bg);
  --fg: var(--inv-fg);
  --muted: var(--inv-muted);
  --accent: var(--inv-accent);
  --line: var(--inv-line);
  --em: var(--inv-em);
  --btn-bg: var(--inv-btn-bg);
  --btn-fg: var(--inv-btn-fg);
  --card: var(--inv-card);
  --card-border: var(--inv-card-border);
  --accent-soft: var(--inv-accent-soft);
  background: var(--bg);
  color: var(--fg);
}

:root {
  --navy: #0b1f44;
  --lapis: #0f2f6b;
  --blue: #1848a8;
  --sky: #8cc4f2;
  --sky-2: #b9dcf7;
  --night: #08162f;

  --f-latin: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Language switching ---------- */
t-en, t-ar { display: inline; }
html[lang="en"] t-ar { display: none !important; }
html[lang="ar"] t-en { display: none !important; }
.ar-font { font-family: var(--f-arabic); }
.en-font { font-family: var(--f-latin); }

/* ---------- Theme transition (View Transitions API) ---------- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-latin);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--f-arabic); line-height: 1.85; }
body.is-loading { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--sky); color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 500;
  padding: 10px 16px; background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px;
  transform: translateY(-200%); transition: transform .3s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typography ---------- */
.h2, .display, .hero__title {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
html[lang="ar"] .h2, html[lang="ar"] .display, html[lang="ar"] .hero__title {
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: 700;
}
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.9rem); }
.display { font-size: clamp(2.1rem, 4.8vw, 4.4rem); }
.h2 em, .display em, .hero__title em {
  font-style: italic;
  font-weight: 300;
  background-image: var(--em);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .h2 em, html[lang="ar"] .display em, html[lang="ar"] .hero__title em { font-style: normal; font-weight: 500; }
/* once split into words, each word carries the gradient (and follows theme changes) */
.split em { background: none; }
.split em .wi {
  will-change: auto;
  background-image: var(--em);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-inline-end: .06em;
}

h3 { font-weight: 600; letter-spacing: -0.015em; }
html[lang="ar"] h3 { letter-spacing: 0; font-weight: 700; line-height: 1.45; }

.lead { font-size: clamp(.97rem, 1.05vw, 1.05rem); color: var(--muted); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow__num {
  font-size: .78rem; letter-spacing: .04em; font-weight: 600;
  padding: 3px 11px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-soft);
}
.eyebrow__line { width: 48px; height: 1px; background: currentColor; }

/* split-text words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
html[lang="ar"] .w { padding-bottom: .22em; margin-bottom: -.22em; padding-top: .12em; margin-top: -.12em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding-inline: 24px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--sm { --h: 38px; padding-inline: 18px; font-size: .84rem; }
.btn--lg { --h: 54px; padding-inline: 30px; font-size: .97rem; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary::before { background: var(--btn-hover); }
.btn--primary:hover { color: var(--btn-hover-fg); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); backdrop-filter: blur(8px); background: var(--glass); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
html[dir="rtl"] .btn__arrow, html[dir="rtl"] .link-arrow svg, html[dir="rtl"] .card__more svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--accent);
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size .6s var(--ease-out);
}
html[dir="rtl"] .link-arrow { background-position: 100% 100%; }
.link-arrow:hover { background-size: 0 1px; }
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; color: var(--fg); }
.preloader__half { position: absolute; inset-inline: 0; height: 50.5%; background: var(--bg); background-image: var(--pattern); }
.preloader__half--top { top: 0; }
.preloader__half--bottom { bottom: 0; }
.preloader__inner { position: relative; display: grid; justify-items: center; gap: 26px; text-align: center; padding: 16px; }
.preloader__emblem { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.preloader__emblem img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.preloader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.preloader__ring circle { fill: none; stroke-width: 2; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--accent); stroke-dasharray: 352; stroke-dashoffset: 352; stroke-linecap: round; }
.preloader__motto { display: grid; gap: 6px; }
.preloader__motto .ar-font { font-size: 1.5rem; font-weight: 600; }
.preloader__motto span:last-child { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.preloader__count {
  position: absolute; bottom: 24px; inset-inline-end: var(--pad);
  font-size: clamp(3.4rem, 8vw, 6.5rem); font-weight: 200; line-height: .8; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.preloader__count small { font-size: .3em; color: var(--accent); font-weight: 500; }

/* ---------- Curtain (screen transition) ---------- */
.curtain { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: flex; }
.curtain__panel { flex: 1; transform: scaleY(0); transform-origin: bottom; }
.curtain__panel:nth-child(1) { background: var(--night); }
.curtain__panel:nth-child(2) { background: var(--navy); }
.curtain__panel:nth-child(3) { background: var(--lapis); }
.curtain__panel:nth-child(4) { background: var(--blue); }
.curtain__label {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  opacity: 0; text-align: center; padding: 16px; color: #f2f7ff;
}
.curtain__num { font-size: 1rem; font-weight: 600; letter-spacing: .2em; color: var(--sky); }
.curtain__title { font-size: clamp(2rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
html[lang="ar"] .curtain__title { letter-spacing: 0; line-height: 1.4; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 400; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--accent-border);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .45s, border-color .45s;
}
.cursor__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--btn-fg); opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent-soft); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--btn-bg); border-color: var(--btn-bg); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 110; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--pad); color: var(--fg);
  transition: transform .6s var(--ease-out), background .5s, height .5s, color .4s;
}
.header.is-scrolled { height: 70px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px var(--accent-border); }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.brand__text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .brand__text small { letter-spacing: 0; font-size: .78rem; }

.nav { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); }
.nav a { position: relative; padding: 7px 14px; font-size: .84rem; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--btn-fg); background: var(--btn-bg); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  position: relative; display: flex; align-items: center; height: 38px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass); direction: ltr;
}
.lang-toggle__opt { position: relative; z-index: 1; width: 32px; text-align: center; font-size: .8rem; font-weight: 700; transition: color .4s; }
.lang-toggle__opt.ar-font { font-size: 1rem; line-height: 1; }
.lang-toggle__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 32px; border-radius: 999px; background: var(--btn-bg); transition: transform .5s var(--ease-out), background .4s; }
html[lang="ar"] .lang-toggle__thumb { transform: translateX(32px); }
html[lang="en"] .lang-toggle__opt[data-l="en"], html[lang="ar"] .lang-toggle__opt[data-l="ar"] { color: var(--btn-fg); }

.theme-toggle {
  position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--glass); display: grid; place-items: center;
  transition: border-color .3s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .6s var(--ease-out), opacity .4s; }
[data-theme="light"] .theme-toggle .i-sun,
[data-theme="dark"] .theme-toggle .i-moon { transform: translateY(140%) rotate(90deg); opacity: 0; }

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; background: var(--glass); }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Fullscreen menu */
.menu { position: fixed; inset: 0; z-index: 105; visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 16px) var(--pad) 32px; color: var(--fg); }
.menu__bg { position: absolute; inset: 0; background: var(--bg-2); background-image: var(--pattern); clip-path: circle(0% at calc(100% - 40px) 40px); }
html[dir="rtl"] .menu__bg { clip-path: circle(0% at 40px 40px); }
.menu__links { position: relative; display: grid; gap: 4px; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.7rem, 6.6vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; overflow: hidden; }
html[lang="ar"] .menu__links a { letter-spacing: 0; line-height: 1.55; }
.menu__links a:hover { color: var(--accent); }
.menu__links em { font-size: .85rem; color: var(--accent); font-style: normal; font-weight: 600; }
.menu__foot { position: relative; margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }

/* Section dots */
.dots {
  position: fixed; top: 50%; inset-inline-end: 18px; z-index: 100; transform: translateY(-50%);
  display: grid; gap: 12px; padding: 12px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.dots button { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .4s, transform .4s; }
.dots.is-dim { opacity: 0; pointer-events: none; }
.dots { transition: opacity .4s; }
.dots button.is-active { background: var(--accent); transform: scale(1.5); }
.dots button span {
  position: absolute; top: 50%; inset-inline-end: 26px; transform: translateY(-50%) translateX(8px); white-space: nowrap;
  font-size: .75rem; font-weight: 600; color: var(--btn-fg); opacity: 0; pointer-events: none; transition: .4s var(--ease-out);
  background: var(--btn-bg); padding: 4px 12px; border-radius: 999px;
}
html[dir="rtl"] .dots button span { transform: translateY(-50%) translateX(-8px); }
.dots button:hover span, .dots button:focus-visible span { opacity: 1; transform: translateY(-50%); }

/* ---------- Grain (video sections only) ---------- */
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .08; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); }
  60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); }
}

/* ---------- HERO (always on dark video) ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + 24px); overflow: hidden; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; color: var(--fg); background: var(--night); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 70% 30%, rgba(15,47,107,.05) 0%, rgba(8,22,47,.6) 70%),
    linear-gradient(180deg, rgba(8,22,47,.6) 0%, rgba(11,31,68,.2) 35%, rgba(8,22,47,.78) 78%, var(--night) 100%);
}
.hero__grid { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: space-evenly; pointer-events: none; }
.hero__grid i { width: 1px; height: 100%; background: linear-gradient(transparent, rgba(140,196,242,.1) 30%, rgba(140,196,242,.1) 70%, transparent); transform-origin: top; }

.hero__content { position: relative; z-index: 3; padding-bottom: clamp(24px, 6vh, 64px); }
.hero__eyebrow { color: var(--sky-2); }
.hero__title { font-size: clamp(2.1rem, min(5.4vw, 9.5vh), 5.4rem); max-width: 15ch; text-wrap: balance; }
html[lang="ar"] .hero__title { font-size: clamp(1.9rem, min(4.6vw, 8.5vh), 4.4rem); max-width: 17ch; }
.hero__alt { margin-top: 14px; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 300; color: var(--fg-soft); }
.hero__alt .en-font { font-weight: 300; letter-spacing: -.01em; }
.hero__bottom { margin-top: clamp(28px, 5vh, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero__motto { font-style: italic; font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--sky-2); max-width: 32ch; padding-inline-start: 20px; border-inline-start: 2px solid var(--sky); }
html[lang="ar"] .hero__motto { font-style: normal; font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px; border-top: 1px solid var(--line); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__meta b { color: var(--fg); font-weight: 600; margin-inline-start: 6px; }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-inline-end: 10px; box-shadow: 0 0 0 0 rgba(140,196,242,.7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(140,196,242,0); } 100% { box-shadow: 0 0 0 0 rgba(140,196,242,0); } }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--sky); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- Stacking sections ---------- */
.stack { position: relative; z-index: 2; border-radius: var(--radius) var(--radius) 0 0; margin-top: -1px; box-shadow: var(--shadow-stack); }

/* stroked icons */
svg.draw, .card__icon, .area svg { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- PILLARS ---------- */
.pillars { background: var(--bg); background-image: var(--pattern); padding-block: clamp(72px, 9vw, 120px); }
.pillars__wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.pillars__head { position: sticky; top: 120px; }
.pillars__head .lead { margin-top: 28px; }
.pillars__list { display: grid; gap: 14px; }
.pillar {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-card);
  overflow: hidden; transition: border-color .5s, transform .6s var(--ease-out);
}
.pillar::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(140,196,242,.28), transparent 70%); opacity: 0; transition: opacity .6s;
}
.pillar:hover { border-color: var(--accent-border); transform: translateY(-4px); }
.pillar:hover::after { opacity: 1; }
.pillar__num { position: absolute; top: 16px; inset-inline-end: 20px; font-size: 2.6rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--accent); opacity: .22; }
.pillar__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.pillar__icon svg { width: 32px; height: 32px; }
.pillar h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.3; margin-bottom: 6px; padding-inline-end: 48px; }
.pillar p { color: var(--muted); font-size: .93rem; }

/* ---------- MARQUEE ---------- */
.marquee { position: relative; z-index: 2; background: var(--btn-bg); color: var(--btn-fg); overflow: hidden; padding-block: 14px; direction: ltr; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee span { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.marquee span.ar-font { letter-spacing: 0; font-weight: 700; }
.marquee i { font-style: normal; font-size: 1.2rem; opacity: .7; }

/* ---------- UPDATES ---------- */
.updates { position: relative; z-index: 2; background: var(--bg-2); padding-block: clamp(72px, 8vw, 112px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .lead { margin-top: 24px; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 290px;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden;
  transform-style: preserve-3d; transition: border-color .5s;
}
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(140,196,242,.22), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.card:hover { border-color: var(--accent-border); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); }
html[lang="ar"] .tag { letter-spacing: 0; font-size: .85rem; }
.card__icon { width: 36px; height: 36px; transition: transform .7s var(--ease-out); }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.2rem; line-height: 1.35; margin-top: 28px; }
.card p { color: var(--muted); font-size: .9rem; }
.card__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease-out); }
.card:hover .card__more svg { transform: translateX(6px); }
html[dir="rtl"] .card:hover .card__more svg { transform: scaleX(-1) translateX(6px); }

/* ---------- ABOUT + PRESIDENT'S WORDS (inverted band) ---------- */
.about { padding-block: clamp(72px, 9vw, 120px); }
.about__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.about__head .h2 { max-width: 16ch; }
.about__intro .lead { margin-bottom: 18px; }

.story {
  position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border);
}
.story__media { position: relative; margin: 0; min-height: 430px; }
.story__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  border-start-start-radius: var(--radius); border-end-start-radius: var(--radius);
}
.story__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-start-start-radius: var(--radius); border-end-start-radius: var(--radius);
  background: linear-gradient(180deg, transparent 52%, rgba(8,22,47,.88));
}
.story__person { position: absolute; z-index: 2; inset-inline: 22px; bottom: 20px; display: grid; color: #f2f7ff; }
.story__person strong { font-size: 1.12rem; font-weight: 600; }
.story__person span { font-size: .84rem; color: var(--sky-2); }
.story__badge {
  position: absolute; z-index: 3; top: 30px; inset-inline-end: 0; transform: translateX(50%);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: var(--navy); box-shadow: 0 0 0 6px var(--bg);
}
html[dir="rtl"] .story__badge { transform: translateX(-50%); }
.story__badge > svg:first-child { position: absolute; inset: 0; direction: ltr; animation: spin 20s linear infinite; }
.story__badge text { fill: currentColor; font-family: var(--f-latin); font-size: 8.6px; font-weight: 700; letter-spacing: 1.9px; }
.story__badge-mark { position: relative; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.story__body { position: relative; overflow: hidden; padding: clamp(28px, 3.6vw, 48px); padding-inline-start: clamp(64px, 6vw, 84px); display: flex; flex-direction: column; }
.story__body::before {
  content: "\201D"; position: absolute; top: -.18em; inset-inline-end: .04em; font-size: clamp(12rem, 20vw, 18rem); line-height: 1;
  font-weight: 700; color: var(--accent); opacity: .08; pointer-events: none;
}
.story__kicker { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .story__kicker { letter-spacing: 0; font-size: .92rem; }
.story__line { width: 32px; height: 1px; background: currentColor; }
.story__quote { position: relative; margin: 18px 0 0; max-width: 32ch; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 500; line-height: 1.42; letter-spacing: -.02em; }
html[lang="ar"] .story__quote { line-height: 1.8; letter-spacing: 0; }
.story__aside { position: relative; margin-top: 18px; margin-bottom: 28px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); color: var(--accent); font-size: 1rem; font-style: italic; max-width: 44ch; }
html[lang="ar"] .story__aside { font-style: normal; }
.story__foot { position: relative; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--card-border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.story__sign strong { display: block; font-size: 1rem; }
.story__sign span { font-size: .82rem; color: var(--muted); }
.story__video {
  display: inline-flex; align-items: center; gap: 12px; padding-block: 7px; padding-inline: 7px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transition: transform .5s var(--ease-out), box-shadow .5s;
}
.story__video:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.story__play { width: 40px; height: 40px; border-radius: 50%; background: #e62117; display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.story__video:hover .story__play { transform: scale(1.1); }
.story__play svg { width: 18px; fill: #fff; }
.story__video strong { display: block; font-size: .88rem; }
.story__video small { display: block; font-size: .74rem; opacity: .7; }

.traits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.trait { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); transition: border-color .4s, transform .5s var(--ease-out); }
.trait:hover { border-color: var(--accent); transform: translateY(-3px); }
.trait svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trait strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.trait small { display: block; font-size: .8rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- WHAT WE DO / BRIDGE ---------- */
.bridge { background: var(--bg); padding-block: clamp(72px, 9vw, 120px); overflow: hidden; }
.bridge::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 30%, rgba(140,196,242,.18), transparent 70%); pointer-events: none; }
.arc { position: relative; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 64px); direction: ltr; }
.arc svg { width: 100%; height: auto; overflow: visible; }
.arc .s1 { stop-color: var(--blue); }
.arc .s2 { stop-color: var(--sky); }
.arc__base { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 8; }
.arc__line { fill: none; stroke: url(#arcGrad); stroke-width: 2.6; stroke-linecap: round; }
.arc__traveller { fill: var(--surface); stroke: var(--blue); stroke-width: 2; filter: drop-shadow(0 0 10px var(--sky)); }
.arc__node circle:last-child { fill: var(--sky); }
.arc__node--a circle:last-child { fill: var(--blue); }
.arc__node .pulse { fill: none; stroke: currentColor; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease-out) infinite; }
.arc__node--a { color: var(--blue); }
.arc__node--b { color: var(--sky); }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.arc__label { position: absolute; bottom: -6%; display: grid; text-align: center; transform: translateX(-50%); }
.arc__label--a { left: 11%; }
.arc__label--b { left: 89%; }
.arc__label strong { font-size: clamp(1.05rem, 2vw, 1.6rem); font-weight: 600; }
.arc__label span { font-size: .72rem; letter-spacing: .16em; color: var(--muted); }
.arc__center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; text-align: center; }
.arc__center .ar-font { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 700; color: var(--accent); line-height: 1.3; }
.arc__center span:last-child { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.area { padding: 28px 22px 4px; border-inline-end: 1px solid var(--line); position: relative; }
.area:last-child { border-inline-end: 0; }
.area::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
html[dir="rtl"] .area::before { transform-origin: right; }
.area:hover::before { transform: scaleX(1); }
.area svg { width: 38px; height: 38px; margin-bottom: 18px; }
.area h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; }
.area p { color: var(--muted); font-size: .9rem; }

/* ---------- EVENT ---------- */
.event { position: relative; z-index: 2; background: var(--bg-2); padding-block: clamp(72px, 9vw, 120px); }
.event__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.event__poster { position: sticky; top: 110px; }
.poster {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; color: var(--fg);
  background: radial-gradient(120% 80% at 100% 0%, rgba(140,196,242,.4), transparent 60%), linear-gradient(160deg, var(--blue) -20%, var(--lapis) 35%, var(--night) 90%);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(11,31,68,.45);
}
.poster__pattern {
  position: absolute; inset: 0; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%238cc4f2' stroke-width='.8'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.poster > * { position: relative; }
.poster__kicker { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
html[lang="ar"] .poster__kicker { letter-spacing: 0; font-size: .95rem; }
.poster__date { display: grid; }
.poster__day { font-size: clamp(5rem, 10vw, 8.5rem); line-height: .8; font-weight: 700; letter-spacing: -.06em; background: linear-gradient(180deg, #ffffff, rgba(185,220,247,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poster__month { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 300; display: flex; gap: 14px; align-items: baseline; }
.poster__month b { font-size: .5em; color: var(--sky); letter-spacing: .2em; font-weight: 600; }
.poster__place { font-size: .9rem; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.event__info .lead { margin-block: 20px 28px; }
.event__info .h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }

.timeline { position: relative; display: grid; gap: 2px; margin-bottom: 32px; padding-inline-start: 28px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 0; width: 1px; background: var(--line-strong); }
.timeline::after { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 0; width: 2px; margin-inline-start: -.5px; background: linear-gradient(var(--blue), var(--sky)); transform: scaleY(var(--tl, 0)); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 11px 0; font-size: .93rem; border-bottom: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: 19px; inset-inline-start: -32px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--accent); }
.timeline li.is-key::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline time { font-size: 1rem; font-weight: 600; color: var(--accent); line-height: 1.5; font-variant-numeric: tabular-nums; }
.timeline li.is-key span { color: var(--fg); font-weight: 600; }
.timeline span { color: var(--muted); }

/* ---------- LEGACY (horizontal) ---------- */
.legacy { position: relative; z-index: 2; background: var(--bg); background-image: var(--pattern); overflow: hidden; }
.legacy__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(84px, 11vh, 110px) clamp(24px, 4vh, 48px); }
.legacy__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(20px, 3.5vh, 36px); }
.legacy__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.legacy__head .h2 { font-size: clamp(1.7rem, 2.9vw, 2.7rem); }
.legacy__track { display: flex; gap: 14px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.scholar {
  position: relative; flex: 0 0 auto; width: clamp(230px, 19vw, 270px); min-height: clamp(280px, 40vh, 340px); padding: 22px;
  display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color .5s, transform .6s var(--ease-out);
}
.scholar:hover { border-color: var(--accent-border); transform: translateY(-8px); }
.scholar::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transition: transform .7s var(--ease-out); transform-origin: left; }
.scholar:hover::after { transform: scaleX(1); }
.scholar__year { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
html[lang="ar"] .scholar__year { letter-spacing: 0; font-size: .95rem; }
.scholar__glyph { height: clamp(64px, 9vh, 90px); display: grid; place-items: center; margin-block: 12px auto; }
.scholar__glyph svg { width: 110px; height: 74px; }
.scholar__glyph .bars rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.scholar__glyph svg.spin { animation: spin 30s linear infinite; transform-origin: center; }
.formula { font-style: italic; font-weight: 300; font-size: 1.5rem; color: var(--accent); white-space: nowrap; direction: ltr; letter-spacing: -.02em; }
.scholar__ar { font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1.45; font-weight: 700; margin-top: 18px; }
.scholar__en { font-size: 1rem; font-weight: 300; font-style: italic; color: var(--muted); }
.scholar__field { margin-top: 10px; padding-top: 10px; font-size: .86rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.scholar--end { justify-content: center; text-align: center; background: linear-gradient(160deg, var(--blue), var(--lapis)); color: #f2f7ff; border-color: transparent; }
.scholar--end .ar-font { font-size: 1.6rem; line-height: 1.5; font-weight: 700; }
.scholar--end p:last-child { font-size: 1.05rem; font-weight: 300; color: var(--sky-2); }
.legacy__bar { margin: clamp(18px, 3vh, 32px) var(--pad) 0; height: 2px; background: var(--line); max-width: 420px; }
.legacy__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .legacy__bar span { transform-origin: right; }

/* ---------- COMMITTEE ---------- */
.committee { position: relative; z-index: 2; background: var(--bg-2); padding-block: clamp(72px, 9vw, 120px); }
.committee { overflow: hidden; }
.committee::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 50% 62%, rgba(140,196,242,.28), transparent 70%); }
.committee .section-head { position: relative; }

.crew {
  position: relative; margin-top: 8px; padding-block: 24px 72px; cursor: grab; touch-action: pan-y; user-select: none;
  direction: ltr; /* the loop math assumes a left-anchored track, in both languages */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.crew.is-dragging { cursor: grabbing; }
.crew__arc { position: absolute; left: 0; right: 0; top: 46%; width: 100%; height: 160px; pointer-events: none; overflow: visible; }
.crew__arc path { fill: none; stroke: var(--accent-border); stroke-width: 1.2; stroke-dasharray: 3 9; }
.crew__track { position: relative; display: flex; gap: var(--crew-gap, 22px); width: max-content; direction: ltr; will-change: transform; }
.crew__card { flex: 0 0 auto; width: clamp(190px, 17vw, 236px); }
.crew__inner { position: relative; will-change: transform; transform-origin: 50% 100%; }
.crew__photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--bg-3);
  box-shadow: 0 1px 2px rgba(11,31,68,.06), 0 28px 50px -26px rgba(11,31,68,.45);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.crew__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; filter: saturate(.55); transform: scale(1.04); transition: filter .8s var(--ease-out), transform 1s var(--ease-out); }
.crew__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,22,47,.82)); pointer-events: none; }
.crew__card:hover .crew__photo img { filter: none; transform: scale(1.1); }
.crew__num {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  color: #fff; background: rgba(8,22,47,.4); border: 1px solid rgba(242,247,255,.25); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums;
}
.crew__info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; color: #f2f7ff; direction: ltr; text-align: left; }
html[dir="rtl"] .crew__info { text-align: right; }
.crew__info strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.crew__role { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .crew__role { letter-spacing: 0; font-size: .8rem; direction: rtl; }
.crew__card:hover .crew__info strong { color: var(--sky-2); }

.crew__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 0; position: relative; }
.crew__hint { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.crew__hint svg { width: 34px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.crew__cta {
  display: inline-flex; align-items: center; gap: 12px; padding-block: 7px; padding-inline: 18px 7px; border-radius: 999px;
  border: 1px dashed var(--accent-border); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem;
  transition: background .4s, color .4s, border-color .4s;
}
.crew__cta-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-fg); transition: transform .6s var(--ease-out), background .4s, color .4s; }
.crew__cta-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.crew__cta:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); border-style: solid; }
.crew__cta:hover .crew__cta-icon { background: var(--btn-fg); color: var(--btn-bg); transform: rotate(90deg); }

/* ---------- JOIN (always on dark video) ---------- */
.join { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: 110px; color: var(--fg); background: var(--night); }
.join__media { position: absolute; inset: 0; }
.join__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.join__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,22,47,.7) 0%, rgba(15,47,107,.55) 45%, rgba(8,22,47,.85) 100%); }
.join__inner { position: relative; z-index: 3; }
.join .display { max-width: 13ch; }
.join .lead { margin-top: 28px; color: var(--fg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block: 40px 36px; max-width: 980px; }
.step { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(8,22,47,.45); backdrop-filter: blur(14px); }
.step__n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.step p { color: var(--fg-soft); font-size: .88rem; }
.join__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- INVOLVE ---------- */
.involve { position: relative; z-index: 2; background: var(--bg); padding-block: clamp(72px, 8vw, 112px) 80px; }
.involve__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.big-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  padding: clamp(22px, 2.8vw, 34px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-card);
  transition: border-color .5s;
}
.big-card:hover { border-color: var(--accent-border); }
.big-card .tag { align-self: flex-start; }
.big-card h3 { margin-top: auto; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.035em; }
html[lang="ar"] .big-card h3 { letter-spacing: 0; line-height: 1.4; }
.big-card p { color: var(--muted); max-width: 40ch; font-size: .93rem; }
.big-card__arrow { position: absolute; top: clamp(24px, 3vw, 40px); inset-inline-end: clamp(24px, 3vw, 40px); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .5s, transform .6s var(--ease-out), border-color .5s, color .5s; }
.big-card__arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html[dir="rtl"] .big-card__arrow svg { transform: scaleX(-1); }
.big-card:hover .big-card__arrow { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); transform: rotate(45deg); }
html[dir="rtl"] .big-card:hover .big-card__arrow { transform: rotate(-45deg); }

.contact { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 2.8vw, 34px); border-radius: var(--radius); background-image: var(--pattern); }
.contact h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
.contact p { color: var(--muted); max-width: 52ch; }
.socials { display: flex; gap: 12px; }
.social { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); transition: background .4s, color .4s; }
.social:hover { background: var(--btn-bg); color: var(--btn-fg); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

/* ---------- FOOTER (always night, as on the current site) ---------- */
.footer { position: relative; z-index: 2; background: var(--night); color: var(--fg); padding-top: 64px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 40px; align-items: start; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; background: #fff; }
.footer__brand p { color: var(--muted); max-width: 40ch; font-size: .95rem; }
.footer__links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; justify-content: start; }
.footer__links a { color: var(--muted); font-size: .93rem; transition: color .3s; }
.footer__links a:hover { color: var(--sky); }
.to-top { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, color .4s; }
.to-top:hover { background: var(--sky); color: var(--navy); }
.to-top svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__giant { display: flex; justify-content: space-between; font-weight: 700; font-size: clamp(3.8rem, 15vw, 14.5rem); letter-spacing: -.04em; line-height: .8; margin-top: 60px; color: transparent; -webkit-text-stroke: 1px rgba(140,196,242,.45); direction: ltr; user-select: none; }
.footer__giant span { display: inline-block; }
.footer__giant .sp { width: .18em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer__bottom .ar-font { font-size: 1rem; font-weight: 600; color: var(--sky); }

.clip-reveal { will-change: clip-path; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area:nth-child(2) { border-inline-end: 0; }
  .area:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; --radius: 22px; }
  .pillars__wrap, .about__head, .event__grid, .legacy__head, .footer__top { grid-template-columns: 1fr; }
  .pillars__head, .event__poster { position: relative; top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; }
  .involve__grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story__media { min-height: 0; aspect-ratio: 4 / 3.4; }
  .story__media img, .story__media::after { border-radius: var(--radius) var(--radius) 0 0; }
  .story__badge { top: auto; bottom: -44px; inset-inline-end: 22px; transform: none; width: 88px; height: 88px; }
  html[dir="rtl"] .story__badge { transform: none; }
  .story__body { padding-inline-start: clamp(22px, 5vw, 36px); padding-top: 48px; }
  .traits { grid-template-columns: repeat(2, 1fr); }
  .dots { display: none; }
  .poster { aspect-ratio: 4 / 3.4; }
  .footer__links { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 767px) {
  .header .btn--primary { display: none; }
  .header__actions { gap: 8px; }
  .brand__text small { display: none; }
  .hero__meta > div:not(.hero__scroll) { display: none; }
  .hero__meta { justify-content: center; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .pillar { grid-template-columns: 1fr; gap: 20px; }
  .pillar__num { font-size: 3rem; }
  .areas { grid-template-columns: 1fr; }
  .area { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .area:last-child { border-bottom: 0; }
  .legacy__pin { min-height: 0; padding-block: 96px 64px; }
  .legacy__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .legacy__track::-webkit-scrollbar { display: none; }
  .scholar { width: 72vw; min-height: 330px; scroll-snap-align: center; }
  .legacy__bar { display: none; }
  .arc__label span { display: none; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
  .join { padding-block: 110px; }
  .btn--lg { --h: 52px; padding-inline: 24px; width: 100%; }
  .contact { flex-direction: column; align-items: flex-start; }
  .trait { padding: 12px; gap: 10px; }
  .trait svg { width: 36px; height: 36px; padding: 8px; }
  .crew { padding-bottom: 56px; }
  .crew__card { width: 62vw; max-width: 230px; }
}
@media (max-width: 380px) {
  .brand__text { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}
