/* ==========================================================================
   Micro Code — website 2027  ·  Direction A "Signal"
   Colour method: 60 · 30 · 10 (colors-coordination-2027)
     60%  Midnight Navy  #050A1F  page, the night of the scroll video
     30%  Ice White      #E6EDFA  text, glass surfaces, icons
          Brand Blue     #2F86FF  supporting role only (logo, lines, light)
     10%  Neon Orange    #FF6B1A  ONE key word per heading, ONE main action,
                                  the active tab. Nothing else.
   The background video plays at 100% opacity with no overlay.
   Readability comes from glass cards and text shadow, never from a veil.
   ========================================================================== */

:root {
  --color-bg: #050a1f;
  --color-bg-deep: #02040f;
  --color-ice: #e6edfa;
  --color-ice-soft: rgba(230, 237, 250, .78);
  --color-ice-dim: rgba(230, 237, 250, .6);
  --color-ice-line: rgba(230, 237, 250, .16);
  --color-ice-faint: rgba(230, 237, 250, .07);
  --color-brand-blue: #2f86ff;
  --color-brand-blue-line: rgba(47, 134, 255, .45);
  --color-accent: #ff6b1a;
  --color-accent-light: #ff8a47;
  --color-accent-deep: #e5550a;
  --color-on-accent: #050a1f;
  --glass: rgba(6, 12, 34, .56);
  --glass-strong: rgba(6, 12, 34, .74);

  --font-display: "Unbounded", "Alexandria", system-ui, sans-serif;
  --font-body: "Alexandria", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-text: 0 2px 18px rgba(2, 4, 15, .85), 0 1px 3px rgba(2, 4, 15, .9);
}

html[lang="ar"] {
  --font-display: "Alexandria", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ice);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 3px; border-radius: 8px; }

/* hidden above the page (not to the side: a side offset widens RTL pages) */
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--color-ice); color: var(--color-bg); border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- the scroll video (100% opacity, no overlay) ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0;
  background: var(--color-bg-deep) center / cover no-repeat;
  pointer-events: none;
}
.stage video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.stage-progress {
  position: fixed; z-index: 30; inset-inline-start: 0; top: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-ice));
}
html[dir="rtl"] .stage-progress { transform-origin: 100% 50%; }

main, .site-footer { position: relative; z-index: 1; overflow-x: clip; }
.featured { overflow: visible; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(110px, 16vh, 200px); position: relative; }
.section--tall { min-height: 140vh; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 13px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-ice-dim); text-shadow: var(--shadow-text);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-brand-blue); }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 92px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 18px 0 0;
  text-shadow: var(--shadow-text);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 18px 0 0;
  text-shadow: var(--shadow-text);
  max-width: 18ch;
}
html[lang="ar"] .h-display, html[lang="ar"] .h-section { text-transform: none; line-height: 1.3; font-weight: 900; letter-spacing: 0; }
html[lang="ar"] .h-section { max-width: 20ch; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--color-ice-soft); max-width: 60ch; text-shadow: var(--shadow-text); }

.glass {
  background: var(--glass);
  border: 1px solid var(--color-ice-line);
  border-radius: var(--radius-l);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- buttons: one accent action per screen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 10px 30px -10px rgba(255, 107, 26, .7); }
