/* =========================================================================
   Wathib (واثب) / LEAP RD&O vCards — Design System
   Brand: ink #1d1d1d · wordmark lime #b4e762
   Typography: Cairo (AR + Latin)
   ========================================================================= */

/* Fonts: Cairo (AR + Latin) — loaded via Google Fonts in each page <head>. */

:root {
  /* Wathib / LEAP — ink + the lime carried by the واثب wordmark, sampled from
     the logo artwork itself (the dot squares above the ث and the tagline
     separators are all #b4e762).
       ink #1d1d1d · wordmark lime #b4e762 · bg #f5f6f8 · border #ebebeb

     The favicon set is the واثب wordmark on its own navy ground (#192638) and
     carries this same lime. NOTE the Open Graph card is still the OLDER Latin
     LEAP artwork, whose accent is cyan #37b3e3 — until it is reissued, the
     share card will not match the page or the tab icon. */
  --brand: #1d1d1d;       /* primary — 16.1:1 on white, safe as text anywhere */
  --brand-600: #333333;   /* hover / gradient mid */
  --brand-700: #000000;   /* gradient end, pressed state */
  --brand-50: #f4f4f5;    /* faintest neutral wash */
  --brand-100: #e7e7e9;   /* neutral chip / panel tint */
  /* The wordmark lime is 1.44:1 on white: FILLS ONLY, never body text on a
     light surface and NEVER a bed for white glyphs — white on this lime is
     1.44:1, effectively invisible. Anything sitting ON the lime uses
     --on-accent (ink, 11.68:1); text on a lime-tinted surface uses
     --accent-deep. Focus rings on light surfaces use --brand, NOT the lime —
     a 1.44:1 ring fails WCAG 2.4.11; the lime ring is only used on dark
     grounds, where it reads at 11.68:1. */
  --accent: #b4e762;
  --on-accent: #1d1d1d;
  --accent-deep: #5d7d1e; /* lime-ink — 4.75:1 on white, white-safe as a bed */
  --ink: #1d1d1d;
  --footer-bg: #1d1d1d;   /* same ground as the site's ink */
  --hero-bg-1: #2a2a2a;   /* hero gradient — lit end */
  --hero-bg-2: #0d0d0d;   /* hero gradient — shadow end */
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eff0f2;
  --border: rgba(29,29,29,.10);
  --border-strong: rgba(29,29,29,.20);
  --text: #3a3d43;
  --text-muted: #6c727f;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(29,29,29,.04), 0 6px 18px rgba(29,29,29,.07);
  --container: 1200px;
  --header-h: 71px;
  --header-pad-top: 30px;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cairo', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 17px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
}
html[lang="ar"] body { font-family: var(--font-ar); }
/* Arabic is a connected script — never letter-space it (it breaks letter joining).
   Covers Arabic pages, any element flagged lang="ar"/Arabic, and any RTL container —
   so Arabic text can never pick up letter-spacing in any context. */
html[lang="ar"], html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after,
:lang(ar), [lang="ar"], [lang="ar"] *,
[dir="rtl"], [dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after {
  letter-spacing: 0 !important;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 540px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1320px) { .container { max-width: 1320px; } }

/* Screen-reader-only text — visible to assistive tech and crawlers, hidden visually. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ===== Header / nav ===== */
/* Visually hidden until focused — clip technique (no off-screen offset, so it
   never causes horizontal overflow, incl. RTL). */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 2000;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
}
.skip-link:focus {
  width: auto; height: auto; padding: 10px 18px; margin: 0; overflow: visible;
  clip: auto; clip-path: none;
  border-radius: 0 0 10px 10px; outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Floating frosted-glass "pill" nav. Deliberately a white glass rather than an
   ink one: the hero behind it is ink, so an ink pill would vanish into it.
   It sits inset from the top with a gap, then
   expands edge-to-edge once the page is scrolled. */
nav#nav {
  position: fixed; top: 14px; inset-inline: 0; margin-inline: auto; z-index: 1000;
  width: min(1200px, calc(100% - 28px)); box-sizing: border-box;
  height: 58px; padding: 0 12px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  box-shadow: 0 8px 24px -12px rgba(16,18,21,.45);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: top .4s ease, width .4s ease, border-radius .4s ease, background .3s ease, box-shadow .3s ease;
}
nav#nav.sc {
  top: 0;
  width: 100%;
  border-radius: 0;
  border-inline-width: 0; border-top-width: 0;
  background: rgba(20,20,20,.90);
  box-shadow: 0 6px 24px -8px rgba(16,18,21,.5);
}
nav#nav img, nav#nav .logo {
  -webkit-transform: translateZ(0); transform: translateZ(0);
  isolation: isolate; position: relative; z-index: 1;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; isolation: isolate; transition: opacity .2s ease; }
