:root {
  --ink: #10202a;
  --deep: #0a2a3b;
  --body: #2b3a43;
  --muted: #5b6a72;
  --gold: #0f6b3a;      /* URD green (accent) */
  --gold-2: #0aa6c8;    /* URD cyan (accent on dark) */
  --gold-soft: #9fd8e6;
  --teal: #1c6f8e;
  --paper: #f1f5f6;
  --card: #f8fafb;
  --line: #d3dde1;
  --white: #ffffff;

  --color-bg: var(--paper);
  --color-text: var(--body);
  --color-primary: var(--gold);

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Archivo', 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --text-hero: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);

  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms var(--ease);
  --wrap: min(1200px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  --sec: clamp(4.5rem, 3rem + 6vw, 8rem);
}

html[lang='ar'] { --font-display: var(--font-ar); --font-body: var(--font-ar); }
html[lang='ar'] .en, html[lang='en'] .ar { display: none !important; }
html[lang='ar'] body { line-height: 1.85; }
.ar-font { font-family: var(--font-ar); }

body { font-family: var(--font-body); background: var(--paper); color: var(--body); }
.wrap { width: var(--wrap); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.015em; line-height: 1.1; font-stretch: 92%; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { letter-spacing: 0; line-height: 1.35; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 80px; }
.brand { position: relative; display: block; height: 50px; }
.brand img { height: 50px; width: auto; transition: opacity .3s var(--ease); }
.brand .logo-dark { position: absolute; inset: 0 auto auto 0; opacity: 0; }
html[dir='rtl'] .brand .logo-dark { inset: 0 0 auto auto; }
.header.scrolled { background: rgba(247,245,239,.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.scrolled .logo-dark { opacity: 1; }
.header.scrolled .logo-light { opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-size: var(--text-sm); font-weight: 500; color: #fff; }
.header.scrolled .nav { color: var(--ink); }
.nav a { padding-block: .5rem; position: relative; }
.nav a:not(.nav-cta)::after { content: ''; position: absolute; inset-inline: 0; bottom: .15rem; height: 1.5px; background: var(--gold-2); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav .nav-cta { padding: .6rem 1.1rem; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 600; transition: background var(--transition-interactive); }
.nav .nav-cta:hover { background: #0b5a30; }
.head-tools { display: flex; align-items: center; gap: .5rem; }
.lang { min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: #fff; transition: border-color var(--transition-interactive), color var(--transition-interactive); }
.header.scrolled .lang { color: var(--ink); border-color: var(--line); }
.lang:hover { border-color: var(--gold-2) !important; color: var(--gold-2) !important; }
.lang .ar { font-family: 'Inter', sans-serif; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); position: relative; }
.header.scrolled .menu-btn { border-color: var(--line); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: #fff; transition: transform .3s var(--ease); }
.header.scrolled .menu-btn span { background: var(--ink); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- shared ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); }
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
.eyebrow .num { order: -1; font-family: var(--font-display); letter-spacing: .04em; }
.eyebrow:has(.num)::before { order: 0; }
.eyebrow.light { color: var(--gold-soft); }
html[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--text-sm); }
.sec-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sec-title { font-size: var(--text-xl); font-weight: 600; }
.lead { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--muted); max-width: 64ch; line-height: 1.6; }
section { padding-block: var(--sec); }

.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 50px; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; font-size: var(--text-sm); transition: background var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive); }
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
html[dir='rtl'] .btn .arr { transform: scaleX(-1); }
html[dir='rtl'] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.btn-accent { background: var(--gold); color: #fff; }
.btn-accent:hover { background: #0b5a30; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--ink) !important; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 140px 0; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
@media (max-width: 900px) { .hero-bg { inset-inline: 0; } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,32,42,.94) 0%, rgba(10,32,42,.72) 42%, rgba(10,32,42,.25) 100%), linear-gradient(0deg, rgba(10,32,42,.96) 0%, rgba(10,32,42,0) 45%); }
html[dir='rtl'] .hero-bg::after { background: linear-gradient(270deg, rgba(10,32,42,.94) 0%, rgba(10,32,42,.72) 42%, rgba(10,32,42,.25) 100%), linear-gradient(0deg, rgba(10,32,42,.96) 0%, rgba(10,32,42,0) 45%); }
@media (max-width: 900px) { .hero-bg::after, html[dir='rtl'] .hero-bg::after { background: linear-gradient(0deg, rgba(10,42,59,.97) 10%, rgba(10,42,59,.6) 60%, rgba(10,42,59,.45) 100%); } }
.hero-in { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero h1 { color: #fff; font-size: var(--text-hero); font-weight: 700; font-stretch: 88%; max-width: 15ch; letter-spacing: -0.035em; line-height: 1.02; }
html[lang='ar'] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero-sub { margin-top: var(--space-6); font-size: var(--text-lg); max-width: 52ch; color: rgba(255,255,255,.78); line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.stats li { padding: var(--space-8) var(--space-6) var(--space-8) 0; display: grid; gap: .2rem; }
.stats li + li { padding-inline-start: var(--space-6); border-inline-start: 1px solid rgba(255,255,255,.12); }
.stats b { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); font-weight: 600; color: var(--gold-2); letter-spacing: -0.02em; line-height: 1.1; font-family: 'Archivo', sans-serif; }
.stats .k { font-weight: 600; color: #fff; font-size: var(--text-sm); }
.stats small { color: rgba(255,255,255,.55); font-size: var(--text-xs); font-weight: 400; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.about-media { position: relative; padding-bottom: 18%; }
.about-media img { border-radius: var(--radius-lg); object-fit: cover; }
.am-main { width: 86%; aspect-ratio: 4/4.6; }
.am-side { position: absolute; inset-inline-end: 0; bottom: 0; width: 48%; aspect-ratio: 4/5; border: 6px solid var(--paper); }
.about-copy > .reveal p + p { margin-top: var(--space-4); }
.about-copy > .reveal p { max-width: 62ch; line-height: 1.75; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: var(--space-12); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--card); padding: var(--space-6); }
.pi { font-family: 'Archivo', sans-serif; font-size: var(--text-xs); color: var(--gold); font-weight: 600; }
.pillar h3 { font-size: var(--text-base); font-weight: 600; margin: .4rem 0 .35rem; }
.pillar p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }

/* ---------- services ---------- */
.services { background: var(--ink); color: rgba(255,255,255,.72); }
.services .sec-title { color: #fff; }
.services .lead { color: rgba(255,255,255,.6); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-inline-start: 1px solid rgba(255,255,255,.14); }
.svc { padding: var(--space-8) var(--space-6); border-inline-end: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); transition: background .35s var(--ease); min-height: 260px; display: flex; flex-direction: column; }
.svc:hover { background: rgba(10,166,200,.08); }
.svc-n { font-family: 'Archivo', sans-serif; color: var(--gold-2); font-size: var(--text-sm); font-weight: 600; }
.svc h3 { color: #fff; font-size: var(--text-lg); font-weight: 600; margin: 0 0 .6rem; padding-top: var(--space-8); }
.svc p { font-size: var(--text-sm); line-height: 1.6; }

/* ---------- projects ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: calc(-1 * var(--space-6)) 0 var(--space-8); }
.chip { min-height: 42px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); font-weight: 500; color: var(--ink); background: var(--card); transition: all var(--transition-interactive); }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.proj[hidden] { display: none; }
.proj figure { aspect-ratio: 4/3; overflow: hidden; background: #dde6ea; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proj:hover img { transform: scale(1.04); }
.proj-body { padding: var(--space-6); }
.loc { font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang='ar'] .loc { letter-spacing: 0; }
.proj h3 { font-size: var(--text-lg); font-weight: 600; margin: .45rem 0 .5rem; }
.proj p:last-child { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }

/* ---------- recent ---------- */
.recent { background: var(--card); border-block: 1px solid var(--line); }
.totals { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); }
.tot { background: var(--paper); padding: var(--space-6); display: grid; gap: .2rem; align-content: start; }
.tot span { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang='ar'] .tot span { letter-spacing: 0; }
.tot b { font-family: 'Archivo', sans-serif; font-size: var(--text-lg); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tot small { font-size: var(--text-xs); color: var(--muted); }
.tot.main { background: var(--ink); }
.tot.main span { color: var(--gold-soft); }
.tot.main b { color: var(--gold-2); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 820px; }
th { text-align: start; font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--card); }
html[lang='ar'] th { letter-spacing: 0; }
td { padding: 1rem 1.1rem; border-bottom: 1px solid #e6edf0; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f5f9fa; }
td.n { color: var(--gold); font-family: 'Archivo', sans-serif; font-weight: 600; }
td.p { color: var(--ink); font-weight: 600; max-width: 30ch; }
td.s { color: var(--muted); max-width: 32ch; }
td.y, td.d { white-space: nowrap; }
th.v, td.v { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.v { font-family: 'Archivo', sans-serif; font-weight: 600; color: var(--ink); }

/* ---------- portfolio ---------- */
.dom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.dom { border-top: 2px solid var(--ink); padding-top: var(--space-6); }
.dom-k { font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[lang='ar'] .dom-k { letter-spacing: 0; }
.dom h3 { font-size: var(--text-lg); font-weight: 600; margin: .4rem 0 var(--space-4); }
.dom li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); display: flex; gap: .7rem; }
.dom li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; background: var(--gold); transform: rotate(45deg); }

/* ---------- clients ---------- */
.clients { padding-top: 0; }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.client-grid li { background: var(--card); min-height: 92px; display: grid; place-items: center; text-align: center; padding: var(--space-4); font-family: 'Archivo', sans-serif; font-weight: 600; color: var(--ink); font-size: var(--text-sm); transition: background var(--transition-interactive), color var(--transition-interactive); }
.client-grid li:hover { background: var(--ink); color: var(--gold-2); }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.cert { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.seal { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--gold); font-size: .8rem; letter-spacing: .08em; box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--gold-soft); }
.cert b { display: block; font-family: 'Archivo', sans-serif; color: var(--ink); font-size: var(--text-lg); }
.cert div span { color: var(--muted); font-size: var(--text-sm); }
.cert-note { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--muted); }

/* ---------- member ---------- */
.member { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); position: relative; overflow: hidden; }
.member::before { content: ''; position: absolute; inset-inline-end: -8%; top: -30%; width: 46vw; aspect-ratio: 1; border: 1px solid rgba(10,166,200,.18); transform: rotate(45deg); pointer-events: none; }
.member-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 2rem + 4vw, 6rem); align-items: center; position: relative; }
.member .sec-title { color: #fff; margin-bottom: var(--space-4); }
.member p:not(.eyebrow) { max-width: 60ch; line-height: 1.75; }
.gstats { display: flex; gap: var(--space-12); margin-top: var(--space-8); }
.gstats li { display: grid; font-size: var(--text-sm); color: rgba(255,255,255,.6); }
.gstats b { font-family: 'Archivo', sans-serif; font-size: var(--text-xl); color: var(--gold-2); font-weight: 600; line-height: 1.1; }
.member-card { display: grid; gap: var(--space-6); justify-items: start; padding: clamp(2rem, 1.5rem + 2vw, 3rem); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); transition: border-color .3s var(--ease), background .3s var(--ease); }
.member-card:hover { border-color: var(--gold-2); background: rgba(10,166,200,.06); }
.member-card img { width: min(280px, 100%); height: auto; }
.member-card span { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-2); font-weight: 600; font-size: var(--text-sm); }
html[dir='rtl'] .member-card .ext { transform: scaleX(-1); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.contact .sec-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
blockquote { margin-top: var(--space-8); padding-inline-start: var(--space-6); border-inline-start: 2px solid var(--gold); font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); max-width: 44ch; line-height: 1.5; }
.cdetails { border-top: 2px solid var(--ink); }
.cdetails > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.cdetails dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
html[lang='ar'] .cdetails dt { letter-spacing: 0; font-size: var(--text-sm); }
.cdetails dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.cdetails dd a:hover { color: var(--gold); }
html[dir='rtl'] .cdetails dd[dir='ltr'] { text-align: right; }