.btn--accent:hover { background: var(--color-accent-light); }
.btn--ghost { color: var(--color-ice); border: 1.5px solid rgba(230, 237, 250, .42); background: rgba(230, 237, 250, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--ghost:hover { background: rgba(230, 237, 250, .14); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--color-ice); font-weight: 600; border-bottom: 1px solid var(--color-ice-line); padding-bottom: 4px; }
.link-arrow:hover { border-color: var(--color-ice); }

/* ---------- glass navigation (the active tab is the only accent, §12) ---------- */
.nav {
  position: fixed; z-index: 40; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(6, 12, 34, .42); border: 1px solid var(--color-ice-line);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  transition: transform .5s var(--ease), background .4s;
}
html[dir="rtl"] .nav { padding: 8px 22px 8px 8px; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav > a:first-child { flex: none; }
.nav__logo { display: block; width: 132px; height: auto; margin-inline-end: 14px; }
.nav__links { display: flex; gap: 2px; position: relative; }
.nav__link {
  position: relative; padding: 10px 14px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 14.5px; color: var(--color-ice-dim); transition: color .3s;
}
@media (max-width: 1120px) { .nav__link { padding: 10px 10px 12px; font-size: 14px; } .nav__logo { width: 116px; } }
.nav__link:hover { color: var(--color-ice); }
.nav__link.is-active { color: var(--color-ice); font-weight: 600; }
.nav__marker {
  position: absolute; bottom: 4px; height: 3px; width: 22px; border-radius: 3px;
  background: var(--color-accent); box-shadow: 0 0 12px 1px rgba(255, 107, 26, .85);
  transition: transform .5s var(--ease), opacity .3s; opacity: 0; left: 0;
}
.nav__lang {
  margin-inline-start: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(230, 237, 250, .1); font: 600 14px/1 var(--font-body);
  display: inline-flex; gap: 8px; align-items: center;
}
.nav__lang:hover { background: rgba(230, 237, 250, .18); }
.nav__lang [lang="ar"] { font-family: "Alexandria", sans-serif; }

/* phone: top bar + bottom glass tab bar */
.topbar, .tabbar { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar {
    display: flex; position: fixed; z-index: 40; top: 0; left: 0; right: 0;
    justify-content: space-between; align-items: center;
    padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
  }
  .topbar__logo { width: 120px; filter: drop-shadow(0 2px 10px rgba(2, 4, 15, .8)); }
  .topbar .nav__lang { margin: 0; background: rgba(6, 12, 34, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--color-ice-line); }
  .tabbar {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: space-between; padding: 8px 10px; border-radius: 999px;
    background: rgba(6, 12, 34, .5); border: 1px solid var(--color-ice-line);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 4px 8px; font-size: 11.5px; color: var(--color-ice-dim); position: relative;
  }
  .tabbar svg { width: 21px; height: 21px; stroke: currentColor; }
  .tabbar a.is-active { color: var(--color-ice); font-weight: 600; }
  .tabbar a.is-active::after {
    content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; border-radius: 3px;
    background: var(--color-accent); box-shadow: 0 0 10px 1px rgba(255, 107, 26, .85);
  }
  body { font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: start; padding-top: clamp(100px, 13vh, 140px); padding-bottom: 60px; text-align: center; }
.hero .h-display { font-size: clamp(34px, 5.5vw, 84px); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.chip {
  display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; color: var(--color-ice-soft);
  background: rgba(230, 237, 250, .06); border: 1px solid var(--color-ice-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand-blue); box-shadow: 0 0 10px var(--color-brand-blue); }
.hero .h-display { max-width: 16ch; }
html[lang="ar"] .hero .h-display { max-width: 15ch; font-size: clamp(38px, 6vw, 88px); }
.hero .lead { margin: 22px auto 0; text-align: center; }
.hero__ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  position: absolute; bottom: 28px; inset-inline-start: var(--gutter);
  font: 600 11px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--color-ice-dim);
  display: flex; align-items: center; gap: 12px; text-shadow: var(--shadow-text);
}
html[lang="ar"] .scroll-cue { letter-spacing: 0; font-size: 13px; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--color-ice), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .scroll-cue { display: none; }
}

/* ---------- marquee of capabilities (faint texture only) ---------- */
.marquee { overflow: hidden; padding-block: 18px; border-block: 1px solid var(--color-ice-faint); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }
.marquee__item { font: 800 clamp(26px, 4vw, 54px)/1 var(--font-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(230, 237, 250, .28); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand-blue-line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.about__card { padding: clamp(24px, 3vw, 40px); }
.about__card p { margin: 0 0 14px; color: var(--color-ice-soft); }
.about__grid > * { min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--color-ice-line); border-radius: var(--radius-m); overflow: hidden; }
.fact { background: var(--glass-strong); padding: 20px 18px; min-width: 0; }
.fact b { display: block; font: 800 clamp(19px, 2.6vw, 36px)/1.1 var(--font-display); }
@media (max-width: 480px) { .fact { padding: 16px 12px; } }
.fact span { font-size: 13.5px; color: var(--color-ice-dim); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.svc { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .5s var(--ease), border-color .4s; min-height: 280px; }
.svc:hover { transform: translateY(-6px); border-color: rgba(230, 237, 250, .34); }
.svc__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 134, 255, .14); border: 1px solid var(--color-brand-blue-line); }
.svc__icon svg { width: 24px; height: 24px; stroke: var(--color-ice); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin: 6px 0 0; font: 700 20px/1.3 var(--font-body); }
.svc p { margin: 0; color: var(--color-ice-soft); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--color-ice-line); color: var(--color-ice-dim); }
@media (max-width: 1020px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- works ---------- */
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(6, 12, 34, .5); border: 1px solid var(--color-ice-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.filter { padding: 9px 16px 11px; border-radius: 999px; font-size: 14px; color: var(--color-ice-dim); position: relative; }
.filter:hover { color: var(--color-ice); }
.filter.is-active { color: var(--color-ice); font-weight: 600; background: rgba(230, 237, 250, .08); }
.filter.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--color-accent); box-shadow: 0 0 10px rgba(255, 107, 26, .9); }