.logo:hover { opacity: .85; }
.logo img { height: 30px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .82rem; font-weight: 600; padding: 6px 12px;
  border-radius: 8px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  padding: 7px 16px; background: #fff; color: var(--brand);
  font-size: .80rem; font-weight: 800; border-radius: 10px;
  text-decoration: none; transition: all .25s; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,18,21,.30); }
.lang-link {
  width: 40px; height: 40px; border-radius: 50%; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12); transition: all .2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-link:hover { color: #fff; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }

.hbg { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.hbg span { width: 22px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
/* hamburger -> X when the full-screen menu is open */
.hbg[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hbg[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hbg[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Full-screen mobile menu — ink panel matching the nav/footer */
.mob {
  display: none; position: fixed; top: 0; inset-inline: 0; bottom: 0; z-index: 999;
  width: 100%; box-sizing: border-box;
  height: 100dvh; overflow-y: auto;
  background: var(--footer-bg);
  padding: 92px 8% max(40px, env(safe-area-inset-bottom));
}
.mob.open { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mob a { display: block; padding: 16px 0; color: rgba(255,255,255,.88); text-decoration: none; font-size: 1.15rem; font-weight: 600; text-align: center; border-bottom: 1px solid rgba(255,255,255,.10); transition: color .2s; }
.mob a:hover { color: #fff; }
.mob .m-cta { margin-top: 20px; padding: 15px; text-align: center; background: #fff; color: var(--brand); font-weight: 700; border-radius: 12px; text-decoration: none; border-bottom: none; font-size: 1rem; }

@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .hbg { display: flex; }
  /* With no nav list there is no drawer to open, so the language and
     main-site icons stay in the bar instead of hiding behind a hamburger. */
  nav#nav:not(.nav-bare) .nav-right { display: none; }
  nav#nav.nav-bare .nav-right { display: flex; }
}

/* ===== Light hero (PDF-aligned) ===== */
.hero-dark {
  background: #fff;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 130px 0 56px;
  border-bottom: 1px solid var(--border);
}
/* Home hero — brand gradient, no photography. The directory has no hero imagery of its
   own, and a stock photo would say less about the product than the palette
   does; a soft white lift and the yellow spark carry the brand instead. */
.hero-home {
  padding: 0;
  margin-top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background:
    linear-gradient(165deg, var(--hero-bg-1) 0%, var(--ink) 45%, var(--hero-bg-2) 100%);
  color: #fff;
  border-bottom: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* The front page is the directory, so the hero is a brand band rather than a
   full-height splash — the cards need to be reachable without scrolling past
   a screen of logo. */
.hero-home.hero-compact {
  min-height: 0;
  padding: 150px 0 76px;
}
.hero-home.hero-compact .hero-logo { max-width: min(300px, 62%); max-height: 128px; }
.hero-home.hero-compact .hero-slogan { font-size: clamp(17px, 1.5vw, 22px); margin-top: 20px; max-width: 660px; }
@media (max-width: 768px) {
  .hero-home.hero-compact { padding: 122px 0 56px; }
}

.hero-home .hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 24%, rgba(255,255,255,.07), transparent 72%),
    radial-gradient(38% 34% at 82% 82%, rgba(180,231,98,.16), transparent 70%),
    radial-gradient(34% 30% at 14% 74%, rgba(255,255,255,.04), transparent 70%);
}
.hero-home-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}
.hero-home .hero-logo {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: min(420px, 78%);
  height: auto;
  max-height: 200px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.30));
}
.hero-home .hero-slogan {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  margin: 24px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 18px rgba(0,0,0,.22);
}

/* Listing hero — same ink ground as the home hero, lit from the top-start
   corner so the breadcrumb and heading sit in the brighter half. */
.hero-csuite {
  position: relative;
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(255,255,255,.07), transparent 68%),
    linear-gradient(180deg, var(--hero-bg-1) 0%, var(--ink) 100%);
  background-color: var(--ink);
  color: #fff;
  border-bottom: none;
  padding-top: 138px;
  overflow: hidden;
}
/* Individual person profile hero — a touch warmer, to separate it from the
   listing without introducing a second colour story. */
.hero-csuite.hero-person {
  background:
    radial-gradient(60% 85% at 14% 4%, rgba(255,255,255,.07), transparent 66%),
    radial-gradient(42% 60% at 92% 96%, rgba(180,231,98,.13), transparent 72%),
    linear-gradient(180deg, var(--hero-bg-1) 0%, var(--ink) 100%);
  padding-top: 128px;
}
.hero-csuite h1,
.hero-csuite .lede,
.hero-csuite .crumbs,
.hero-csuite .crumbs .here,
.hero-csuite .profile-hero h1,
.hero-csuite .profile-hero .title,
.hero-csuite .profile-hero .org { color: #fff !important; }
.hero-csuite h1,
.hero-csuite .profile-hero h1 {
  text-shadow: 0 2px 22px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.55);
  font-weight: 800;
}
.hero-csuite .lede,
.hero-csuite .profile-hero .title,
.hero-csuite .profile-hero .org {
  text-shadow: 0 1px 14px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.5);
  font-weight: 500;
}
.hero-csuite .profile-hero .title { font-weight: 700; }
.hero-csuite .crumbs {
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.hero-csuite .crumbs a {
  color: rgba(255,255,255,.95) !important;
  font-weight: 500;
}
.hero-csuite .crumbs a:hover { color: #fff !important; }
.hero-csuite .crumbs .sep { color: rgba(255,255,255,.75) !important; }
.hero-csuite .btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-csuite .btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.34);
}
.hero-csuite .btn.primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero-csuite .btn.primary:hover { background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.92); }
.hero-dark > .container { position: relative; z-index: 2; }
.crumbs {
  display: inline-flex;
  align-items: center;
  /* Wrapping is load-bearing, not cosmetic: this directory's breadcrumb has
     three segments (Directory / Department / Name), and an unwrapped inline-flex
     cannot shrink below their combined width — on a 390px phone that pushed the
     whole page wider than the viewport and clipped every section. */
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 6px 10px;
  margin-bottom: 22px;
  padding: 8px 16px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.crumbs a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .25s;
}
.crumbs a:hover { color: #fff; }
.crumbs .sep {
  color: rgba(255,255,255,.6);
  font-size: 12px;
}
.crumbs .here {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-dark h1 {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 12px 0 14px;
  color: var(--ink);
  font-weight: 700;
}
html[lang="ar"] .hero-dark h1 { letter-spacing: 0; line-height: 1.25; }
.hero-dark .lede {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}

/* ===== Cards section ===== */
.section { padding: 88px 0; }
.cards {
  display: grid;
  /* The largest department here has three people, so the column has to hold
     three cards (3 x 340 + 2 x 20 = 1060). Capping each track at 340px rather
     than 1fr stops the two-person department from stretching its cards to
     half the row — both departments get the same card, just fewer of them. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 340px));
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin-inline: auto;
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
html[dir="rtl"] .card::before { transform-origin: right; }
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.card:hover::before { transform: scaleX(1); }
.card .eyebrow {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.card h3 { font-size: 24px; margin: 0 0 8px; color: var(--ink); font-weight: 700; letter-spacing: -.3px; }
.card .role { font-size: 15px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.card .tag {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
/* "عرض البطاقة" — a real button rather than a text link.
   The whole card is the <a>, so this <span> can never be hovered or focused on
   its own: every state below is driven from .card. It fills with the brand lime
   on hover, which is a fill and therefore allowed — and it carries ink
   (--on-accent, 11.68:1), never white, which on this lime would be 1.44:1. */
.card .cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  /* Pins to the bottom of the card so the buttons line up across a row even
     when the briefs above them run to different numbers of lines. */
  margin-block-start: auto;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease,
              box-shadow .25s ease, transform .25s ease;
}
.card .cta::after { content: "→"; transition: transform .25s ease; }
html[dir="rtl"] .card .cta::after { content: "←"; }
/* :focus-visible is on the card, not the span — keyboard users get the same
   affordance as the pointer hover. */
.card:hover .cta,
.card:focus-visible .cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px -8px rgba(29,29,29,.55);
}
.card:hover .cta::after { transform: translateX(4px); }
html[dir="rtl"] .card:hover .cta::after { transform: translateX(-4px); }
.card:active .cta { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .card .cta, .card .cta::after { transition: none; }
}

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 22px;
  margin-bottom: 18px;
  font-family: var(--font-en);
}
html[lang="ar"] .avatar { font-family: var(--font-ar); }
img.avatar {
  object-fit: cover;
  background: none;
  display: block;
}

/* ===== Profile page (hero is dark, body is light) ===== */
.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px 0 12px;
}
.profile-hero .avatar-lg {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 42px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.profile-hero img.avatar-lg {
  object-fit: cover;
  background: none;
  display: block;
}
.profile-hero.no-avatar { grid-template-columns: 1fr; }
.profile-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -.5px;
  font-weight: 700;
}
.profile-hero .title { font-size: 17px; color: var(--brand); font-weight: 600; margin: 0 0 4px; }
.profile-hero .org { font-size: 14px; color: var(--text-muted); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: all .15s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,15,15,.04);
}
.btn:hover { border-color: var(--border-strong); background: var(--surface); box-shadow: 0 1px 3px rgba(15,15,15,.08); }
.btn.primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,15,15,.1);
}
.btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); box-shadow: 0 2px 6px rgba(15,15,15,.15); }
.btn .icon { width: 16px; height: 16px; }