/* ---------- footer ---------- */
.footer { background: #071c28; color: rgba(255,255,255,.55); font-size: var(--text-sm); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding-block: var(--space-12); flex-wrap: wrap; }
.foot-logo { height: 54px; width: auto; }
.foot-member { display: inline-flex; align-items: center; gap: .9rem; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
html[lang='ar'] .foot-member { letter-spacing: 0; }
.foot-member img { height: 30px; width: auto; }
.foot-base { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--space-6); font-size: var(--text-xs); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .totals { grid-template-columns: repeat(3, 1fr); }
  .tot.main { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink) !important; padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-8); box-shadow: 0 20px 40px rgba(0,0,0,.15); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: var(--space-4); text-align: center; border: 0; padding: .9rem; }
  .header.menu-open { background: var(--paper); }
  .header.menu-open .logo-dark { opacity: 1; } .header.menu-open .logo-light { opacity: 0; }
  .header.menu-open .lang { color: var(--ink); border-color: var(--line); }
  .header.menu-open .menu-btn { border-color: var(--line); } .header.menu-open .menu-btn span { background: var(--ink); }
  .about-grid, .contact-grid, .member-in { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .dom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header .wrap { min-height: 68px; }
  .nav { inset-block-start: 68px; }
  .brand, .brand img { height: 38px; }
  .svc-grid, .proj-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc h3 { padding-top: var(--space-6); }
  .pillars, .certs { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .totals { grid-template-columns: 1fr; }
  .stats li { padding: var(--space-6) var(--space-4) var(--space-6) 0; }
  .stats li + li { padding-inline-start: var(--space-4); }
  .cdetails > div { grid-template-columns: 1fr; gap: .3rem; }
  .gstats { gap: var(--space-8); }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

.nt { text-transform: none; }
.hero-member { display: inline-flex; align-items: center; gap: .9rem; margin-top: var(--space-8); padding-block: .6rem; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); transition: opacity .25s var(--ease); }
html[lang='ar'] .hero-member { letter-spacing: 0; font-size: var(--text-sm); }
.hero-member img { height: 30px; width: auto; }
.hero-member:hover { opacity: .8; }
.header:not(.scrolled):not(.menu-open) .lang, .header:not(.scrolled):not(.menu-open) .menu-btn { background: rgba(10,42,59,.35); backdrop-filter: blur(6px); }


/* ================= URD-specific ================= */
.prose p + p { margin-top: var(--space-4); }
.prose p { max-width: 64ch; line-height: 1.75; }
.mini { font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
html[lang='ar'] .mini { letter-spacing: 0; font-size: var(--text-sm); }
.about-grid { grid-template-columns: 1.25fr 1fr; }
.va { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-12); }
.va > div { border-top: 3px solid var(--gold); padding-top: var(--space-4); }
.va h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.va p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }
.about-side { display: grid; gap: var(--space-6); }
.ph { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #dde6ea; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph:hover img { transform: scale(1.03); }
.ph figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 2.4rem 1rem .9rem; font-size: var(--text-xs); color: #fff; background: linear-gradient(0deg, rgba(10,32,42,.85), rgba(10,32,42,0)); line-height: 1.45; }
html[lang='ar'] .ph figcaption { font-size: var(--text-sm); }
.about-side .ph { aspect-ratio: 4/4.4; }
.strengths { background: var(--deep); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); }
.strengths .mini { color: var(--gold-2); }
.strengths li { display: flex; gap: .9rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--text-sm); }
.strengths li .sn { font-style: normal; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }

.whyurd { background: #fff; border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.why { background: #fff; padding: var(--space-8) var(--space-6); transition: background .3s var(--ease); }
.why:hover { background: var(--card); }
.why-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(15,107,58,.1); color: var(--gold); font-weight: 700; font-size: var(--text-sm); }
.why h3 { font-size: var(--text-lg); margin: var(--space-4) 0 .5rem; }
.why p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }

.services { background: var(--deep); }
.svc-grid { grid-template-columns: repeat(3, 1fr); }
.svc { min-height: 0; }
.svc h3 { padding-top: var(--space-6); }
.svc ul { margin-top: var(--space-4); display: grid; gap: .35rem; }
.svc li { font-size: var(--text-sm); color: rgba(255,255,255,.85); display: flex; gap: .6rem; }
.svc li::before { content: ''; flex: none; width: 10px; height: 2px; background: var(--gold-2); margin-top: .7em; }
.awcs { margin-top: var(--space-12); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(10,166,200,.16), rgba(15,107,58,.18)); border: 1px solid rgba(10,166,200,.35); }
.awcs h3 { color: #fff; font-size: var(--text-xl); margin-bottom: var(--space-3); }
.awcs p:not(.eyebrow) { max-width: 82ch; line-height: 1.75; color: rgba(255,255,255,.8); }

.cap-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
.tbl-title { font-size: var(--text-lg); margin-bottom: var(--space-4); }
table.compact { min-width: 520px; }
table.compact td, table.compact th { padding: .7rem 1rem; }
tfoot td { padding: .9rem 1rem; font-weight: 700; color: var(--ink); background: var(--card); border-top: 1px solid var(--line); }
.note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); line-height: 1.6; max-width: 80ch; }
html[lang='ar'] .note { font-size: var(--text-sm); }
.wf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.wf-total { display: flex; align-items: baseline; gap: .8rem; }
.wf-total b { font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); font-weight: 700; color: var(--ink); line-height: 1; font-stretch: 88%; }
.wf-total span { color: var(--muted); font-weight: 600; }
.wf-bar { display: flex; gap: 4px; height: 10px; margin: var(--space-6) 0 var(--space-4); }
.wf-bar i { border-radius: 99px; }
.wf-bar i:nth-child(1) { background: var(--deep); } .wf-bar i:nth-child(2) { background: var(--gold); } .wf-bar i:nth-child(3) { background: var(--gold-2); }
.wf-list { display: grid; gap: .5rem; }
.wf-list li { display: flex; align-items: baseline; gap: .8rem; font-size: var(--text-sm); }
.wf-list b { min-width: 3ch; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wf-list li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; flex: none; align-self: center; }
.wf-list li:nth-child(1)::before { background: var(--deep); } .wf-list li:nth-child(2)::before { background: var(--gold); } .wf-list li:nth-child(3)::before { background: var(--gold-2); }
.cap-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin: var(--space-6) 0; }
.cap-notes h4, .cred-notes h4 { font-family: var(--font-display); color: var(--ink); font-size: var(--text-base); margin-bottom: .4rem; }
.cap-notes p, .cred-notes p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }
.ph.band { aspect-ratio: 16/6; }