.featured, .featured.work { margin-top: 48px; display: grid; grid-template-columns: 1.35fr 1fr; overflow: visible; position: relative; background: var(--glass); }
.featured.work:hover { transform: none; }
.featured__media { position: relative; border-radius: var(--radius-l); overflow: hidden; margin: -26px 0 -26px -26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); aspect-ratio: 16 / 10; background: #000; }
html[dir="rtl"] .featured__media { margin: -26px -26px -26px 0; }
.featured__media video, .featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured__body h3 { margin: 0; font: 800 clamp(24px, 2.4vw, 34px)/1.2 var(--font-display); }
html[lang="ar"] .featured__body h3 { font-weight: 900; }
.featured__body p { margin: 0; color: var(--color-ice-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--color-ice-dim); }
.meta b { color: var(--color-ice); font-weight: 600; }
@media (max-width: 900px) {
  .featured, .featured.work { grid-template-columns: 1fr; }
  .featured__media, html[dir="rtl"] .featured__media { margin: -18px -10px 0; }
}

.works__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work { grid-column: span 4; position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--color-ice-line); display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s, opacity .4s; }
.work:nth-child(5n+1) { grid-column: span 7; }
.work:nth-child(5n+2) { grid-column: span 5; }
.work:hover { transform: translateY(-6px); border-color: rgba(230, 237, 250, .34); }
.work.is-out { display: none; }
/* 7/5 rows: aspect ratios chosen so both media boxes share one height */
.work:nth-child(5n+1) .work__media { aspect-ratio: 28 / 15; }
.work:nth-child(5n+2) .work__media { aspect-ratio: 4 / 3; }
.work__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work__media img, .work:hover .work__media video { transform: scale(1.05); }
.work__play { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 12, 34, .6); border: 1px solid rgba(230, 237, 250, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.work__play svg { width: 16px; height: 16px; fill: var(--color-ice); }
.work__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.work__cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ice-dim); }
html[lang="ar"] .work__cat { letter-spacing: 0; font-size: 13px; }
.work h3 { margin: 0; font: 700 19px/1.35 var(--font-body); }
.work p { margin: 0; font-size: 14.5px; color: var(--color-ice-soft); }
@media (max-width: 900px) { .work, .work:nth-child(5n+1), .work:nth-child(5n+2) { grid-column: span 6; } }
@media (max-width: 600px) { .work, .work:nth-child(5n+1), .work:nth-child(5n+2) { grid-column: span 12; } }

