:root {
  --ink: #161512;
  --ink-2: #22201b;
  --body: #38362d;
  --muted: #6e6c61;
  --gold: #b48a2c;
  --gold-2: #c9a24a;
  --gold-soft: #e6d3a6;
  --red: #b3272d;
  --paper: #f7f5ef;
  --card: #fbf9f3;
  --line: #dbd5c6;
  --white: #ffffff;

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

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', '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.02em; line-height: 1.12; }
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: 54px; }
.brand img { height: 54px; 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: #9c7724; }
.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-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9c7724; }
.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; 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-block: 0; inset-inline: 48% 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: 40% 30%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,21,18,1) 0%, rgba(22,21,18,.55) 30%, rgba(22,21,18,.1) 70%), linear-gradient(0deg, rgba(22,21,18,.95) 0%, rgba(22,21,18,0) 40%); }
html[dir='rtl'] .hero-bg::after { background: linear-gradient(270deg, rgba(22,21,18,1) 0%, rgba(22,21,18,.55) 30%, rgba(22,21,18,.1) 70%), linear-gradient(0deg, rgba(22,21,18,.95) 0%, rgba(22,21,18,0) 40%); }
@media (max-width: 900px) { .hero-bg::after, html[dir='rtl'] .hero-bg::after { background: linear-gradient(0deg, rgba(22,21,18,.97) 10%, rgba(22,21,18,.6) 60%, rgba(22,21,18,.45) 100%); } }
.hero-in { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero h1 { color: #fff; font-size: var(--text-hero); font-weight: 600; max-width: 14ch; 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: 'Sora', 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: 'Sora', 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(201,162,74,.08); }
.svc-n { font-family: 'Sora', 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: #e9e5da; }
.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: 'Sora', 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 #ece8de; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfaf4; }
td.n { color: var(--gold); font-family: 'Sora', 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: 'Sora', 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: 'Sora', 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: 'Sora', 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: 'Sora', 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(201,162,74,.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: 'Sora', 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(201,162,74,.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: #0f0e0c; 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(22,21,18,.35); backdrop-filter: blur(6px); }

/* ---------- 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%; } }
