/* =========================================================
   Arwa Zughier — Executive Landing Page (v2)
   Palette sampled directly from the ARWA bird logo:
     Royal navy #0F2E93 · Mid blue #1F6AB6 · Sky #39B2E4 · Gold #FFBC3D
   Mobile-first. Logical properties → works for RTL (ar) & LTR (en).
   ========================================================= */

:root {
  /* Logo colors */
  --navy: #0F2E93;
  --blue: #1F6AB6;
  --sky: #39B2E4;
  --gold: #FFBC3D;

  /* Derived shades */
  --navy-deep: #0A2170;
  --navy-ink: #071852;
  --sky-50: #F2F9FE;
  --sky-100: #E2F2FB;
  --paper: #F6F9FD;
  --line: #E3E9F3;
  --text: #3B4763;
  --muted: #6B7794;
  --white: #ffffff;

  --grad-logo: linear-gradient(120deg, var(--sky) 0%, var(--blue) 48%, var(--navy) 100%);
  --grad-text: linear-gradient(100deg, var(--blue) 0%, var(--sky) 100%);
  --grad-band: linear-gradient(160deg, var(--navy-ink) 0%, var(--navy) 55%, #1846A6 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 46, 147, .04), 0 4px 14px rgba(15, 46, 147, .05);
  --shadow: 0 24px 60px -24px rgba(15, 46, 147, .28);
  --shadow-lg: 0 40px 90px -36px rgba(7, 24, 82, .5);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --font-num: "Playfair Display", Georgia, serif;

  --header-h: 72px;
  --gutter: 16px;
  --section-y: 96px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ar"] {
  --font-body: "IBM Plex Sans Arabic", system-ui, Tahoma, sans-serif;
  --font-head: "IBM Plex Sans Arabic", system-ui, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 16.5px; line-height: 1.95; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.45; }
p { margin: 0 0 1.1em; }
strong { color: var(--navy); font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.container { width: calc(100% - var(--gutter) * 2); max-width: 1180px; margin-inline: auto; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico-fill { fill: currentColor; stroke: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: .8em 1.7em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: .98rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em;
  cursor: pointer; text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(15, 46, 147, .75); }
.btn-primary:hover { background: var(--blue); box-shadow: 0 18px 36px -14px rgba(31, 106, 182, .7); }
.btn-sky { background: var(--sky); color: var(--navy-ink); box-shadow: 0 14px 30px -16px rgba(57, 178, 228, .9); }
.btn-sky:hover { background: #57c0ea; }
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 16px 34px -16px rgba(255, 188, 61, .9); }
.btn-gold:hover { background: #ffc85e; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky-100); }
.btn-sm { min-height: 42px; padding: .5em 1.25em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(15, 46, 147, .35); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.nav {
  position: absolute; top: 100%; inset-inline: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px var(--gutter) 20px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(15, 46, 147, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; }
.nav a { padding: .85em .4em; font-weight: 600; font-size: 1.02rem; color: var(--navy); border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; height: 42px; padding-inline: 14px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; color: var(--navy);
  transition: border-color .3s, background-color .3s;
}
.lang:hover { border-color: var(--navy); background: var(--sky-50); }
html[lang="en"] .lang { font-family: "IBM Plex Sans Arabic", sans-serif; }
html[lang="ar"] .lang { font-family: "Manrope", sans-serif; }
.header-cta { display: none; }
.menu-toggle {
  display: grid; place-items: center; gap: 5px; align-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  margin-bottom: 18px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.eyebrow-light { color: var(--sky); }
.h2 { font-size: clamp(2rem, 6.4vw, 3.1rem); margin-bottom: 22px; letter-spacing: -.01em; }
html[lang="ar"] .h2 { font-size: clamp(1.75rem, 5.6vw, 2.7rem); letter-spacing: 0; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }

.wave { position: absolute; inset-inline: 0; width: 100%; height: 60px; display: block; color: var(--white); pointer-events: none; }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; transform: scaleY(-1); }
.dots {
  position: absolute; width: 132px; height: 132px; pointer-events: none;
  background-image: radial-gradient(rgba(31, 106, 182, .28) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 120px;
  background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob-a {
  position: absolute; width: 620px; height: 620px; inset-inline-end: -260px; top: -200px;
  border-radius: 42% 58% 63% 37% / 46% 41% 59% 54%;
  background: var(--grad-logo); opacity: .1;
}
.blob-b {
  position: absolute; width: 340px; height: 340px; inset-inline-start: -200px; bottom: 40px;
  border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%;
  background: var(--sky-100);
}
.hero .dots { top: 120px; inset-inline-start: 4%; opacity: .7; }
.hero-inner { display: grid; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 22px;
}
html[lang="ar"] .hero-kicker { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 188, 61, .22); }
.hero-title { font-size: clamp(3rem, 13vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 22px; }
html[lang="ar"] .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); line-height: 1.2; letter-spacing: 0; }
.hero-role { font-size: clamp(1.08rem, 3.6vw, 1.32rem); font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 26px; }
.hero-role span { display: block; color: var(--blue); font-weight: 500; }
.hero-lead { font-size: 1.05rem; color: var(--text); max-width: 560px; margin-bottom: 36px; }
.hero-lead .num { font-family: var(--font-num); font-weight: 600; color: var(--navy); font-size: 1.12em; direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: lining-nums; }
.hero-actions { display: grid; gap: 12px; }

/* Hero portrait (assets/js/hero-portrait.js): opens on load, morphs + zooms on scroll (GSAP),
   spring tilt + glare under the pointer (Framer Motion). Without JS it is simply the finished circle. */
.hero-portrait { position: relative; width: min(480px, 100%); margin-inline: auto; }
.hp-stage { position: relative; aspect-ratio: 1; width: 100%; will-change: transform; }
.hp-stage::before { /* soft halo behind the portrait */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--sky-50) 45%, rgba(226, 242, 251, .55) 70%, transparent 71%);
  box-shadow: 0 0 0 1px rgba(57, 178, 228, .14), 0 0 0 26px rgba(57, 178, 228, .05), 0 0 0 27px rgba(57, 178, 228, .1);
}
.hp-orbit { position: absolute; inset: 5%; width: 90%; height: 90%; overflow: visible; pointer-events: none; transform: rotate(-90deg); }
.hp-orbit-dots { fill: none; stroke: var(--blue); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 0 3.2; opacity: .45; }
.hp-orbit-arc { fill: none; stroke: url(#hpOrbitGrad); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1 1; } /* offset is an attribute: GSAP tweens it as attr (CSS px offsets get rounded) */
.hp-photo {
  position: absolute; inset: 13%; margin: 0; z-index: 1;
  border-radius: 50%; overflow: hidden; isolation: isolate;
  border: 6px solid #fff; box-shadow: 0 30px 60px -28px rgba(15, 46, 147, .55), 0 0 0 1px rgba(57, 178, 228, .25);
  --gx: 50%; --gy: 30%;
}
.hp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); transform-origin: 50% 35%; will-change: transform; }
.hp-photo::after { /* soft brand tint at the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, transparent 58%, rgba(15, 46, 147, .18) 100%);
}
.hp-glare {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .5) 0%, transparent 42%); mix-blend-mode: soft-light;
}
.hero-portrait:hover .hp-glare { opacity: 1; }
.hp-shine {
  position: absolute; inset: -10% auto -10% 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg); mix-blend-mode: soft-light; opacity: 0;
}

/* ---------- Achievements ---------- */
.achievements { background: var(--paper); padding-top: 72px; }
.achievements .wave-top { color: var(--sky-50); top: -1px; }
.achievements .container { position: relative; z-index: 1; } /* content paints above the absolute wave */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ach {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
}
.ach::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--grad-logo); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .7s var(--ease);
}
[dir="rtl"] { --origin: right; }
.ach:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.ach:hover::after { transform: scaleX(1); }
.ach-num {
  font-family: var(--font-num); font-weight: 600; line-height: 1;
  font-size: clamp(2.1rem, 8vw, 3.2rem); color: var(--navy);
  direction: ltr; unicode-bidi: isolate; font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
[dir="rtl"] .ach-num { text-align: right; }
.ach-num small { font-size: .5em; color: var(--sky); margin-inline-start: 2px; }
.ach-num .dash { color: var(--sky); margin-inline: .04em; }
.ach h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; line-height: 1.45; color: var(--navy); }
.ach p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.65; }
.ach-feature { grid-column: 1 / -1; background: var(--grad-band); border-color: transparent; }
.ach-feature .ach-num { color: #fff; font-size: clamp(2.8rem, 12vw, 4.2rem); }
.ach-feature .ach-num small, .ach-feature .ach-num .dash { color: var(--gold); }
.ach-feature h3 { color: #fff; font-size: 1.04rem; }
.ach-feature p { color: rgba(255, 255, 255, .72); }
.ach-feature::before {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  inset-inline-end: -110px; top: -120px;
  background: radial-gradient(circle, rgba(57, 178, 228, .5), transparent 70%);
}
/* Phones only: one full-width card per row (colours unchanged) */
@media (max-width: 599px) {
  .ach-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- About (navy wave band) ---------- */
/* overflow: clip (not hidden) so the sticky portrait column still follows the page scroll */
.about { background: var(--grad-band); color: rgba(255, 255, 255, .8); padding-block: calc(var(--section-y) + 40px); overflow: hidden; overflow: clip; }
.about .wave-top { color: var(--paper); }
.about .wave-bottom { color: var(--white); }
.about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 20%, rgba(57, 178, 228, .25), transparent 60%),
    radial-gradient(500px 360px at 95% 85%, rgba(255, 188, 61, .1), transparent 60%);
}
.about .dots { background-image: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px); bottom: 40px; inset-inline-end: 4%; }
.about-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.about .h2 { color: #fff; }
.about .accent, .contact .accent { background: linear-gradient(100deg, var(--sky), #9adbf5); -webkit-background-clip: text; background-clip: text; }
.about strong { color: #fff; }
.about .eyebrow { color: var(--sky); }
.about-media { position: relative; width: min(420px, calc(100% - 28px)); margin-inline: auto; }

/* Arched portrait: semicircle top, offset outline ring behind, soft sky glow */
.portrait-frame { position: relative; isolation: isolate; }
.portrait-frame::before {
  content: ""; position: absolute; z-index: -2; inset: 8% -14% -4%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(57, 178, 228, .42), transparent);
  filter: blur(24px);
}
.portrait-photo, .portrait-ring { border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; }
.portrait-ring {
  position: absolute; z-index: -1; pointer-events: none;
  top: 18px; bottom: -18px; inset-inline-start: 18px; inset-inline-end: -18px;
  border: 1.5px solid rgba(57, 178, 228, .5);
}
.portrait-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), var(--shadow-lg);
}
.portrait-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 24, 82, .55), transparent 38%);
}
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }

.founder {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  width: fit-content; max-width: 100%;
  margin: -42px auto 0; padding: 14px 18px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.founder div { line-height: 1.45; }
.founder small { display: block; font-size: .8rem; color: var(--muted); }
.founder a { font-weight: 700; color: var(--navy); font-size: .95rem; direction: ltr; unicode-bidi: isolate; }
.founder a:hover { color: var(--blue); }
.about-copy > p { font-size: 1.04rem; }
.about-copy > .about-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .92); }

/* Two focus areas */
.about-cards { display: grid; gap: 14px; margin: 30px 0 22px; }
.about-card {
  position: relative; overflow: hidden;
  padding: 22px 22px 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .13);
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.about-card::before {
  content: ""; position: absolute; inset-inline: 22px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  transform: scaleX(.35); transform-origin: var(--origin, left); transition: transform .6s var(--ease);
}
[dir="rtl"] .about-card::before { background: linear-gradient(270deg, var(--sky), transparent); --origin: right; }
.about-card:hover { transform: translateY(-4px); border-color: rgba(57, 178, 228, .45); background: linear-gradient(160deg, rgba(57, 178, 228, .16), rgba(255, 255, 255, .04)); }
.about-card:hover::before { transform: scaleX(1); }
.ac-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: rgba(57, 178, 228, .16); color: var(--sky); font-size: 1.2rem;
}
.about-card h3 { color: #fff; font-size: 1.14rem; margin-bottom: 8px; }
html[lang="ar"] .about-card h3 { font-size: 1.08rem; }
.about-card p { margin: 0; font-size: .93rem; line-height: 1.7; color: rgba(255, 255, 255, .72); }

/* Expertise tags */
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.about-tags li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
html[lang="ar"] .about-tags li { font-size: .88rem; }
.about-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.mission {
  position: relative; overflow: hidden;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 24px 24px 26px; border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(255, 188, 61, .14), rgba(255, 255, 255, .04) 62%);
  border: 1px solid rgba(255, 188, 61, .26);
}
.mission::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--gold); }
.mission-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--navy-ink); font-size: 1.25rem; }
.mission small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
html[lang="ar"] .mission small { letter-spacing: 0; font-size: .88rem; }
.mission p { margin: 0; color: #fff; font-weight: 600; font-size: 1.04rem; }
.about-sign {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.signature { width: 170px; height: auto; filter: brightness(0) invert(1); opacity: .75; }
.about-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background .4s, color .4s, border-color .4s;
}
.about-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.about-cta .ico { transition: translate .4s var(--ease); }
.about-cta:hover .ico { translate: 4px 0; }
[dir="rtl"] .about-cta:hover .ico { translate: -4px 0; }

/* ---------- Services ---------- */
.services .dots { top: 70px; inset-inline-end: 3%; }
.svc-grid { display: grid; gap: 18px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 32px 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
}
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--grad-logo); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .7s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 26px;
  background: var(--sky-100); color: var(--blue); font-size: 1.5rem;
  transition: background .5s, color .5s, transform .6s var(--ease);
}
.card:hover .card-icon { background: var(--grad-logo); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card-no { position: absolute; top: 30px; inset-inline-end: 28px; font-family: "Playfair Display", serif; font-size: 1rem; color: #c3cde0; font-variant-numeric: lining-nums; }
.card h3 { font-size: 1.32rem; margin-bottom: 6px; }
html[lang="ar"] .card h3 { font-size: 1.22rem; }
.card-en { display: block; font-family: "Manrope", sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; direction: ltr; text-align: start; line-height: 1.5; }
[dir="rtl"] .card-en { text-align: right; letter-spacing: .02em; }
.card p { font-size: .97rem; }
.card .note { color: var(--muted); font-size: .93rem; }
.card-link {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: .5em; width: fit-content;
  font-weight: 700; font-size: .92rem; color: var(--navy);
}
.card-link .ico { transition: transform .4s var(--ease); }
.card-link:hover { color: var(--blue); }
.card-link:hover .ico { transform: translateX(4px); }
[dir="rtl"] .card-link:hover .ico { transform: scaleX(-1) translateX(4px); }
.card-mark {
  position: absolute; z-index: -1; inset-inline-end: -22px; bottom: -22px; width: 120px; height: 120px;
  color: var(--sky-100); pointer-events: none;
  transition: transform .8s var(--ease);
}
.card-mark .ico { width: 100%; height: 100%; stroke-width: 1; }
.card:hover .card-mark { transform: rotate(-10deg) scale(1.08); }
.card-cta { background: var(--grad-band); border-color: transparent; color: rgba(255, 255, 255, .78); justify-content: center; }
.card-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.card-cta p { margin-bottom: 26px; }
.card-cta .card-icon { background: rgba(255, 255, 255, .1); color: var(--gold); }
.card-cta:hover .card-icon { background: var(--gold); color: var(--navy-ink); }
.card-cta .btn { width: fit-content; }
.card-cta::after {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%;
  inset-inline-start: -90px; bottom: -110px;
  background: radial-gradient(circle, rgba(57, 178, 228, .45), transparent 70%);
}

/* ---------- Credentials ---------- */
.credentials { background: var(--paper); }
.cred-layout { display: grid; gap: 40px; }
.cred-intro .lead { margin-bottom: 30px; }
.cred-mark { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); width: fit-content; }
.cred-mark b { font-family: "Playfair Display", serif; font-size: 2.4rem; line-height: 1; color: var(--navy); font-weight: 600; font-variant-numeric: lining-nums; }
.cred-mark span { font-size: .9rem; color: var(--muted); line-height: 1.5; font-weight: 600; }
.cred-grid { display: grid; gap: 18px; }
.pillar {
  padding: 28px 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pillar-logo {
  flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); padding: 9px; box-shadow: var(--shadow-sm);
}
.pillar-logo img { max-height: 100%; width: auto; object-fit: contain; }
.pillar-logo.icon { background: var(--grad-logo); color: #fff; border: 0; font-size: 1.5rem; }
.pillar h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.pillar-org { display: block; font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.cred-list { display: grid; gap: 10px; }
.cred-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--paper);
  font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.55;
}
.cred-list .logo-sm { flex: none; width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: #fff; }
.cred-list li > span:last-child { display: flex; flex-direction: column; }
.cred-list small { font-weight: 500; color: var(--muted); font-size: .84rem; }
.acr {
  flex: none; min-width: 64px; text-align: center; margin-top: 1px;
  direction: ltr; unicode-bidi: isolate;
  font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--navy); background: #fff; border: 1px solid #d3e0f2; border-radius: 8px; padding: .3em .6em;
}

/* ---------- Memberships ---------- */
.mem-grid { display: grid; gap: 18px; }
.mem {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
}
.mem:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mem-logo { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 10px; }
.mem-logo img { max-height: 100%; width: auto; object-fit: contain; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--blue); background: var(--sky-100); padding: .2em .8em; border-radius: 999px; margin-bottom: 8px; }
.tag.muted { color: var(--muted); background: #eef1f6; }
.mem h3 { font-family: var(--font-body); font-size: 1.06rem; font-weight: 700; line-height: 1.45; margin-bottom: 4px; }
.mem p { font-size: .92rem; color: var(--muted); margin: 0 0 8px; line-height: 1.6; }
.place { display: inline-flex; align-items: center; gap: .45em; font-size: .84rem; color: var(--muted); font-weight: 600; }
.place::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Contact ---------- */
.contact { background: var(--grad-band); color: rgba(255, 255, 255, .8); padding-block: calc(var(--section-y) + 40px) var(--section-y); overflow: hidden; }
.contact .wave-top { color: var(--white); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 90% 10%, rgba(57, 178, 228, .25), transparent 60%);
}
.contact-ribbon { position: absolute; width: 260px; inset-inline-start: -60px; bottom: -40px; opacity: .14; pointer-events: none; }
[dir="rtl"] .contact-ribbon { transform: scaleX(-1); }
.contact-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.contact .h2 { color: #fff; }
.contact .eyebrow { color: var(--sky); }
.contact-copy p { font-size: 1.04rem; max-width: 600px; }
.contact-copy .btn { margin-top: 14px; }
.contact-card {
  display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.c-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; transition: background .3s; }
a.c-row:hover { background: rgba(255, 255, 255, .08); }
.c-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(57, 178, 228, .18); color: var(--sky); font-size: 1.2rem; }
.c-row small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .55); line-height: 1.4; }
.c-row b { display: block; color: #fff; font-size: 1.02rem; line-height: 1.5; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .62); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { max-width: 340px; margin: 0; }
.site-footer h4 { margin: 0 0 16px; color: #fff; font-size: .95rem; font-weight: 700; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 24px; font-size: .84rem; }

/* ---------- Motion ----------
   .js     → hidden until revealed
   .gsap   → assets/js/animations.js drives reveals (adds .is-in when done)
   no .gsap → CSS fallback below, toggled by main.js (.in) */
.js .reveal { opacity: 0; }
.js .reveal.in, .js .reveal.is-in { opacity: 1; }
.js:not(.gsap) .reveal {
  transform: translateY(32px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js:not(.gsap) .reveal.reveal-img { transform: translateY(24px) scale(.96); }
.js:not(.gsap) .reveal.in { transform: none; }
/* CSS hover transitions on transform would fight GSAP mid-tween */
.gsap .reveal:not(.is-in) { transition: none !important; }
.scroll-progress {
  position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  transform: scaleX(0); transform-origin: var(--origin, left);
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { background: linear-gradient(270deg, var(--sky), var(--gold)); }
.portrait-photo img { will-change: transform; }

/* =========================================================
   ≥ 600px
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .ach-grid { gap: 18px; }
  .ach { padding: 30px 26px; }
  .achievements { padding-top: 112px; } /* clears the 80px wave */
  .about-cards { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid .pillar-wide { grid-column: 1 / -1; }
  .wave { height: 80px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =========================================================
   ≥ 980px
   ========================================================= */
@media (min-width: 980px) {
  :root { --header-h: 84px; --section-y: 140px; }
  body { font-size: 17px; }
  html[lang="ar"] body { font-size: 17.5px; }
  .menu-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 4px; padding: 0; margin-inline-start: auto;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav a { position: relative; padding: .5em .9em; border: 0; font-size: .95rem; color: var(--text); transition: color .3s; }
  .nav a::after {
    content: ""; position: absolute; inset-inline: .9em; bottom: .15em; height: 2px; border-radius: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease);
  }
  .nav a:hover, .nav a.active { color: var(--navy); }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
  .header-actions { margin-inline-start: 18px; }
  .header-cta { display: inline-flex; }

  .hero { padding: calc(var(--header-h) + 64px) 0 150px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero .dots { top: auto; bottom: 130px; inset-inline-start: 2%; }
  .wave { height: 110px; }

  .achievements { padding-top: 150px; } /* clears the 110px wave, incl. its GSAP swell */
  .ach-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .ach-feature { grid-column: auto; }
  .ach-feature .ach-num { font-size: clamp(2.6rem, 3.6vw, 3.6rem); }
  .ach { padding: 36px 30px; }

  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; }
  .about-media { position: sticky; top: calc(var(--header-h) + 56px); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 40px 34px 34px; }
  .cred-layout { grid-template-columns: .8fr 2fr; gap: 64px; align-items: start; }
  .cred-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .cred-grid { gap: 22px; }
  .pillar { padding: 32px 30px; }
  .mem-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .mem { flex-direction: column; padding: 34px 30px; }
  .contact-grid { grid-template-columns: 1.3fr .9fr; gap: 80px; }
  .contact-card { padding: 20px; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 5.6rem; }
  html[lang="ar"] .hero-title { font-size: 5.2rem; }
}

/* ---------- Statement (between About and Services) — assets/js/scroll-reveal.js ---------- */
.statement { position: relative; background: var(--white); padding-block: calc(var(--section-y) * .8) calc(var(--section-y) * .2); }
.statement .container::before { content: ""; display: block; width: 56px; height: 3px; margin: 0 auto 32px; border-radius: 3px; background: var(--gold); }
.statement-text {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  font-size: clamp(1.6rem, 4.6vw, 3rem); line-height: 1.4; letter-spacing: -.01em;
}
html[lang="ar"] .statement-text { font-weight: 700; font-size: clamp(1.5rem, 4.2vw, 2.7rem); line-height: 1.7; letter-spacing: 0; }
.scroll-reveal-text { display: block; }
.scroll-reveal-word, .scroll-reveal-piece { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- Scroll stack (services) — assets/js/scroll-stack.js ----------
   Off (default / small screens / cards too tall): slots vanish via display:contents, grid unchanged. */
.scroll-stack__slot { display: contents; }
.scroll-stack__gap, .scroll-stack__end, .scroll-stack__shade { display: none; }
.scroll-stack--on { display: block; max-width: 760px; margin-inline: auto; }
.scroll-stack--on > .scroll-stack__slot { display: block; position: sticky; transform-origin: 50% 0; will-change: transform; }
.scroll-stack--on > .scroll-stack__gap, .scroll-stack--on > .scroll-stack__end { display: block; }
.scroll-stack--on .scroll-stack__shade {
  display: block; position: absolute; inset: 0; z-index: 1;
  border-radius: var(--radius-lg); background: var(--navy-ink);
  opacity: var(--stack-dim, 0); pointer-events: none;
}
.scroll-stack--on .card { box-shadow: 0 -14px 40px -22px rgba(7, 24, 82, .35), var(--shadow-sm); }
@media (min-width: 980px) {
  /* Title column stays pinned beside the stack */
  .has-scroll-stack > .container {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; align-items: start;
  }
  .has-scroll-stack .section-head.center { position: sticky; top: var(--stack-top, 16vh); margin: 0; text-align: start; }
  .has-scroll-stack .section-head .eyebrow::after { display: none; }
  .has-scroll-stack .scroll-stack--on { max-width: none; }
}

/* ---------- Expertise marquee (between Services and Credentials) — assets/js/scroll-velocity.js ----------
   Rows are LTR on both pages so the wrap math matches; each copy keeps the page's reading direction. */
.sv-band {
  position: relative; overflow: hidden; background: var(--white);
  padding-block: 24px calc(var(--section-y) * .75);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.2) 3%, rgba(0,0,0,.6) 6%, rgba(0,0,0,.92) 9.5%, #000 12%, #000 88%, rgba(0,0,0,.92) 90.5%, rgba(0,0,0,.6) 94%, rgba(0,0,0,.2) 97%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.2) 3%, rgba(0,0,0,.6) 6%, rgba(0,0,0,.92) 9.5%, #000 12%, #000 88%, rgba(0,0,0,.92) 90.5%, rgba(0,0,0,.6) 94%, rgba(0,0,0,.2) 97%, transparent 100%);
}
.sv-row { direction: ltr; overflow: hidden; padding-block: .04em; }
.sv-track { display: flex; width: max-content; will-change: transform; }
.sv-copy {
  display: flex; flex-shrink: 0; align-items: center; gap: .42em; padding-inline-end: .42em;
  white-space: nowrap; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: clamp(2.3rem, 6.4vw, 5.25rem); line-height: 1.25; letter-spacing: -.02em;
}
html[dir="rtl"] .sv-copy { direction: rtl; }
html[lang="ar"] .sv-copy { font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.6; letter-spacing: 0; }
.sv-outline .sv-copy { color: var(--blue); -webkit-text-fill-color: transparent; -webkit-text-stroke: max(1px, .028em) currentColor; }
.sv-sep {
  flex: none; width: .38em; aspect-ratio: 1; background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.sv-outline .sv-sep { background: var(--sky); }
.sv-row.is-draggable { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.sv-row.is-grabbing { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .sv-row.is-draggable { cursor: auto; }
}