/* ---------- VR / XR (brochure language: brackets, side labels, big outline words) ---------- */
.vr { position: relative; }
.side-label {
  position: absolute; top: 160px; inset-inline-end: 10px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 12px/1 var(--font-body); letter-spacing: .4em; text-transform: uppercase; color: var(--color-ice-dim);
}
html[dir="rtl"] .side-label { transform: none; letter-spacing: 0; font-size: 14px; }
@media (max-width: 860px) {
  .side-label { display: none; }
  .lead, .h-section { text-shadow: 0 2px 14px rgba(2, 4, 15, .95), 0 0 30px rgba(2, 4, 15, .8), 0 1px 2px rgba(2, 4, 15, 1); }
}
.bracket { position: relative; padding-inline-start: clamp(26px, 3vw, 44px); }
.bracket::before, .bracket::after { content: ""; position: absolute; inset-inline-start: 0; width: 18px; border: 3px solid var(--color-brand-blue); border-inline-end: 0; }
.bracket::before { top: 0; height: 46%; border-bottom: 0; }
.bracket::after { bottom: 0; height: 46%; border-top: 0; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; background: var(--color-ice-line); border-radius: var(--radius-l); overflow: hidden; }
.pillar { background: var(--glass-strong); padding: 28px 24px 30px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pillar h3 { margin: 0 0 10px; font: 700 18px/1.35 var(--font-body); }
.pillar p { margin: 0; font-size: 15px; color: var(--color-ice-soft); }
.pillar .num { font: 600 12px/1 var(--font-mono); color: var(--color-brand-blue); display: block; margin-bottom: 18px; }
@media (max-width: 1020px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.bigwords { margin-top: 80px; display: grid; gap: 4px; }
.bigwords span { font: 900 clamp(40px, 9vw, 140px)/0.95 var(--font-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px rgba(230, 237, 250, .3); }
.bigwords span:nth-child(2) { padding-inline-start: 8vw; }
.bigwords span:nth-child(3) { padding-inline-start: 16vw; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.stat { padding: 26px 24px; }
.stat b { display: block; font: 800 clamp(36px, 4vw, 56px)/1 var(--font-display); color: var(--color-ice); }
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--color-ice-soft); }
.source { margin-top: 14px; font-size: 13px; color: var(--color-ice-dim); }
.source a { border-bottom: 1px solid var(--color-ice-line); }
@media (max-width: 1020px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.system { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.system__fig { aspect-ratio: 4 / 3; position: relative; border-bottom: 1px solid var(--color-ice-line); background: radial-gradient(120% 90% at 50% 100%, rgba(47, 134, 255, .22), transparent 60%); display: grid; place-items: center; }
.system__fig svg { width: 72%; height: auto; stroke: var(--color-ice); stroke-width: 1.2; fill: none; opacity: .9; }
.system__fig .lbl { position: absolute; top: 14px; inset-inline-start: 16px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--color-brand-blue); }
.system__body { padding: 22px 24px 26px; }
.system__body h3 { margin: 0 0 8px; font: 700 20px/1.3 var(--font-body); }
.system__body p { margin: 0 0 12px; color: var(--color-ice-soft); font-size: 15px; }
.spec { font: 500 13px/1.6 var(--font-mono); color: var(--color-ice-dim); }
@media (max-width: 1020px) { .systems { grid-template-columns: 1fr; } }

.platform { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 4vw, 64px); margin-top: 40px; align-items: start; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 0; }
.check { display: flex; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--color-ice-faint); }
.check svg { flex: none; width: 20px; height: 20px; margin-top: 3px; stroke: var(--color-brand-blue); fill: none; stroke-width: 2; }
.check b { display: block; font-weight: 600; font-size: 15.5px; }
.check span { font-size: 14px; color: var(--color-ice-dim); }
@media (max-width: 1020px) { .platform { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sector { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--color-ice-line); background: rgba(6, 12, 34, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 54px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 0 0; border-top: 1px solid var(--color-ice-line); }
html[dir="rtl"] .step { padding: 26px 0 0 22px; }
.step::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--color-ice); box-shadow: 0 0 12px var(--color-brand-blue); }
.step b { display: block; font: 700 18px/1.3 var(--font-body); margin-bottom: 6px; }
.step span { font-size: 14.5px; color: var(--color-ice-soft); }
.step i { font: 600 12px/1 var(--font-mono); color: var(--color-brand-blue); font-style: normal; display: block; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 26px; } .step { padding-top: 22px; } }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--color-ice-line); border-radius: var(--radius-l); overflow: hidden; }
.client { background: var(--glass-strong); min-height: 120px; display: grid; place-items: center; padding: 20px; text-align: center; font: 600 15px/1.4 var(--font-body); color: var(--color-ice-soft); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- news & social ---------- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.news-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), border-color .4s; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(230, 237, 250, .34); }
.news-card .src { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-ice-dim); }
html[lang="ar"] .news-card .src { letter-spacing: 0; }
.news-card h3 { margin: 0; font: 700 18px/1.4 var(--font-body); }
.news-card p { margin: 0; font-size: 14.5px; color: var(--color-ice-soft); }
.news-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--color-ice-line); background: rgba(6, 12, 34, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 15px; transition: background .3s; }
.social:hover { background: rgba(230, 237, 250, .12); }
.social svg { width: 18px; height: 18px; fill: var(--color-ice); }
@media (max-width: 1020px) { .news__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news__grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__box { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); padding: clamp(26px, 4vw, 56px); margin-top: 40px; }
.contact__ways { display: grid; gap: 12px; align-content: start; }
.way { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-s); border: 1px solid var(--color-ice-line); transition: background .3s; }
.way:hover { background: rgba(230, 237, 250, .06); }
.way small { display: block; font-size: 12.5px; color: var(--color-ice-dim); letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .way small { letter-spacing: 0; }
.way b { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
form.brief { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--color-ice-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--color-ice-line);
  background: rgba(2, 4, 15, .55); color: var(--color-ice); font: 400 16px/1.4 var(--font-body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-ice); }
.form-note { font-size: 13px; color: var(--color-ice-dim); margin: 0; }
@media (max-width: 860px) { .contact__box { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding: 70px 0 120px; border-top: 1px solid var(--color-ice-faint); background: rgba(2, 4, 15, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__grid h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ice-dim); font-weight: 600; }
html[lang="ar"] .footer__grid h4 { letter-spacing: 0; font-size: 15px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__grid a:hover { color: var(--color-ice); }
.footer__logo { width: 190px; }
.footer__bottom { margin-top: 50px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--color-ice-dim); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- modal player ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(2, 4, 15, .9); padding: 20px; }
.modal.is-open { display: grid; }
.modal__inner { width: min(1200px, 100%); position: relative; }
.modal video, .modal img { width: 100%; max-height: 82vh; border-radius: var(--radius-m); background: #000; object-fit: contain; }
.modal__close { position: absolute; top: -52px; inset-inline-end: 0; width: 42px; height: 42px; border-radius: 50%; background: rgba(230, 237, 250, .12); display: grid; place-items: center; font-size: 22px; }
.modal__cap { margin-top: 14px; color: var(--color-ice-soft); font-size: 15px; }

/* ---------- reveal (driven by JS; content is visible without JS) ---------- */
.js .rv { opacity: 0; transform: translateY(34px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }

/* ==========================================================================
   KEY WORDS — one per heading, in the accent, each animated by its meaning.
   Whole-word effects only, so Arabic letters stay joined.
   ========================================================================== */
.kw {
  position: relative; display: inline-block; white-space: nowrap;
  padding: .02em .26em .08em; margin-inline: .04em; border-radius: .22em;
  background: var(--color-accent); color: var(--color-on-accent);
  text-shadow: none; line-height: 1.05; vertical-align: baseline;
  isolation: isolate;
}
html[lang="ar"] .kw { padding: 0 .3em .1em; line-height: 1.25; }
.kw > .kw__t { display: inline-block; position: relative; z-index: 1; }

/* WORLDS / عوالم — an orbit circles the word, the word turns like a globe */
.fx-orbit .kw__orbit { position: absolute; inset: -26% -9%; pointer-events: none; transform: rotate(-8deg) scaleY(.36); z-index: 2; }
.fx-orbit .kw__orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(230, 237, 250, .55); }
.fx-orbit .kw__orbit span { position: absolute; inset: 0; animation: orbit 5.5s linear infinite; }
.fx-orbit .kw__orbit span::after { content: ""; position: absolute; top: 50%; left: -.09em; width: .18em; height: .52em; margin-top: -.26em; border-radius: 50%; background: var(--color-ice); box-shadow: 0 0 .3em var(--color-ice), 0 0 .8em var(--color-brand-blue); }
.fx-orbit .kw__t { animation: globe 5.5s ease-in-out infinite; }
.fx-orbit.is-in { animation: pop-world 1.4s var(--ease) both; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes globe { 0%, 100% { transform: perspective(500px) rotateY(-14deg); } 50% { transform: perspective(500px) rotateY(14deg); } }
@keyframes pop-world { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; } }

/* VISIBLE / مرئية — projected like a hologram: scan line, flicker, then steady */
.fx-holo { clip-path: inset(0 0 100% 0); }
.fx-holo.is-in { animation: holo-reveal 1.6s steps(1, end) both, holo-scan 1.6s var(--ease) both; clip-path: inset(0); }
.fx-holo::after { content: ""; position: absolute; left: -6%; right: -6%; height: 3px; top: 0; background: var(--color-ice); box-shadow: 0 0 14px 3px var(--color-ice); opacity: 0; }
.fx-holo.is-in::after { animation: scanline 1.4s var(--ease) both; }
.fx-holo.is-in .kw__t { animation: holo-flicker 7s 1.6s infinite; }
@keyframes holo-scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes holo-reveal { 0% { opacity: .2; } 20% { opacity: 1; } 30% { opacity: .4; } 40%, 100% { opacity: 1; } }
@keyframes scanline { 0% { top: 0; opacity: 1; } 90% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes holo-flicker { 0%, 92%, 100% { opacity: 1; transform: none; } 93% { opacity: .35; transform: translateX(2px); } 94% { opacity: 1; } 95% { opacity: .55; transform: translateX(-2px); } 96% { opacity: 1; transform: none; } }

/* BUILD / نبني — rises block by block, like floors of a building */
.fx-build { clip-path: inset(100% 0 0 0); }
.fx-build.is-in { animation: build-up 1.3s steps(6, end) both, settle .5s 1.3s var(--ease) both; }
.fx-build::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, transparent 0 calc(16.66% - 2px), rgba(5, 10, 31, .28) calc(16.66% - 2px) 16.66%); opacity: 0; z-index: 2; pointer-events: none; }
.fx-build.is-in::before { animation: floors 1.8s ease both; }
@keyframes build-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes floors { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes settle { 0% { transform: translateY(-4px); } 100% { transform: none; } }

/* SPEAKS / تتحدث — sound rings leave the word, the word pulses like a voice */
.fx-speak::before, .fx-speak::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--color-accent-light); opacity: 0; z-index: -1; }
.fx-speak.is-in::before { animation: ring 2.4s ease-out infinite; }
.fx-speak.is-in::after { animation: ring 2.4s 1.2s ease-out infinite; }
.fx-speak.is-in .kw__t { animation: voice 2.4s ease-in-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5, 1.9); opacity: 0; } }
@keyframes voice { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.06); } 20% { transform: scale(.98); } 30% { transform: scale(1.04); } 40% { transform: scale(1); } }