.profile-body { padding: 56px 0 64px; }
.profile-body h2 {
  font-size: 34px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
  margin: 36px 0 16px;
}
.profile-body h2:first-child { margin-top: 0; }
.profile-body .bio {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85;
  max-width: 720px;
  margin: 0;
  /* Justified text opened rivers in this measure — in Arabic especially. */
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Profile — areas of focus (tag pills) */
.focus-list { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.focus-list li {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
  font-size: .92rem; font-weight: 600;
}

/* Profile — cross-links to the rest of the leadership */
.more-leaders { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 0; max-width: 720px; }
.more-leader {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--radius-lg); background: var(--bg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
  flex: 1 1 240px; min-width: 0;
}
.more-leader:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30,32,36,.12); }
.more-leader .avatar-mini { width: 46px; height: 46px; margin: 0; font-size: 16px; flex: none; }
.ml-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ml-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.ml-role { color: var(--text-muted); font-size: .82rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 520px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--brand); }
.contact-list .lbl {
  font-size: 11px; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px;
  margin-inline-end: auto;
}

.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 14px;
  border-inline-start: 2px solid var(--border-strong);
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
}
.timeline .role { font-weight: 700; color: var(--ink); margin: 0 0 2px; font-size: 15px; }
.timeline .org { color: var(--text); margin: 0 0 2px; font-size: 14px; }
.timeline .when { color: var(--text-muted); font-size: 12px; margin: 0; }

