/* =========================================================
   SET — SMART EAST TECHNOLOGIES
   ========================================================= */

:root{
  /* Official SET brand: navy #08079F, green #00E491 (from logo source) */
  --brand-navy: #08079f;
  --brand-green: #00e491;

  --bg: #05060a;
  --bg-1: #0a0c13;
  --bg-2: #0d1119;
  --ink: #f4f6f7;
  --ink-70: rgba(244,246,247,.7);
  --ink-50: rgba(244,246,247,.5);
  --ink-30: rgba(244,246,247,.3);
  --line: rgba(244,246,247,.1);
  --line-soft: rgba(244,246,247,.06);
  --accent: #00e491;
  --accent-dim: #0a8f5c;
  --indigo: #4b3ff5;
  --indigo-dim: #1c1868;

  /* dark-theme section tones — deep navy family, subtle variation section to section */
  --tone-a: #05060a;
  --tone-b: #070a1c;
  --tone-c: #081228;
  --tone-d: #061a17;
  --tone-e: #0a0c13;
  --dark-navy: #070a1c;

  --radius: 2px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.16,.84,.44,1);
  --dur-s: .4s;
  --dur-m: .8s;
  --dur-l: 1.4s;
  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --container: 1360px;
  --nav-h: 84px;
}

:root[data-theme="light"]{
  --bg: #f5f7ff;
  --bg-1: #ffffff;
  --bg-2: #eef1ff;
  --ink: #0a0836;
  --ink-70: rgba(10,8,54,.7);
  --ink-50: rgba(10,8,54,.5);
  --ink-30: rgba(10,8,54,.32);
  --line: rgba(10,8,54,.12);
  --line-soft: rgba(10,8,54,.07);
  --accent: #00a86b;
  --accent-dim: #017f52;
  --indigo: #08079f;
  --indigo-dim: #e4e3ff;
  --body-bg: linear-gradient(170deg, #fcfdff 0%, #f0f3ff 38%, #eafcf4 100%);

  /* light-theme section tones — each section gets a different member of the identity */
  --tone-a: #fbfcff;      /* cool off-white */
  --tone-b: #eef2ff;      /* pale blue */
  --tone-c: #ffffff;      /* pure white surface */
  --tone-d: #e9fbf3;      /* pale mint */
  --tone-e: #fdfbf6;      /* warm off-white */
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--bg); transition: background .4s var(--ease); }
html,body{ overflow-x: hidden; max-width: 100%; }