/* REAL / حقيقي — starts as a wireframe and becomes solid */
.fx-real { background: transparent; color: transparent; -webkit-text-stroke: 1.5px var(--color-accent-light); outline: 2px dashed var(--color-accent-light); outline-offset: -2px; }
.fx-real.is-in { animation: materialise 1.8s var(--ease) both; }
@keyframes materialise {
  0% { background: transparent; color: transparent; outline-color: var(--color-accent-light); transform: skewX(0); }
  40% { background: transparent; color: transparent; transform: skewX(-8deg); }
  48% { background: var(--color-accent); color: var(--color-on-accent); transform: skewX(6deg); }
  54% { background: transparent; color: transparent; }
  62%, 100% { background: var(--color-accent); color: var(--color-on-accent); -webkit-text-stroke: 0 transparent; outline-color: transparent; transform: none; }
}

/* MOVE / تتحرك — tilts like a motion simulator platform */
.fx-tilt.is-in { animation: tilt 3.4s ease-in-out infinite; transform-origin: 50% 120%; }
@keyframes tilt { 0%, 100% { transform: rotate(0) translateY(0); } 20% { transform: rotate(-6deg) translateY(-3px); } 45% { transform: rotate(5deg) translateY(2px); } 70% { transform: rotate(-3deg) translateY(-2px); } }