.qr-block {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 36px;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 420px;
  text-align: center;
}
.qr-block .qr {
  width: 220px; height: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: grid; place-items: center;
  color: var(--text-muted); font-size: 11px;
  overflow: hidden;
}
.qr-block .qr svg { width: 100%; height: 100%; display: block; }
.qr-block .qr-cap { font-size: 12px; color: var(--text-muted); }
.qr-block .qr[role="button"] { cursor: zoom-in; transition: transform .15s ease; }
.qr-block .qr[role="button"]:hover { transform: scale(1.02); }
.qr-block .qr[role="button"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* QR enlargement modal */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
  animation: qr-modal-in .15s ease;
}
@keyframes qr-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.qr-modal-inner {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(92vw, 560px);
}
.qr-modal-inner svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  max-height: 70vh;
  display: block;
}
.qr-modal-url {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
}

/* ===== Privacy consent banner =====
   Opt-in gate for Cloudflare Zaraz (GA4) and Microsoft Clarity. Hidden via the
   `hidden` attribute until assets/common/js/cookie-consent.js decides to show
   it, so a returning visitor never sees it flash. */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 9999;
  padding: 16px;
  /* Only the card itself should take pointer events; the wrapper spans the
     full viewport width and would otherwise block anything beneath it. */
  pointer-events: none;
  animation: consent-in .32s cubic-bezier(.2,.8,.2,1) both;
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent-inner {
  pointer-events: auto;
  max-width: 900px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--footer-bg); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.consent-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #fff; }
.consent-text p { margin: 0; font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.68); }
.consent-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent-text a:hover { opacity: .85; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn {
  flex: 1 1 auto; min-height: 44px; padding: 11px 26px;
  border-radius: 999px; font-family: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
/* Neither button is the "safe" one, so they are equally prominent — a decline
   styled as an afterthought is a dark pattern. */
.consent-btn--decline { background: transparent; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.28); }
.consent-btn--decline:hover { border-color: #fff; color: #fff; }
.consent-btn--accept { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.consent-btn--accept:hover { opacity: .88; }
.consent-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent-btn--accept:focus-visible { outline-color: #fff; }
@media (min-width: 700px) {
  .consent-inner { flex-direction: row; align-items: center; gap: 32px; padding: 24px 28px; }
  .consent-text { flex: 1; }
  .consent-actions { flex: none; }
  .consent-btn { flex: none; }
}
/* Keep the banner clear of the mobile sticky action bar. */
@media (max-width: 768px) {
  .consent { bottom: calc(var(--sticky-h) + 8px); }
  /* :has() is progressive enhancement — without it the button is merely
     covered by the dialog for as long as it is open, which is survivable. */
  body:has(#leap-consent:not([hidden])) #stt { opacity: 0; pointer-events: none; }
}

/* ===== Scroll-to-top + mobile sticky action bar =====
   Both are driven by footer-ui.js, which toggles `.show` on #stt past 300px of
   scroll and `.over-footer` once the footer is in view. These rules previously lived
   interleaved with the footer block and were lost when it was rewritten —
   keep them in their own section so that can't happen again. */
#stt {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 900;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.30);
  transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}
#stt.show { opacity: 1; pointer-events: auto; transform: none; }
#stt.show:hover { transform: translateY(-3px); }
/* Over the footer the ink button would vanish into it, so it flips to yellow. */
#stt.over-footer { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#stt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Mobile-only action bar: mail + language, pinned to the bottom edge. */
#sticky-bar { display: none; }
@media (max-width: 768px) {
  /* One source of truth for the bar's height, so anything pinned above it
     (the scroll-to-top button, the consent dialog) can derive from it instead
     of carrying its own hardcoded number that silently drifts.
     12 top + 46 content + 16 bottom = 74, plus the home-indicator inset. */
  :root { --sticky-h: calc(74px + env(safe-area-inset-bottom, 0px)); }
  #sticky-bar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 950;
    /* The bottom inset is ADDED to a real 16px, not max()'d with it — on a
       phone with no home indicator max() left only 10px, which read as the
       buttons sitting on the very edge of the screen. */
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(29,29,29,.94);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(255,255,255,.10);
  }
  .sb-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 14px; border-radius: 12px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    transition: opacity .2s ease;
  }
  .sb-mail { background: var(--accent); color: var(--on-accent); }
  .sb-mail:hover { opacity: .88; }
  .sb-btn:focus-visible, .sb-lang:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .sb-lang {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.20);
  }
  /* Neutralise the nav's .lang-link circle inside the bar. */
  .sb-lang .lang-link {
    width: 100%; height: 100%; border: 0; border-radius: inherit;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    color: #fff;
  }
  /* Clear the bar so the button is never trapped behind it. */
  #stt { inset-block-end: calc(var(--sticky-h) + 14px); }
}

/* ===== Footer =====
   A twelve-column grid — brand block plus three columns — then a bottom bar
   carrying the registration mark, the privacy-settings link and
   grid, then a bottom bar carrying the registration marks, accepted cards and
   the legal line. Palette is this site's ink + cyan. */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--footer-bg); color: #fff;
  padding: 64px 5% 32px;
  border-start-start-radius: 44px; border-start-end-radius: 44px;
}
.site-footer .container { position: relative; z-index: 1; }
/* Soft washes so the page closes on the note it opened with. */
/* The glow circles are deliberately larger than the footer and sit partly
   outside it; clip here as well as on .site-footer so removing overflow there
   can never introduce a horizontal scrollbar. */