.leadership { background: #fff; border-block: 1px solid var(--line); }
.md { display: inline-block; padding: var(--space-6) var(--space-8); border-radius: var(--radius-lg); background: var(--deep); margin-bottom: var(--space-6); position: relative; }
.md .mini { color: var(--gold-2); margin-bottom: .3rem; }
.md h3 { color: #fff; font-size: var(--text-xl); }
.org { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.org-col { border-top: 3px solid var(--gold); background: var(--card); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: var(--space-4); }
.org-col h3 { font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; font-stretch: 100%; }
html[lang='ar'] .org-col h3 { letter-spacing: 0; font-size: var(--text-base); }
.org-col li { font-size: var(--text-sm); padding: .45rem 0; border-top: 1px solid var(--line); color: var(--body); }

.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 16vw, 240px); gap: var(--space-4); }
.gallery .ph { height: 100%; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .tall { grid-row: span 2; }

.track { background: #fff; border-top: 1px solid var(--line); }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); }
.tstats li { background: var(--card); padding: var(--space-6); display: grid; font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.tstats b { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); color: var(--gold); font-weight: 700; line-height: 1.1; font-stretch: 88%; }
.cg-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: var(--space-6); margin-bottom: var(--space-16); }
.cg h3 { font-size: var(--text-base); display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .4rem; }
.cg h3 small { font-size: var(--text-xs); color: var(--gold); font-weight: 700; }
.cg ul { columns: 1; }
.cg:last-child ul { columns: 2; column-gap: var(--space-6); }
.cg li { font-size: var(--text-sm); padding: .45rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.chips { margin: 0 0 var(--space-6); }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 99px; background: rgba(28,111,142,.1); color: var(--teal); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
table.refs td.p { max-width: 34ch; }
table.refs td.s { max-width: 52ch; color: var(--body); }
table.refs.collapsed tr.more { display: none; }
table.refs tr[hidden] { display: none !important; }
.more-wrap { display: flex; justify-content: center; margin-top: var(--space-6); }

.creds { background: var(--paper); }
td.ref { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.cred-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-8); }

.member { background: var(--ink); }
.member::before { border-color: rgba(10,166,200,.2); }

.contact { position: relative; background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.contact .sec-title { color: #fff; }
.contact .lead { color: rgba(255,255,255,.7); }
.contact .cdetails { border-top-color: var(--gold-2); }
.contact .cdetails > div { border-bottom-color: rgba(255,255,255,.14); grid-template-columns: 12rem 1fr; }
.contact .cdetails dt { color: var(--gold-2); }
.contact .cdetails dd { color: #fff; }
.contact .cdetails dd a:hover { color: var(--gold-2); }
.foot-member { color: var(--gold-soft); }

@media (max-width: 1080px) {
  .org { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cg-grid { grid-template-columns: 1fr 1fr; }
  .cg:last-child { grid-column: 1 / -1; }
  .cg:last-child ul { columns: 3; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cap-grid, .about-grid { grid-template-columns: 1fr; }
  .tstats { grid-template-columns: repeat(2, 1fr); }
  .contact .cdetails > div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 640px) {
  .va, .cap-notes, .cred-notes { grid-template-columns: 1fr; }
  .why-grid, .svc-grid, .org, .cg-grid { grid-template-columns: 1fr; }
  .cg:last-child ul { columns: 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .wide { grid-column: 1 / -1; grid-row: span 2; }
  .md { display: block; }
}

.cap-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }

bdi { white-space: nowrap; }
/* ---------- crushing lines ---------- */
.crush { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 48px); align-items: stretch; background: var(--deep, #0a2a3b); color: #fff; border-radius: 16px; padding: clamp(22px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 64px); }
.crush-copy { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: end; }
.crush-copy .crush-stats { margin: 0; }
.crush-gal .ph:not(.big) { aspect-ratio: 4/3; }
.cap-grid table td:nth-child(2), .cap-grid table td:nth-child(3) { white-space: nowrap; }
.crush-copy h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; margin: .4em 0 .6em; color: #fff; }
.crush-copy p { color: rgba(255,255,255,.78); }
.crush-copy .mini { color: var(--gold-2, #0aa6c8); }
.crush-stats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; }
.crush-stats li { background: var(--deep, #0a2a3b); padding: 16px 18px; font-size: .85rem; color: rgba(255,255,255,.75); display: flex; flex-direction: column; gap: 4px; }
.crush-stats li b { font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: #3fd07c; font-weight: 800; line-height: 1; }
.crush-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.crush-gal .ph { margin: 0; height: 100%; min-height: 130px; border-radius: 10px; overflow: hidden; position: relative; }
.crush-gal .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crush-gal .ph.big { grid-column: span 2; grid-row: span 2; }
.crush-gal .ph figcaption { font-size: .72rem; }
table tr.hl td { font-weight: 700; background: rgba(15,107,58,.08); }
@media (max-width: 900px) {
  .crush-copy { grid-template-columns: 1fr; }
  .crush-gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .crush-gal .ph { min-height: 0; }
  .crush-gal .ph.big { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
  .crush-gal .ph { aspect-ratio: 4/3; height: auto; }
}

/* ---------- i7 Group family (shared across member sites) ---------- */
.family { background: var(--paper, #f7f5ef); }
.fam-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.fam-head > div { max-width: 680px; }
.fam-group { display: grid; gap: .8rem; justify-items: start; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s ease, transform .3s ease; }
.fam-group:hover { border-color: var(--gold); transform: translateY(-2px); }
.fam-group img { width: 200px; height: auto; }
.fam-group span, .fam-visit { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--text-sm); font-weight: 600; color: var(--gold); }
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fam-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; transition: border-color .3s ease, box-shadow .3s ease; }
.fam-card:hover { border-color: var(--gold); box-shadow: 0 14px 34px rgba(22,21,18,.07); }
.fam-logo { height: 110px; display: grid; place-items: center; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; padding-bottom: 1rem; }
.fam-logo img { max-height: 88px; max-width: 72%; width: auto; height: auto; object-fit: contain; transition: transform .35s ease; }
.fam-logo:hover img { transform: scale(1.05); }
.fam-card h3 { font-size: var(--text-base); font-weight: 600; }
.fam-sec { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: .3rem 0 .5rem; }
html[lang='ar'] .fam-sec { letter-spacing: 0; }
.fam-card > p:not(.fam-sec) { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.fam-visit { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.fam-visit:hover, .fam-group:hover span { color: var(--ink); }
html[dir='rtl'] .fam-visit .ext, html[dir='rtl'] .fam-group .ext { transform: scaleX(-1); }
@media (max-width: 1080px) { .fam-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fam-grid { grid-template-columns: 1fr; } .fam-group { width: 100%; } }