/* REPLAYED / تُعاد — rewinds with ghost frames, then plays forward */
.fx-rewind .kw__t::before, .fx-rewind .kw__t::after { content: attr(data-t); position: absolute; inset: 0; opacity: 0; color: var(--color-on-accent); }
.fx-rewind.is-in .kw__t { animation: rewind 3.2s var(--ease) infinite; }
.fx-rewind.is-in .kw__t::before { animation: ghost 3.2s var(--ease) infinite; }
.fx-rewind.is-in .kw__t::after { animation: ghost 3.2s .12s var(--ease) infinite; }
@keyframes rewind { 0%, 60%, 100% { transform: none; } 20% { transform: translateX(-.35em); } 30% { transform: translateX(-.35em); } }
@keyframes ghost { 0%, 100% { opacity: 0; transform: none; } 15% { opacity: .35; transform: translateX(.25em); } 30% { opacity: 0; } }
html[dir="rtl"] .fx-rewind.is-in .kw__t { animation-name: rewind-rtl; }
@keyframes rewind-rtl { 0%, 60%, 100% { transform: none; } 20%, 30% { transform: translateX(.35em); } }

/* LAUNCH / الإطلاق — lifts off with a trail, then lands */
.fx-launch::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 0; margin-left: -1.5px; background: linear-gradient(var(--color-accent-light), transparent); opacity: 0; }
.fx-launch.is-in { animation: launch 3.6s var(--ease) infinite; }
.fx-launch.is-in::after { animation: trail 3.6s var(--ease) infinite; }
@keyframes launch { 0%, 55%, 100% { transform: none; } 20% { transform: translateY(-.32em); } 35% { transform: translateY(-.32em); } }
@keyframes trail { 0%, 55%, 100% { height: 0; opacity: 0; } 20%, 35% { height: .5em; opacity: 1; } }