.f-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.f-wash::before, .f-wash::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(140px);
}
.f-wash::before { inset-block-start: -13rem; inset-inline-end: -6%; width: 32rem; height: 32rem; background: rgba(255,255,255,.06); }
.f-wash::after  { inset-block-end: -10rem; inset-inline-start: -8%; width: 26rem; height: 26rem; background: rgba(180,231,98,.12); }

.f-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 40px; }
.f-brand { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.f-logo { display: inline-block; }
.f-logo img { width: 100%; max-width: 14rem; height: auto; }
.f-copy { margin: 0; font-size: .75rem; color: rgba(255,255,255,.42); }
.f-blurb { margin: 10px 0 0; max-width: 24rem; font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.6); }

/* Icon row — social, a hairline, then the two direct-contact actions. */
.f-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.f-soc {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75);
  transition: color .25s, border-color .25s, background .25s;
}
.f-soc:hover { color: var(--accent); border-color: rgba(180,231,98,.6); background: rgba(255,255,255,.04); }
.f-soc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-soc-sep { width: 1px; height: 20px; margin-inline: 4px; background: rgba(255,255,255,.15); }

.f-col { grid-column: span 2; }
.f-col h3 { margin: 0; font-size: .875rem; font-weight: 700; color: #fff; }
.f-col-rule { display: block; width: 28px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--accent); }
.f-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.f-col a { display: inline-block; padding: 4px 0; font-size: .9rem; color: rgba(255,255,255,.7); transition: color .25s; }
.f-col a:hover { color: var(--accent); }
.f-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.f-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.f-bottom-start { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.f-creds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
/* Icon-only credential badges, linking to the certificates. */
.f-cred {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 8px; opacity: .85;
  transition: opacity .25s, background .25s;
}
a.f-cred:hover { opacity: 1; background: rgba(255,255,255,.06); }
a.f-cred:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-cred img { width: 32px; height: 32px; display: block; }

@media (max-width: 1023px) {
  .f-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .f-brand { grid-column: 1 / -1; align-items: center; text-align: center; }
  .f-blurb { margin-inline: auto; }
  .f-socials { justify-content: center; }
  .f-col { grid-column: span 1; text-align: center; }
  .f-col-rule { margin-inline: auto; }
  .f-bottom { justify-content: center; text-align: center; }
  .f-bottom-start { justify-content: center; }
  .f-creds { justify-content: center; }
}
@media (max-width: 560px) {
  .site-footer { padding: 48px 5% 28px; border-start-start-radius: 32px; border-start-end-radius: 32px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-col { grid-column: 1; }
}

/* ===== vCard download CTA card ===== */
.vcf-cta {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  margin: 24px 0 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(30,32,36,.22);
  flex-wrap: wrap;
}
.vcf-cta .vcf-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.vcf-cta .vcf-icon svg { width: 26px; height: 26px; color: #fff; }
.vcf-cta .vcf-text { flex: 1; min-width: 200px; }
.vcf-cta .vcf-text h3 {
  margin: 0 0 4px; font-size: 17px; font-weight: 700;
  color: #fff;
}
.vcf-cta .vcf-text p {
  margin: 0; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 400;
}
.vcf-cta .vcf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 14px; font-weight: 700;
  transition: all .2s ease;
}
.vcf-cta .vcf-btn:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); }
.vcf-cta .vcf-btn svg { width: 16px; height: 16px; }

