/* =========================================================================
   2H — نظام التصميم
   الألوان مستخرجة من الشعار: أخضر داكن #052814، أخضر الحقل #3DB656، أزرق الماء #1DABE3.
   الترتيب: الخطوط ← المتغيرات ← الأساسيات ← المكونات ← الأقسام ← الحركة ← المقاسات
   ========================================================================= */

/* ---------- الخطوط (مستضافة محليًا، رخصة OFL) ---------- */
@font-face { font-family: "Alexandria"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/alexandria-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Alexandria"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/alexandria-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap;
  src: url(../fonts/plex-arabic-400-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap;
  src: url(../fonts/plex-arabic-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap;
  src: url(../fonts/plex-arabic-500-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap;
  src: url(../fonts/plex-arabic-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap;
  src: url(../fonts/plex-arabic-700-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap;
  src: url(../fonts/plex-arabic-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- المتغيرات ---------- */
:root {
  /* من الشعار */
  --green-950: #052814;   /* أخضر الشعار الداكن */
  --green-900: #0B3A22;
  --green-800: #124A2E;
  --leaf:      #3DB656;   /* أخضر الحقل: الأزرار */
  --leaf-hi:   #57C96E;
  --sky:       #1DABE3;   /* أزرق الماء: الخطوط والشبكة */
  --sky-ink:   #0B76A3;   /* أزرق للنص على الفاتح (تباين 4.5:1+) */

  /* محايدات */
  --paper:     #F4F6F1;   /* ورق مساحي */
  --paper-2:   #EAEFE7;
  --white:     #FFFFFF;
  --ink:       #0E2A1A;
  --ink-2:     #4A6355;
  --line:      #D3DED5;
  --line-dark: rgba(255,255,255,.12);
  --on-dark:   #E8F1EA;
  --on-dark-2: #9FB9A8;

  /* علامة المحتوى المؤقت */
  --ph-bg: #FCEFCF; --ph-line: #E0A21B; --ph-ink: #7A4B00;

  --f-display: "Alexandria", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Plex Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --rail: 0px;            /* مساحة خط الشبكة على اليمين */
  --r-sm: 6px; --r: 12px; --r-lg: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
  color-scheme: light;
}
@media (min-width: 1100px) { :root { --rail: 72px; } }

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html[data-motion="on"] { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.85;
  color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0; text-wrap: balance; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; transform: translateY(-160%);
  background: var(--leaf); color: var(--green-950); padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* يترك مساحة لخط الشبكة على الشاشات المتوسطة */
@media (min-width: 1100px) and (max-width: 1420px) {
  .wrap { padding-inline-start: calc(var(--gutter) + var(--rail) - 24px); }
}

/* محتوى ينتظر الاعتماد: يجب ألا يبقى منه شيء عند النشر */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  border-bottom: 2px dashed var(--ph-line); border-radius: 4px; padding-inline: .3em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.on-dark .ph { background: rgba(224,162,27,.16); color: #FFD58A; }
.badge-draft {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .75rem/1 var(--f-body); color: var(--ph-ink); background: var(--ph-bg);
  border: 1px dashed var(--ph-line); border-radius: 999px; padding: 5px 10px;
}
.on-dark .badge-draft { background: rgba(224,162,27,.14); color: #FFD58A; }

/* وسم «صورة توضيحية» على أي صورة غير حقيقية من أعمال الشركة */
.stock-tag {
  position: absolute; inset-block-end: 10px; inset-inline-start: 10px; z-index: 2;
  font: 500 .72rem/1 var(--f-body); color: #fff;
  background: rgba(5,40,20,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 5px 9px; border-radius: 999px; pointer-events: none;
}

/* ---------- المكونات ---------- */
.btn {
  --bg: var(--leaf); --fg: var(--green-950); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: var(--leaf-hi); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(-4px); }
.btn-ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.4); }
.btn-ghost:hover { --bg: rgba(255,255,255,.08); --bd: #fff; }
.btn-dark { --bg: var(--green-950); --fg: #fff; }
.btn-dark:hover { --bg: var(--green-800); }
.btn-line { --bg: transparent; --fg: var(--green-900); --bd: var(--line); }
.btn-line:hover { --bg: var(--white); --bd: var(--green-900); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: .95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sky-ink);
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }
.on-dark .link-arrow { color: var(--sky); }

/* عنوان القسم: رقم الصمام + عنوان + وصف */
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .875rem/1 var(--f-body); color: var(--sky-ink); letter-spacing: .01em;
}
.eyebrow .num { font-size: .8rem; color: var(--ink-2); padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }
.eyebrow::after { content: ""; width: 40px; height: 1.5px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--sky); }
.on-dark .eyebrow .num { color: var(--on-dark-2); border-color: var(--line-dark); }
.sec-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); color: var(--green-950); letter-spacing: -.01em; }
.on-dark .sec-title { color: #fff; }
.sec-lead { color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); max-width: 62ch; }
.on-dark .sec-lead { color: var(--on-dark-2); }

.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.on-dark { background: var(--green-950); color: var(--on-dark); }

/* شبكة الورق الهندسي */
.blueprint {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(11,58,34,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,58,34,.06) 1px, transparent 1px),
    linear-gradient(rgba(11,58,34,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,58,34,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.on-dark.blueprint {
  background-color: var(--green-950);
  background-image:
    linear-gradient(rgba(29,171,227,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,171,227,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}

/* ---------- خط الشبكة (التوقيع البصري) ---------- */
.pipeline {
  position: fixed; z-index: 40; top: 0; bottom: 0; inset-inline-start: 28px; width: 20px;
  pointer-events: none; display: none;
}
@media (min-width: 1100px) { .pipeline { display: block; } }
.pipeline__track, .pipeline__fill {
  position: absolute; top: calc(var(--header-h) + 24px); bottom: 32px; inset-inline-start: 9px; width: 2px; border-radius: 2px;
}
.pipeline__track { background: rgba(120,150,130,.35); }
.pipeline__fill {
  background: linear-gradient(to bottom, var(--sky), #64CBF0);
  transform-origin: top; transform: scaleY(var(--p, 0));
  box-shadow: 0 0 12px rgba(29,171,227,.45);
}
.pipeline__nodes { position: absolute; inset: calc(var(--header-h) + 24px) 0 32px 0; margin: 0; padding: 0; list-style: none; }
.pipeline__node {
  position: absolute; inset-inline-start: 0; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: auto;
}
.pipeline__node a {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid rgba(11,58,34,.28); text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.pipeline__node[data-tone="dark"] a { background: var(--green-950); border-color: rgba(255,255,255,.35); }
.pipeline__node a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background-color .3s; }
.pipeline__node.is-passed a { border-color: var(--sky); }
.pipeline__node.is-passed a::after { background: var(--sky); }
.pipeline__node.is-current a { transform: scale(1.25); }
.pipeline__node a:hover, .pipeline__node a:focus-visible { transform: scale(1.25); }
.pipeline__label {
  position: absolute; inset-inline-start: 30px; top: 50%; transform: translate(6px,-50%); opacity: 0;
  white-space: nowrap; font: 600 .8rem/1 var(--f-body); color: var(--green-950);
  background: var(--white); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px;
  transition: opacity .2s, transform .2s var(--ease); pointer-events: none;
}
.pipeline__node a:hover + .pipeline__label, .pipeline__node a:focus-visible + .pipeline__label,
.pipeline__node.is-current .pipeline__label { opacity: 1; transform: translate(0,-50%); }
.pipeline__node[data-tone="dark"] .pipeline__label { background: var(--green-900); color: #fff; border-color: var(--line-dark); }

/* على الهاتف: شريط تقدم رفيع أعلى الشاشة */
.progress-bar { position: fixed; z-index: 60; top: 0; inset-inline: 0; height: 3px; background: transparent; pointer-events: none; }
.progress-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--sky);
  transform-origin: right; transform: scaleX(var(--p, 0));
}
@media (min-width: 1100px) { .progress-bar { display: none; } }

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed; z-index: 50; top: 0; inset-inline: 0; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.site-header.is-solid {
  background: rgba(5,40,20,.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__logo {
  display: grid; place-items: center; width: 74px; height: 50px; border-radius: 12px;
  background: #fff; padding: 4px 6px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { display: grid; line-height: 1.25; }
.brand__name b { font: 800 1.05rem/1.2 var(--f-display); }
.brand__name span { font-size: .78rem; color: var(--on-dark-2); }

.nav-wrap { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; }
.nav__list a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: rgba(255,255,255,.82); font-weight: 500; font-size: .98rem; transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__list a[aria-current="page"] { color: #fff; }
.nav__list a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--leaf); border-radius: 2px; }
.nav .btn { margin-inline-start: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(5,40,20,.35); cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- الواجهة (Hero) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: 1fr;
  background: var(--green-950); color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
/* ألوان طبيعية: لا تظليل أخضر، والأخضر هو لون الزرع نفسه */
.hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
/* في الإنجليزية يُعكس الكادر أفقيًا حتى يبقى جهاز الري بعيدًا عن جهة النص */
[dir="ltr"] .hero__media img, [dir="ltr"] .hero__media video { transform: scaleX(-1); }
.hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.is-playing { opacity: 1; }
/* تدرج داكن محايد من جهة النص ومن أسفل فقط، لضمان وضوح النص */
.hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  --side: 270deg;
  background:
    linear-gradient(var(--side), rgba(4,16,10,.86) 0%, rgba(4,16,10,.62) 40%, rgba(4,16,10,0) 72%),
    linear-gradient(0deg, rgba(4,16,10,.7) 0%, rgba(4,16,10,0) 35%),
    linear-gradient(180deg, rgba(4,16,10,.5) 0%, rgba(4,16,10,0) 20%);
}
[dir="ltr"] .hero__shade { --side: 90deg; }
.hero__contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero .hero__contours { opacity: .22; }
.hero__contours path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__body {
  align-self: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px;
}
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--sky); font-weight: 600; font-size: .95rem; }
.hero__kicker::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 0 4px rgba(29,171,227,.25);
}
.hero__title {
  margin-top: 22px; max-width: 13em;
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.6rem); line-height: 1.25; color: #fff;
}
.hero__title .w { display: inline-block; }
.hero__title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__title em { font-style: normal; color: #B9F5C4; }
.hero__lead { margin-top: 26px; max-width: 40em; color: rgba(232,241,234,.86); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.motion-toggle {
  position: absolute; z-index: 3; inset-inline-end: var(--gutter); bottom: 96px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,40,20,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font: 500 .85rem/1 var(--f-body); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.motion-toggle:hover { background: rgba(5,40,20,.7); border-color: #fff; }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
html[data-motion="off"] .motion-toggle .i-pause { display: none; }
html[data-motion="off"] .motion-toggle .i-play { display: block; }

/* زر اللغة */
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font: 700 .9rem/1 var(--f-display); letter-spacing: .03em;
  transition: background-color .2s, border-color .2s;
}
.lang:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lang svg { width: 16px; height: 16px; }

/* «من ضمن أعمالنا» تحت الواجهة — أمثلة منفذة، بلا أرقام */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; }
.proof__item { padding: 30px 28px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: center; }
.proof__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.proof__item b { font: 800 1.2rem/1.4 var(--f-display); color: var(--green-950); }
.proof__item span { color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.proof__note { padding: 30px 28px; border-inline-start: 1px solid var(--line); display: grid; align-content: center; gap: 6px; color: var(--ink-2); font-size: .93rem; line-height: 1.7; }
.proof__note strong { color: var(--sky-ink); font: 700 .85rem/1 var(--f-display); }
.proof__note a { color: var(--sky-ink); font-weight: 700; }

/* زر واتساب العائم */
.wa-float {
  position: fixed; z-index: 45; bottom: 22px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding-inline: 16px 20px; border-radius: 999px; background: var(--leaf); color: var(--green-950);
  text-decoration: none; font: 700 .95rem/1 var(--f-body); box-shadow: 0 14px 30px -10px rgba(5,40,20,.55); transition: background-color .2s, transform .2s var(--ease);
}
.wa-float:hover { background: var(--leaf-hi); transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- نبذة ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__statement {
  font: 800 clamp(1.8rem, 1rem + 2.8vw, 3.4rem)/1.5 var(--f-display); color: var(--green-950);
}
.about__statement .hl { color: var(--leaf); }
.about__statement .hl-sky { color: var(--sky-ink); }
.about__text { margin-top: 28px; display: grid; gap: 16px; color: var(--ink-2); max-width: 58ch; }
.about__text + .link-arrow { margin-top: 28px; }
.about__figure { position: relative; margin: 0; }
.about__figure .frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/5;
  box-shadow: 0 40px 80px -40px rgba(5,40,20,.55);
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.about__figure.in img { transform: none; }
/* علامات زوايا هندسية */
.about__figure::before, .about__figure::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--sky); z-index: 1;
}
.about__figure::before { top: -12px; right: -12px; border-left: 0; border-bottom: 0; }
.about__figure::after { bottom: -12px; left: -12px; border-right: 0; border-top: 0; }
.about__caption {
  position: absolute; inset-inline-start: -28px; bottom: 36px; z-index: 2;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; box-shadow: 0 20px 40px -24px rgba(5,40,20,.5); display: grid; gap: 4px; max-width: 240px;
}
.about__caption b { font: 700 .95rem/1.3 var(--f-display); color: var(--green-950); }
.about__caption span { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.stats[hidden] { display: none; }

/* ---------- مجالات العمل: لوحات هندسية ---------- */
.svc-groups { display: grid; gap: clamp(36px, 5vw, 56px); }
.svc-group { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.svc-group__label { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 8px; padding-top: 6px; }
.svc-group__label b { font: 800 1.5rem/1.2 var(--f-display); color: var(--green-950); }
.svc-group__label span { font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.svc-group__label i {
  font-style: normal; width: max-content; font: 600 .75rem/1 var(--f-body); color: var(--sky-ink);
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px;
}
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc {
  position: relative; display: grid; gap: 12px; align-content: start; min-height: 240px;
  padding: 26px 24px 24px; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc::before { /* علامة الزاوية */
  content: ""; position: absolute; top: 10px; left: 10px; width: 12px; height: 12px;
  border-top: 1.5px solid var(--line); border-left: 1.5px solid var(--line); transition: border-color .3s;
}
.svc:hover { border-color: var(--green-900); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(5,40,20,.45); }
.svc:hover::before { border-color: var(--sky); }
.svc__no { position: absolute; top: 18px; inset-inline-end: 22px; font: 600 .78rem/1 var(--f-display); color: var(--ink-2); letter-spacing: .04em; }
.svc__icon { width: 56px; height: 56px; color: var(--green-900); }
.svc__icon path, .svc__icon circle, .svc__icon rect, .svc__icon line, .svc__icon polyline, .svc__icon ellipse {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.svc__icon .w { stroke: var(--sky); }
.svc h3 { font-size: 1.2rem; color: var(--green-950); }
.svc p { color: var(--ink-2); font-size: .97rem; line-height: 1.75; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--sky-ink); }
.svc__more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.svc:hover .svc__more svg { transform: translateX(-4px); }
.svc .badge-draft { position: absolute; bottom: 22px; inset-inline-end: 22px; }

/* ---------- المشروعات: اللوحة الهندسية ---------- */
.projects-band { overflow: hidden; }
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.projects-head .sec-head { margin-bottom: 0; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sheet {
  position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); background: rgba(255,255,255,.02); overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--ease), background-color .3s;
}
.sheet:hover { border-color: var(--sky); transform: translateY(-4px); background: rgba(29,171,227,.04); }
.sheet__plan { position: relative; aspect-ratio: 16/11; border-bottom: 1px solid rgba(255,255,255,.16); overflow: hidden; }
.sheet__plan svg { width: 100%; height: 100%; }
.sheet__plan .contour { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.sheet__plan .pivot { fill: rgba(61,182,86,.16); stroke: var(--leaf); stroke-width: 1.2; }
.sheet__plan .arm { stroke: var(--leaf); stroke-width: 1.2; }
.sheet__plan .main { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.sheet.in .sheet__plan .main, .sheet:hover .sheet__plan .main { stroke-dashoffset: 0; }
.sheet__plan .node { fill: var(--green-950); stroke: var(--sky); stroke-width: 1.5; }
.sheet__plan .north { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1; }
.sheet__plan .north-t { fill: rgba(255,255,255,.6); font: 600 9px var(--f-body); }
.sheet__tag { position: absolute; top: 14px; inset-inline-start: 14px; }
/* جدول العنوان */
.tblock { display: grid; grid-template-columns: 1fr 1fr; font-size: .88rem; }
.tblock > div { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 3px; min-width: 0; }
.tblock > div:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.12); }
.tblock .full { grid-column: 1 / -1; border-inline-end: 0 !important; border-top: 0; padding-block: 18px 14px; }
.tblock dt { font-size: .72rem; color: var(--on-dark-2); letter-spacing: .02em; }
.tblock dd { margin: 0; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.tblock .full dd { font: 800 1.25rem/1.35 var(--f-display); }
.tblock .code dd { font: 600 .85rem/1.4 var(--f-display); color: var(--sky); }

/* خريطة مصر */
.map-block {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid rgba(255,255,255,.12);
}
.map-svg { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.map-svg .land { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.45); stroke-width: 1.2; stroke-linejoin: round; }
.map-svg .nile { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.map-svg .sea-t { fill: rgba(29,171,227,.6); font: 500 11px var(--f-body); }
.map-svg .city { fill: rgba(255,255,255,.5); }
.map-svg .city-t { fill: rgba(255,255,255,.55); font: 500 10px var(--f-body); }
.map-svg .graticule { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.map-pin { cursor: pointer; }
.map-pin .ring { fill: none; stroke: var(--leaf); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.map-pin .dot { fill: var(--leaf); stroke: var(--green-950); stroke-width: 2; }
.map-pin .pin-t { fill: #fff; font: 700 13px var(--f-display); direction: ltr; text-anchor: start; paint-order: stroke; stroke: var(--green-950); stroke-width: 4px; }
.map-pin:hover .dot, .map-pin:focus-visible .dot { fill: var(--leaf-hi); }
.map-legend { display: grid; gap: 12px; margin-top: 28px; list-style: none; }
.map-legend li { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: .95rem; }
.map-legend i { width: 22px; height: 2px; background: var(--sky); flex: none; }
.map-legend i.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); margin-inline: 5px; }

/* ---------- لماذا 2H ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why__item { position: relative; padding-block: 36px 8px; padding-inline: 0 28px; display: grid; gap: 14px; align-content: start; }
.why__item + .why__item { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.why__item:first-child { padding-inline-start: 0; }
.why__no {
  font: 800 4.2rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--green-900);
  letter-spacing: -.02em; opacity: .9;
}
.why__item h3 { font-size: 1.25rem; color: var(--green-950); }
.why__item p { color: var(--ink-2); font-size: .97rem; }
.why__item::before { /* خط علوي يمتلئ عند الظهور */
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--leaf);
  transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease);
}
.why__item.in::before { transform: scaleX(1); }

/* ---------- منهجية التنفيذ ---------- */
.method {
  display: grid; grid-template-columns: 1fr 1.1fr; column-gap: clamp(32px, 5vw, 80px); align-items: center;
  grid-template-areas: "head visual" "steps visual";
}
.method__head { grid-area: head; align-self: end; }
.method__steps { grid-area: steps; align-self: start; }
.method__visual { grid-area: visual; }
.steps { display: grid; gap: 4px; list-style: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid transparent; background: transparent; text-align: start; cursor: pointer; width: 100%;
  color: var(--on-dark); transition: background-color .3s, border-color .3s;
}
.step:hover { background: rgba(255,255,255,.04); }
.step[aria-selected="true"] { background: rgba(255,255,255,.06); border-color: rgba(29,171,227,.45); }
.step__no {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.3); font: 700 .95rem/1 var(--f-display); color: var(--on-dark-2);
  transition: all .3s var(--ease);
}
.step[aria-selected="true"] .step__no { background: var(--sky); border-color: var(--sky); color: var(--green-950); }
.step b { font: 700 1.15rem/1.4 var(--f-display); color: #fff; align-self: end; }
.step span { color: var(--on-dark-2); font-size: .95rem; line-height: 1.7; }
.method__visual {
  position: relative; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(29,171,227,.08), rgba(255,255,255,0) 45%); overflow: hidden;
}
.method__visual svg { width: 100%; height: auto; }
.method__caption {
  padding: 18px 20px 0; font: 600 .8rem/1 var(--f-display); color: var(--sky);
  display: flex; gap: 10px; align-items: center;
}
.method__caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
/* طبقات المقطع: تظهر حسب المرحلة */
.soil [data-stage] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.soil[data-step="1"] [data-stage~="1"],
.soil[data-step="2"] [data-stage~="2"],
.soil[data-step="3"] [data-stage~="3"],
.soil[data-step="4"] [data-stage~="4"] { opacity: 1; }
.soil .dune { transition: d .9s var(--ease); }
.soil .survey { stroke: var(--sky); stroke-width: 1.2; stroke-dasharray: 4 5; fill: none; }
.soil .pipe { stroke: var(--sky); stroke-width: 7; stroke-linecap: round; fill: none; }
.soil .pipe-in { stroke: #9BE0F7; stroke-width: 2; stroke-linecap: round; fill: none; stroke-dasharray: 10 14; }
.soil .crop { stroke: var(--leaf); stroke-width: 2; fill: none; stroke-linecap: round; }
.soil .label { fill: rgba(255,255,255,.75); font: 500 14px var(--f-body); }

/* ---------- المعرض ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure {
  position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: var(--r); overflow: hidden; background: var(--paper-2);
}
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(0deg, rgba(5,40,20,.8), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery .stock-tag { inset-block-end: auto; inset-block-start: 10px; }
.gallery-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- الدعوة للتواصل ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 13vw, 180px); color: #fff; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,40,20,.3) 0%, rgba(5,40,20,.75) 50%, rgba(5,40,20,.94) 100%);
}
.cta__flow { position: absolute; z-index: -1; inset-inline: 0; bottom: 0; width: 100%; height: 120px; }
.cta__flow path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 6 10; opacity: .8; }
.cta__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); max-width: 12em; line-height: 1.18; }
.cta__lead { margin-top: 20px; color: rgba(232,241,234,.85); font-size: 1.15rem; max-width: 40em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta .stock-tag { inset-inline-start: auto; inset-inline-end: 14px; inset-block-end: 14px; }

/* ---------- التذييل ---------- */
.site-footer { background: #031B0D; color: var(--on-dark-2); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 72px 48px; }
.footer-grid h2 { font: 700 1rem/1.4 var(--f-display); color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 32ch; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: .88rem; }

/* ---------- الحركة ---------- */
/* المحتوى ظاهر دائمًا بدون JS؛ الإخفاء يبدأ فقط عندما يعمل JS والحركة مفعّلة */
html.js[data-motion="on"] .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js[data-motion="on"] .reveal.in { opacity: 1; transform: none; }
html.js[data-motion="on"] .hero__title .w { opacity: 0; transform: translateY(.45em); filter: blur(6px);
  animation: word-in .9s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .09s); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
html.js[data-motion="on"] .hero__kicker, html.js[data-motion="on"] .hero__lead, html.js[data-motion="on"] .hero__actions {
  opacity: 0; animation: fade-up .9s var(--ease) forwards; }
html.js[data-motion="on"] .hero__lead { animation-delay: .8s; }
html.js[data-motion="on"] .hero__actions { animation-delay: .95s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* رسم الأيقونات الهندسية */
html.js[data-motion="on"] .svc__icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); transition-delay: calc(var(--d, 0s) + .15s); }
html.js[data-motion="on"] .svc.in .svc__icon > * { stroke-dashoffset: 0; }
html.js[data-motion="on"] .svc:hover .svc__icon > * { animation: redraw 1.1s var(--ease); }
@keyframes redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

html[data-motion="on"] .hero__contours g { animation: drift 40s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes drift { to { transform: translate(-2%, 1.5%) scale(1.04) rotate(1.5deg); } }
html[data-motion="on"] .map-pin .ring { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
html[data-motion="on"] .soil .pipe-in, html[data-motion="on"] .cta__flow path { animation: flow 2.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }

/* إيقاف الحركة: من الزر أو من إعدادات الجهاز */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition-duration: .01ms !important;
}
/* ---------- الاتجاه من اليسار لليمين (النسخة الإنجليزية) ---------- */
[dir="ltr"] .btn svg.arrow, [dir="ltr"] .link-arrow svg, [dir="ltr"] .svc__more svg, [dir="ltr"] .lb-btn.lb-prev svg, [dir="ltr"] .lb-btn.lb-next svg { scale: -1 1; }
[dir="ltr"] .progress-bar::after { transform-origin: left; }
[dir="ltr"] .why__item::before { transform-origin: left; }
[dir="ltr"] .cta::before { background: linear-gradient(270deg, rgba(5,40,20,.3) 0%, rgba(5,40,20,.75) 50%, rgba(5,40,20,.94) 100%); }
[dir="ltr"] .about__figure::before { right: auto; left: -12px; border-left: 2px solid var(--sky); border-right: 0; }
[dir="ltr"] .about__figure::after { left: auto; right: -12px; border-right: 2px solid var(--sky); border-left: 0; }
[dir="ltr"] body { font-size: 1.04rem; line-height: 1.7; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { letter-spacing: -.01em; }

/* ---------- المقاسات ---------- */
@media (max-width: 1100px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .sheet:nth-child(3) { display: none; }
  .why { grid-template-columns: 1fr 1fr; }
  .why__item:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__list, .nav .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav.is-open {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 28px; background: var(--green-950); border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open .nav__list { display: grid; }
  .nav.is-open .nav__list a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav.is-open .btn { display: inline-flex; margin: 12px 0 0; }
  .nav-wrap { display: flex; align-items: center; gap: 10px; }
  .about, .method, .map-block { grid-template-columns: 1fr; }
  .method { grid-template-areas: "head" "visual" "steps"; row-gap: 24px; }
  .method__visual { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; background: var(--green-950); }
  .about__figure { max-width: 520px; }
  .about__caption { inset-inline-start: 12px; }
  .svc-group { grid-template-columns: 1fr; gap: 20px; }
  .svc-group__label { position: static; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand__name span { display: none; }
  .brand__logo { width: 62px; height: 42px; }
  .projects { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .projects .sheet { scroll-snap-align: start; }
  .projects .sheet:nth-child(3) { display: grid; }
  .why { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding-inline: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .why__item:first-child { border-top: 0; }
  .motion-toggle { bottom: 84px; }
  .motion-toggle .lbl { display: none; }
  .motion-toggle { padding: 0; width: 40px; justify-content: center; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 32px; }
  .sec-head { margin-bottom: 32px; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* ---------- إضافات المرحلة 4: مقاسات ---------- */
.tblock .wide { grid-column: 1 / -1; border-inline-end: 0 !important; }
@media (max-width: 960px) {
  .proof .wrap { grid-template-columns: 1fr 1fr 1fr; }
  .proof__note { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
}
@media (max-width: 720px) {
  .proof .wrap { grid-template-columns: 1fr; }
  .proof__item, .proof__item:first-child { border-inline-start: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .proof__item:first-child { border-top: 0; }
  .wa-float { padding: 0; width: 56px; justify-content: center; bottom: 16px; inset-inline-end: 16px; }
  .wa-float span { display: none; }
  .lang { padding: 6px 10px; }
}
/* ---------- الهيدر الفاتح + الشعار بخلفية شفافة (المرحلة 4) ---------- */
:root { --header-h: 84px; }
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 10px 28px -20px rgba(5,40,20,.55); }
.brand__logo { display: block; width: auto; height: auto; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.brand__logo img { display: block; width: auto; height: 62px; max-width: none; }
.brand__name { display: none; }
.site-footer .brand__logo img { height: 76px; }
.nav__list a { color: var(--ink-2); }
.nav__list a:hover { color: var(--green-950); background: var(--paper-2); }
.nav__list a[aria-current="page"] { color: var(--green-950); font-weight: 600; }
.site-header .lang { color: var(--green-950); border-color: var(--line); }
.site-header .lang:hover { background: var(--paper); border-color: var(--green-900); }
.nav-toggle { border-color: var(--line); background: var(--white); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: var(--green-950); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
@media (max-width: 960px) {
  .nav.is-open { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(5,40,20,.5); }
  .nav.is-open .nav__list a { border-bottom-color: var(--line); color: var(--ink); }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .brand__logo img { height: 50px; }
}
/* ---------- الهيدر شفاف فوق الواجهة، وأبيض بعد التمرير ---------- */
.site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 10px 28px -20px rgba(5,40,20,.55); }
/* الشعار بألوانه الأصلية دائمًا؛ هالة فاتحة خفيفة تفصله عن الخلفيات الداكنة دون تغيير شكله أو ألوانه */
.site-header:not(.is-solid) .brand__logo img, .site-footer .brand__logo img { filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(255,255,255,.5)); }
.site-header:not(.is-solid) .nav__list a { color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.site-header:not(.is-solid) .nav__list a:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header:not(.is-solid) .nav__list a[aria-current="page"] { color: #fff; }
.site-header:not(.is-solid) .lang { color: #fff; border-color: rgba(255,255,255,.45); }
.site-header:not(.is-solid) .lang:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.site-header:not(.is-solid) .nav-toggle { background: rgba(5,40,20,.35); border-color: rgba(255,255,255,.35); }
.site-header:not(.is-solid) .nav-toggle span, .site-header:not(.is-solid) .nav-toggle span::before, .site-header:not(.is-solid) .nav-toggle span::after { background: #fff; }
.site-header:not(.is-solid) .nav-toggle[aria-expanded="true"] span { background: transparent; }
/* ---------- من أرض الواقع: مقاطع حقيقية رأسية ---------- */
.reels-band { background: var(--white); border-block: 1px solid var(--line); }
.reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.reel { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--green-950); cursor: pointer; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 48px 12px 12px; color: #fff;
  font: 600 .9rem/1.45 var(--f-display); background: linear-gradient(0deg, rgba(4,16,10,.85), transparent);
}
.real-tag {
  position: absolute; z-index: 2; inset-block-start: 10px; inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  font: 600 .72rem/1 var(--f-body); color: var(--green-950); background: rgba(185,245,196,.92); pointer-events: none;
}
.real-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(61,182,86,.25); }
.gallery .real-tag { inset-block-start: 10px; }
.reel.is-paused::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 52px; height: 52px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(255,255,255,.85) no-repeat 56% 50% / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23052814'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E");
}
[dir="ltr"] .reel.is-paused::after { transform: translate(-50%,-50%); }
@media (max-width: 1100px) { .reels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .reel { scroll-snap-align: start; }
}
/* زر إيقاف الحركة أُلغي: كل الفيديوهات تعمل تلقائيًا */
.motion-toggle { display: none !important; }
.reel.is-paused::after { display: none; }