/* BIGGEST / أكبر — grows beyond its line, then breathes */
.fx-grow { transform-origin: 50% 70%; }
.fx-grow.is-in { animation: grow 1.4s var(--ease) both, breathe 4s 1.4s ease-in-out infinite; }
@keyframes grow { 0% { transform: scale(.45); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* NEWS / الأخبار — runs like a news ticker inside its pill */
.fx-ticker { overflow: hidden; vertical-align: bottom; }
.fx-ticker .kw__t { visibility: hidden; }
.fx-ticker .kw__run { position: absolute; inset: .02em 0 .08em; display: flex; align-items: center; white-space: nowrap; }
.fx-ticker .kw__run span { display: inline-block; padding-inline: .26em; }
.fx-ticker.is-in .kw__run { animation: ticker 6s linear infinite; }
@keyframes ticker { 0%, 18% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
html[dir="rtl"] .fx-ticker.is-in .kw__run { animation-name: ticker-rtl; }
@keyframes ticker-rtl { 0%, 18% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* GLOW / تتوهّج — a neon sign switching on */
.fx-glow { background: rgba(255, 107, 26, .18); color: var(--color-accent-light); }
.fx-glow.is-in { animation: neon-on 2.2s linear both, neon-hum 3s 2.2s ease-in-out infinite; }
@keyframes neon-on {
  0%, 10%, 14%, 30%, 34% { background: rgba(255, 107, 26, .12); color: rgba(255, 138, 71, .45); box-shadow: none; }
  12%, 32%, 60%, 100% { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 0 .5em rgba(255, 107, 26, .8), 0 0 1.4em rgba(255, 107, 26, .5); }
}
@keyframes neon-hum { 0%, 100% { box-shadow: 0 0 .45em rgba(255, 107, 26, .75), 0 0 1.2em rgba(255, 107, 26, .45); } 50% { box-shadow: 0 0 .7em rgba(255, 107, 26, .95), 0 0 2em rgba(255, 107, 26, .6); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-holo, .fx-build { clip-path: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