body{
  margin:0;
  background: var(--body-bg, var(--bg));
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; background:none; border:none; color:inherit; cursor:pointer; padding:0; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
svg{ display:block; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 22px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex:0 0 auto; }

.section-head{
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  text-align:center;
}
.section-head .eyebrow{ justify-content:center; }
.section-head--light{ color:#fff; }
.section-head--light .eyebrow{ color: var(--accent); }

/* Section badge: small SET emblem chip that precedes every section eyebrow.
   Uses a solid accent circle behind a white mark so it reads on any
   background (light page, dark chapter, photo, gradient) without needing
   per-theme swapping. Applied sitewide for consistent brand presence. */
.section-head__badge{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; margin: 0 auto 22px; position:relative; z-index:2;
}
.section-head__badge .eyebrow{ margin-bottom:0; }
.section-head__logo{
  width:38px; height:38px; flex:0 0 auto; box-sizing:border-box;
  padding:9px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(244,246,247,.14), 0 4px 14px rgba(0,228,145,.25);
}
.leadership__head .section-head__badge,
.join .section-head__badge{ margin-left:auto; margin-right:auto; }

/* Large soft background watermark of the SET emblem. Reused across
   chapter sections to keep the brand mark quietly present without
   competing with foreground content. Sizing/position is set per instance
   via inline style (position varies by section layout); this just
   guarantees it never intercepts clicks or breaks layout flow. */
.section-watermark{
  position:absolute; pointer-events:none; z-index:0; user-select:none;
}

.section-title{
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.section-sub{
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.section-head--light .section-sub{ color: rgba(255,255,255,.78); }

section{ position: relative; }

::selection{ background: var(--accent); color: #05130d; }

/* scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: #1c2129; border-radius: 10px; border: 2px solid var(--bg); }

/* =========== LOADER — cinematic intro =========== */
/* .loader itself stays transparent — .loader__curtain supplies the opaque cover so it
   can wipe upward and reveal the page underneath. */
.loader{
  position: fixed; inset:0; z-index: 9999;
  background: transparent;
  display:flex; align-items:center; justify-content:center;
  color: var(--brand-green);
  overflow:hidden;
}
.loader__inner{
  position:relative; z-index:2; width: min(360px, 68vw);
  display:flex; flex-direction:column; align-items:center; gap: 26px;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.loader__mark{ overflow:visible; }
.loader__chev{
  fill: none; stroke: var(--brand-green); stroke-width: 6;
  stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900);
  animation: chevDraw 1.15s cubic-bezier(.65,0,.35,1) forwards;
}
.loader__chev:nth-child(2){ animation-delay: .18s; }
@keyframes chevDraw{
  0%   { stroke-dashoffset: var(--len, 900); fill: rgba(0,228,145,0); }
  70%  { stroke-dashoffset: 0; fill: rgba(0,228,145,0); }
  100% { stroke-dashoffset: 0; fill: rgba(0,228,145,1); }
}
.loader__line{
  width:100%; height:1px; background: rgba(244,246,247,.14); position:relative; overflow:hidden;
}
.loader__line i{
  position:absolute; inset-inline-start:0; top:0; height:100%; width:0%;
  background: linear-gradient(90deg, var(--brand-green), #22c2e8);
  transition: width .25s linear;
}
.loader__meta{
  width:100%; display:flex; justify-content:space-between; align-items:baseline;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.2em; color: rgba(244,246,247,.4);
}
.loader__pct b{ color: var(--brand-green); font-weight:400; }
/* curtain wipes upward to reveal the page */
.loader__curtain{
  position:absolute; inset:0; z-index:1; background:#05060a;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(.76,0,.24,1);
}
.loader.is-done .loader__inner{ opacity:0; transform: translateY(-14px); }
.loader.is-done .loader__curtain{ transform: translateY(-101%); }
.loader.is-hidden{ visibility:hidden; pointer-events:none; }
/* Hold the hero's entrance until the curtain lifts, so the reveal isn't wasted
   playing out behind an opaque loader. */
body.is-loading{ overflow:hidden; }
body.is-loading .reveal-up,
body.is-loading .hero__mask,
body.is-loading .hero__scroll{ animation-play-state: paused; }

/* =========== CUSTOM CURSOR =========== */
.cursor{
  position: fixed; top:0; left:0; width:0; height:0;
  pointer-events:none; z-index: 9998;
  display:none;
  transform: translate(-50%,-50%);
}
@media (hover:hover) and (pointer:fine){ .cursor{ display:block; } }
.cursor__dot{
  position:absolute; top:0; left:0; width:6px; height:6px; margin:-3px 0 0 -3px;
  background: var(--accent); border-radius:50%;
  transition: transform .15s var(--ease-soft), opacity .15s;
}
/* difference blending keeps the ring legible over light and dark chapters alike,
   without needing to track which section it's currently over */
.cursor__ring{
  position:absolute; top:0; left:0; width:38px; height:38px; margin:-19px 0 0 -19px;
  border:1px solid rgba(255,255,255,.55); border-radius:50%;
  mix-blend-mode: difference;
  transition: width .3s var(--ease-soft), height .3s var(--ease-soft), margin .3s var(--ease-soft), border-color .3s, background .3s, opacity .3s;
}
.cursor__label{
  position:absolute; top:0; left:0; transform: translate(-50%, 22px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing:.14em;
  color: var(--bg); background: var(--accent); padding: 4px 9px; border-radius: 20px;
  opacity:0; transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft);
  white-space:nowrap;
}
/* the expanded state covers ~70px of content, so drop the inversion there and use a
   plain translucent fill instead */
.cursor.is-active .cursor__ring{
  width:70px; height:70px; margin:-35px 0 0 -35px;
  border-color: transparent; background: rgba(0,228,145,.16);
  mix-blend-mode: normal;
}
.cursor.is-active .cursor__dot{ opacity:0; }
.cursor.is-active .cursor__label{ opacity:1; transform: translate(-50%, 30px); }
.cursor.is-down .cursor__ring{ width:30px; height:30px; margin:-15px 0 0 -15px; }

/* =========== CHAPTER RAIL =========== */
.rail{
  position: fixed; top:50%; inset-inline-end: 26px; transform: translateY(-50%);
  z-index: 900; display:flex; flex-direction:column; gap: 4px; align-items:flex-end;
  opacity:0; pointer-events:none; transition: opacity .6s var(--ease);
}
.rail.is-ready{ opacity:1; pointer-events:auto; }
.rail__item{
  display:flex; align-items:center; gap:10px; justify-content:flex-end;
  padding: 5px 0; cursor:pointer; background:none; border:none;
}
.rail__label{
  font-family: var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--ink-50); white-space:nowrap;
  opacity:0; transform: translateX(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
[dir="rtl"] .rail__label{ transform: translateX(-6px); }
.rail__badge{
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:44px; height:44px; border-radius:50%; background: #ffffff;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 16px rgba(0,228,145,.4);
  opacity:0; transform: scale(.4); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.rail__badge img{ width:28px; height:28px; display:block; }
.rail__item.is-active .rail__badge{ opacity:1; transform: scale(1); }
.rail__tick{
  display:block; width: 16px; height:1px; background: var(--ink-30);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.rail__item:hover .rail__label,
.rail__item.is-active .rail__label{ opacity:1; transform: translateX(0); }
.rail__item:hover .rail__tick{ width: 26px; background: var(--ink); }
.rail__item.is-active .rail__tick{ width: 30px; background: var(--accent); }
/* rail sits over both light and dark chapters — keep it readable on either */
.rail__item.is-on-dark .rail__tick{ background: rgba(244,246,247,.35); }
.rail__item.is-on-dark.is-active .rail__tick{ background: var(--accent); }
.rail__item.is-on-dark .rail__label{ color: rgba(244,246,247,.6); }
@media (max-width: 1180px){ .rail{ display:none; } }

/* =========================================================
   MAIL PREVIEW MODAL — a branded stand-in for the plain mailto:
   composer. Shown right after "Get Involved" submits so the
   confirmation carries SET's identity instead of a bare OS dialog.
   ========================================================= */
.mail-modal{
  position: fixed; inset:0; z-index: 10000;
  display:flex; align-items:center; justify-content:center; padding: 20px;
  opacity:0; pointer-events:none; transition: opacity .3s var(--ease);
}
.mail-modal.is-open{ opacity:1; pointer-events:auto; }
.mail-modal__backdrop{
  position:absolute; inset:0; background: rgba(7,12,48,.62); backdrop-filter: blur(8px);
}
.mail-modal__card{
  position:relative; z-index:1; width:100%; max-width: 520px; max-height: 86vh; overflow-y:auto;
  background:#fff; border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 30px 70px rgba(7,12,48,.35);
  transform: translateY(14px) scale(.98); transition: transform .35s var(--ease);
}
.mail-modal.is-open .mail-modal__card{ transform: translateY(0) scale(1); }
.mail-modal__close{
  position:absolute; top:16px; inset-inline-end:16px; width:32px; height:32px; border-radius:50%;
  background: rgba(10,8,54,.06); border:none; color:#0a0836; font-size:.85rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition: background .25s var(--ease);
}
.mail-modal__close:hover{ background: rgba(10,8,54,.12); }
.mail-modal__head{ display:flex; align-items:center; gap:14px; margin-bottom:18px; padding-inline-end: 30px; }
.mail-modal__logo{
  flex:0 0 auto; width:44px; height:44px; border-radius:50%; background: var(--accent);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 14px rgba(0,168,107,.3);
}
.mail-modal__logo img{ width:24px; height:24px; }
.mail-modal__eyebrow{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color: #00a86b; margin-bottom:3px;
}
.mail-modal__title{ font-size:1.15rem; font-weight:700; color:#0a0836; letter-spacing:-.01em; }
.mail-modal__body{
  background:#f7f8fc; border:1px solid rgba(10,8,54,.1); border-radius: 14px;
  padding:18px 20px; margin: 0 0 18px; max-height: 300px; overflow-y:auto;
  font-family: var(--font-mono); font-size:.82rem; line-height:1.7; color: rgba(10,8,54,.78);
  white-space: pre-wrap; word-break: break-word;
}
.mail-modal__actions{ display:flex; gap:12px; flex-wrap:wrap; }
.mail-modal__btn{
  flex:1 1 auto; text-align:center; padding:12px 18px; border-radius: 30px; font-size:.88rem; font-weight:700;
  cursor:pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.mail-modal__btn--ghost{
  background:none; border:1.5px solid rgba(10,8,54,.16); color:#0a0836;
}
.mail-modal__btn--ghost:hover{ border-color: var(--accent); color:#00a86b; }
.mail-modal__btn--ghost.is-copied{ border-color: var(--accent); color:#00a86b; }
.mail-modal__btn--primary{
  background:#0a0836; border:1.5px solid #0a0836; color:#fff;
}
.mail-modal__btn--primary:hover{ background:#00a86b; border-color:#00a86b; }
.mail-modal__hint{ margin-top:14px; font-size:.78rem; line-height:1.6; color: rgba(10,8,54,.5); }
@media (max-width: 560px){
  .mail-modal__card{ padding: 24px 20px 22px; }
  .mail-modal__actions{ flex-direction:column; }
}

/* =========== SCROLL PROGRESS =========== */
.scroll-progress{
  position: fixed; top:0; left:0; height:2px; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  z-index: 9997;
}

/* =========== NAV =========== */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 13px 0;
  background: var(--nav-scrolled-bg, rgba(7,12,48,.55));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
:root[data-theme="light"]{ --nav-scrolled-bg: rgba(210,225,255,.55); }
.nav__inner{
  max-width: 1480px; margin: 0 auto; padding: 0 28px;
  display:flex; align-items:center; justify-content:space-between; gap: 18px;
}
.nav__logo{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.nav__logo-mark{ display:block; }
.nav__logo-mark--light{ display:none; }
:root[data-theme="light"] .nav__logo-mark--dark{ display:none; }
:root[data-theme="light"] .nav__logo-mark--light{ display:block; }
/* علامات الشعار الخلفية داخل السكشنات (section-watermark): دايم نستخدم شعار
   سيت الأبيض في خلفية السكشنات الزرقاء، وما نعرض الشعار الملوّن أبداً
   (كان يطلع بشكل مزعج فوق السكشنات البيضاء) — بغض النظر عن الثيم. */
.section-watermark.nav__logo-mark--light{ display:none !important; }
:root[data-theme="light"] .section-watermark.nav__logo-mark--dark{ display:block !important; }
.nav__wordmark{ font-weight:700; letter-spacing:0; font-size:13px; white-space:nowrap; }
@media (max-width: 1320px){ .nav__wordmark{ display:none; } }
.nav__links{ display:flex; align-items:center; gap: 20px; }
.nav__links a{
  font-size: 12.8px; color: var(--ink-70); position:relative; padding: 4px 0;
  transition: color .3s; white-space:nowrap;
}
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a:hover::after{ width:100%; }
.nav__cta{
  font-size: 13px; font-weight:600; letter-spacing:.02em;
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 40px;
  transition: border-color .3s, background .3s, color .3s;
}
.nav__cta:hover{ border-color: var(--accent); color: var(--accent); }
.nav__tools{ display:flex; align-items:center; gap:10px; }
.nav__tool{
  display:flex; align-items:center; gap:6px; font-size:12.5px; color: var(--ink-70);
  border:1px solid var(--line); border-radius:40px; padding:9px 14px; transition: all .3s var(--ease);
  white-space:nowrap;
}
.nav__tool:hover{ border-color: var(--accent); color: var(--accent); }
.nav__tool--lang{ font-family: var(--font-display); }
.nav__mobile-tools{ display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.nav__mobile-tools .nav__tool{ justify-content:center; padding:14px; font-size:14px; }
.nav__burger{ display:none; flex-direction:column; gap:5px; width: 26px; }
.nav__burger span{ height:1px; background: var(--ink); width:100%; transition: transform .3s var(--ease), opacity .3s; }
.nav__mobile{
  display:none;
}

/* =========== BUTTONS =========== */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  padding: 16px 34px; border-radius: 40px; font-size: 14px; font-weight:600; letter-spacing:.02em;
  overflow:hidden; isolation:isolate;
}
.btn span{ position:relative; z-index:2; }
.btn--primary{ background: linear-gradient(120deg, #00e28f 0%, #00d6a4 55%, #22c2e8 100%); color: #04140c; font-weight:700; }
.btn--primary::before{
  content:''; position:absolute; inset:0; background: #fff; transform: translateY(100%);
  transition: transform .45s var(--ease); z-index:1;
}
.btn--primary:hover::before{ transform: translateY(0); }

/* --- الزر الشفاف Ghost Button --- */
.btn--ghost{ border: 1px solid var(--line); color: var(--ink); }
.btn--ghost::before{
  content:''; position:absolute; inset:0; background: #ffffff; transform: translateY(100%);
  transition: transform .45s var(--ease); z-index:1;
}
.btn--ghost:hover{ color: #06070a !important; border-color: #ffffff !important; }
.btn--ghost:hover span{ color: #06070a !important; z-index: 10 !important; position: relative; }
.btn--ghost:hover::before{ transform: translateY(0); }

/* إخفاء الدائرة التفاعلية التي تمسك بالنص عند التحويم */
.btn--ghost .cursor-follower,
.btn--ghost + .cursor,
[data-cursor="VIEW"]::after {
  display: none !important;
}

.btn--lg{ padding: 19px 42px; font-size: 15px; }
.hero__ctas, .final-cta__content{ display:flex; gap: 18px; flex-wrap:wrap; }

/* =========== REVEAL ANIM =========== */
.reveal-up{ opacity:0; transform: translateY(28px); animation: revealUp 1s var(--ease) forwards; }
@keyframes revealUp{ to{ opacity:1; transform: translateY(0); } }

[data-reveal]{ opacity:0; transform: translateY(36px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].in-view{ opacity:1; transform: translateY(0); }

/* ---- word-by-word masked reveal ----
   Titles are split into per-word spans by JS. The container drops its own
   translate so the words carry the motion instead. */
.is-split[data-reveal]{ transform:none; }
.split-word{ display:inline-block; overflow:hidden; vertical-align:bottom; padding-bottom:.06em; }
.split-word__i{
  display:inline-block; transform: translateY(108%);
  transition: transform .95s cubic-bezier(.22,1,.36,1);
}
[data-reveal].in-view .split-word__i{ transform: translateY(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative; min-height: 100vh; min-height: 100svh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; background: radial-gradient(120% 100% at 50% 0%, #0b0f16 0%, #06070a 65%);
}
.hero__canvas{ position:absolute; inset:0; width:100%; height:100%; }
.hero__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 85%);
  opacity:.5;
}
.hero__vignette{
  position:absolute; inset:0;
  background: radial-gradient(60% 50% at 50% 40%, transparent 0%, rgba(6,7,10,.5) 70%, #06070a 100%);
  pointer-events:none;
}
.hero{
  --ink: #f4f6f7; --ink-70: rgba(244,246,247,.72); --ink-50: rgba(244,246,247,.5); --ink-30: rgba(244,246,247,.3);
  --line: rgba(244,246,247,.16); --line-soft: rgba(244,246,247,.08);
  color: var(--ink);
}
.hero__content{
  position:relative; z-index:2; text-align:center; max-width: 1120px; padding: 0 24px;
}
.hero__eyebrow{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.22em; color: var(--accent);
  display:inline-flex; align-items:center; gap:10px; margin-bottom: 30px; justify-content:center;
  animation-delay: .1s;
}
.hero__eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow:0 0 14px var(--accent); }
.hero__title{
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  font-weight: 800; letter-spacing:-.03em; line-height: 1.06; margin-bottom: 30px;
}
.hero__line{ display:block; overflow:hidden; }
.hero__mask{
  display:inline-block; transform: translateY(105%); opacity: 0;
  animation: maskUp 1.1s var(--ease) forwards;
  animation-delay: .35s;
}
.hero__line:nth-child(2) .hero__mask{ animation-delay: .55s; }
.hero__mask--accent{ background: linear-gradient(95deg, #00e28f, #7ef0c8 45%, #4b3ff5); -webkit-background-clip:text; background-clip:text; color:transparent; }
@keyframes maskUp{ to{ transform: translateY(0); opacity:1; } }
.hero__sub{
  font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--ink-70); max-width: 620px; margin: 0 auto 42px;
  animation-delay: .8s;
}
.hero__ctas{ justify-content:center; animation-delay: 1s; }
.hero__scroll{
  position:absolute; bottom: 38px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px; z-index:2;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.2em; color: var(--ink-50); text-transform:uppercase;
  opacity:0; animation: revealUp 1s var(--ease) forwards; animation-delay: 1.3s;
}
.hero__scroll-line{ width:1px; height:44px; background: var(--line); position:relative; overflow:hidden; }
.hero__scroll-line i{ position:absolute; top:-40%; left:0; width:100%; height:40%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine{ 0%{ top:-40%; } 60%{ top:100%; } 100%{ top:100%; } }

/* =========================================================
   CONNECT / INTRO
   ========================================================= */
/* =========================================================
   STRATEGIC PARTNERS — infinite marquee
   ========================================================= */
/* Always a light, neutral band — partner marks (many with dark wordmarks) need a
   consistent light backing regardless of the site-wide dark/light theme toggle. */
.marquee{ padding: 44px 0; background: #f6f8ff; border-bottom: 1px solid rgba(10,8,54,.08); overflow:hidden; }
.marquee__label{
  text-align:center; font-family: var(--font-mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color: rgba(10,8,54,.35); margin: 0 0 26px;
}
.marquee__viewport{ overflow:hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track{ display:flex; width:max-content; animation: marqueeScroll 38s linear infinite; }
.marquee__track:hover{ animation-play-state: paused; }
.marquee__group{ display:flex; align-items:center; gap: 56px; padding-inline-end: 56px; }
.marquee__logo{
  flex: 0 0 auto; width: 132px; height: 64px; display:flex; align-items:center; justify-content:center;
  filter: grayscale(1) opacity(.6); transition: filter .4s var(--ease), transform .4s var(--ease);
}
.marquee__logo:hover{ filter: grayscale(0) opacity(1); transform: scale(1.12); }
.marquee__logo img{ max-width:100%; max-height:100%; object-fit:contain; }
@keyframes marqueeScroll{ to{ transform: translateX(-50%); } }
[dir="rtl"] .marquee__track{ animation-direction: reverse; }
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation: none; } }

.connect{ padding: 160px 0 60px; background: var(--tone-a); position:relative; overflow:hidden; }
.connect__mark{
  position:absolute; top:46%; inset-inline-start:4%; transform: translateY(-50%);
  width:min(40vw,560px); height:auto; max-width:none;
  opacity:.09; filter: blur(16px) saturate(1.05); pointer-events:none; user-select:none; z-index:0;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 35%, transparent 80%);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 35%, transparent 80%);
}
[dir="rtl"] .connect__mark{ transform: translateY(-50%) scaleX(-1); }
:root[data-theme="light"] .connect__mark{ opacity:.08; }
.connect__inner, .wheel-connect{ position:relative; z-index:1; }
@media (max-width:860px){ .connect__mark{ width:90vw; opacity:.07; inset-inline-start:-5%; } }
.connect__inner{ max-width: 900px; margin: 0 auto 100px; padding: 0 32px; text-align:center; }
.connect__statement{
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight:700; letter-spacing:-.02em; line-height:1.15; margin-bottom: 28px;
  transition-delay: .05s;
}
.connect__lede{ font-size: 1.08rem; color: var(--ink-70); line-height:1.75; max-width: 680px; margin: 0 auto; transition-delay: .15s; }

/* =========================================================
   CLEAN NETWORK SECTION (FIXED & CONTAINED)
   ========================================================= */
/* =========================================================
   ORBITING SYSTEM - FIXED TEXT & CONTAINER ALIGNMENT
   ========================================================= */
.wheel-connect {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  margin: 50px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* المدار المزدوج المضيء */
.wheel-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 2px dashed rgba(75, 63, 245, 0.35);
  box-shadow: 0 0 25px rgba(0, 226, 143, 0.15);
  animation: rotateOrbit 35s linear infinite;
  z-index: 1;
}

.wheel-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #00e28f;
  border-bottom-color: #4b3ff5;
}

/* الحاوية الدوارة الأساسية */
.wheel-orbit-group {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  animation: rotateOrbit 35s linear infinite;
  z-index: 3;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* النواة المركزية الثابتة */
.wheel-center {
  position: relative;
  z-index: 5;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 2.5px solid #00e28f !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(75, 63, 245, 0.2), 0 0 15px rgba(0, 226, 143, 0.2);
  transition: transform 0.4s ease;
}

.wheel-center:hover {
  transform: scale(1.05);
  border-color: #4b3ff5 !important;
  box-shadow: 0 12px 40px rgba(75, 63, 245, 0.35);
}

.wheel-center__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.wheel-center__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(95deg, #00be74, #4b3ff5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-transform: uppercase;
  line-height: 1.3;
}

/* الكروت المحيطة مع دوران عكسي متناسق للحاوية والنص معاً */
.wheel-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 30px;
  background: #ffffff !important;
  border: 1.5px solid #4b3ff5 !important;
  box-shadow: 0 8px 20px rgba(75, 63, 245, 0.15) !important;
  cursor: pointer;
  white-space: nowrap;
  /* إبقاء الكارت كاملاً متزناً وأفقياً أثناء الدوران */
  animation: counterRotate 35s linear infinite;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes counterRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.wheel-item span {
  display: inline-block;
  color: #06070a !important;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* ضبط مواقع الكروت بدقة متناهية على محيط الدائرة */
.wheel-item.item-1 { top: -20px; left: calc(50% - 48px); border-color: #00e28f !important; }
.wheel-item.item-2 { top: 22%; right: -35px; }
.wheel-item.item-3 { bottom: 4%; right: -15px; border-color: #00e28f !important; }
.wheel-item.item-4 { bottom: 4%; left: -15px; }
.wheel-item.item-5 { top: 22%; left: -35px; border-color: #00e28f !important; }

/* التفاعل عند وضع الماوس (Hover) */
.wheel-item:hover {
  background: linear-gradient(120deg, #00e28f, #4b3ff5) !important;
  border-color: transparent !important;
  box-shadow: 0 0 25px rgba(75, 63, 245, 0.45) !important;
}

.wheel-item:hover span {
  color: #ffffff !important;
}

/* الشاشات الصغيرة والتجاوب */
@media (max-width: 600px) {
  .wheel-connect {
    max-width: 340px;
    height: 340px;
  }
  .wheel-ring, .wheel-orbit-group {
    width: 230px;
    height: 230px;
  }
  .wheel-center {
    width: 110px;
    height: 110px;
    gap: 5px;
  }
  .wheel-center__logo {
    width: 24px;
    height: 24px;
  }
  .wheel-center__label {
    font-size: 10px;
  }
  .wheel-item {
    padding: 6px 14px;
  }
  .wheel-item span {
    font-size: 10px;
  }
  .wheel-item.item-1 { top: -15px; left: calc(50% - 35px); }
  .wheel-item.item-2 { right: -20px; }
  .wheel-item.item-3 { right: -10px; }
  .wheel-item.item-4 { left: -10px; }
  .wheel-item.item-5 { left: -20px; }
}
.ecosystem-strip{
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display:grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items:center;
}
.ecosystem-strip__img{ border-radius: var(--radius); overflow:hidden; aspect-ratio: 4/3; border:1px solid var(--line); }
.ecosystem-strip__img img{ width:100%; height:100%; object-fit:cover; filter: saturate(.9) brightness(.85); }
.ecosystem-strip__text p:not(.eyebrow){ font-size: 1.05rem; color: var(--ink-70); line-height:1.7; }

/* =========================================================
   ROLES / ECOSYSTEM DIAGRAM
   ========================================================= */
.roles{
  padding: 180px 0 140px; color: #f4f6f7; overflow:hidden;
  background: radial-gradient(circle at 25% 25%, #0a12c9 0%, #030084 45%, #010048 75%, #00022b 100%);
}
.roles .eyebrow{ color: var(--accent); }
.roles .section-title{ color: #fff; }
.roles .section-sub{ color: rgba(244,246,247,.68); }
.roles .section-head, .roles__system, .roles__detail{ position:relative; z-index:2; }
.roles__scene{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.roles__scene-layer{
  position:absolute; inset:0; opacity:0; transition: opacity 1.1s var(--ease);
  /* Desaturate + darken the underlying photography so it reads as a quiet
     abstract backdrop (matching the grid+glow treatment used in the
     Products/Proof/Approach dark chapters) rather than a literal, loud photo. */
  filter: grayscale(.5) saturate(1.05) brightness(.86) contrast(1.05);
}
.roles__scene-layer.is-active{ opacity:.78; }
/* Role 0 (default / Strategic Advisor) stays the plain colour base. Roles 1–3 layer a
   photo underneath their colour wash when selected. */
.roles__scene-layer[data-scene="0"]{
  background:
    radial-gradient(60% 55% at 22% 22%, rgba(0,228,145,.26), rgba(3,0,72,.5) 72%),
    url('../assets/img/network-15.jpg') center/cover;
  background-blend-mode: multiply, normal;
}
.roles__scene-layer[data-scene="1"]{
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(75,63,245,.32), rgba(3,0,72,.5) 72%),
    url('../assets/img/boardroom-team.jpg') center/cover;
  background-blend-mode: multiply, normal;
}
.roles__scene-layer[data-scene="2"]{
  background:
    radial-gradient(60% 55% at 22% 80%, rgba(0,190,210,.3), rgba(3,0,72,.52) 72%),
    url('../assets/img/Eco.jpg') center/cover;
  background-blend-mode: multiply, normal;
}
.roles__scene-layer[data-scene="3"]{
  background:
    radial-gradient(60% 55% at 78% 80%, rgba(0,228,145,.28), rgba(3,0,72,.52) 72%),
    url('../assets/img/sca2.jpg') center/cover;
  background-blend-mode: multiply, normal;
}
.roles__scene-grid{
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(244,246,247,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244,246,247,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 85%);
}
.roles__system{
  position:relative; max-width: 880px; height: 620px; margin: 90px auto 0;
}
.roles__connectors{ position:absolute; inset:0; width:100%; height:100%; }
.roles__connectors line{ stroke: var(--line); stroke-width:1.4; transition: stroke .5s, opacity .5s; }
.roles__connectors line.is-active{ stroke: var(--accent); opacity:1; }
.roles__center{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  width:130px; height:130px; border-radius:50%;
  border:1px solid var(--line); background: #050b3a;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  box-shadow: 0 0 70px rgba(0,226,143,.12);
  z-index:2;
}
.roles__center span{ font-family: var(--font-mono); font-size:12px; letter-spacing:.2em; color: var(--ink-50); }
.roles__node{
  position:absolute; width: 190px; padding: 26px 24px; text-align:left;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(6,3,80,.55);
  transition: transform .5s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  backdrop-filter: blur(10px);
}
.roles__node[data-pos="tl"]{ top: 4%; left: 2%; }
.roles__node[data-pos="tr"]{ top: 4%; right: 2%; }
.roles__node[data-pos="bl"]{ bottom: 4%; left: 2%; }
.roles__node[data-pos="br"]{ bottom: 4%; right: 2%; }
.roles__node-index{ display:block; font-family: var(--font-mono); font-size:12px; color: var(--accent); margin-bottom:12px; }
.roles__node-title{ font-size: 19px; font-weight:700; line-height:1.25; }
.roles__node:hover, .roles__node.is-active{
  border-color: var(--accent); background: rgba(0,226,143,.05); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,226,143,.08);
}
.roles__node.is-dim{ opacity:.35; }

/* الوضع المكدّس — يتفعّل بالضغط على الدائرة المركزية: العناصر تترتب صفوف تحت بعض */
.roles__center{ cursor:pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.roles__center:hover{ transform: translate(-50%,-50%) scale(1.05); box-shadow: 0 0 90px rgba(0,226,143,.22); }
.roles__system.is-stacked{
  height:auto; max-width: 640px;
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
}
.roles__system.is-stacked .roles__connectors{ display:none; }
.roles__system.is-stacked .roles__center{
  position:relative; top:auto; left:auto; transform:none; margin: 0 auto 6px;
}
.roles__system.is-stacked .roles__center:hover{ transform: scale(1.05); }
.roles__system.is-stacked .roles__node{
  position:relative; top:auto; left:auto; right:auto; bottom:auto; width:100%; box-sizing:border-box;
}
.roles__detail{ max-width: 620px; margin: 60px auto 0; padding: 0 32px; text-align:center; min-height: 130px; position:relative; }
.roles__detail-inner{ animation: fadeIn .5s var(--ease); }
.roles__detail-inner[hidden]{ display:none; }
.roles__detail-index{ font-family: var(--font-mono); color: var(--accent); font-size:13px; letter-spacing:.14em; }
/* .roles is a permanently-dark chapter regardless of page theme — force legible tones */
.roles__connectors line{ stroke: rgba(244,246,247,.16); }
.roles__connectors line.is-active{ stroke: var(--accent); }
.roles__center{ background: #050b3a; border-color: rgba(244,246,247,.16); }
.roles__center span{ color: rgba(244,246,247,.55); }
.roles__node{ border-color: rgba(244,246,247,.14); }
.roles__detail-inner p{ color: rgba(244,246,247,.72); }
.roles__detail-inner h3{ font-size: 1.7rem; font-weight:700; margin: 10px 0 12px; color: #ffffff !important; }
.roles__detail-inner p{ color: rgba(244, 246, 247, 0.85) !important; font-size: 1.05rem; line-height:1.6; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:translateY(0);} }

   /* =========================================================
   CAPABILITIES / ACCORDION (EXPANDING CARDS FIX)
   ========================================================= */
.capabilities { padding: 160px 0 140px; border-top:1px solid var(--line-soft); background: var(--tone-c); }

/* زيادة العرض والمسافات وارتفاع الـ Accordion */
.accordion {
  display: flex;
  gap: 14px; /* زيادة المسافة بين الكروت لتعطي متنفساً */
  max-width: 2000px;
  margin: 70px auto 0;
  padding: 0 24px;
  height: 560px; /* أخف على العين من الارتفاع السابق (700px) مع بقاء المساحة كافية للفقرة */
}

/* الكروت المغلقة: إعطاؤها مساحة عرض أكبر لكي تستريح العين والنص */
.accordion__panel {
  position: relative;
  flex: 0.7; /* كروت مغلقة أنحف */
  min-width: 64px; /* ضمان حد أدنى للعرض لمنع الانضغاط الشديد */
  border-radius: var(--radius); 
  overflow: hidden;
  border: 1px solid var(--line); 
  background: var(--bg-1); 
  text-align: left;
  transition: flex .5s var(--ease), border-color .4s ease;
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  padding: 28px 20px;
}

[dir="rtl"] .accordion__panel { text-align: right; }

/* الكارت النشط (المفتوح) */
.accordion__panel.is-active {
  flex: 14; /* تكبير المساحة للكارت المفتوح لتتسع للفقرة بالكامل */
}

.accordion__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .5; filter: saturate(.95) contrast(1) brightness(.96); transition: opacity .6s var(--ease), transform 8s linear;
  transform: scale(1.06);
}

.accordion__panel.is-active .accordion__bg { opacity: .82; transform: scale(1.12); }

.accordion__panel::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(140deg, rgba(7,12,48,.5), rgba(0,168,107,.14) 55%, transparent 90%);
  mix-blend-mode: multiply; opacity: .45; transition: opacity .5s;
}

.accordion__panel.is-active::before { opacity: .32; }

.accordion__panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(7,12,48,.8) 0%, transparent 50%);
  opacity: .55;
  transition: background .5s, opacity .5s;
}

.accordion__panel.is-active::after {
  background: linear-gradient(0deg, rgba(7,12,48,.92) 0%, rgba(7,12,48,.6) 35%, transparent 65%);
  opacity: 1;
}

.accordion__index {
  position: relative; z-index: 2; font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 12px;
}

.accordion__vertical {
  position: relative; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,246,247,.65); margin-bottom: auto; writing-mode: vertical-rl; transform: rotate(180deg);
  transition: opacity .3s var(--ease);
}

.accordion__panel.is-active .accordion__vertical { opacity: 0; }

/* إصلاح النص العمودي للكروت المغلقة لكي لا يتداخل أو يخرج */
.accordion__label {
  position: relative; 
  z-index: 2; 
  font-weight: 700; 
  font-size: 0.95rem; 
  letter-spacing: .02em; 
  line-height: 1.25;
  writing-mode: vertical-rl; 
  transform: rotate(180deg); 
  margin-bottom: 12px; 
  overflow: hidden;
  transition: opacity .35s var(--ease), height .5s var(--ease); 
  height: auto; /* إلغاء الارتفاع الثابت 170px لمنع خروج النص وتداخله */
  max-height: 220px;
  color: #fff;
  white-space: nowrap; /* منع انقسام وتداخل الحروف */
}

.accordion__panel.is-active .accordion__label { opacity: 0; height: 0; max-height: 0; margin: 0; overflow: hidden; }

/* المحتوى الداخلي للكارت المفتوح */
.accordion__content {
  position: relative; z-index: 2; max-width: 520px; opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
}

.accordion__panel.is-active .accordion__content { opacity: 1; transform: translateY(0); }

.accordion__content h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; color: #fff; }

.accordion__content p { font-size: 0.95rem; color: rgba(244,246,247,.82); line-height: 1.65; }

.accordion__panel:not(.is-active):hover { border-color: var(--accent); }
.accordion__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* تجاوب الكروت على الشاشات الصغيرة لجعلها أفقية بدلاً من الضغط العالي */
@media (max-width: 900px) {
  .accordion {
    flex-direction: column;
    height: auto;
  }
  .accordion__panel {
    min-height: 120px;
    flex: 1 !important;
  }
  .accordion__label {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
  }
  .accordion__vertical {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* =========================================================
   APPROACH
   ========================================================= */
/* =========================================================
   BUSINESS SOLUTIONS APPROACH — 4 connected stages
   ========================================================= */
.biz{ padding: 160px 0 140px; border-top:1px solid var(--line-soft); background: var(--tone-c); }
.biz__journey{
  position:relative; max-width: var(--container); margin: 84px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.biz__rail{ grid-column: 1 / -1; height:2px; background: var(--line); position:relative; margin-bottom: 12px; overflow:hidden; }
.biz__rail-fill{ position:absolute; inset-inline-start:0; top:0; height:100%; width:0%; background: linear-gradient(90deg, var(--accent), var(--indigo)); transition: width 1.4s var(--ease); }
[dir="rtl"] .biz__rail-fill{ background: linear-gradient(270deg, var(--accent), var(--indigo)); }
.biz__stage{
  position:relative; padding: 40px 18px 22px; margin: 0 -18px; border-radius: 16px;
  border: 1px solid transparent;
  transition: transform .45s var(--ease);
}
.biz__stage:hover{
  transform: translateY(-10px);
  z-index: 2;
}
.biz__stage::before{
  content:''; position:absolute; top:-8px; inset-inline-start:18px; width:38px; height:38px; border-radius:50%;
  background-color: var(--bg-1); background-image: url('../assets/logo/set-emblem-color.svg');
  background-size: 62%; background-repeat: no-repeat; background-position: center;
  border:2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,226,143,.3);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.biz__stage:hover::before{
  box-shadow: 0 0 18px rgba(0,226,143,.6);
  transform: scale(1.1);
}
.biz__stage.in-view::before{ animation: bizPulse 2.2s ease-out .3s 1; }
@keyframes bizPulse{
  0%{ transform: scale(1); }
  30%{ transform: scale(1.8); box-shadow: 0 0 0 8px rgba(0,226,143,0); }
  100%{ transform: scale(1); }
}
.biz__num{
  font-family: var(--font-mono); font-size:12px; color: var(--accent); display:block; margin-bottom:14px;
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.biz__stage:hover .biz__num{ transform: translateX(4px); color: var(--indigo); }
[dir="rtl"] .biz__stage:hover .biz__num{ transform: translateX(-4px); }
.biz__stage h3{ font-size: 1.3rem; font-weight:700; letter-spacing:-.01em; margin-bottom: 12px; transition: color .3s; }
.biz__stage p{ font-size: .96rem; color: var(--ink-70); line-height:1.65; }
.biz__full-name{
  display:block; overflow:hidden; max-height:0; opacity:0; margin-top:0;
  font-family: var(--font-mono); font-size:11px; letter-spacing:.09em; text-transform:uppercase; color: var(--accent);
  transition: max-height .45s var(--ease), opacity .35s ease, margin-top .45s var(--ease);
}
.biz__stage:hover .biz__full-name{ max-height:40px; opacity:1; margin-top:12px; }

.approach{ padding: 160px 0 140px; border-top:1px solid var(--line-soft); background: var(--tone-a); }
.approach__body{ position:relative; max-width: 860px; margin: 80px auto 0; padding: 0 32px; display:flex; }
.approach__rail{ width: 40px; flex:0 0 auto; position:relative; }
.approach__line{ position:sticky; top: 140px; width:4px; height: min(600px, 60vh); margin:0 auto; overflow:visible; }
.approach__line path{ fill:none; stroke-width:3; }
.approach__line-track{ stroke: var(--line); }
.approach__line #approachLinePath{ stroke: url(#approachGradient); stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset .2s linear; filter: drop-shadow(0 0 6px rgba(0,226,143,.6)); }
.approach__stages{ flex:1; display:flex; flex-direction:column; gap: 120px; padding-left: 24px; }
[dir="rtl"] .approach__stages{ padding-left:0; padding-right:24px; }
.approach__stage{ display:flex; gap: 28px; align-items:flex-start; opacity: .28; transition: opacity .5s var(--ease); }
.approach__stage.is-active{ opacity:1; }
.approach__stage-num{ font-family: var(--font-mono); font-size: 15px; color: var(--ink-30); flex:0 0 auto; padding-top:6px; transition: color .5s; }
.approach__stage.is-active .approach__stage-num{ color: var(--accent); }
.approach__stage-body h3{ font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight:700; letter-spacing:-.01em; margin-bottom:14px; transition: transform .5s var(--ease); }
.approach__stage.is-active .approach__stage-body h3{ transform: translateX(6px); }
[dir="rtl"] .approach__stage.is-active .approach__stage-body h3{ transform: translateX(-6px); }
.approach__stage-body p{ font-size: 1.05rem; color: var(--ink-70); max-width: 480px; line-height:1.65; }

/* =========================================================
   SAUDI-MADE SOLUTIONS
   ========================================================= */
.solutions{
  padding: 160px 0; overflow:hidden; color:#fff;
  --ink: #f4f6f7; --ink-70: rgba(244,246,247,.72); --ink-50: rgba(244,246,247,.5); --ink-30: rgba(244,246,247,.3);
  --line: rgba(244,246,247,.16); --line-soft: rgba(244,246,247,.08);
}
.solutions__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter: saturate(1.1); }
.solutions__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,7,10,.5) 0%, rgba(6,7,10,.62) 45%, var(--bg) 100%),
    linear-gradient(100deg, rgba(7,5,157,.35), rgba(0,226,143,.12) 60%, transparent 100%);
}
.solutions .section-head{ position:relative; z-index:2; }
.offerings{
  position:relative; z-index:2; max-width: var(--container); margin: 80px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.offering{
  background: rgba(6,7,10,.7); backdrop-filter: blur(10px); padding: 44px 32px; min-height: 200px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.offering:hover{ background: rgba(0,226,143,.06); transform: translateY(-4px); }
.offering__num{ font-family: var(--font-mono); font-size:13px; color: var(--accent); }
.offering h3{ font-size: 1.3rem; font-weight:700; line-height:1.3; letter-spacing:-.01em; }


/* =========================================================
   SERVICES — flowing list + reactive visual
   ========================================================= */
.services{ padding: 160px 0 140px; border-top:1px solid var(--line-soft); background: var(--tone-b); }
.services__body{
  max-width: var(--container); margin: 76px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items:start;
}
.services__list{ display:flex; flex-direction:column; }
.services__cat-head{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--accent); margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line);
}
.services__list > .services__cat-head:first-child{ margin-top:0; padding-top:0; border-top:none; }
.services__item{
  display:flex; align-items:center; gap: 18px; width:100%; text-align:start;
  padding: 15px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem; color: var(--ink-70); transition: color .3s var(--ease), padding-inline-start .3s var(--ease);
}
.services__item-num{ font-family: var(--font-mono); font-size:12px; color: var(--ink-30); flex:0 0 auto; width:22px; transition: color .3s; }
.services__item:hover, .services__item.is-active{ color: var(--ink); padding-inline-start: 14px; }
.services__item:hover .services__item-num, .services__item.is-active .services__item-num{ color: var(--accent); }

.services__visual{
  position:sticky; top: 140px; aspect-ratio: 1/1; max-width: 340px; margin-inline-start:auto;
  border-radius:50%; background: var(--dark-navy); border:1px solid rgba(244,246,247,.1);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  overflow:hidden; text-align:center; padding: 20px;
}
.services__visual-glow{
  position:absolute; inset:0; border-radius:50%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(0,228,145,.35), transparent 70%);
  transition: background .6s var(--ease);
}
.services__visual[data-cat="1"] .services__visual-glow{ background: radial-gradient(60% 60% at 50% 40%, rgba(75,63,245,.38), transparent 70%); }
.services__visual[data-cat="2"] .services__visual-glow{ background: radial-gradient(60% 60% at 50% 40%, rgba(0,190,210,.35), transparent 70%); }
.services__visual-line{ position:absolute; inset:0; width:100%; height:100%; }
.services__visual-line circle, .services__visual-line path{ fill:none; stroke: rgba(244,246,247,.22); stroke-width:1; }
.services__visual-line circle:first-of-type{ stroke: var(--accent); animation: spin 30s linear infinite; transform-origin: center; }
.services__visual-cat{
  position:relative; z-index:2; font-family: var(--font-mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--accent); transition: color .4s;
}
.services__visual[data-cat="1"] .services__visual-cat{ color: #9d97ff; }
.services__visual[data-cat="2"] .services__visual-cat{ color: #5fd8e6; }
.services__visual-num{ position:relative; z-index:2; font-family: var(--font-mono); font-size:15px; color: rgba(244,246,247,.4); }
.services__visual-name{ position:relative; z-index:2; font-size: 1.25rem; font-weight:700; color:#fff; max-width: 220px; line-height:1.3; }

/* =========================================================
   AI PRODUCTS
   ========================================================= */
.products{ padding: 160px 0 140px; border-top:1px solid var(--line-soft); background: var(--dark-navy); color:#f4f6f7; }
.products .eyebrow{ color: var(--accent); }
.products .section-title{ color:#fff; }
.products .section-sub{ color: rgba(244,246,247,.68); }
.products__stage{
  max-width: var(--container); margin: 80px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center;
}
.products__visual{
  position:relative; aspect-ratio: 1/1; max-height: 480px; margin: 0 auto;
  display:flex; align-items:center; justify-content:center; width:100%;
}
.products__glow{
  position:absolute; inset:6%; border-radius:50%;
  background: radial-gradient(circle, rgba(0,226,143,.18), transparent 70%);
  filter: blur(10px); transition: background .6s var(--ease);
}
.products__ring{ position:absolute; inset:0; border-radius:50%; border:1px solid rgba(244,246,247,.14); }
.products__ring::before{
  content:''; position:absolute; inset: 14%; border-radius:50%; border:1px dashed rgba(244,246,247,.08);
  animation: spin 40s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.products__logo{
  position:absolute; max-width: 58%; max-height: 30%; width:auto; object-fit:contain;
  opacity:0; transform: scale(.85); transition: opacity .6s var(--ease), transform .6s var(--ease);
  filter: drop-shadow(0 10px 40px rgba(0,226,143,.15));
  background: #fff; padding: 22px 30px; border-radius: 12px;
}
.products__logo.is-active{ opacity:1; transform: scale(1); }

.products__panel{ animation: fadeIn .5s var(--ease); }
.products__panel[hidden]{ display:none; }
.products__tag{ font-family: var(--font-mono); font-size:12px; color: var(--accent); letter-spacing:.14em; }
.products__panel h3{ font-size: clamp(2rem,3.4vw,2.8rem); font-weight:800; margin: 14px 0 8px; letter-spacing:-.02em; }
.products__subtitle{ color: var(--accent); font-size: 1rem; font-weight:600; margin-bottom: 18px; }
.products__desc{ color: rgba(244,246,247,.7); line-height:1.75; font-size: 1.02rem; margin-bottom: 22px; max-width: 520px; }
.products__features{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 40px; }
.products__features li{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing:.05em; color: rgba(244,246,247,.7);
  border:1px solid rgba(244,246,247,.14); border-radius: 30px; padding: 8px 16px;
}
.products__selector{ display:flex; gap: 8px; flex-wrap:wrap; border-top:1px solid rgba(244,246,247,.08); padding-top:26px; }
.products__dot{
  display:flex; align-items:center; gap:8px; font-size:12.5px; color: var(--ink-50);
  padding: 10px 16px; border-radius: 30px; border:1px solid transparent; transition: all .3s var(--ease);
}
.products__dot span{ font-family: var(--font-mono); font-size:11px; }
.products__dot.is-active, .products__dot:hover{ color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.03); }
.products__dot.is-active{ color: var(--accent); border-color: var(--accent); }
/* .products is a permanently-dark chapter regardless of page theme — force legible tones */
.products__dot{ color: rgba(244,246,247,.5); }
.products__dot.is-active, .products__dot:hover{ color:#fff; border-color: rgba(244,246,247,.14); }
.products__dot.is-active{ color: var(--accent); border-color: var(--accent); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects{ padding: 160px 0 100px; border-top:1px solid var(--line-soft); background: var(--tone-a); }
.projects__deck-wrap{ position:relative; display:flex; align-items:center; justify-content:center; gap: 14px; margin-top: 70px; }
.projects__deck{
  position:relative; height: 520px; width:100%; max-width: 900px;
  perspective: 1600px; outline:none; touch-action: pan-y;
}
.projects__deck.is-dragging .project-card{ transition: none; }
.projects__arrow{
  flex: 0 0 auto; width:48px; height:48px; border-radius:50%; border:1px solid var(--line);
  color: var(--ink); font-size:16px; display:flex; align-items:center; justify-content:center;
  transition: border-color .3s, background .3s, color .3s;
}
.projects__arrow:hover{ border-color: var(--accent); color: var(--accent); background: rgba(0,226,143,.08); }
.project-card{
  position:absolute; top:50%; left:50%; width: 400px; margin: -260px 0 0 -200px;
  overflow:hidden; cursor:pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1);
  display:flex; flex-direction:column;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s var(--ease), filter .5s var(--ease), border-color .4s var(--ease);
}
.project-card.is-active{ border-color: rgba(0,226,143,.4); }
.project-card__media{
  position:relative; height: 190px; flex:0 0 auto; background-size:cover; background-position:center;
  overflow:hidden;
}
.project-card__media img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img{ transform: scale(1.08); }
.project-card__media::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(0deg, var(--bg-1) 0%, rgba(6,7,10,.15) 60%, rgba(7,5,157,.28) 100%);
}
[data-theme="dark"] .project-card__media::after{ background: linear-gradient(0deg, var(--bg-1) 0%, rgba(6,7,10,.25) 70%, rgba(0,226,143,.1) 100%); }
.project-card__index{
  position:absolute; top:18px; inset-inline-start:20px; z-index:2;
  font-family: var(--font-mono); font-size:13px; color:#fff; background: rgba(6,7,10,.55); backdrop-filter: blur(4px);
  padding: 5px 11px; border-radius: 30px;
}
.project-card__body{ padding: 26px 34px 34px; display:flex; flex-direction:column; gap:30px; flex:1; justify-content:space-between; background: var(--bg-1); }
.project-card__sector{ font-family: var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-50); margin-bottom:14px; }
.project-card__body h3{ font-size: 1.5rem; font-weight:700; letter-spacing:-.01em; margin-bottom: 10px; line-height:1.25; }
.project-card__org{ color: var(--accent); font-size: .88rem; margin-bottom: 16px; }
.project-card__desc{ color: var(--ink-70); font-size: .96rem; line-height:1.65; }
.project-card__link{ display:inline-block; margin-top:22px; font-size:.85rem; color: var(--ink); border-bottom:1px solid var(--line); padding-bottom:2px; }
.projects__selector{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top: 40px; }
.projects__dot{
  width:8px; height:8px; border-radius:50%; background: var(--line); transition: all .3s var(--ease);
}
.projects__dot.is-active{ background: var(--accent); width:22px; border-radius:5px; }

/* =========================================================
   PROOF / CREDIBILITY
   ========================================================= */
.proof{ padding: 160px 0; background: var(--dark-navy); color: #f4f6f7; position:relative; overflow:hidden; }
.proof .eyebrow{ color: var(--accent); }
.proof .section-title{ color: #fff; }
.proof__layout{
  position:relative; z-index:1;
  max-width: var(--container); margin: 86px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: 1fr .92fr; gap: 80px; align-items:center;
}

/* --- dominant metric --- */
.proof__hero{ position:relative; }
.proof__hero-ghost{
  position:absolute; inset-inline-start:-4%; top:-38%; z-index:0;
  font-size: clamp(12rem, 24vw, 22rem); font-weight:800; line-height:1; letter-spacing:-.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(244,246,247,.07);
  pointer-events:none; user-select:none;
}
.proof__hero-num{
  position:relative; z-index:1;
  display:flex; align-items:baseline; gap:2px;
  font-size: clamp(4.2rem, 10vw, 8.5rem); font-weight:800; letter-spacing:-.045em; line-height:.95;
  background: linear-gradient(120deg, #00e491 10%, #6ff0c6 45%, #22c2e8 95%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.proof__hero-suffix{ font-size:.42em; letter-spacing:-.02em; }
.proof__hero-unit{
  position:relative; z-index:1; font-family: var(--font-mono); font-size:13px; letter-spacing:.24em;
  color: var(--accent); margin-top: 10px;
}
.proof__hero-label{
  position:relative; z-index:1;
  margin-top: 22px; padding-top: 22px; border-top:1px solid rgba(244,246,247,.14);
  font-size: 1.02rem; color: rgba(244,246,247,.62); line-height:1.6; max-width: 360px;
}

/* --- supporting stack --- */
.proof__stack{ display:flex; flex-direction:column; }
.proof__row{
  display:flex; gap: 22px; align-items:flex-start;
  padding: 26px 0; border-top:1px solid rgba(244,246,247,.12);
  transition: padding-inline-start .4s var(--ease);
}
.proof__stack .proof__row:last-child{ border-bottom:1px solid rgba(244,246,247,.12); }
.proof__row:hover{ padding-inline-start: 12px; }
.proof__row-idx{
  font-family: var(--font-mono); font-size:11px; color: var(--accent); flex:0 0 auto; padding-top:6px;
  letter-spacing:.1em;
}
.proof__row-head{ font-size: clamp(1.25rem,2vw,1.6rem); font-weight:700; color:#fff; letter-spacing:-.01em; margin-bottom:8px; }
.proof__row-label{ font-size:.92rem; color: rgba(244,246,247,.55); line-height:1.55; }

/* =========================================================
   CONSTELLATION / PARTNERS
   ========================================================= */
/* Always a light band — see .marquee note above; logos with dark wordmarks need it. */
.constellation{ padding: 160px 0 140px; background: #f6f8ff; color: #0a0836; border-top:1px solid rgba(10,8,54,.08); }
.constellation .eyebrow{ color: var(--accent); }
.constellation .section-title{ color:#0a0836; }
.constellation .section-sub{ color: rgba(10,8,54,.65); }
.constellation__field{ position:relative; max-width: 1100px; margin: 90px auto 0; padding: 0 32px; min-height: 560px; }
.constellation__lines{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.constellation__lines line{ stroke: rgba(10,8,54,.08); stroke-width:1; }
.constellation__node{
  position:absolute; width: 108px; height:76px;
  display:flex; align-items:center; justify-content:center;
  transition: transform .4s var(--ease), filter .4s var(--ease);
  filter: grayscale(.15);
}
.constellation__node img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.constellation__cat{
  position:absolute; bottom: -26px; left:50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size:10px; color: var(--accent); white-space:nowrap;
  opacity:0; transition: opacity .3s;
}
.constellation__node:hover{ transform: scale(1.16); filter: grayscale(0) drop-shadow(0 10px 24px rgba(0,226,143,.35)); z-index:5; }
.constellation__node:hover .constellation__cat{ opacity:1; }

/* =========================================================
   LEADERSHIP / CEO
   ========================================================= */
.leadership{
  padding: 180px 0 140px; border-top:1px solid var(--line-soft);
  background: var(--dark-navy); color: #f4f6f7; position:relative; overflow:hidden;
}
.leadership .eyebrow{ color: var(--accent); }
.leadership__grid{
  position:absolute; inset:0; z-index:0;
  background-image: linear-gradient(rgba(244,246,247,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244,246,247,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 25% 50%, #000 15%, transparent 80%);
}
.leadership__inner{
  position:relative; z-index:1;
  max-width: var(--container); margin:0 auto; padding: 0 32px;
  display:grid; grid-template-columns: .62fr 1fr; gap: 80px; align-items:center;
}
.leadership__portrait{
  position:relative; padding: 10% 8%;
  opacity:0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.leadership__portrait.in-view{ opacity:1; transform: translateY(0); }
.leadership__halo{
  position:absolute; inset: 0; z-index:0;
  background: radial-gradient(55% 55% at 50% 42%, rgba(0,228,145,.32), transparent 68%),
              radial-gradient(45% 45% at 68% 78%, rgba(75,63,245,.28), transparent 70%);
  filter: blur(18px);
  opacity:0; transition: opacity 1.4s var(--ease) .2s;
  animation: haloDrift 9s ease-in-out infinite;
}
.leadership__portrait.in-view .leadership__halo{ opacity:1; }
@keyframes haloDrift{ 0%,100%{ transform: scale(1) translateY(0); } 50%{ transform: scale(1.04) translateY(-6px); } }
.leadership__lines{ position:absolute; inset:0; z-index:1; width:100%; height:100%; overflow:visible; pointer-events:none; }
.leadership__lines path{
  fill:none; stroke: rgba(0,228,145,.5); stroke-width:1; stroke-dasharray: 160; stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.2s var(--ease) .5s;
}
.leadership__portrait.in-view .leadership__lines path{ stroke-dashoffset: 0; }
.leadership__frame{
  position:relative; z-index:2; aspect-ratio: 4/5; border-radius: var(--radius); overflow:hidden;
  border: 1px solid rgba(244,246,247,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
}
.leadership__frame::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 60%, rgba(4,6,16,.55) 100%);
}
.leadership__portrait img{
  position:relative; width:100%; height:100%; object-fit:cover; object-position: top center;
  will-change: transform;
}
.leadership__meta{
  position:relative; z-index:2; display:flex; flex-direction:column; gap:8px; margin-top:22px;
  opacity:0; transform: translateY(10px); transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s;
}
.leadership__portrait.in-view .leadership__meta{ opacity:1; transform: translateY(0); }
.leadership__tag{
  font-family: var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase;
  color: rgba(244,246,247,.42);
}
.leadership__tag--brand{ color: var(--accent); }
.leadership__quote{ font-size: clamp(1.4rem,2.4vw,2rem); font-weight:500; line-height:1.6; letter-spacing:-.01em; margin-bottom: 34px; color:#fff; }
.leadership__name{ font-weight:700; font-size:1.1rem; color:#fff; }
.leadership__role{ color: rgba(244,246,247,.55); font-size:.9rem; margin-top:4px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta{
  position:relative; padding: 220px 0; overflow:hidden; text-align:center;
  display:flex; align-items:center; justify-content:center; min-height: 70vh;
}
.final-cta__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.35; }
.final-cta__canvas{ position:absolute; inset:0; width:100%; height:100%; }
.final-cta__overlay{
  position:absolute; inset:0;
  background: radial-gradient(60% 60% at 50% 100%, rgba(0,226,143,.16), transparent 70%), linear-gradient(180deg, #06070a, rgba(6,7,10,.85) 40%, #06070a);
}
.final-cta{
  --ink: #f4f6f7; --ink-70: rgba(244,246,247,.72); --ink-50: rgba(244,246,247,.5); --ink-30: rgba(244,246,247,.3);
  --line: rgba(244,246,247,.16); --line-soft: rgba(244,246,247,.08);
  color: var(--ink);
}
.final-cta__content{ position:relative; z-index:2; max-width: 720px; padding: 0 24px; flex-direction:column; align-items:center; }
.final-cta__title{ font-size: clamp(2.3rem,5.6vw,4.4rem); font-weight:800; letter-spacing:-.03em; line-height:1.08; margin-bottom: 24px; }
.final-cta__sub{ color: var(--ink-70); font-size: 1.1rem; margin-bottom: 40px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ border-top:1px solid var(--line-soft); padding: 90px 0 0; background: var(--tone-c); }
.footer__inner{
  max-width: var(--container); margin:0 auto; padding: 0 32px 70px;
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer__brand{ display:flex; flex-direction:column; gap:16px; }
.footer__brand p{ color: var(--ink-50); font-size:.92rem; max-width:240px; line-height:1.6; }
.footer__nav{ display:flex; flex-direction:column; gap:14px; }
.footer__nav a{ color: var(--ink-70); font-size:.92rem; transition: color .3s; }
.footer__nav a:hover{ color: var(--accent); }
.footer__heading{ font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-50); margin-bottom:18px; }
.footer__contact{ display:flex; flex-direction:column; gap:12px; }
.footer__contact a{ color: var(--ink); font-size:.92rem; }
.footer__contact p{ color: var(--ink-50); font-size:.85rem; line-height:1.6; }
.footer__social-links{ display:flex; flex-direction:column; gap:12px; }
.footer__social-links a{ color: var(--ink-70); font-size:.92rem; transition: color .3s; }
.footer__social-links a:hover{ color: var(--accent); }
.footer__bottom{
  border-top:1px solid var(--line-soft); padding: 26px 32px; max-width: var(--container); margin:0 auto;
  display:flex; justify-content:space-between; color: var(--ink-30); font-size:.8rem; font-family: var(--font-mono);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .products__stage{ grid-template-columns: 1fr; }
  .products__visual{ max-width: 380px; }
  .leadership__inner{ grid-template-columns: 1fr; gap: 20px; }
  .leadership__portrait{ max-width: 320px; margin: 0 auto; }
  .offerings{ grid-template-columns: repeat(2,1fr); }
  .proof__layout{ grid-template-columns: 1fr; gap: 56px; }
  .proof__hero-ghost{ top:-26%; }
  .ecosystem-strip{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px){
  .nav__links, .nav__cta, .nav__tools{ display:none; }
  .nav__burger{ display:flex; }
}
@media (max-width: 860px){
  :root{ --nav-h: 68px; }
  .nav__mobile{
    position:fixed; top:0; right:0; height:100vh; width: min(78vw, 340px);
    background: var(--bg-1); border-left:1px solid var(--line);
    display:flex; flex-direction:column; gap: 6px; padding: 100px 32px 40px;
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 999;
    overflow-y: auto;
  }
  .nav__mobile.is-open{ transform: translateX(0); }
  .nav__mobile a{ font-size: 1.3rem; padding: 14px 0; border-bottom:1px solid var(--line-soft); font-weight:600; }
  .nav__mobile-cta{ margin-top: 20px; background: var(--accent); color:#06130d; text-align:center; border-radius: 40px; border-bottom:none !important; }
  .nav__burger.is-open span:first-child{ transform: translateY(3px) rotate(45deg); }
  .nav__burger.is-open span:last-child{ transform: translateY(-3px) rotate(-45deg); }

  .roles__system{ height: auto; display:flex; flex-direction:column; gap: 16px; }
  .roles__connectors{ display:none; }
  .roles__center{ position:relative; top:auto; left:auto; transform:none; margin: 0 auto; }
  .roles__node,
  .roles__node[data-pos="tl"], .roles__node[data-pos="tr"],
  .roles__node[data-pos="bl"], .roles__node[data-pos="br"]{
    position:relative; top:auto; left:auto; right:auto; bottom:auto; width:100%;
  }

  .accordion{ flex-direction:column; height:auto; }
  .accordion__panel{ flex: none; height: 88px; padding: 20px 22px; flex-direction:row; align-items:center; gap:16px; }
  .accordion__panel.is-active{ flex:none; height: auto; min-height: 300px; align-items:flex-start; flex-direction:column; justify-content:flex-end; }
  .accordion__label{ writing-mode: horizontal-tb; transform:none; height:auto; margin:0; }
  .accordion__panel.is-active .accordion__label{ opacity:1; height:auto; margin-bottom:14px; }
  .accordion__index{ margin-bottom:0; }

  .approach__body{ flex-direction:column; }
  .approach__rail{ display:none; }
  .approach__stages{ padding-left:0; padding-right:0; gap: 60px; }
  .approach__stage{ opacity:1; }

  .projects__deck{ height: 420px; }
  .project-card{ width: 250px; margin: -210px 0 0 -125px; }
  .projects__arrow{ width:40px; height:40px; }

  .services__body{ grid-template-columns: 1fr; gap: 32px; }
  .services__visual{ position:relative; top:auto; margin: 0 auto; max-width: 220px; order:-1; }

  .biz__journey{ grid-template-columns: 1fr; gap: 44px; }
  .biz__rail{ display:none; }
  .biz__stage{ padding-top:0; padding-inline-start: 30px; border-inline-start: 2px solid var(--line); }
  .biz__stage::before{ top:2px; inset-inline-start:-19px; }

  .offerings{ grid-template-columns: 1fr; }
  .proof__hero-ghost{ display:none; }
  .footer__inner{ grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom{ flex-direction:column; gap:8px; }
}

@media (max-width: 560px){
  .hero__ctas{ flex-direction:column; align-items:stretch; }
  .hero__ctas .btn{ width:100%; }
  .network{ transform: scale(.82); height: 480px; }
  .connect__inner{ margin-bottom: 60px; }
  .constellation__node{ width:82px; height:58px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior:auto !important; }
}

/* =========================================================
   SECTION SEAMS
   The site alternates light and dark chapters. Left alone the switch reads as an
   accident; a hairline + soft brand glow at the top edge of each dark chapter
   makes it read as a deliberate cut between chapters.
   ========================================================= */
.roles, .products, .leadership, .proof, .solutions, .roles-path{ isolation:isolate; }
.roles::before, .products::before, .leadership::before, .proof::before, .solutions::before, .roles-path::before{
  content:''; position:absolute; top:0; inset-inline:0; height:1px; z-index:3;
  background: linear-gradient(90deg, transparent, rgba(0,228,145,.55) 22%, rgba(75,63,245,.45) 78%, transparent);
}
.roles::after, .products::after, .leadership::after, .proof::after{
  content:''; position:absolute; top:0; left:50%; transform: translateX(-50%);
  width: min(1100px, 92vw); height: 220px; z-index:0; pointer-events:none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,228,145,.10), transparent 70%);
}
/* the glow is a positioned pseudo, so lift each chapter's own content above it */
.products .section-head, .products__stage,
.proof .section-head, .leadership .section-head, .leadership__inner{ position:relative; z-index:1; }

/* leadership picked up a numbered eyebrow to match every other chapter — give it the
   same head-to-content rhythm the rest of the page uses. */
.leadership__head{ margin-bottom: 64px; position:relative; z-index:1; }
.leadership__head .eyebrow{ justify-content:center; }

/* =========================================================
   THEME TOGGLE ICON + LIGHT-MODE COLOR ACCENTS
   ========================================================= */
.nav__tool span[data-theme-label]{ font-size:14px; line-height:1; }
[data-theme="light"] .loader{ color: var(--accent); }
[data-theme="light"] .btn--ghost{ border-color: rgba(20,18,31,.18); }
[data-theme="light"] .hero__grid{ opacity:.35; }
[data-theme="light"] ::selection{ background: var(--accent); color:#fff; }
/* (cursor ring uses mix-blend-mode: difference, so it needs no per-theme override) */

/* =========================================================
   RTL / ARABIC
   ========================================================= */
[dir="rtl"]{
  --font-display: 'Tajawal', 'Segoe UI', sans-serif;
  --font-mono: 'Tajawal', 'Segoe UI', sans-serif;
}
[dir="rtl"] *{ letter-spacing: normal; }
[dir="rtl"] body{ text-align: right; }
[dir="rtl"] .eyebrow .dot{ order:2; }
[dir="rtl"] .hero__eyebrow .dot{ order:2; }

[dir="rtl"] .roles__node[data-pos="tl"]{ left:auto; right:2%; }
[dir="rtl"] .roles__node[data-pos="tr"]{ right:auto; left:2%; }
[dir="rtl"] .roles__node[data-pos="bl"]{ left:auto; right:2%; }
[dir="rtl"] .roles__node[data-pos="br"]{ right:auto; left:2%; }
[dir="rtl"] .roles__node{ text-align: right; }

[dir="rtl"] .nav__mobile{ right:auto; left:0; border-left:none; border-right:1px solid var(--line); transform: translateX(-100%); }
[dir="rtl"] .nav__mobile.is-open{ transform: translateX(0); }

[dir="rtl"] .accordion__label{ writing-mode: vertical-rl; }
[dir="rtl"] .products__features{ padding-inline-start: 0; }
[dir="rtl"] .footer__bottom{ text-align: right; }
[dir="rtl"] .projects__viewport, [dir="rtl"] .projects__track{ direction: ltr; }
[dir="rtl"] .project-card{ direction: rtl; }

@media (max-width: 860px){
  [dir="rtl"] .accordion__label{ writing-mode: horizontal-tb; }
}

/* =========================================================
   PURPOSE TERMINAL SECTION (LIGHT & DARK COMPATIBLE)
   ========================================================= */
.purpose-terminal {
  padding: 80px 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.purpose-terminal__container {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* محول الأزرار العناكب */
.purpose-switch {
  display: inline-flex;
  padding: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 226, 143, 0.3);
  border-radius: 40px;
  backdrop-filter: blur(10px);
}

.purpose-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  background: transparent;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--ink-70, #4a5568);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s ease;
}

.btn-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.purpose-btn.active {
  background: #00e28f;
  color: #04140c !important;
  box-shadow: 0 4px 20px rgba(0, 226, 143, 0.35);
}

.purpose-btn.active .btn-indicator {
  background: #04140c;
  opacity: 1;
}

/* شاشة العرض والبطاقة */
.purpose-display {
  position: relative;
  width: 100%;
  background: var(--bg-1, #ffffff);
  border: 1px solid rgba(0, 226, 143, 0.25);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

.purpose-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 226, 143, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* النصوص والألوان المتوافقة مع Light Mode */
.purpose-content {
  display: none;
  animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.purpose-content.active {
  display: block;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.purpose-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #00a86b; /* أخضر غامق واضح في اللايت مود */
  margin-bottom: 16px;
  display: block;
}

.purpose-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0a0f1d !important; /* لون داكن واضح جداً على الخلفية الفاتحة */
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.purpose-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2d3748 !important; /* لون رمادي داكن وسهل القراءة */
  margin: 0;
}

/* تعديل الألوان تلقائياً للوضع الداكن (Dark Theme) */
[data-theme="dark"] .purpose-title,
body.dark-mode .purpose-title {
  color: #ffffff !important;
}

[data-theme="dark"] .purpose-desc,
body.dark-mode .purpose-desc {
  color: rgba(244, 246, 247, 0.82) !important;
}

[data-theme="dark"] .purpose-display,
body.dark-mode .purpose-display {
  background: #080d1a !important;
}
/* =========================================================
   FUTURISTIC HOLO PURPOSE TERMINAL
   ========================================================= */
.holo-purpose {
  padding: 90px 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.holo-container {
  width: 100%;
  max-width: 980px;
  background: var(--bg-1, #ffffff);
  border: 1px solid rgba(0, 226, 143, 0.3);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.05), 0 0 30px rgba(0, 226, 143, 0.08);
  overflow: hidden;
  position: relative;
}

/* الشريط الجانبي الأيسر */
.holo-sidebar {
  background: rgba(0, 226, 143, 0.03);
  border-right: 1px solid rgba(0, 226, 143, 0.2);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.holo-brand-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00be74;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e28f;
  box-shadow: 0 0 10px #00e28f;
  animation: holoPulse 2s infinite alternate;
}

@keyframes holoPulse {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* أزرار التبديل الجانبية */
.holo-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
}

.holo-nav-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.35s ease;
  overflow: hidden;
}

.nav-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #8a94a6;
  transition: color 0.3s ease;
}

.nav-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2d3748;
  transition: color 0.3s ease;
}

.holo-nav-btn.active {
  background: linear-gradient(135deg, #00e28f 0%, #00b377 100%);
  border-color: #00e28f;
  box-shadow: 0 8px 25px rgba(0, 226, 143, 0.3);
}

.holo-nav-btn.active .nav-num,
.holo-nav-btn.active .nav-text {
  color: #04140c !important;
}

.holo-status {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label { color: #8a94a6; }
.status-val { color: #4b3ff5; font-weight: 800; }

/* شاشة العرض الرئيسية الجانبية */
.holo-display {
  padding: 44px 40px;
  position: relative;
  display: flex;
  align-items: center;
}

.holo-laser-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #00e28f, #4b3ff5);
  opacity: 0.7;
}

.holo-content {
  display: none;
  animation: holoSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.holo-content.active {
  display: block;
}

@keyframes holoSlideIn {
  from { opacity: 0; transform: translateX(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.content-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #4b3ff5; /* إدخال اللون الأزرق للثيم */
  margin-bottom: 20px;
}

.content-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0a0f1d !important; /* أسود فاخر واضح في اللايت مود */
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.content-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155 !important;
  margin: 0;
}

/* توافق الوضع الداكن (Dark Theme) */
[data-theme="dark"] .holo-container,
body.dark-mode .holo-container {
  background: #080d1a !important;
}

[data-theme="dark"] .content-title,
body.dark-mode .content-title {
  color: #ffffff !important;
}

[data-theme="dark"] .content-text,
body.dark-mode .content-text {
  color: rgba(244, 246, 247, 0.85) !important;
}

[data-theme="dark"] .nav-text,
body.dark-mode .nav-text {
  color: #ffffff;
}

/* الشاشات الصغيرة */
@media (max-width: 768px) {
  .holo-container {
    grid-template-columns: 1fr;
  }
  .holo-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0, 226, 143, 0.2);
  }
}
/* =========================================================
   PURPOSE CANVAS - HIGH TECH DESIGN
   ========================================================= */
.purpose-canvas {
  padding: 60px 20px;
  width: 100%;
  display: flex;
  justify-content me;
  align-items: center;
  justify-content: center;
}

.purpose-card {
  position: relative;
  width: 100%;
  max-width: 860px; /* ملموم وغير ممتد */
  background: var(--bg-1, #ffffff);
  border: 1px solid rgba(0, 226, 143, 0.35);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px rgba(0, 226, 143, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

/* شبكة خلفية تكنولوجية */
.purpose-card__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 226, 143, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 226, 143, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.purpose-card__glow-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 226, 143, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.purpose-card__glow-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(75, 63, 245, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* الهيدر والأزرار */
.purpose-card__header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 226, 143, 0.18);
  gap: 16px;
  flex-wrap: wrap;
}

.purpose-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid rgba(0, 226, 143, 0.2);
}

.p-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.p-tab__num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #8a94a6;
}

.p-tab__text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2d3748;
}

.p-tab.active {
  background: linear-gradient(135deg, #00e28f, #00b377);
  box-shadow: 0 4px 15px rgba(0, 226, 143, 0.3);
}

.p-tab.active .p-tab__num,
.p-tab.active .p-tab__text {
  color: #04140c !important;
}

/* زر الصوت التفاعلي */
.audio-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(75, 63, 245, 0.08);
  border: 1.5px solid #4b3ff5;
  color: #4b3ff5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.audio-trigger__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.audio-trigger__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.audio-trigger:hover {
  background: #4b3ff5;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(75, 63, 245, 0.35);
}

.audio-trigger.speaking {
  background: #00e28f;
  border-color: #00e28f;
  color: #04140c;
  animation: pulseAudio 1.2s infinite alternate;
}

@keyframes pulseAudio {
  0% { box-shadow: 0 0 5px rgba(0, 226, 143, 0.4); }
  100% { box-shadow: 0 0 20px rgba(0, 226, 143, 0.8); }
}

/* محتوى النص */
.purpose-card__body {
  position: relative;
  z-index: 2;
  padding: 32px 0;
}

.p-pane {
  display: none;
  animation: paneFadeIn 0.4s ease forwards;
}

.p-pane.active {
  display: block;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.p-pane__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 16px;
}

.p-pane__badge {
  color: #00be74;
  letter-spacing: 0.15em;
}

.p-pane__code {
  color: #4b3ff5;
  letter-spacing: 0.1em;
}

.p-pane__title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0a0f1d !important;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.p-pane__desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #2d3748 !important;
  margin: 0;
  font-weight: 500;
}

/* الفوتر */
.purpose-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 226, 143, 0.18);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #8a94a6;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e28f;
  box-shadow: 0 0 8px #00e28f;
}

/* التوافق مع الوضع الداكن */
[data-theme="dark"] .purpose-card,
body.dark-mode .purpose-card {
  background: #080d1a !important;
}

[data-theme="dark"] .p-pane__title,
body.dark-mode .p-pane__title {
  color: #ffffff !important;
}

[data-theme="dark"] .p-pane__desc,
body.dark-mode .p-pane__desc {
  color: rgba(244, 246, 247, 0.85) !important;
}

[data-theme="dark"] .p-tab__text,
body.dark-mode .p-tab__text {
  color: #ffffff;
}

/* =========================================================
   HERO VIDEO & CONTENT LAYOUT FIX
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  padding: 120px 20px 60px !important;
  box-sizing: border-box;
}

/* الفيديو خلفية كاملة الشاشة */
.hero__video-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
}

.hero__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* طبقة تظليل كحلية متوازنة لضمان وضوح النص بدون تعتم شديد */
.hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle, rgba(5, 7, 19, 0.45) 0%, rgba(5, 7, 19, 0.8) 100%) !important;
  z-index: 1 !important;
}

/* إخفاء الـ Canvas أو العوائق التي تدفع النص جانباً */
.hero__canvas, 
.hero__grid {
  z-index: 1 !important;
}

/* تعديل موقع ومساحة المحتوى ليصبح بالمنتصف تماماً */
.hero__content {
  position: relative !important;
  z-index: 10 !important;
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* إصلاح العناوين لتصبح عريضة وواضحة بدون انحشار */
.hero__title {
  width: 100% !important;
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1.15 !important;
  margin: 20px 0 !important;
  text-align: center !important;
}

.hero__line {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.hero__mask {
  display: inline-block !important;
  color: #ffffff !important;
}

.hero__mask--accent {
  color: #00e28f !important;
}

.hero__sub {
  max-width: 680px !important;
  margin: 0 auto 30px auto !important;
  color: rgba(244, 246, 247, 0.88) !important;
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

/* تعديل وتوسيط الأزرار */
.hero__ctas {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

/* اسم الشركة أعلى الهيرو — أكبر وأوضح، بحجم قريب من العنوان الرئيسي تحته */
.hero__eyebrow {
  font-family: var(--font-mono) !important;
  font-size: clamp(1.35rem, 3vw, 2.3rem) !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  color: #ffffff !important;
  gap: 16px !important;
  margin-bottom: 34px !important;
}
.hero__eyebrow .dot {
  width: 10px !important;
  height: 10px !important;
}

/* إصلاح النفق العلوي (Navbar) */
.header, .nav {
  z-index: 100 !important;
}

/* =========================================================
   ROLES / VENTURE PATH - COMPACT & 6 STEPS FIX
   ========================================================= */
.roles-path {
  position: relative;
  width: 100%;
  padding: 80px 0; /* تقليل الحشو العلوي والسفلي */
  overflow: hidden;
}

.roles-path__bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.roles-path__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.roles-path__bg.is-active {
  opacity: 1;
}

.roles-path__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(5, 7, 19, 0.6) 0%, rgba(5, 7, 19, 0.92) 100%);
  z-index: 2;
}

.roles-path__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* رسم خط الـ SVG الموصل */
.roles-path__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#lightningBeam {
  filter: drop-shadow(0 0 12px #00e28f);
  transition: stroke-dashoffset 0.1s linear;
}

/* تقريب المسافات بين الخطوات لتتسع الشاشة لـ 3 خطوات */
.roles-path__step {
  position: relative;
  z-index: 2;
  width: 380px;
  margin-bottom: 70px; /* تقليل المسافة من 180px إلى 70px للظهور الثلاثي */
  transition: all 0.5s ease;
  opacity: 0.35;
  transform: scale(0.95);
}

.roles-path__step.is-active {
  opacity: 1;
  transform: scale(1);
}

.step-left {
  align-self: flex-start;
  margin-left: 40px;
}

.step-right {
  align-self: flex-end;
  margin-right: 40px;
}

.roles-node__index {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: #00e28f;
  display: block;
  margin-bottom: 4px;
}

.roles-node__title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.roles-node__card {
  position: relative;
  background: rgba(10, 15, 29, 0.75);
  border: 1.5px solid rgba(0, 226, 143, 0.3);
  border-radius: 20px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.roles-path__step.is-active .roles-node__card {
  border-color: #00e28f;
  box-shadow: 0 0 25px rgba(0, 226, 143, 0.25);
}

.roles-node__desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(244, 246, 247, 0.88);
  margin: 0;
}

.node-pulse {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e28f;
  box-shadow: 0 0 12px #00e28f;
  transform: translateY(-50%);
}

.step-left .node-pulse { right: -5px; }
.step-right .node-pulse { left: -5px; }

/* التوافق مع الشاشات الصغيرة */
@media (max-width: 850px) {
  .roles-path__step {
    width: 100%;
    max-width: 320px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .step-right { align-self: flex-start; }
}

/* =========================================================
   PURPOSE CANVAS & WAVE VISUALIZER
   ========================================================= */
.purpose-canvas {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* كانفاس موجات الصوت على امتداد الشاشة */
.audio-waves-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(0, 226, 143, 0.45));
}

.purpose-card {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  background: var(--bg-1, #ffffff) !important;
  border: 1px solid rgba(0, 226, 143, 0.35) !important;
  border-radius: 24px !important;
  padding: 36px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px rgba(0, 226, 143, 0.08) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.purpose-card__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 226, 143, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 226, 143, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.purpose-card__glow-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 226, 143, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.purpose-card__glow-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(75, 63, 245, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.purpose-card__header {
  position: relative;
  z-index: 2;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid rgba(0, 226, 143, 0.18) !important;
  gap: 16px;
  flex-wrap: wrap;
}

.purpose-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid rgba(0, 226, 143, 0.2);
}

.p-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.p-tab__num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #8a94a6;
}

.p-tab__text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2d3748;
}

.p-tab.active {
  background: linear-gradient(135deg, #00e28f, #00b377);
  box-shadow: 0 4px 15px rgba(0, 226, 143, 0.3);
}

.p-tab.active .p-tab__num,
.p-tab.active .p-tab__text {
  color: #04140c !important;
}

.audio-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 30px;
  background: rgba(0, 226, 143, 0.1);
  border: 1.5px solid #00e28f;
  color: #00be74;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.audio-trigger.speaking {
  background: #00e28f !important;
  color: #04140c !important;
  box-shadow: 0 0 20px rgba(0, 226, 143, 0.6) !important;
}

.purpose-card__body {
  position: relative;
  z-index: 2;
  padding: 30px 0;
  width: 100% !important;
}

.p-pane {
  display: none;
}

.p-pane.active {
  display: block !important;
  animation: paneFadeIn 0.4s ease forwards;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.p-pane__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
}

.p-pane__badge { color: #00be74; letter-spacing: 0.15em; }
.p-pane__code { color: #4b3ff5; letter-spacing: 0.1em; }

.p-pane__title {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: #0a0f1d !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.02em;
}

.p-pane__desc {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #2d3748 !important;
  margin: 0 !important;
}

.purpose-card__footer {
  position: relative;
  z-index: 2;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(0, 226, 143, 0.18) !important;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #8a94a6;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e28f;
  box-shadow: 0 0 8px #00e28f;
}

/* الوضع الداكن */
[data-theme="dark"] .purpose-card,
body.dark-mode .purpose-card {
  background: #080d1a !important;
}

[data-theme="dark"] .p-pane__title,
body.dark-mode .p-pane__title {
  color: #ffffff !important;
}

[data-theme="dark"] .p-pane__desc,
body.dark-mode .p-pane__desc {
  color: rgba(244, 246, 247, 0.85) !important;
}

[data-theme="dark"] .p-tab__text,
body.dark-mode .p-tab__text {
  color: #ffffff;
}

/* =========================================================
   LEADERSHIP SECTION & TEXT HIGHLIGHT FIX
   ========================================================= */
.leadership {
  padding: 180px 0 140px;
  border-top: 1px solid var(--line-soft);
  background: var(--dark-navy);
  color: #f4f6f7;
  position: relative;
  overflow: hidden;
}

.leadership__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid !important;
  grid-template-columns: 0.62fr 1fr !important; /* ضمان بقاء الفيديو يسار والنص يمين */
  gap: 80px !important;
  align-items: center !important;
}

.leadership__frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius, 2px);
  overflow: hidden;
  border: 1px solid rgba(244, 246, 247, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.leadership__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* =========================================================
   CEO SECTION - SMOOTH HIGHLIGHTER & ACTIVE CAROUSEL
   ========================================================= */

/* النص كفقرة طبيعية ومتصلة */
.leadership__quote {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
  line-height: 1.85 !important;
  color: rgba(244, 246, 247, 0.3) !important; /* لون النص الشفاف قبل الهايلايت */
  margin-bottom: 28px !important;
  font-weight: 500;
}

/* الكلمات تنساب طبيعياً */
.ceo-word {
  display: inline;
  position: relative;
  padding: 2px 0;
  transition: color 0.4s ease, background-color 0.4s ease, text-shadow 0.4s ease;
  color: rgba(244, 246, 247, 0.3);
}

/* الهايلايت الأبيض الخلفي مع الخط الأخضر المضيء */
.ceo-word.is-active {
  color: #00e28f !important; /* النص باللون الأخضر المضيء */
  background-color: rgba(255, 255, 255, 0.38) !important; /* خلفية الهايلايت باللون الأبيض */
  box-shadow: -4px 0 0 rgba(255, 255, 255, 0.27), 4px 0 0 rgba(255, 255, 255, 0.27); /* دمج المسافات بين الكلمات لتبدو كخط متصل */
  text-shadow: 0 0 10px rgba(0, 226, 143, 0.4);
}


@media (max-width: 1080px) {
  .leadership__inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* زر التحكم بالصوت المدمج على الفيديو */
.ceo-audio-trigger {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(8, 13, 26, 0.75);
  border: 1px solid rgba(0, 226, 143, 0.4);
  color: #00e28f;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.ceo-audio-trigger:hover,
.ceo-audio-trigger.is-playing {
  background: #00e28f;
  color: #04140c;
  box-shadow: 0 0 15px rgba(0, 226, 143, 0.5);
}
/* =========================================================
   SERVICES: NAVY BRAND COLORS & CLEAN GLASS SPHERES
   ========================================================= */
.services {
  padding: 140px 0;
  background: var(--bg-1, #070a1c);
  color: var(--ink, #f4f6f7);
  overflow: hidden;
  transition: background 0.4s ease;
}

.services .section-sub {
  color: var(--ink-70, rgba(244, 246, 247, 0.85)) !important;
  font-weight: 500;
}

.services__playground {
  max-width: var(--container, 1360px);
  margin: 60px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 50px;
  align-items: center;
  min-height: 580px;
  position: relative;
}

/* --- HUD Panel (دمج الأزرق مع الأخضر في اللايت والدارك مود) --- */
.hud-panel {
  position: relative;
  background: var(--hud-bg, rgba(7, 10, 28, 0.88));
  border: 1.5px solid var(--hud-border, rgba(75, 63, 245, 0.4));
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px var(--hud-shadow, rgba(8, 7, 159, 0.15)),
              inset 0 0 20px var(--hud-glow, rgba(0, 226, 143, 0.05));
  transition: all 0.4s ease;
}

:root[data-theme="light"] .hud-panel {
  --hud-bg: rgba(255, 255, 255, 0.94);
  --hud-border: rgba(8, 7, 159, 0.25);
  --hud-shadow: rgba(8, 7, 159, 0.1);
  --hud-glow: rgba(0, 168, 107, 0.03);
}

.hud-panel__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent, #00e28f);
  border-style: solid;
}
.hud-panel__corner--tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.hud-panel__corner--tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }

.hud-panel__badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent, #00e28f);
  letter-spacing: 0.15em;
}

.hud-panel__title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink, #ffffff);
  margin: 6px 0 20px;
  letter-spacing: -0.01em;
}

/* قائمة الخدمات */
.hud-panel__body {
  display: flex;
  flex-direction: column;
}

.hud-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-bottom: 1px solid var(--hud-line, rgba(75, 63, 245, 0.25));
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-15px);
}

:root[data-theme="light"] .hud-item {
  --hud-line: rgba(8, 7, 159, 0.15);
}

.hud-item.scan-in {
  animation: hudScanIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hudScanIn {
  to { opacity: 1; transform: translateX(0); }
}

.hud-item:last-child {
  border-bottom: none;
}

.hud-item:hover {
  background: var(--hud-hover, rgba(0, 226, 143, 0.08));
  padding-inline-start: 16px;
}

:root[data-theme="light"] .hud-item:hover {
  --hud-hover: rgba(8, 7, 159, 0.06);
}

.hud-item__num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--indigo, #4b3ff5);
  font-weight: 800;
}

.hud-item__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink, #ffffff);
}

.hud-item:hover .hud-item__text {
  color: var(--accent, #00e28f);
}

.hud-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--hud-line, rgba(75, 63, 245, 0.25));
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--ink-50, rgba(244, 246, 247, 0.4));
}

.hud-panel__status { display: flex; align-items: center; gap: 6px; color: var(--accent, #00e28f); font-weight: 700; }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #00e28f); box-shadow: 0 0 8px var(--accent, #00e28f); }

/* --- تصميم الكرات الزجاجية بلمسة الأزرق الملكي والجمالية النظيفة --- */
.spheres-stage {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 24px;
  background: radial-gradient(circle at center, var(--stage-glow, rgba(75, 63, 245, 0.08)) 0%, transparent 70%);
}

:root[data-theme="light"] .spheres-stage {
  --stage-glow: rgba(8, 7, 159, 0.05);
}

.hud-sphere {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  /* خلفية زجاجية كحلية راقية بدون لون أخضر فاقع بالداخل */
  background: var(--sphere-bg, radial-gradient(circle at 35% 35%, #0d122b 0%, #050714 85%));
  border: 1.5px solid var(--sphere-border, rgba(75, 63, 245, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), inset -4px -4px 12px rgba(0, 0, 0, 0.5), inset 4px 4px 12px rgba(255, 255, 255, 0.12);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

:root[data-theme="light"] .hud-sphere {
  --sphere-bg: radial-gradient(circle at 35% 35%, #ffffff 0%, #e6ebf5 85%);
  --sphere-border: rgba(8, 7, 159, 0.35);
  box-shadow: 0 15px 35px rgba(10, 8, 54, 0.12), inset -4px -4px 10px rgba(0, 0, 0, 0.05), inset 4px 4px 10px rgba(255, 255, 255, 0.8);
}

.hud-sphere:active {
  cursor: grabbing;
}

.hud-sphere__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--indigo, #4b3ff5);
  opacity: 0.5;
  animation: rotateSphereRing 28s linear infinite;
}

.hud-sphere__ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent, #00e28f);
  opacity: 0.25;
  animation: rotateSphereRing 18s linear infinite reverse;
}

@keyframes rotateSphereRing {
  to { transform: rotate(360deg); }
}

.hud-sphere__inner {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 12px;
}

.hud-sphere__num {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--accent, #00e28f);
  font-weight: 800;
  margin-bottom: 2px;
}

.hud-sphere__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink, #ffffff);
}

.hud-sphere__logo {
  display: none;
  width: 46px;
  height: auto;
  margin: 0 auto;
  opacity: .95;
}

/* الكرة المفعلة المختارة */
.hud-sphere.is-active {
  width: 200px;
  height: 200px;
  border-color: var(--accent, #00e28f);
  box-shadow: 0 0 35px rgba(0, 226, 143, 0.3), 0 0 20px rgba(75, 63, 245, 0.3);
  z-index: 10;
}

.hud-sphere.is-active .hud-sphere__num,
.hud-sphere.is-active .hud-sphere__label {
  display: none;
}

.hud-sphere.is-active .hud-sphere__logo {
  display: block;
}

@media (max-width: 960px) {
  .services__playground { grid-template-columns: 1fr; }
  .spheres-stage { height: 380px; }
}

/* =========================================================
   BRAND WATERMARK — hero + footer
   Large, low-opacity brand mark reinforcing the emblem across the page
   without competing with foreground content.
   ========================================================= */
.hero__brandmark{
  position:absolute; top:50%; inset-inline-end:-8%; transform: translateY(-50%);
  width:min(60vw,860px); height:auto; max-width:none;
  opacity:.055; pointer-events:none; z-index:1; user-select:none;
}
[dir="rtl"] .hero__brandmark{ transform: translateY(-50%) scaleX(-1); }
@media (max-width:860px){
  .hero__brandmark{ width:135vw; opacity:.05; inset-inline-end:-32%; }
}

.roles-path .section-head{
  position:relative; z-index:3; margin-bottom: 30px;
}
.roles-path .eyebrow{ color: #00a86b; justify-content:center; }
.roles-path .section-title{ color:#0a0836; }
.roles-path .section-sub{ color: rgba(10,8,54,.68); }
.roles-path .section-head__logo{ background: #00a86b; box-shadow: 0 0 0 1px rgba(10,8,54,.08), 0 4px 14px rgba(0,168,107,.3); }

.footer{ position:relative; overflow:hidden; }
.footer__mark{
  position:absolute; bottom:-16%; inset-inline-end:-4%; z-index:0;
  width:min(46vw,560px); height:auto; max-width:none;
  opacity:.045; pointer-events:none; user-select:none;
}
[dir="rtl"] .footer__mark{ transform: scaleX(-1); }
.footer__inner, .footer__bottom{ position:relative; z-index:1; }
@media (max-width:860px){ .footer__mark{ width:80vw; opacity:.04; } }

/* =========================================================
   NAV — "Get Involved" pill link
   ========================================================= */
.nav__links-highlight{
  color: var(--accent) !important; border:1px solid var(--line); border-radius:30px;
  padding:8px 16px; margin-inline-start:2px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav__links-highlight::after{ display:none; }
.nav__links-highlight:hover{ border-color: var(--accent); background: rgba(0,226,143,.08); }

/* =========================================================
   FINAL CTA — dual channel (email + WhatsApp) + Get Involved link
   ========================================================= */
.final-cta__ctas{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:26px; }
.final-cta__more{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.06em;
  color: var(--ink-70); border-bottom:1px solid transparent; padding-bottom:2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.final-cta__more i{ font-style:normal; display:inline-block; transition: transform .3s var(--ease); }
.final-cta__more:hover{ color: var(--accent); border-color: var(--accent); }
.final-cta__more:hover i{ transform: translateX(4px); }
[dir="rtl"] .final-cta__more i{ transform: scaleX(-1); }
[dir="rtl"] .final-cta__more:hover i{ transform: scaleX(-1) translateX(4px); }

/* =========================================================
   NEWS — editorial featured + supporting grid
   Chapter 13 in the numbered narrative spine, styled to read as one more
   room in the same house: same eyebrow/title system, same card border and
   radius language as capabilities / projects, warm tone-e background so it
   breathes before the final dark CTA.
   ========================================================= */

  .news {
    position: relative;
    padding: 100px 20px;
    background-color: #f8fafc;
    color: #0f172a;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  #news .section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
  }

  #news .eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #05E491;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  #news .section-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
  }

  #news .section-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
  }

  .news__wrapper {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* حاوية السطر الواحد القابلة للسحب واللف (Horizontal Scroll Track) */
  .news__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* إخفاء شريط التمرير الافتراضي للفايرفوكس */
    -ms-overflow-style: none; /* إكسبلورر */
    padding: 10px 4px 20px 4px;
  }

  .news__track::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير الافتراضي للكروم والسفاري */
  }

  /* الكارد الواحد بـ مقاسات متناسقة ونظيفة */
  .news-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
  }

  .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 228, 145, 0.4);
  }

  .news-card__media {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #0f172a;
  }

  .news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .news-card:hover .news-card__media img {
    transform: scale(1.05);
  }

  .news-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
  }

  .news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .news__tag {
    background: rgba(5, 228, 145, 0.12);
    color: #00a859;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
  }

  .news__date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
  }

  .news-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin: 0;
  }

  .news-card__desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news__more {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #00a859;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 6px;
    transition: gap 0.2s ease;
  }

  .news__more:hover {
    gap: 10px;
  }

  /* أسهم التنقل وشريط التقدم السفلي */
  .news__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .news__arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
  }

  .news__arrow-btn:hover {
    background: #05E491;
    border-color: #05E491;
    color: #ffffff;
    transform: scale(1.05);
  }

  .news__scrollbar {
    width: 200px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }

  .news__scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: #05E491;
    border-radius: 10px;
    transition: left 0.1s ease-out;
  }

  @media (max-width: 600px) {
    .news-card {
      flex: 0 0 300px;
    }
    .news__scrollbar {
      width: 120px;
    }
  }

/* =========================================================
   GET INVOLVED (HOME) — tabbed pathway + dynamic form, folded into the
   landing page as the last chapter before the footer. Permanently-light
   chapter (same treatment as .constellation) so it reads as an open,
   approachable "front desk" rather than another dark panel.
   ========================================================= */
.join{
  padding: 160px 0 140px; background: #f6f8ff; color: #0a0836;
  position:relative; overflow:hidden; border-top:1px solid rgba(10,8,54,.08);
}
.join__grid-bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: linear-gradient(rgba(10,8,54,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,8,54,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 75% at 50% 35%, #000 20%, transparent 85%);
}
.join__mark{
  position:absolute; top:2%; inset-inline-end:-3%; z-index:0;
  width: min(38vw, 540px); height:auto; opacity:.22; filter: blur(6px) saturate(1.05); pointer-events:none; user-select:none;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 50%, #000 35%, transparent 82%);
  mask-image: radial-gradient(62% 62% at 50% 50%, #000 35%, transparent 82%);
}
[dir="rtl"] .join__mark{ transform: scaleX(-1); }
@media (max-width: 860px){ .join__mark{ width: min(70vw, 420px); opacity:.16; top:0; } }
.join__watermark{
  position:absolute; z-index:0; pointer-events:none; user-select:none;
  bottom:-8%; inset-inline-start:-4%;
  width: min(30vw, 380px); height:auto; opacity:.07;
}
[dir="rtl"] .join__watermark{ transform: scaleX(-1); }
@media (max-width: 860px){ .join__watermark{ width: min(55vw, 260px); opacity:.06; } }
.join .section-head{ position:relative; z-index:1; }
.join .eyebrow{ justify-content:center; color: var(--accent); }
.join .section-title{ color:#0a0836; }
.join .section-sub{ color: rgba(10,8,54,.65); }

.join__panel{
  position:relative; z-index:1; max-width: var(--container); margin: 60px auto 0; padding: 0 32px;
}
.join__tabs{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.join__tab{
  background: linear-gradient(150deg, var(--brand-navy), var(--indigo));
  border-radius: var(--radius); padding: 28px 16px; display:flex; flex-direction:column; align-items:center; gap:14px;
  text-align:center; color: rgba(244,246,247,.82); font-size:.94rem; font-weight:700;
  box-shadow: 0 10px 24px rgba(8,7,64,.12);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.join__tab-icon{
  display:flex; align-items:center; justify-content:center; width:48px; height:48px;
  border:1.5px solid rgba(244,246,247,.35); border-radius: var(--radius); color: #fff;
  transition: border-color .35s var(--ease);
}
.join__tab-icon svg{ width:24px; height:24px; }
.join__tab:hover{ transform: translateY(-3px); box-shadow: 0 16px 30px rgba(8,7,64,.18); }
.join__tab.is-active{
  background: linear-gradient(150deg, var(--brand-navy), var(--indigo) 55%, var(--accent));
  color:#fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,226,143,.22);
}
.join__tab.is-active .join__tab-icon{ border-color:#fff; }
@media (max-width: 720px){
  .join__tabs{ grid-template-columns: repeat(2, 1fr); }
}

.join__form{
  border:1px solid rgba(10,8,54,.1); background:#fff; border-radius: var(--radius);
  padding: 32px 36px 30px; margin-top: 22px;
  box-shadow: 0 20px 50px rgba(8,7,64,.06);
}
.join__form-desc{
  color: rgba(10,8,54,.62); font-size:.94rem; line-height:1.6; max-width:640px; margin-bottom:22px;
}
.join__fields{ display:none; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.join__fields.is-active{ display:grid; }
.join__field{ display:flex; flex-direction:column; gap:6px; }
.join__field--full{ grid-column: 1 / -1; }
.join__field label{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color: rgba(10,8,54,.5);
}
.join__field input, .join__field textarea{
  background: #f7f8fc; border:1px solid rgba(10,8,54,.14); border-radius: var(--radius);
  color:#0a0836; font-family: inherit; font-size:.94rem; padding: 9px 13px;
  transition: border-color .3s, background .3s;
}
.join__field input::placeholder, .join__field textarea::placeholder{ color: rgba(10,8,54,.32); }
.join__field input:focus, .join__field textarea:focus{
  outline:none; border-color: var(--accent); background: rgba(0,226,143,.05);
}
.join__field textarea{ resize: vertical; min-height: 56px; font-family: inherit; }
.join__form-foot{ display:flex; gap:14px; flex-wrap:wrap; margin-top:20px; }
.join .btn--ghost{ border-color: rgba(10,8,54,.16); color:#0a0836; }
.join .btn--ghost:hover{ border-color: var(--accent); color:#0a0836; }
@media (max-width: 720px){
  .join__fields{ grid-template-columns: 1fr; }
  .join__form{ padding: 26px 22px; }
}

/* =========================================================
   APPROACH — light chapter (white, matching the rest of the site).
   List of stages on one side; a photo on the other that swaps per
   stage, with the stage description set below the photo.
   ========================================================= */
.roles-path{
  background: #ffffff;
}
.roles-path__grid-bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: linear-gradient(rgba(10,8,54,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,8,54,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(65% 60% at 50% 40%, #000 20%, transparent 85%);
}
.approach-body{
  position:relative; z-index:1;
  max-width: var(--container); margin: 76px auto 0; padding: 0 32px;
  display:grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 56px; align-items:start;
}
.approach-list{
  display:flex; flex-direction:column;
  border-top: 1px solid rgba(10,8,54,.12);
}
.approach-list__item{
  display:flex; align-items:baseline; gap:18px;
  width:100%; text-align: start; background:none; border:0;
  border-bottom: 1px solid rgba(10,8,54,.12);
  padding: 22px 4px;
  cursor:pointer;
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.approach-list__num{
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.04em;
  color: rgba(10,8,54,.34); transition: color .3s var(--ease);
}
.approach-list__title{
  font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight:700; letter-spacing:-.01em;
  color: rgba(10,8,54,.5);
  transition: color .3s var(--ease);
}
.approach-list__item:hover{ background: rgba(0,168,107,.045); padding-inline-start:14px; }
.approach-list__item.is-active{ padding-inline-start:14px; background: rgba(0,168,107,.06); }
.approach-list__item.is-active .approach-list__num{ color: #00a86b; }
.approach-list__item.is-active .approach-list__title{ color: #0a0836; }
.approach-list__item:hover .approach-list__title{ color:#0a0836; }
[dir="rtl"] .approach-list__item.is-active,
[dir="rtl"] .approach-list__item:hover{ padding-inline-start:4px; padding-inline-end:14px; }

.approach-visual__frame{
  position:relative; overflow:hidden; border-radius: 20px;
  aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(10,8,54,.14);
  border:1px solid rgba(10,8,54,.1);
}
.approach-visual__img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:1; transform: scale(1.01);
  transition: opacity .5s var(--ease), transform 6s linear;
}
.approach-visual__img.is-fading{ opacity:0; }
.approach-visual__overlay{
  position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; justify-content:flex-end;
  padding: 26px 28px;
  background: linear-gradient(0deg, rgba(6,7,20,.72) 0%, rgba(6,7,20,.28) 55%, transparent 85%);
  color:#fff;
}
.approach-visual__eyebrow{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(255,255,255,.72); margin-bottom:10px;
}
.approach-visual__meta{ display:flex; align-items:baseline; gap:12px; }
.approach-visual__num{ font-family: var(--font-mono); font-size:13px; color: rgba(0,226,143,.9); }
.approach-visual__title{ font-size: clamp(1.3rem,2.2vw,1.7rem); font-weight:700; letter-spacing:-.01em; }
.approach-visual__desc{
  margin-top:20px; font-size:1rem; line-height:1.7; color: rgba(10,8,54,.68); max-width:56ch;
}
@media (max-width: 900px){
  .approach-body{ grid-template-columns: 1fr; gap: 34px; }
  .approach-list__item{ padding: 18px 4px; }
}

/* =========================================================
   AI PRODUCTS / PROOF — background depth
   Flat single-tone panels felt inert next to leadership's grid+halo
   treatment; give them the same quiet depth.
   ========================================================= */
.products, .proof{ position:relative; }
.products__depth-grid, .proof__depth-grid{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: linear-gradient(rgba(244,246,247,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(244,246,247,.045) 1px, transparent 1px);
  background-size: 60px 60px;
}
.products__depth-grid{ mask-image: radial-gradient(60% 65% at 70% 35%, #000 15%, transparent 78%); }
.proof__depth-grid{ mask-image: radial-gradient(55% 60% at 20% 30%, #000 15%, transparent 78%); }
.products__depth-glow, .proof__depth-glow{
  position:absolute; z-index:0; pointer-events:none; border-radius:50%; filter: blur(40px);
}
.products__depth-glow{
  width:640px; height:640px; top:-8%; inset-inline-end:-12%;
  background: radial-gradient(closest-side, rgba(75,63,245,.18), transparent 72%);
}
.proof__depth-glow{
  width:560px; height:560px; bottom:-14%; inset-inline-start:-10%;
  background: radial-gradient(closest-side, rgba(0,226,143,.14), transparent 72%);
}
.products .section-head, .products__stage, .proof .section-head, .proof__layout{ position:relative; z-index:1; }