/* ===== Sitemap ===== */
.sitemap-list { padding: 24px 0 64px; }
.sitemap-list h2 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--brand);
  font-weight: 700; margin: 28px 0 12px;
}
/* minmax(0, 1fr), not the implicit `auto` track: an auto column is max-content
   at its maximum, so the longest link sized the column and the list grew to
   2785px inside a 328px container under text scaling. */
.sitemap-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.sitemap-list a { color: var(--ink); font-weight: 500; }
.sitemap-list a:hover { color: var(--brand); text-decoration: underline; }

/* ===== Bilingual section heading (PDF-style "English | عربي") ===== */
.section-head {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 980px;
  padding: 0 16px;
}
.section-head h2 {
  display: inline-block;
  position: relative;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding-bottom: 14px;
  letter-spacing: -.8px;
  line-height: 1.15;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head h2 .alt {
  color: var(--text-muted);
  font-weight: 400;
}
.section-head .divider { display: none; }
.section-intro {
  max-width: 760px; margin: -6px auto 34px; text-align: center;
  color: var(--text-muted); font-size: 1.02rem; line-height: 1.75;
}
/* Team listing grouped by department */
.team-dept + .team-dept { margin-top: 48px; }
.team-dept .section-head { margin-bottom: 22px; }

/* ===== About brand lockup (logo + slogan, moved from the hero) ===== */
.about-brand {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}

/* Section heading sitting inside the About card */
.about-block .section-head { margin: 0 0 20px; padding: 0; text-align: center; }
.about-block .section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }

/* ===== Section icons (removed) ===== */
.section-head > .icon { display: none; }

/* ===== Glass card variant (c-suite directory) ===== */
.section-glass { background: #fff; padding-top: 64px; padding-bottom: 64px; }
.cards-glass .card {
  background: linear-gradient(135deg, rgba(245,245,245,.85) 0%, rgba(255,255,255,.65) 100%);
  border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.cards-glass .card::before {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 50%, var(--brand) 100%);
  height: 3px;
}
.cards-glass .card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(250,250,250,.85) 100%);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.cards-glass .card .eyebrow {
  color: var(--ink);
  letter-spacing: 1.6px;
}
.cards-glass .card .cta { color: var(--ink); }
@media (max-width: 767px) {
}
.about-highlights .hl-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.about-highlights .hl-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.about-highlights li:nth-child(3n+1) .hl-icon { background: var(--brand); }
.about-highlights li:nth-child(3n+2) .hl-icon { background: var(--accent); color: var(--on-accent); }
.about-highlights li:nth-child(3n+3) .hl-icon { background: var(--accent-deep); }
@media (min-width: 700px) { }
@media (min-width: 1000px) { }

/* Full-width feature service (e.g. Fintech): photo leading, content trailing. */
.service--full { grid-column: 1 / -1; }
@media (min-width: 700px) {
  /* No service photography exists, so the wide card runs heading and
     body as two columns rather than reserving a dead slot for an image. */
  .services-grid .service--full { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr; }
}
.service .icon {
  display: block;
  width: 40px; height: 40px;
  margin: 0 0 18px;
  padding: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  stroke-width: 1.8;
}
/* Repeating ink -> cyan -> deep-cyan triad. White glyphs on ink and accent-deep,
   ink glyphs on the yellow (white on yellow is 1.32:1 and unreadable). */
.services-grid .service:nth-child(3n+1) .icon { background: var(--brand); }
.services-grid .service:nth-child(3n+2) .icon { background: var(--accent); color: var(--on-accent); }
.services-grid .service:nth-child(3n+3) .icon { background: var(--accent-deep); }

/* Inline links in FAQ answers (the mailbox and the main-site mention).
   Yellow is used as a highlighter fill that grows on hover — never as the text
   colour, which stays ink at 16.9:1. `unicode-bidi: isolate` keeps a Latin
   address from dragging surrounding Arabic punctuation out of place. */
.lnk {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  unicode-bidi: isolate;
  padding: 0 .14em;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% .34em no-repeat;
  transition: background-size .22s ease;
}
.lnk:hover { background-size: 100% 100%; }
.lnk:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; background-size: 100% 100%; }

/* ===== Profile preview (Company Profile) ===== */
.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 12px 0 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  text-align: center;
}
.profile-preview > a:first-child { width: 100%; max-width: 220px; }
.profile-preview .preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  margin-inline: auto;
}
.profile-preview .preview-meta { width: 100%; }
.profile-preview .preview-meta h3 {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 700;
  color: var(--ink);
}
.profile-preview .preview-meta p {
  margin: 0 0 14px;
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Back to top button ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(15,15,15,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, visibility .2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top.over-footer {
  background: #fff;
  color: var(--ink);
  border-color: rgba(15,15,15,.10);
}
.back-to-top:hover { background: var(--brand-700); }
.back-to-top.over-footer:hover { background: var(--surface); color: var(--ink); }
.back-to-top svg { display: block; }
@media (max-width: 640px) {
  .back-to-top { bottom: 18px; inset-inline-end: 18px; width: 40px; height: 40px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .profile-hero { grid-template-columns: 1fr; gap: 18px; padding: 8px 0 4px; }
  .profile-hero .avatar-lg { width: 88px; height: 88px; font-size: 32px; }
  .profile-body { padding: 40px 0 56px; }
  .section { padding: 40px 0; }
  .hero-dark { padding: 110px 0 40px; }
}

/* ===== Mobile: center all body content (header excluded) ===== */
@media (max-width: 767px) {
  main { text-align: center; }
  main .hero-dark,
  main .section,
  main .profile-body,
  main .container { text-align: center; }
  main .card,
  main .service,
  main .about-block,
  main .about-block p,
  main .profile-cta { text-align: center; }
  main .service .icon,
  main .card .avatar,
  main img.avatar,
  main .section-head .icon { margin-inline: auto; }
  main .actions { justify-content: center; }
  main .crumbs { justify-content: center; }
  main .profile-hero,
  main .profile-hero > div { text-align: center; }
  main .profile-hero img.avatar-lg,
  main .profile-hero .avatar-lg { margin-inline: auto; }
  main .tags { justify-content: center; }
  main .card .cta { display: inline-flex; align-self: center; }
  main .qr-block {
    margin-inline: auto;
    align-items: center;
  }
  main .profile-body { text-align: center; }
  main .profile-body .bio,
  main .timeline,
  main .timeline li { text-align: center; }
  /* Center the profile content blocks/lists on mobile */
  main .profile-body .bio { margin-inline: auto; }
  main .focus-list,
  main .more-leaders,
  main .contact-list { justify-content: center; margin-inline: auto; }
  main .more-leader { flex-basis: 100%; }
  .hero-home .hero-logo { max-height: 177px; }
  .footer-brand .footer-company-name { display: none; }
}

/* =========================================================================
   Wathib additions — everything below is new to this directory and has no
   equivalent in the template it was built from.
   ========================================================================= */

/* ===== Department section heads =====
   Each department carries the eyebrow + description the retired landing page
   showed on its two "choose a team" cards, so nothing of that copy was lost
   when the listings folded into the front page. */
.dept-eyebrow {
  display: block; margin-bottom: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.dept-desc {
  margin: 14px auto 0; max-width: 62ch;
  font-size: .95rem; line-height: 1.8; color: var(--text-muted);
}
.section-head--center { text-align: center; }
.section-head--center .divider { margin-inline: auto; }

/* ===== FAQ accordion =====
   The <details> share a `name`, which makes the accordion exclusive natively
   (Chrome 120+, Safari 17.2+, Firefox 130+); footer-ui.js closes the siblings
   on anything older. Rendered together with its FAQPage schema — never one
   without the other. */
.faq-section { padding-top: 8px; }
.faq { max-width: 780px; margin: 28px auto 0; }
.faq details {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px; padding: 0 20px;
  box-shadow: var(--shadow);
}
.faq details[open] { border-color: rgba(180,231,98,.45); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 1.5rem; line-height: 1; color: var(--accent-deep);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.faq details p { margin: 0; padding: 0 0 20px; font-size: .95rem; line-height: 1.85; color: var(--text); }

/* ===== Career timeline (Experience / Education) =====
   A single rail with a node per row, mirrored automatically in RTL because it
   is built from inline-start/inline-end rather than left/right. A row with no
   period simply renders no date line. */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; max-width: 760px; }
.timeline li {
  position: relative; padding-inline-start: 26px; padding-bottom: 26px;
  border-inline-start: 2px solid rgba(180,231,98,.28);
}
.timeline li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(180,231,98,.35);
}
.tl-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.tl-org { margin: 2px 0 0; font-size: .9rem; font-weight: 600; color: var(--accent-deep); }
.tl-period { margin: 2px 0 0; font-size: .85rem; color: var(--text-muted); }

/* ===== Profile downloads (vCard + company profile) ===== */
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 8px; }

/* ===== Breadcrumb: department step =====
   The department has no page of its own, so this step is deliberately not a
   link — it is a position, styled to read as one. */
.crumbs .here-dept { color: rgba(255,255,255,.62); }

/* ===== Footer additions ===== */
.f-col--wide { grid-column: span 4; }
.f-contact a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.f-ci { flex-shrink: 0; display: inline-flex; margin-top: 3px; color: rgba(255,255,255,.55); }
.f-ci svg { width: 17px; height: 17px; }
.f-privacy { font-size: .78rem; color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.f-privacy:hover { color: var(--accent); }
.f-privacy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.f-legal { margin: 0; font-size: .72rem; color: rgba(255,255,255,.42); }
@media (max-width: 1023px) {
  .f-col--wide { grid-column: span 1; }
  .f-contact a { justify-content: center; }
}
@media (max-width: 560px) { .f-col--wide { grid-column: 1; } }

/* =========================================================================
   Corporate details page (/details.html) — noindex, unlinked.
   ========================================================================= */
.notice-pill {
  display: inline-block; margin: 18px 0 0; padding: 6px 16px;
  border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.details-body { padding: 48px 0 64px; }
.details-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.details-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); }

.reg-list { list-style: none; margin: 0 0 48px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.reg-row {
  display: grid; grid-template-columns: minmax(160px, 22%) 1fr auto;
  align-items: center; gap: 12px 20px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.reg-row:last-child { border-bottom: 0; }
.reg-row:nth-child(odd) { background: var(--surface); }
.reg-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.reg-value { font-size: .95rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.reg-link { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
a.reg-link:hover { color: var(--brand); }
.reg-emails { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.reg-emails a { color: var(--accent-deep); font-weight: 600; }
.reg-emails a:hover { color: var(--brand); text-decoration: underline; }

.copy-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg);
  font-family: inherit; font-size: .78rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.copy-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.copy-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.copy-btn.copied, .copy-all.copied { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.copy-all { cursor: pointer; font-family: inherit; }

/* Document cards — first-page preview, then title and download affordance. */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 22px; }
.doc-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: rgba(180,231,98,.5); box-shadow: 0 10px 26px rgba(29,29,29,.10); }
.doc-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* The scans are a mix of portrait (910x1287) and landscape (1287x909), so the
   thumbnail contains rather than covers — a cropped certificate is unreadable,
   and the point of the preview is to recognise the document at a glance. */
.doc-thumb {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  aspect-ratio: 1 / 1.32; padding: 6px;
}
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.doc-badge {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px;
  padding: 3px 9px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
}
.doc-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.doc-title { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.doc-sub { font-size: .82rem; color: var(--text-muted); }
.doc-cta { font-size: .82rem; font-weight: 700; color: var(--accent-deep); }
.doc-card:hover .doc-cta { color: var(--brand); }

@media (max-width: 640px) {
  .reg-row { grid-template-columns: 1fr auto; }
  .reg-label { grid-column: 1 / -1; }
  .details-head { justify-content: center; }
}

/* ===== Department section pages =====
   Each department has its own page at /{dept}/, so the front page's group
   headings link through to them and the pages cross-link to each other. */
.dept-eyebrow--hero {
  color: var(--accent);          /* on the ink hero, where the lime reads 11.68:1 */
  margin-bottom: 10px;
}
/* The heading link is the department name itself — it should not look like a
   link until you reach for it, or every section head turns into a call to
   action competing with the cards below. */
.dept-link { color: inherit; text-decoration: none; }
.dept-link:hover { color: var(--accent-deep); }
.dept-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.dept-more { margin: 26px 0 0; text-align: center; }
.dept-more .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 700; color: var(--accent-deep);
}
.dept-more .cta::after { content: "→"; transition: transform .25s ease; }
html[dir="rtl"] .dept-more .cta::after { content: "←"; }
.dept-more .cta:hover { color: var(--brand); }
.dept-more .cta:hover::after { transform: translateX(4px); }
html[dir="rtl"] .dept-more .cta:hover::after { transform: translateX(-4px); }
.dept-more .cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.dept-switch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.dept-switch-label { font-size: .9rem; font-weight: 600; color: var(--text-muted); }

/* ===== Overflow hardening =====
   Defensive, not a fix for an observed bug: the layout was measured clean at
   280-390px and at 100/150/200% text scaling before any of this was added.
   These rules stop a single long token — an e-mail, a URL, a phone number, an
   unusually long name added later — from being able to force the document
   wider than the viewport. */
/* `break-word`, deliberately not `anywhere`. Both stop a long unbroken run —
   an e-mail, a URL, a phone number — painting outside its box, and neither
   splits a word that has somewhere better to break. `anywhere` additionally
   feeds into intrinsic sizing, which changes how every shrink-to-fit box in
   the site measures itself; that is a site-wide behavioural change and no
   measured problem here needs it. */
body { overflow-wrap: break-word; }

/* Grid and flex children default to min-width:auto, which refuses to shrink
   below min-content and is what let the overflow escape its container in the
   first place. These are the tracks that hold long words. */
.section-head,
.f-grid > *,
.f-col,
.f-brand,
.cards > .card,
.team-dept { min-width: 0; }

/* `break-word` above stops a word painting outside its box, but it does NOT
   feed back into intrinsic sizing — a shrink-to-fit box still measures itself
   against the UNBROKEN word. `.section-head h2` is display:inline-block, so it
   kept sizing to the full «الإدارة التنفيذية» and spilling. `anywhere` is the
   variant that does affect min-content, so the headings actually shrink. */
h1, h2, h3,
.section-head h2 { max-width: 100%; }

/* Footer contact rows are flex, and a phone number has no break opportunity at
   all — min-width:auto meant the row refused to go narrower than +966114110394. */
.f-contact a { min-width: 0; }
.f-contact a > span { min-width: 0; overflow-wrap: anywhere; }
