/* ==========================================================
   Raya Electronics — Corporate Business Unit
   Brand: Raya Blue #1d619d · Navy #282f76 · Logo Navy #001780
          Electric Blue #3c67b1 · Grey #a4a4a4
   Type:  JetBrains Mono (headlines) · Inter (text) · IBM Plex Sans Arabic
   Themes: [data-theme="dark"|"light"] · Direction: [dir="rtl"]
   ========================================================== */

:root {
  --navy: #001780;
  --navy-2: #282f76;
  --raya: #1d619d;
  --electric: #3c67b1;
  --sky: #8db4ee;
  --ice: #d9e6fb;
  --grey: #a4a4a4;
  --ink: #030a2e;

  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --nav-h: 76px;
  --radius: 28px;
}

/* ---------- theme tokens ---------- */
:root, [data-theme="dark"] {
  --bg: #030a2e;
  --bg-2: #06113f;
  --surface: #0b1652;
  --surface-2: #101e63;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, .68);
  --fg-3: rgba(255, 255, 255, .45);
  --heading: #ffffff;
  --accent: #8db4ee;
  --eyebrow: #8db4ee;
  --line: rgba(255, 255, 255, .12);
  --chip-bg: rgba(141, 180, 238, .14);
  --chip-fg: #d6e5fc;
  --tile: #ffffff;
  --tile-line: rgba(255, 255, 255, .0);
  --nav-bg: rgba(3, 10, 46, .78);
  --card-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --glow-a: #1f46c8;
  --glow-b: #1d619d;
  --tri: 141, 180, 238;
  --btn-bg: #ffffff;
  --btn-fg: #001780;
  --field: rgba(255, 255, 255, .06);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f7fd;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3fc;
  --fg: #0c1233;
  --fg-2: #4a5170;
  --fg-3: #8189a6;
  --heading: #001780;
  --accent: #1d619d;
  --eyebrow: #3c67b1;
  --line: rgba(12, 18, 51, .11);
  --chip-bg: #e3ecfb;
  --chip-fg: #001780;
  --tile: #ffffff;
  --tile-line: rgba(12, 18, 51, .1);
  --nav-bg: rgba(255, 255, 255, .82);
  --card-shadow: 0 40px 80px -48px rgba(0, 23, 128, .45);
  --glow-a: #9fc0f5;
  --glow-b: #c9dcfb;
  --tri: 0, 23, 128;
  --btn-bg: #001780;
  --btn-fg: #ffffff;
  --field: #f1f4fb;
  color-scheme: light;
}

/* Arabic typography */
[lang="ar"] {
  --mono: "IBM Plex Sans Arabic", "JetBrains Mono", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; font-weight: 700; line-height: 1.25; }
[lang="ar"] .eyebrow, [lang="ar"] .k, [lang="ar"] .tag { letter-spacing: 0; text-transform: none; font-size: 14px; }
[lang="ar"] body { line-height: 1.85; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s, color .5s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; color: var(--heading); }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--fg-2); }
.accent { color: var(--accent); }
.sec-a { background: var(--bg); }
.sec-b { background: var(--bg-2); }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.arr { width: 1.1em; height: 1.1em; flex: none; transition: transform .4s var(--ease); }
[dir="rtl"] .arr, [dir="rtl"] .arrow-btn svg, [dir="rtl"] .lb-nav svg { transform: scaleX(-1); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--eyebrow);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.eyebrow.light { color: var(--sky); }
.eyebrow .dot { width: 8px; height: 8px; background: currentColor; clip-path: polygon(50% 100%, 0 0, 100% 0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  text-decoration: none; border-radius: 999px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 14px 40px -14px rgba(60, 103, 177, .8); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--electric), var(--navy));
  transform: translateX(-101%); transition: transform .6s var(--ease);
}
[dir="rtl"] .btn-primary::before { transform: translateX(101%); }
.btn-primary:hover { color: #fff; }
.btn-primary:hover::before { transform: none; }
.btn-ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn.full { width: 100%; }

/* ---------------- NAV (always visible, solid once scrolled) ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.nav.scrolled {
  --nav-h: 66px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .4);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 82px; height: auto; fill: var(--heading); overflow: visible; }
[data-theme="dark"] .brand-mark { fill: #fff; }
.brand-mark .f { fill: var(--sky); animation: flag-in 1.2s var(--ease) both .2s; transform-origin: 85% 10%; }
[data-theme="light"] .brand-mark .f { fill: var(--raya); }
@keyframes flag-in { from { opacity: 0; transform: translateY(-30px) scale(.6); } }
.brand-sub {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; line-height: 1;
  padding: 10px 0; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); color: var(--fg);
}
.nav-links { display: flex; align-items: center; gap: 2px; position: relative; }
.nav-links a { text-decoration: none; }
.nav-links .nl {
  position: relative; z-index: 1;
  font-size: 14.5px; font-weight: 500; padding: 10px 15px; border-radius: 999px;
  color: var(--fg-2); transition: color .3s;
}
.nav-links .nl:hover, .nav-links .nl[aria-current="page"] { color: var(--fg); }
.nav-links .nl[aria-current="page"] { font-weight: 600; }
/* sliding pill under the open page (follows hover, morphs between pages with view transitions) */
.nav-ind {
  position: absolute; left: 0; top: 50%; height: 40px; margin-top: -20px;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
  view-transition-name: nav-ind;
}
.nav-ind.on { opacity: 1; }
.nav-ind::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; width: 9px; height: 7px; margin-left: -4.5px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.ind-intro .nav-ind.on { animation: ind-in .9s var(--ease) both .15s; }
.ind-intro .nav-ind.on::after { animation: ind-drop .7s var(--ease) both .6s; }
@keyframes ind-in { from { opacity: 0; transform: translateX(var(--x, 0)) scale(.4, .6); } }
@keyframes ind-drop { from { opacity: 0; transform: translateY(-8px); } }
.nav-actions { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; }
.nav-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.nav-signin { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.nav-signin:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.nav-cta { background: var(--btn-bg); color: var(--btn-fg); }
.nav-cta:hover { background: var(--electric); color: #fff; transform: translateY(-1px); }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 4px rgba(141, 180, 238, .35); }
/* over the dark page heads the nav is light-on-dark until it turns solid */
.nav:not(.scrolled):not(.menu-open) {
  --fg: #fff; --fg-2: rgba(255, 255, 255, .8); --heading: #fff; --accent: #8db4ee;
  --line: rgba(255, 255, 255, .26); --chip-bg: rgba(255, 255, 255, .14); --btn-bg: #fff; --btn-fg: #001780;
}
.nav:not(.scrolled):not(.menu-open) .brand-mark .f { fill: var(--sky); }
.nav.menu-open { background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.tool {
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  display: inline-grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--fg);
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.tool:hover { background: var(--chip-bg); }
.tool.lang { font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 600; font-size: 14px; }
.tool.theme svg { width: 19px; height: 19px; grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .6s var(--ease), opacity .4s; }
.tool.theme .moon { fill: currentColor; stroke: none; }
[data-theme="dark"] .tool.theme .moon, [data-theme="light"] .tool.theme .sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------- PAGE TRANSITIONS (cross-document view transitions) ---------------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(nav-ind) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22, .8, .2, 1); }
::view-transition-old(root) { animation: vt-out .3s ease both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.22, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* shared bits */
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.btn-light::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--sky), #fff); transform: translateX(-101%); transition: transform .6s var(--ease); }
[dir="rtl"] .btn-light::before { transform: translateX(101%); }
.btn-light:hover::before { transform: none; }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px #fff; }
.sec-head { margin-bottom: clamp(32px, 5vh, 56px); max-width: 820px; }
[data-spot] { position: relative; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(60, 103, 177, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spot]:hover::before { opacity: 1; }

/* ---------------- HOME HERO SLIDER ---------------- */
.home-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; touch-action: pan-y; }
.hs-slides { position: absolute; inset: 0; }
.hs-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hs-slide.active { visibility: visible; opacity: 1; z-index: 1; }
.hs-bg { position: absolute; inset: 0; overflow: hidden; }
.hs-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); transition: transform 9s cubic-bezier(.2, .6, .3, 1); }
.hs-slide.active .hs-bg img { transform: scale(1.02); }
.hs-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 16, 100, .95) 0%, rgba(0, 23, 128, .82) 34%, rgba(0, 23, 128, .42) 66%, rgba(3, 10, 46, .3) 100%),
    linear-gradient(0deg, rgba(3, 10, 46, .9) 0%, transparent 38%);
}
[dir="rtl"] .hs-bg::after {
  background:
    linear-gradient(270deg, rgba(0, 16, 100, .95) 0%, rgba(0, 23, 128, .82) 34%, rgba(0, 23, 128, .42) 66%, rgba(3, 10, 46, .3) 100%),
    linear-gradient(0deg, rgba(3, 10, 46, .9) 0%, transparent 38%);
}
.hs-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: calc(var(--nav-h) + 20px) 0 150px; }
.hs-copy > * { max-width: 760px; }
.hs-copy > .hs-title { max-width: 1000px; }
.hs-title { color: #fff; font-size: clamp(36px, min(4.7vw, 8.6vh), 78px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 26px; }
[lang="ar"] .hs-title { line-height: 1.25; letter-spacing: 0; font-size: clamp(36px, min(5vw, 8.5vh), 80px); }
.hs-title .ln { display: block; overflow: hidden; padding-bottom: .06em; text-wrap: balance; }
.hs-title .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hs-title .accent { color: var(--sky); }
.hs-slide.active .hs-title .ln > span { transform: none; transition-delay: .25s; }
.hs-slide.active .hs-title .ln + .ln > span { transition-delay: .36s; }
.hs-lede { font-size: clamp(16px, 1.3vw, 20px); color: rgba(255, 255, 255, .8); max-width: 600px; margin-bottom: 34px; }
.hs-copy .eyebrow, .hs-lede, .hs-actions, .hs-partners { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hs-slide.active .eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.hs-slide.active .hs-lede { opacity: 1; transform: none; transition-delay: .5s; }
.hs-slide.active .hs-actions { opacity: 1; transform: none; transition-delay: .62s; }
.hs-slide.active .hs-partners { opacity: 1; transform: none; transition-delay: .74s; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hs-partners span { height: 52px; padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .95); display: grid; place-items: center; }
.hs-partners img { height: 28px; width: auto; max-width: 92px; object-fit: contain; }
.hs-num {
  position: absolute; z-index: 1; inset-inline-end: var(--gutter); bottom: 110px;
  font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: clamp(120px, 20vw, 300px); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hs-slide.active .hs-num { opacity: 1; transform: none; transition-delay: .3s; }
.hs-tri {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='44' viewBox='0 0 48 44'%3E%3Cpath d='M14 12h20L24 30z' fill='%238db4ee' fill-opacity='.18'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
[dir="rtl"] .hs-tri { -webkit-mask-image: linear-gradient(270deg, transparent 35%, #000 100%); mask-image: linear-gradient(270deg, transparent 35%, #000 100%); }
.hs-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(18px, 4vh, 40px); display: flex; align-items: flex-end; gap: 28px; }
.hs-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px; }
.hs-tabs button { text-align: start; padding: 16px 2px 0; color: rgba(255, 255, 255, .55); font-size: 14px; font-weight: 500; position: relative; transition: color .3s; line-height: 1.35; }
.hs-tabs button b { display: block; font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--sky); margin-bottom: 3px; }
.hs-tabs button::before, .hs-tabs button i { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; }
.hs-tabs button::before { background: rgba(255, 255, 255, .22); }
.hs-tabs button i { background: #fff; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hs-tabs button i { transform-origin: right; }
.hs-tabs button:hover, .hs-tabs button[aria-selected="true"] { color: #fff; }
.hs-tabs button.done i { transform: scaleX(1); }
.hs-tabs button[aria-selected="true"] i { animation: progress var(--dur, 7s) linear forwards; }
.home-hero.paused .hs-tabs button[aria-selected="true"] i { animation-play-state: paused; }
.home-hero.static .hs-tabs button[aria-selected="true"] i { animation: none; transform: scaleX(1); }
.hs-ctrl { display: flex; align-items: center; gap: 12px; }
.hs-count { font-family: "JetBrains Mono", monospace; color: rgba(255, 255, 255, .55); font-size: 14px; margin-inline-end: 6px; }
.hs-count b { color: #fff; font-size: 24px; }
.home-hero .arrow-btn { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home-hero .arrow-btn:hover { background: #fff; color: var(--navy); }

/* ---------------- INNER PAGE HEAD ---------------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(70% 90% at 88% 0%, #1f46c8 0%, transparent 60%),
    radial-gradient(55% 80% at 0% 100%, rgba(29, 97, 157, .75), transparent 60%),
    linear-gradient(160deg, #001780 0%, #030a2e 85%);
  padding: calc(var(--nav-h) + clamp(56px, 11vh, 120px)) 0 clamp(64px, 11vh, 120px);
}
.page-hero .tri-field { --tri: 141, 180, 238; position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); align-content: start;
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 70%); }
[dir="rtl"] .page-hero .tri-field { -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%); }
.tri-field i { aspect-ratio: 1; display: block; margin: 24%; background: rgba(var(--tri), .1); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: background 1.2s; }
.tri-field i.on { background: rgba(var(--tri), .55); transition: background .2s; }
.ph-word {
  position: absolute; z-index: -1; inset-inline-end: -1vw; bottom: -.16em; pointer-events: none; white-space: nowrap;
  font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: clamp(90px, 17vw, 290px); line-height: 1; letter-spacing: -.06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(141, 180, 238, .2);
  animation: word-in 1.6s var(--ease) both .2s;
}
[lang="ar"] .ph-word { font-family: var(--sans); letter-spacing: 0; bottom: -.3em; }
@keyframes word-in { from { opacity: 0; transform: translateX(8%); } }
.ph-inner > * { animation: fade-up 1s var(--ease) both; }
.ph-inner > :nth-child(2) { animation-delay: .08s; }
.ph-inner > :nth-child(3) { animation-delay: .16s; }
.ph-inner > :nth-child(4) { animation-delay: .26s; }
.ph-inner > :nth-child(5) { animation-delay: .36s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
[lang="ar"] .crumbs { letter-spacing: 0; font-size: 14px; }
.crumbs a { text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 84px); letter-spacing: -.045em; max-width: 15ch; margin-bottom: 26px; }
[lang="ar"] .page-hero h1 { letter-spacing: 0; line-height: 1.3; }
.ph-lede { color: rgba(255, 255, 255, .76); max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); }
.ph-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.ph-stats div { min-width: 150px; padding: 16px 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ph-stats b { display: block; font-family: "JetBrains Mono", monospace; font-size: 30px; line-height: 1.1; }
.ph-stats span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* sticky chip bar for in-page sections */
.subnav { position: sticky; top: 65px; z-index: 30; background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.subnav-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.subnav a b { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent); transition: color .3s; }
.subnav a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-2); }
.subnav a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.subnav a[aria-current="true"] b { color: inherit; opacity: .7; }

/* ---------------- SOLUTIONS PAGE ---------------- */
.sol-index { padding: clamp(70px, 12vh, 130px) 0; }
.sol-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol-card {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sol-card:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px var(--electric), 0 50px 90px -45px rgba(0, 23, 128, .6); }
.sol-card figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sol-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sol-card:hover img { transform: scale(1.08); }
.sol-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 23, 128, .45)); opacity: 0; transition: opacity .6s; }
.sol-card:hover figure::after { opacity: 1; }
.sol-card .num { position: absolute; z-index: 1; inset-inline-start: 16px; top: 16px; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--navy); font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 12.5px; }
.sol-card .body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; }
.sol-card h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
[lang="ar"] .sol-card h3 { letter-spacing: 0; }
.sol-card p { color: var(--fg-2); font-size: 15px; }
.sol-card .more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 13.5px; color: var(--accent); }
.sol-card:hover .more .arr { transform: translateX(5px); }
[dir="rtl"] .sol-card:hover .more .arr { transform: scaleX(-1) translateX(5px); }

.sol-details { padding: clamp(30px, 6vh, 60px) 0 clamp(60px, 10vh, 110px); }
.sol-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 9vh, 100px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.sol-detail:last-child { border-bottom: 0; }
.sol-detail:nth-child(even) .sd-media { order: 2; }
.sd-media { position: relative; }
.sd-media .reveal-clip { border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--card-shadow); }
.sd-media img { width: 100%; height: 100%; object-fit: cover; }
.sd-num { position: absolute; z-index: 1; inset-inline-start: 22px; bottom: 10px; font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: clamp(64px, 8vw, 120px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); pointer-events: none; }
.sd-copy h2 { font-size: clamp(28px, 3.4vw, 48px); margin-bottom: 18px; }
.sd-copy > p.muted { margin-bottom: 26px; font-size: 17px; }
.sd-copy .sol-list { margin-bottom: 26px; }
.sd-copy .partners-label { margin-top: 0; }
.sd-copy .sol-partners { margin-bottom: 30px; }

.services-sec { padding: clamp(70px, 12vh, 130px) 0; scroll-margin-top: 70px; }

/* ---------------- CLIENTS PAGE ---------------- */
.sectors { padding: clamp(30px, 6vh, 60px) 0 clamp(70px, 12vh, 130px); }
.sector { padding-top: clamp(44px, 8vh, 80px); scroll-margin-top: 130px; }
.sector-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.sector-head b { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--accent); }
.sector-head h2 { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; }
[lang="ar"] .sector-head h2 { letter-spacing: 0; }
.sector-head span { margin-inline-start: auto; font-family: var(--mono); font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sector-grid .logo-tile {
  width: auto; height: 124px; overflow: hidden; border-radius: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector-grid .logo-tile img { max-height: 64px; transition: transform .6s var(--ease); }
.sector-grid .logo-tile:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--electric), 0 24px 40px -20px rgba(0, 23, 128, .45); }
.sector-grid .logo-tile:hover img { transform: translateY(-9px) scale(1.04); }
.logo-tile .nm {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 6px 10px; text-align: center;
  font-size: 11.5px; font-weight: 600; color: #fff; background: var(--navy); line-height: 1.3;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.logo-tile:hover .nm { transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(22px) scale(.97); }
.reveal-group.in > * { animation: tile-up .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes tile-up { to { opacity: 1; transform: none; } }

/* ---------------- CTA BAND ---------------- */
.cta-band { position: relative; overflow: hidden; color: #fff; padding: clamp(70px, 12vh, 130px) 0; background: linear-gradient(100deg, var(--navy) 0%, #0a2aa8 55%, var(--raya) 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='36' viewBox='0 0 40 36'%3E%3Cpath d='M0 0h18L9 16zM20 18h18l-9 16z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 30px 27px; animation: slide-bg 30s linear infinite; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; max-width: 760px; font-size: clamp(30px, 4vw, 58px); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- TALK TO SALES PAGE ---------------- */
.contact-page { padding: clamp(60px, 10vh, 110px) 0 clamp(70px, 12vh, 130px); }
.cp-grid { display: grid; grid-template-columns: .85fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.info-cards { display: grid; gap: 14px; }
.info-card {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 22px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.info-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--electric), var(--card-shadow); }
.info-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--chip-bg); color: var(--accent); transition: background .4s, color .4s; }
a.info-card:hover .ic { background: var(--btn-bg); color: var(--btn-fg); }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 3px; }
[lang="ar"] .info-card small { letter-spacing: 0; font-size: 13px; }
.info-card b { font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.follow { margin-top: 34px; }
.follow .eyebrow { margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; transition: background .3s, color .3s, transform .4s var(--ease); }
.socials svg { width: 20px; height: 20px; }
.socials a:hover { transform: translateY(-3px); }
.socials.big { margin-top: 0; }
.socials.big a { width: 50px; height: 50px; border-radius: 15px; background: var(--chip-bg); color: var(--accent); }
.socials.big a:hover { background: var(--btn-bg); color: var(--btn-fg); }
.contact-page .form { box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line); }
.form-title { grid-column: 1 / -1; font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 10px; }
.field.ro input { color: var(--fg-2); cursor: default; }
.field select:invalid { color: var(--fg-3); }
.field.invalid select { border-color: #e5484d; }

/* ---------------- PILLARS ---------------- */
.pillars { padding: clamp(50px, 9vh, 100px) 0; border-top: 1px solid var(--line); }
.pillar-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 28px clamp(16px, 2vw, 32px); border-inline-start: 1px solid var(--line); transition: background .4s; }
.pillar:hover { background: var(--chip-bg); }
.pillar .ico { width: 40px; height: 40px; fill: var(--accent); margin-bottom: 28px; transition: transform .6s var(--ease); }
.pillar:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--fg-2); font-size: 15px; }

/* ---------------- SOLUTIONS SLIDER ---------------- */
.solutions { padding: clamp(80px, 13vh, 150px) 0 clamp(60px, 10vh, 120px); overflow: hidden; }
.sol-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.sol-head h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -.045em; }
[lang="ar"] .sol-head h2 { letter-spacing: 0; }
.sol-side .muted { margin-bottom: 26px; }
.sol-controls { display: flex; align-items: center; gap: 12px; }
.sol-count { font-family: "JetBrains Mono", monospace; color: var(--fg-3); margin-inline-end: auto; font-size: 15px; }
.sol-count b { color: var(--heading); font-size: 26px; }
.arrow-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--fg);
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.arrow-btn svg { width: 22px; height: 22px; }
.arrow-btn.prev svg { transform: scaleX(-1); }
[dir="rtl"] .arrow-btn.prev svg { transform: none; }
.arrow-btn:hover { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; transform: scale(1.06); }
.arrow-btn:active { transform: scale(.94); }

.slider { position: relative; touch-action: pan-y; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
  min-height: clamp(460px, 58vh, 600px);
  visibility: hidden; opacity: 0;
  transition: opacity .8s var(--ease), visibility .8s;
}
.slide.active { visibility: visible; opacity: 1; z-index: 1; }
.slide-media { position: relative; overflow: hidden; clip-path: inset(0 0 0 0); }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.slide.active .slide-media img { transform: scale(1); }
.slide.active .slide-media { animation: wipe 1.1s var(--ease) both; }
.slide.active.back .slide-media { animation-name: wipe-back; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes wipe-back { from { clip-path: inset(0 0 0 100%); } }
[dir="rtl"] .slide.active .slide-media { animation-name: wipe-back; }
[dir="rtl"] .slide.active.back .slide-media { animation-name: wipe; }
.slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 36, .55)); }
.slide-num { position: absolute; z-index: 1; inset-inline-start: 26px; bottom: 14px; font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: clamp(70px, 9vw, 140px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); letter-spacing: -.06em; }
.slide-body { padding: clamp(26px, 3.6vw, 52px); display: flex; flex-direction: column; min-width: 0; }
.slide-body > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide:not(.active) .slide-body > * { opacity: 0; transform: translateY(24px); }
.slide.active .slide-body > *:nth-child(2) { transition-delay: .08s; }
.slide.active .slide-body > *:nth-child(3) { transition-delay: .16s; }
.slide.active .slide-body > *:nth-child(4) { transition-delay: .24s; }
.slide.active .slide-body > *:nth-child(5) { transition-delay: .32s; }
.slide.active .slide-body > *:nth-child(6) { transition-delay: .4s; }
.slide-body .tag { align-self: flex-start; }
.slide-body h3 { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: 14px; }
.slide-body > p { color: var(--fg-2); margin-bottom: 20px; }
.sol-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.sol-list li { padding: 10px 0; padding-inline-start: 24px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; }
.sol-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 17px; width: 10px; height: 9px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.partners-label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin: auto 0 10px; }
[lang="ar"] .partners-label { letter-spacing: 0; font-size: 13px; }
.sol-partners { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sol-partners span { background: #fff; border-radius: 12px; height: 46px; padding: 8px 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--tile-line); }
.sol-partners img { height: 26px; width: auto; max-width: 96px; object-fit: contain; }
.slide-cta { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.slide-cta:hover .arr { transform: translateX(5px); }
[dir="rtl"] .slide-cta:hover .arr { transform: scaleX(-1) translateX(5px); }

.slider-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.slider-tabs button {
  text-align: start; padding: 14px 4px 0; font-size: 13.5px; font-weight: 500; color: var(--fg-3);
  position: relative; transition: color .3s; line-height: 1.35;
}
.slider-tabs button b { display: block; font-family: "JetBrains Mono", monospace; font-size: 11px; margin-bottom: 2px; }
.slider-tabs button::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; background: var(--line); }
.slider-tabs button i { position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .slider-tabs button i { transform-origin: right; }
.slider-tabs button:hover, .slider-tabs button[aria-selected="true"] { color: var(--fg); }
.slider-tabs button.done i { transform: scaleX(1); }
.slider-tabs button[aria-selected="true"] i { animation: progress var(--dur, 6s) linear forwards; }
.slider.paused .slider-tabs button[aria-selected="true"] i { animation-play-state: paused; }
.slider.static .slider-tabs button[aria-selected="true"] i { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }

.services { padding-top: clamp(80px, 12vh, 140px); }
.services-head { margin-bottom: 44px; }
.services-head h2 { max-width: 760px; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-grid li { padding: 28px 0 32px; padding-inline-end: 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.02em; display: flex; gap: 18px; transition: color .3s, padding .5s var(--ease); }
[lang="ar"] .service-grid li { letter-spacing: 0; }
.service-grid li b { font-weight: 600; }
.service-grid li span { font-size: 12px; color: var(--accent); padding-top: 5px; font-family: "JetBrains Mono", monospace; }
.service-grid li:hover { color: var(--accent); padding-inline-start: 10px; }

/* ---------------- STATS (brand band in both themes) ---------------- */
.stats { background: linear-gradient(100deg, var(--navy) 0%, #0a2aa8 50%, var(--raya) 100%); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='36' viewBox='0 0 40 36'%3E%3Cpath d='M0 0h18L9 16zM20 18h18l-9 16z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 30px 27px; animation: slide-bg 30s linear infinite; }
@keyframes slide-bg { to { background-position: 300px 0; } }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stat { padding: clamp(40px, 7vh, 72px) 16px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: "JetBrains Mono", monospace; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -.05em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: rgba(255,255,255,.78); }

/* ---------------- ABOUT ---------------- */
.about { padding: clamp(80px, 14vh, 160px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--fg-2); margin-bottom: 16px; font-size: 17.5px; }
.about-photo { margin: 0; }
.about-photo .reveal-clip { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.vm { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; margin-top: clamp(60px, 10vh, 120px); }
.vm-card { border-radius: 26px; padding: clamp(28px, 4vw, 56px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.vm-card.brand { background: linear-gradient(140deg, var(--navy), #0a2aa8); color: #fff; box-shadow: none; }
.vm-card::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 160px; height: 140px; background: rgba(var(--tri), .1); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .8s var(--ease); }
.vm-card.brand::after { background: rgba(141, 180, 238, .16); }
.vm-card:hover::after { transform: translate(-20px, -20px) rotate(-12deg); }
.vm-card blockquote { margin: 0; font-family: var(--mono); font-weight: 800; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
[lang="ar"] .vm-card blockquote { letter-spacing: 0; line-height: 1.4; }
.vm-card p:not(.eyebrow) { font-size: clamp(17px, 1.5vw, 21px); color: var(--fg-2); line-height: 1.6; }
.leader { display: grid; grid-template-columns: minmax(240px, .7fr) 1.6fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(80px, 14vh, 160px); align-items: start; }
.leader-photo { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.leader-photo .reveal-clip { border-radius: 22px; overflow: hidden; }
.leader-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.leader-photo figcaption { margin-top: 16px; display: grid; }
.leader-photo b { font-family: var(--mono); font-size: 20px; color: var(--heading); }
.leader-photo span { color: var(--fg-2); font-size: 14px; }
.leader-quote { margin: 0 0 32px; font-family: var(--mono); font-weight: 800; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -.035em; color: var(--heading); }
[lang="ar"] .leader-quote { letter-spacing: 0; line-height: 1.5; }
.leader-body { columns: 2 280px; column-gap: 40px; }
.leader-body p { color: var(--fg-2); margin-bottom: 16px; break-inside: avoid; }

/* ---------------- CLIENTS ---------------- */
.clients { padding: clamp(80px, 14vh, 160px) 0; overflow: hidden; }
.clients-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.marquee { display: grid; gap: 16px; margin-bottom: 72px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile { flex: 0 0 auto; width: 190px; height: 100px; border-radius: 18px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line); display: grid; place-items: center; padding: 16px 22px; }
.logo-tile img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button { padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); transition: background .3s, color .3s, box-shadow .3s; }
.tabs button:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-2); }
.tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.tabs button small { font-family: "JetBrains Mono", monospace; opacity: .6; margin-inline-start: 6px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.client-grid .logo-tile { width: auto; height: 110px; animation: tile-in .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 25ms); transition: box-shadow .3s, transform .4s var(--ease); }
.client-grid .logo-tile:hover { box-shadow: inset 0 0 0 2px var(--electric), 0 12px 30px -12px rgba(0, 23, 128, .35); transform: translateY(-3px); }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------------- CERTS ---------------- */
.certs { padding: clamp(80px, 14vh, 160px) 0; overflow: hidden; }
.certs-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.certs h2 { margin-bottom: 24px; }
.certs .muted { max-width: 480px; }
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; justify-self: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(var(--tri), .3); }
.orbit::before { inset: 9%; }
.orbit::after { inset: 30%; border-style: solid; border-color: rgba(var(--tri), .12); }
.orbit-core { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle, #1f46c8, var(--navy)); box-shadow: 0 0 80px rgba(31, 70, 200, .5); }
.orbit-core b { font-family: "JetBrains Mono", monospace; font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.orbit-core span { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--sky); }
.orbit-ring { position: absolute; inset: 0; animation: spin 50s linear infinite; }
.orbit:hover .orbit-ring, .orbit:hover .orbit-ring figure { animation-play-state: paused; }
.orbit-ring figure {
  --a: calc(var(--i) * 72deg - 90deg);
  position: absolute; margin: 0; width: 19%;
  left: calc(50% + 41% * cos(var(--a))); top: calc(50% + 41% * sin(var(--a)));
  transform: translate(-50%, -50%);
  animation: counter 50s linear infinite;
}
@keyframes counter { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-ring img { width: 100%; height: auto; border-radius: 50%; background: #fff; padding: 6%; box-shadow: 0 10px 40px rgba(0,0,0,.25); transition: transform .4s var(--ease); }
.orbit-ring figure:hover img { transform: scale(1.12); }
.orbit-ring figcaption { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); text-align: center; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; white-space: nowrap; }

/* ---------------- NEWS ---------------- */
.news { padding: clamp(80px, 14vh, 160px) 0; }
.news-head { margin-bottom: 56px; }
.news-head h2 { max-width: 820px; }
.event { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); margin-bottom: 28px; }
.event.alt { grid-template-columns: 1.4fr .8fr; }
.event.alt .event-meta { order: 2; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--chip-fg); background: var(--chip-bg); padding: 6px 12px; border-radius: 99px; margin-bottom: 20px; }
.event h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 16px; }
.event p { color: var(--fg-2); margin-bottom: 24px; }
.link-btn { font-family: var(--mono); font-weight: 600; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; padding: 12px 0; position: relative; }
.link-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
[dir="rtl"] .link-btn::after { transform-origin: right; }
.link-btn:hover::after { transform: none; }
.event-mosaic { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 40vw, 500px); }
.event-mosaic .m { position: relative; overflow: hidden; border-radius: 18px; }
.event-mosaic .m1 { grid-row: 1 / 3; }
.event-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.event-mosaic .m:hover img { transform: scale(1.07); }
.event-mosaic .m::after { content: "+"; position: absolute; inset-inline-end: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 20px; transform: scale(0); transition: transform .4s var(--ease); }
.event-mosaic .m:hover::after { transform: scale(1); }

/* ---------------- CONTACT (brand in both themes) ---------------- */
.contact { background: radial-gradient(80% 80% at 90% 10%, #12309f 0%, transparent 60%), #030a2e; color: #fff; padding: clamp(80px, 14vh, 160px) 0; }
.contact h2 { color: #fff; margin-bottom: 24px; font-size: clamp(34px, 4.6vw, 64px); }
.contact .lede { color: rgba(255,255,255,.68); margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.contact-list li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); padding-top: 4px; }
[lang="ar"] .contact-list li > span { letter-spacing: 0; font-size: 14px; padding-top: 0; }
.contact-list b { font-weight: 400; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); word-break: break-all; justify-self: start; }
.form { background: var(--bg-2); color: var(--fg); border-radius: 28px; padding: clamp(24px, 3.6vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); }
.form h3 { grid-column: 1 / -1; font-size: 26px; margin-bottom: 10px; }
.field { position: relative; }
.field.full, .form .full, .form-note { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--field);
  transition: border-color .25s, background .25s, box-shadow .25s; appearance: none;
}
.field select option { color: #0c1233; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 16px 55%, 22px 55%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(60, 103, 177, .18); }
.field label { position: absolute; inset-inline-start: 17px; top: 18px; font-size: 15px; color: var(--fg-2); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
[dir="rtl"] .field label { transform-origin: right top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.fixed { transform: translateY(-10px) scale(.74); color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.form .btn-primary { margin-top: 6px; }
.form-note { font-size: 14px; color: var(--fg-2); min-height: 1.4em; }

/* ---------------- FOOTER ---------------- */
.footer { background: #020720; color: rgba(255,255,255,.75); padding: 80px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .muted { color: rgba(255,255,255,.55); }
.foot-lockup { display: inline-flex !important; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; }
.foot-lockup span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; padding: 10px 0; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.25); }
.foot-logo { width: 104px; fill: #fff; }
.footer .socials a { display: grid; padding: 0; background: rgba(255,255,255,.08); color: #fff; }
.footer .socials a:hover { background: var(--sky); color: var(--navy); }
.foot-logo .f { fill: var(--sky); }
.footer h4 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 600; }
[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 15px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; transition: color .25s; }
.footer a:hover { color: var(--sky); }
.footer p { margin-bottom: 8px; }
.footer p a { display: inline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------------- LIGHTBOX ---------------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 7, 32, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: lb-in .35s var(--ease); }
.lightbox::backdrop { background: rgba(2, 7, 32, .6); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 12px; animation: lb-img .5s var(--ease); }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { font-size: 14px; color: rgba(255,255,255,.7); }
.lb-nav, .lb-close { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); display: grid; place-items: center; justify-self: center; transition: background .3s; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav.prev svg { transform: scaleX(-1); }
[dir="rtl"] .lb-nav.prev svg { transform: none; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.12); }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 28px; }

/* ---------------- REVEAL ---------------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--rd, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-clip { clip-path: inset(16% 16% 16% 16% round 26px); transition: clip-path 1.4s var(--ease); }
.js .reveal-clip img { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.js .reveal-clip.in { clip-path: inset(0 0 0 0 round 0); }
.js .reveal-clip.in img { transform: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1320px) {
  .nav-links .nl { padding: 10px 11px; }
  .nav { gap: 14px; }
}
@media (max-width: 1080px) {
  .pillar-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slider-tabs { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .sol-cards { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1140px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -20px rgba(0,0,0,.4);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links .nl { font-size: 19px; font-family: var(--mono); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
  .nav-links .nl[aria-current="page"] { color: var(--accent); }
  .nav-links .nl[aria-current="page"]::before { content: ""; width: 10px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .nav-ind { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 18px 0 0; gap: 10px; }
  .nav-actions a { justify-content: center; margin: 0; height: 50px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav.scrolled { --nav-h: 60px; }
  body { font-size: 16px; }
  .brand-mark { width: 68px; }
  .brand { gap: 10px; }
  .brand-sub { font-size: 10px; letter-spacing: .22em; padding-inline-start: 10px; }


  .sol-head, .about-grid, .vm, .leader, .clients-head, .certs-inner, .contact-grid, .event, .event.alt { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { aspect-ratio: 16 / 10; }
  .event.alt .event-meta { order: 0; }
  .sol-detail, .cp-grid { grid-template-columns: 1fr; }
  .sol-detail:nth-child(even) .sd-media { order: 0; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .subnav { top: 59px; }
  .hs-tabs button span { display: none; }
  .hs-tabs { grid-template-columns: repeat(3, 1fr); max-width: 260px; }
  .hs-num { bottom: 120px; font-size: 34vw; }
  .hs-copy { padding-bottom: 130px; }
  .leader-photo { position: static; max-width: 320px; }
  .event-mosaic { height: 360px; }
  .orbit { width: min(420px, 92%); }
}

@media (max-width: 600px) {
  .pillar-row, .service-grid { grid-template-columns: 1fr; }
  .pillar { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-tile { width: 150px; height: 84px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs button { flex: 0 0 auto; }
  .sol-list { grid-template-columns: 1fr; }
  .slider-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .slider-tabs button { flex: 0 0 118px; }
  .arrow-btn { width: 50px; height: 50px; }
  .event-mosaic { height: 300px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
  .event-mosaic .m1 { grid-row: auto; grid-column: 1 / -1; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox[open] { grid-template-columns: 48px 1fr 48px; }
  .lb-nav { width: 40px; height: 40px; }
  .tool.lang { padding: 0 10px; }
  .sol-cards { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sector-grid .logo-tile { height: 100px; }
  .hs-ui { gap: 14px; }
  .hs-count { display: none; }
  .hs-actions .btn, .cta-actions .btn { height: 48px; padding: 0 20px; font-size: 13px; }
  .hs-partners span { height: 44px; padding: 8px 12px; }
  .hs-partners img { height: 22px; }
  .ph-stats div { min-width: 0; flex: 1 1 40%; padding: 14px 16px; }
  .ph-stats b { font-size: 24px; }
  .info-card { grid-template-columns: 46px 1fr; padding: 16px; gap: 14px; }
  .info-card .ic { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .nav-tools { gap: 6px; }
  .tool { height: 38px; min-width: 38px; }
  .burger { width: 38px; height: 38px; }
  .burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
  .brand-mark { width: 60px; }
  .brand-sub { font-size: 9px; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js .reveal-group > * { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-clip { clip-path: none; }
  .js .reveal-clip img { transform: none; }
}

/* ==========================================================
   v2 — home solution panels · solution pages · about · newsroom · galleries
   ========================================================== */
.ph-inner > :nth-child(6) { animation-delay: .44s; }
.ph-inner > :nth-child(7) { animation-delay: .52s; }
.sec-head .muted { margin-top: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .muted { max-width: 720px; margin-inline: auto; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 5vh, 52px); }
.cta-lede { color: rgba(255, 255, 255, .78); margin-top: 16px; max-width: 620px; font-size: clamp(16px, 1.3vw, 19px); }
.clients .marquee { margin-bottom: 0; }

/* ---------------- HOME: expanding solution panels ---------------- */
.home-sols { padding: clamp(80px, 13vh, 150px) 0; }
.acc { display: flex; gap: 12px; height: clamp(440px, 62vh, 580px); }
.acc-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: 24px; color: #fff; text-decoration: none; box-shadow: var(--card-shadow);
  transition: flex-grow .9s var(--ease);
}
.acc-item.open { flex-grow: 6.2; }
.acc-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: saturate(.6); transition: transform 1.6s var(--ease), filter .9s; }
.acc-item.open img { transform: none; filter: none; }
.acc-item::before, .acc-item::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .9s var(--ease); }
.acc-item::before { background: linear-gradient(180deg, rgba(0, 23, 128, .5), rgba(0, 23, 128, .7) 50%, rgba(3, 10, 46, .96)); }
.acc-item::after { opacity: 0; background: linear-gradient(180deg, transparent 35%, rgba(3, 10, 46, .55) 62%, rgba(3, 10, 46, .94)), linear-gradient(90deg, rgba(0, 23, 128, .45), transparent 65%); }
[dir="rtl"] .acc-item::after { background: linear-gradient(180deg, transparent 35%, rgba(3, 10, 46, .55) 62%, rgba(3, 10, 46, .94)), linear-gradient(270deg, rgba(0, 23, 128, .45), transparent 65%); }
.acc-item.open::before { opacity: 0; }
.acc-item.open::after { opacity: 1; }
.acc-item:not(.open):hover::before { opacity: .75; }
.acc-num { position: absolute; top: 18px; inset-inline-start: 18px; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 12.5px; line-height: 1.2; }
.acc-label {
  position: absolute; left: 50%; bottom: 26px; max-height: calc(100% - 90px); overflow: hidden;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap;
  font-family: var(--mono); font-weight: 700; font-size: 15px; transition: opacity .5s .3s;
}
.acc-item.open .acc-label { opacity: 0; transition: opacity .15s; }
.acc-body {
  position: absolute; bottom: 0; inset-inline-start: 0; width: clamp(300px, 52vw, 720px); max-width: 100%;
  padding: clamp(24px, 3vw, 44px); display: grid; gap: 12px; justify-items: start;
  opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.acc-item.open .acc-body { opacity: 1; transform: none; transition: opacity .7s .35s, transform .9s var(--ease) .35s; }
.acc-title { font-family: var(--mono); font-weight: 800; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
[lang="ar"] .acc-title { letter-spacing: 0; line-height: 1.35; }
.acc-text { color: rgba(255, 255, 255, .82); font-size: clamp(15px, 1.2vw, 18px); max-width: 560px; }
.acc .more { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--sky); }
.acc-item:hover .more .arr { transform: translateX(5px); }
[dir="rtl"] .acc-item:hover .more .arr { transform: scaleX(-1) translateX(5px); }
.acc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .acc-bar { transform-origin: right; }
.acc-item.open .acc-bar { animation: acc-fill var(--dur, 5s) linear forwards; }
.acc.paused .acc-bar { animation-play-state: paused; }
.acc.static .acc-bar { display: none; }
@keyframes acc-fill { to { transform: scaleX(1); } }

/* ---------------- INNER HEAD WITH A PHOTO (solution + gallery pages) ---------------- */
.page-hero.has-img { background: var(--ink); min-height: min(88vh, 780px); display: flex; align-items: flex-end; }
.ph-img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; animation: ph-zoom 2.6s var(--ease) both; }
@keyframes ph-zoom { from { transform: scale(1.14); } }
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 23, 128, .94) 0%, rgba(0, 23, 128, .74) 42%, rgba(3, 10, 46, .2) 100%), linear-gradient(0deg, rgba(3, 10, 46, .85), transparent 55%);
}
[dir="rtl"] .page-hero.has-img::before { background: linear-gradient(270deg, rgba(0, 23, 128, .94) 0%, rgba(0, 23, 128, .74) 42%, rgba(3, 10, 46, .2) 100%), linear-gradient(0deg, rgba(3, 10, 46, .85), transparent 55%); }
.page-hero.has-img .ph-word { -webkit-text-stroke-color: rgba(255, 255, 255, .26); }
.page-hero.has-img h1 { max-width: 18ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; padding: 9px 18px 9px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; font-family: var(--mono); font-size: 13px; font-weight: 600; transition: background .3s;
}
.back-link .arr { transform: scaleX(-1); }
[dir="rtl"] .back-link .arr { transform: none; }
.back-link:hover { background: rgba(255, 255, 255, .2); }
.back-link:hover .arr { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .back-link:hover .arr { transform: translateX(4px); }
.sol-ico { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sol-ico svg { width: 28px; height: 28px; color: #fff; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------------- SOLUTION DETAIL ---------------- */
.sd-body { padding: clamp(70px, 12vh, 130px) 0; }
.sd-lead { max-width: 1000px; margin-bottom: clamp(44px, 8vh, 80px); font-family: var(--mono); font-weight: 700; font-size: clamp(21px, 2.2vw, 32px); line-height: 1.4; letter-spacing: -.025em; color: var(--heading); }
[lang="ar"] .sd-lead { letter-spacing: 0; line-height: 1.75; }
.sd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sd-col { padding: clamp(26px, 3.4vw, 44px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.sd-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: clamp(20px, 1.8vw, 26px); }
.sd-h b { padding: 6px 10px; border-radius: 99px; background: var(--chip-bg); color: var(--chip-fg); font-size: 12px; line-height: 1.2; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 15px 0; padding-inline-start: 38px; border-top: 1px solid var(--line); font-size: 16px; }
.check-list li:first-child { border-top: 0; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--chip-bg); }
.check-list li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 21px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sd-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.sd-partners .partners-label, .sd-partners .sol-partners { margin: 0; }
.sd-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(40px, 7vh, 64px); padding: clamp(26px, 3.4vw, 44px); border-radius: 26px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.sd-cta .eyebrow { margin-bottom: 8px; }
.sd-cta h3 { max-width: 640px; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; }
.sd-more, .more-events { padding: clamp(60px, 10vh, 110px) 0; }
.sd-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; }
.sd-more-head h2 { font-size: clamp(26px, 3vw, 40px); }
.sd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 22px; padding: 14px; padding-inline-end: 28px;
  border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.pg:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--electric), var(--card-shadow); }
.pg-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.pg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pg:hover .pg-img img { transform: scale(1.08); }
.pg-copy { display: grid; gap: 6px; }
.pg small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
[lang="ar"] .pg small { letter-spacing: 0; font-size: 13px; }
.pg b { font-family: var(--mono); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; color: var(--heading); }
.pg .arr { width: 22px; height: 22px; color: var(--accent); }
.pg.prev .arr { transform: scaleX(-1); }
[dir="rtl"] .pg.prev .arr { transform: none; }

/* ---------------- NEWSROOM ---------------- */
.events { padding: clamp(70px, 12vh, 130px) 0; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ev-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; color: inherit; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.ev-card:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px var(--electric), 0 50px 90px -45px rgba(0, 23, 128, .6); }
.ev-card figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.ev-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ev-card:hover img { transform: scale(1.06); }
.ev-count { position: absolute; bottom: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(3, 10, 46, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ev-count svg { width: 18px; height: 18px; }
.ev-card .body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); }
.ev-card .tag { align-self: flex-start; margin-bottom: 4px; }
.ev-card h3 { font-size: clamp(22px, 2vw, 28px); }
.ev-card p { color: var(--fg-2); }
.ev-card .more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--accent); }
.ev-card:hover .more .arr { transform: translateX(5px); }
[dir="rtl"] .ev-card:hover .more .arr { transform: scaleX(-1) translateX(5px); }
.ev-card.wide { flex-direction: row; }
.ev-card.wide figure { flex: 0 0 50%; aspect-ratio: auto; min-height: 340px; }

/* ---------------- EVENT GALLERY ---------------- */
.gal-hero { min-height: min(74vh, 660px); }
.gallery { padding: clamp(50px, 9vh, 100px) 0 clamp(70px, 12vh, 130px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(170px, 19vw, 270px); gap: 16px; }
.gallery-grid .m { position: relative; overflow: hidden; border-radius: 20px; box-shadow: var(--card-shadow); }
.gallery-grid .big { grid-column: span 2; grid-row: span 2; }
.gallery-grid .wide { grid-column: 1 / -1; grid-row: span 2; }
.gallery-grid .w2 { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid .m:hover img { transform: scale(1.06); }
.gallery-grid .m::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(3, 10, 46, .55)); opacity: 0; transition: opacity .5s; }
.gallery-grid .m::after { content: "+"; position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 22px; transform: scale(0); transition: transform .4s var(--ease); }
.gallery-grid .m:hover::before { opacity: 1; }
.gallery-grid .m:hover::after, .gallery-grid .m:focus-visible::after { transform: scale(1); }

@media (max-width: 960px) {
  .sd-cols, .sd-pager, .ev-grid { grid-template-columns: 1fr; }
  .ev-card.wide { flex-direction: column; }
  .ev-card.wide figure { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .page-hero.has-img { min-height: 0; }
}
@media (max-width: 760px) {
  .acc { flex-direction: column; height: auto; gap: 10px; }
  .acc-item { flex: none; height: 74px; transition: height .8s var(--ease); }
  .acc-item.open { height: 380px; }
  .acc-num { top: 21px; }
  .acc-label { left: auto; inset-inline: 72px 20px; top: 24px; bottom: auto; max-height: none; writing-mode: horizontal-tb; transform: none; text-overflow: ellipsis; }
  .acc-body { width: 100%; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .gallery-grid .w2 { grid-column: auto; }
  .gallery-grid .mw { grid-column: span 2; }
  .gallery-grid .m { border-radius: 14px; }
  .pg { grid-template-columns: 92px 1fr auto; gap: 14px; padding-inline-end: 18px; }
  .sd-cta .btn, .center-cta .btn { width: 100%; }
  .ph-actions .btn { height: 48px; padding: 0 20px; font-size: 13px; }
}

/* ---------------- SIGN IN / SIGN UP ---------------- */
.nav-signin[aria-current="page"] { background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--fg), 0 0 0 4px rgba(141, 180, 238, .3); }
.auth {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(60% 80% at 85% 10%, #1f46c8 0%, transparent 60%),
    radial-gradient(55% 80% at 0% 100%, rgba(29, 97, 157, .75), transparent 60%),
    linear-gradient(160deg, #001780 0%, #030a2e 85%);
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 90px)) 0 clamp(56px, 10vh, 110px);
}
.auth .tri-field { --tri: 141, 180, 238; position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); align-content: start;
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%); }
[dir="rtl"] .auth .tri-field { -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 70%); }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(36px, 7vw, 110px); align-items: center; }
.auth h1 { color: #fff; font-size: clamp(36px, 4.4vw, 66px); letter-spacing: -.045em; margin-bottom: 24px; max-width: 13ch; }
[lang="ar"] .auth h1 { letter-spacing: 0; line-height: 1.3; }
.auth-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { position: relative; padding-inline-start: 38px; color: rgba(255, 255, 255, .85); }
.auth-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: rgba(141, 180, 238, .2); }
.auth-points li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; width: 6px; height: 11px; border: solid var(--sky); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.auth-card {
  color: var(--fg); background: var(--bg-2); border-radius: 28px; padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line);
  animation: fade-up 1s var(--ease) both .2s;
}
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 30px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.auth-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 999px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--fg-2); transition: color .35s; white-space: nowrap; }
.auth-tabs button svg { width: 18px; height: 18px; flex: none; }
.auth-tabs button[aria-selected="true"] { color: var(--btn-fg); }
.auth-ind { position: absolute; top: 5px; left: 0; height: 46px; width: var(--w, 50%); transform: translateX(var(--x, 5px)); border-radius: 999px; background: var(--btn-bg); box-shadow: 0 10px 24px -10px rgba(0, 23, 128, .6); transition: transform .5s var(--ease), width .5s var(--ease); }
.auth-panel { display: grid; gap: 14px; animation: fade-up .6s var(--ease) both; }
.auth-panel[hidden] { display: none; }
.auth-panel h2 { font-size: clamp(20px, 1.8vw, 25px); margin-bottom: 6px; }
.auth-sub { font-size: 15px; margin: -4px 0 6px; }
.field.pw input { padding-inline-end: 56px; }
.pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); transition: background .25s, color .25s; }
.pw-toggle:hover { background: var(--chip-bg); color: var(--fg); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; margin: 0; flex: none; border-radius: 6px; border: 1.5px solid var(--fg-3); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--electric); border-color: var(--electric); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }
.text-link { font-size: 14.5px; font-weight: 500; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.auth-panel .btn { margin-top: 6px; }
.auth-panel .form-note:empty { display: none; }
.auth-panel .form-note { padding: 12px 14px; border-radius: 12px; background: var(--chip-bg); color: var(--chip-fg); }
.auth-switch { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .auth { min-height: 0; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-points { display: none; }
}
@media (max-width: 420px) {
  .auth-tabs button { font-size: 12.5px; gap: 6px; padding: 0 6px; }
  .auth-tabs button svg { display: none; }
}

/* ==========================================================
   v3 — compact scale: calmer type and spacing so a full
   section fits comfortably on a laptop at 100% zoom
   ========================================================== */
:root { --max: 1200px; --nav-h: 68px; --radius: 24px; }
.nav.scrolled { --nav-h: 60px; }
body { font-size: 16px; }
h2 { font-size: clamp(28px, 2.9vw, 44px); }
.eyebrow { font-size: 11.5px; margin-bottom: 16px; }
.btn { height: 48px; padding: 0 24px; font-size: 13.5px; }
.nav-links .nl { font-size: 14px; padding: 9px 13px; }

/* heroes */
.hs-title { font-size: clamp(32px, min(3.6vw, 7vh), 58px); margin-bottom: 20px; }
[lang="ar"] .hs-title { font-size: clamp(32px, min(3.8vw, 7vh), 60px); }
.hs-lede, .ph-lede, .cta-lede { font-size: clamp(15px, 1.1vw, 17.5px); }
.hs-lede { margin-bottom: 28px; }
.page-hero { padding: calc(var(--nav-h) + clamp(44px, 8vh, 90px)) 0 clamp(52px, 8vh, 90px); }
.page-hero h1 { font-size: clamp(32px, 3.7vw, 58px); margin-bottom: 20px; }
@media (min-width: 961px) { .page-hero.has-img { min-height: min(72vh, 640px); } }
.auth h1 { font-size: clamp(30px, 3.3vw, 50px); }
.ph-actions { margin-top: 26px; }

/* section rhythm */
.sol-index, .services-sec, .cta-band, .sd-body, .events, .home-sols { padding: clamp(60px, 9vh, 100px) 0; }
.about, .clients, .certs, .news, .contact, .solutions { padding: clamp(64px, 10vh, 110px) 0; }
.pillars { padding: clamp(40px, 7vh, 76px) 0; }
.sd-more, .more-events { padding: clamp(48px, 8vh, 84px) 0; }
.contact-page { padding: clamp(48px, 8vh, 84px) 0 clamp(60px, 9vh, 100px); }
.gallery { padding: clamp(40px, 7vh, 76px) 0 clamp(60px, 9vh, 100px); }
.stat { padding: clamp(32px, 5vh, 56px) 16px; }
.footer { padding: 64px 0 24px; font-size: 14.5px; }

/* section headings and display text */
.sol-head h2 { font-size: clamp(30px, 3.4vw, 50px); }
.cta-band h2 { font-size: clamp(28px, 3vw, 46px); }
.contact h2 { font-size: clamp(30px, 3.2vw, 48px); }
.stat b { font-size: clamp(38px, 4vw, 60px); }
.sd-copy h2 { font-size: clamp(26px, 2.6vw, 38px); }
.vm-card blockquote { font-size: clamp(22px, 2.1vw, 32px); }
.vm-card p:not(.eyebrow) { font-size: clamp(16px, 1.2vw, 18px); }
.leader-quote { font-size: clamp(21px, 1.9vw, 30px); }
.about-copy p { font-size: 16px; }
.pillar h3 { font-size: 18px; }
.pillar p, .sol-card p { font-size: 14.5px; }
.sol-card h3 { font-size: 19px; }
.event h3, .ev-card h3 { font-size: clamp(20px, 1.7vw, 25px); }
.form-title { font-size: clamp(22px, 1.8vw, 26px); }

/* home accordion */
.sec-head { margin-bottom: clamp(26px, 4vh, 40px); }
.sec-head .muted { margin-top: 14px; }
.center-cta { margin-top: clamp(24px, 3.6vh, 36px); }
.home-sols { padding: clamp(52px, 7vh, 80px) 0; }
@media (min-width: 761px) { .acc { height: clamp(360px, 50vh, 470px); } }
.acc-title { font-size: clamp(22px, 2vw, 32px); }
.acc-text { font-size: clamp(14.5px, 1vw, 16.5px); }

/* solution pages */
.sd-lead { font-size: clamp(18px, 1.55vw, 24px); margin-bottom: clamp(36px, 6vh, 60px); }
.sd-h { font-size: clamp(18px, 1.4vw, 22px); }
.check-list li { padding: 13px 0; padding-inline-start: 36px; font-size: 15px; }
.sd-cta h3 { font-size: clamp(18px, 1.6vw, 24px); }
.sd-more-head h2 { font-size: clamp(24px, 2.4vw, 34px); }
.pg b { font-size: clamp(16px, 1.25vw, 19px); }

@media (max-width: 760px) {
  .btn { height: 46px; padding: 0 20px; font-size: 13px; }
}
/* honeypot field on the enquiry form (bots fill it, people never see it) */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* forgot password — icon badge above the heading */
.auth-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--chip-bg); color: var(--chip-fg); margin-bottom: 4px; }
.auth-ico svg { width: 24px; height: 24px; }
/* the logo lockup is fixed artwork — same order and lettering in Arabic */
.brand, .foot-lockup { direction: ltr; }

/* ================= performance pass =================
   snappier entrances, GPU-only background drift, no blur on small
   chips (blur re-samples every frame under moving content), and
   looping motion pauses while its section is off-screen (.off) */
::view-transition-old(root) { animation-duration: .14s; }
::view-transition-new(root) { animation-duration: .32s; }
::view-transition-group(nav-ind) { animation-duration: .4s; }
.ph-inner > * { animation-duration: .6s; }
.ph-word { animation-duration: 1s; }
.ph-img img { animation-duration: 1.4s; }
.js .reveal { transform: translateY(24px); transition-duration: .55s; }
.js .reveal-clip { transition-duration: .9s; }
.js .reveal-clip img { transition-duration: 1s; }
.reveal-group.in > * { animation-duration: .5s; animation-delay: calc(var(--d, 0) * 30ms); }
.client-grid .logo-tile { animation-duration: .4s; animation-delay: calc(var(--d, 0) * 15ms); }
.auth-panel { animation-duration: .4s; }

.cta-band::before, .stats::before { inset: 0 auto 0 -300px; width: calc(100% + 300px); animation: slide-tri 30s linear infinite; will-change: transform; }
@keyframes slide-tri { to { transform: translateX(300px); } }

.btn-outline-light, .home-hero .arrow-btn, .ph-stats div, .acc-num, .back-link, .sol-ico, .ev-count { -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-outline-light, .home-hero .arrow-btn { background: rgba(255, 255, 255, .08); }
.acc-num { background: rgba(3, 10, 46, .45); }
.ph-stats div, .back-link, .sol-ico { background-color: rgba(255, 255, 255, .12); }

.off, .off *, .off::before, .off::after { animation-play-state: paused !important; }
/* talk to sales: fixed dropdowns + thank-you card (mirrors the old portal) */
.field.locked select { pointer-events: none; color: var(--fg-2); background-color: var(--chip-bg); }
.form-done { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 40px); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); outline: none; animation: fade-up .5s var(--ease) both; }
.form > [hidden] { display: none !important; }
.fd-ico { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; background: rgba(16, 185, 129, .12); box-shadow: inset 0 0 0 2px rgba(16, 185, 129, .35); color: #10b981; font-size: 38px; line-height: 1; }
.form-done h3 { font-size: clamp(20px, 1.7vw, 24px); }
.form-done p { color: var(--fg-2); max-width: 46ch; }
.form-done .btn { margin-top: 10px; }

/* ==========================================================
   2026-11-02 — official logo, About logo card, solution product stage
   ========================================================== */
/* official "RAYA | ELECTRONICS" logo, tinted by the theme through a mask */
.brand-logo { display: block; flex: none; width: 196px; aspect-ratio: 891 / 82; background: var(--heading); -webkit-mask: url(../img/raya-electronics-logo.png) center / contain no-repeat; mask: url(../img/raya-electronics-logo.png) center / contain no-repeat; }
.foot-lockup .brand-logo.foot-logo { width: 230px; padding: 0; border: 0; background: #fff; }
@media (max-width: 1100px) { .brand-logo { width: 168px; } }
@media (max-width: 520px) { .brand-logo { width: 142px; } }

/* ---------- About: logo card ---------- */
@property --ab-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.about-brand { margin: 0; perspective: 1100px; }
.ab-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 3.3; border-radius: 26px; color: #fff;
  background:
    radial-gradient(70% 60% at var(--gx, 30%) var(--gy, 20%), rgba(60, 103, 177, .55), transparent 70%),
    radial-gradient(80% 70% at 100% 100%, rgba(29, 97, 157, .7), transparent 65%),
    linear-gradient(150deg, var(--navy) 0%, #020b3a 100%);
  box-shadow: 0 60px 100px -50px rgba(0, 23, 128, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease);
}
/* light sweeping around the edge */
.ab-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ab-a), transparent 0 62%, rgba(141, 180, 238, .9) 80%, #fff 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ab-sweep 6s linear infinite;
}
/* sheen passing over the card */
.ab-card::after {
  content: ""; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%);
  transform: translateX(-70%); animation: ab-sheen 7s var(--ease) infinite 1.2s;
}
@keyframes ab-sweep { to { --ab-a: 360deg; } }
@keyframes ab-sheen { 0%, 60% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
.ab-grid {
  position: absolute; inset: -40px; z-index: -1; opacity: .9;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask: radial-gradient(circle at 50% 48%, #000 0, transparent 68%); mask: radial-gradient(circle at 50% 48%, #000 0, transparent 68%);
  animation: ab-grid 14s linear infinite;
}
@keyframes ab-grid { to { transform: translate(40px, 40px); } }
.ab-ring { position: absolute; z-index: -1; left: 50%; top: 48%; border-radius: 50%; translate: -50% -50%; border: 1px dashed rgba(141, 180, 238, .32); }
.ab-ring.r1 { width: 74%; aspect-ratio: 1; animation: spin 50s linear infinite; }
.ab-ring.r2 { width: 104%; aspect-ratio: 1; border-style: solid; border-color: rgba(141, 180, 238, .12); animation: spin 80s linear infinite reverse; }
.ab-ring.r1::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 16px 4px rgba(141, 180, 238, .8); }
.ab-pulse { position: absolute; z-index: -1; left: 50%; top: 48%; width: 46%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; border: 1.5px solid rgba(141, 180, 238, .6); animation: ab-pulse 3.6s var(--ease) infinite; }
@keyframes ab-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
.ab-logo {
  width: 74%; aspect-ratio: 891 / 82; margin-top: -4%;
  background: linear-gradient(100deg, #fff 0 42%, var(--sky) 50%, #fff 58% 100%) 0 0 / 300% 100%;
  -webkit-mask: url(../img/raya-electronics-logo.png) center / contain no-repeat; mask: url(../img/raya-electronics-logo.png) center / contain no-repeat;
  animation: ab-shine 5s ease-in-out infinite;
}
@keyframes ab-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.js .about-brand:not(.in) .ab-logo { opacity: 0; }
.about-brand.in .ab-logo { animation: ab-logo-in 1.3s var(--ease) backwards .25s, ab-shine 5s ease-in-out infinite 1.5s; }
@keyframes ab-logo-in { from { opacity: 0; transform: translateY(18px) scale(.94); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .about-brand:not(.in) .ab-card { opacity: 0; }
.about-brand.in .ab-card { animation: ab-card-in 1s var(--ease) backwards; }
@keyframes ab-card-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.ab-tag {
  position: absolute; top: 22px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky);
}
[lang="ar"] .ab-tag { letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.ab-tag .dot { width: 8px; height: 8px; background: currentColor; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.ab-strip {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 14px 0; direction: ltr;
  border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(2, 11, 58, .35);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ab-track { display: flex; width: max-content; animation: ab-marq 28s linear infinite; }
.ab-track span { padding: 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.ab-track span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 44px; vertical-align: middle; background: var(--sky); clip-path: polygon(50% 100%, 0 0, 100% 0); }
[lang="ar"] .ab-track span { font-family: var(--sans); letter-spacing: 0; font-size: 13.5px; }
@keyframes ab-marq { to { transform: translateX(-50%); } }

/* ---------- Solution details: product stage ---------- */
.sd-stage { --sx: -70px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
[dir="rtl"] .sd-stage { --sx: 70px; }
.sd-side { position: relative; z-index: 1; }
.sd-side .sd-h { margin-bottom: 18px; }
.sd-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-items li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -32px rgba(0, 10, 60, .6);
  font-size: 15px; line-height: 1.4; color: var(--fg);
  transition: transform .45s var(--ease), box-shadow .3s, background-color .3s;
}
.sd-items .n { flex: none; min-width: 32px; text-align: center; padding: 5px 7px; border-radius: 8px; background: var(--chip-bg); color: var(--accent); font-family: var(--mono); font-weight: 800; font-size: 12px; transition: background-color .3s, color .3s; }
.sd-items .pin { position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent); transition: transform .3s var(--ease), background-color .3s; }
.sd-side.a .pin { inset-inline-end: -6px; }
.sd-side.b .pin { inset-inline-start: -6px; }
.sd-items li::after { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--sky), var(--electric)); transform: scaleY(0); transition: transform .35s var(--ease); }
.sd-items li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--accent), 0 26px 50px -28px rgba(29, 97, 157, .55); }
.sd-items li:hover::after { transform: scaleY(1); }
.sd-items li:hover .n { background: var(--accent); color: var(--bg); }
.sd-items li:hover .pin { transform: scale(1.35); background: var(--accent); }
/* entrance: each side flies in from its own edge */
.js .sd-stage:not(.in) .sd-items li, .js .sd-stage:not(.in) .sd-h { opacity: 0; }
.sd-stage.in .sd-h { animation: sd-fade .8s var(--ease) backwards .1s; }
.sd-stage.in .sd-side.a li { animation: sd-in-a .9s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + .35s); }
.sd-stage.in .sd-side.b li { animation: sd-in-b .9s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + .5s); }
@keyframes sd-fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes sd-in-a { from { opacity: 0; transform: translateX(var(--sx)) scale(.96); filter: blur(8px); } }
@keyframes sd-in-b { from { opacity: 0; transform: translateX(calc(var(--sx) * -1)) scale(.96); filter: blur(8px); } }

/* centre: the products on a glowing pedestal */
.sd-visual { position: relative; z-index: 1; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; isolation: isolate; }
.sd-visual > span { position: absolute; pointer-events: none; }
.sd-visual .halo { inset: 6%; z-index: -2; border-radius: 50%; background: radial-gradient(circle at 50% 46%, rgba(var(--tri), .3), transparent 64%); animation: sd-halo 5s ease-in-out infinite alternate; }
@keyframes sd-halo { from { transform: scale(.94); opacity: .75; } to { transform: scale(1.05); opacity: 1; } }
.sd-visual .ring { left: 50%; top: 46%; z-index: -1; border-radius: 50%; translate: -50% -50%; aspect-ratio: 1; }
.sd-visual .r1 { width: 80%; border: 1px dashed rgba(var(--tri), .4); animation: spin 60s linear infinite; }
.sd-visual .r2 { width: 98%; border: 1px solid rgba(var(--tri), .14); animation: spin 90s linear infinite reverse; }
.sd-visual .r2::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 4px rgba(141, 180, 238, .7); }
.sd-visual .r3 {
  width: 80%; padding: 2px; background: conic-gradient(from 0deg, transparent 0 72%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.sd-visual .floor { left: 8%; right: 8%; bottom: 6%; height: 18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--tri), .38), transparent); }
.sd-visual .floor::before, .sd-visual .floor::after { content: ""; position: absolute; inset: 10% 14%; border-radius: 50%; border: 1px solid rgba(var(--tri), .45); animation: sd-ripple 3.4s var(--ease) infinite; }
.sd-visual .floor::after { animation-delay: 1.7s; }
@keyframes sd-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.sd-visual .pt { left: calc(14% + var(--k) * 12%); bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0; animation: sd-rise 4.5s ease-in infinite; animation-delay: calc(var(--k) * .65s); }
@keyframes sd-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-220px); opacity: 0; } }
.sd-visual .pv { position: absolute; left: var(--x); bottom: var(--b); width: var(--w); height: auto; filter: drop-shadow(0 28px 26px rgba(0, 8, 40, .45)); }
[data-theme="light"] .sd-visual .pv { filter: drop-shadow(0 26px 22px rgba(0, 23, 128, .22)); }
.js .sd-stage:not(.in) .pv { opacity: 0; }
.sd-stage.in .pv { animation: sd-pv-in 1.2s var(--ease) backwards, sd-float 6s ease-in-out infinite; animation-delay: calc(var(--k) * .2s + .15s), calc(var(--k) * .9s + 1.5s); }
@keyframes sd-pv-in { from { opacity: 0; transform: translateY(50px) scale(.82); } }
@keyframes sd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* wires from the lists into the stage */
.sd-wires { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sd-wires .w { fill: none; stroke: rgba(var(--tri), .38); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s, stroke-width .3s; }
.sd-stage.in .sd-wires .w { animation: sd-draw 1.3s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + .8s); }
@keyframes sd-draw { to { stroke-dashoffset: 0; } }
.sd-wires .w-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: 1; opacity: 0; }
.sd-stage.in .sd-wires .w-flow { animation: sd-flow 3s linear infinite; animation-delay: calc(var(--i) * .45s + 2s); }
@keyframes sd-flow { 0% { stroke-dashoffset: 1; opacity: 0; } 12%, 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sd-wires .w-end { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.sd-stage.in .sd-wires .w-end { animation: sd-pop .5s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 1.8s); }
@keyframes sd-pop { to { transform: scale(1); } }
.sd-wires g.hot .w { stroke: var(--accent); stroke-width: 2; }
.sd-wires g.hot .w-end { r: 5; }

@media (max-width: 980px) {
  .sd-stage { grid-template-columns: 1fr; --sx: 0px; }
  [dir="rtl"] .sd-stage { --sx: 0px; }
  .sd-visual { order: -1; max-width: 420px; }
  .sd-wires, .sd-items .pin { display: none; }
  .sd-stage.in .sd-side.a li, .sd-stage.in .sd-side.b li { animation-name: sd-fade; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sd-stage:not(.in) .sd-items li, .js .sd-stage:not(.in) .sd-h, .js .sd-stage:not(.in) .pv, .js .about-brand:not(.in) .ab-card, .js .about-brand:not(.in) .ab-logo { opacity: 1; }
  .sd-wires .w { stroke-dashoffset: 0; }
  .sd-wires .w-end { transform: none; }
}

/* ---------- Solution details: technology partners, centred under the stage ---------- */
.sd-partners { position: relative; flex-direction: column; justify-content: center; gap: 22px; margin-top: clamp(40px, 7vh, 72px); padding-top: 64px; text-align: center; }
/* a line drops from the stage down to the partners, with a light running along it */
.sd-partners::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 48px; background: linear-gradient(rgba(var(--tri), 0), rgba(var(--tri), .5)); }
.sd-partners::after { content: ""; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 3px rgba(141, 180, 238, .7); animation: sp-drop 2.6s var(--ease) infinite; }
@keyframes sp-drop { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.sd-partners .partners-label { display: flex; align-items: center; gap: 16px; color: var(--accent); }
.sd-partners .partners-label::before, .sd-partners .partners-label::after { content: ""; width: clamp(40px, 8vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tri), .5)); }
.sd-partners .partners-label::after { transform: scaleX(-1); }
.sd-partners .sol-partners { justify-content: center; gap: 16px; }
.sd-partners .sol-partners span {
  position: relative; isolation: isolate; width: 156px; height: 78px; padding: 14px 22px; border-radius: 18px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--tile-line), 0 22px 44px -26px rgba(0, 23, 128, .45);
  animation: sp-float 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s);
  transition: box-shadow .35s, scale .45s var(--ease);
}
.sd-partners .sol-partners img { height: 34px; max-width: 110px; transition: transform .45s var(--ease); }
/* glowing border that sweeps around a tile on hover */
.sd-partners .sol-partners span::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 20px; padding: 2px; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--ab-a), transparent 0 55%, var(--sky) 75%, var(--electric) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ab-sweep 2.4s linear infinite;
}
/* soft shine passing over each tile in turn */
.sd-partners .sol-partners span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(141, 180, 238, .35) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  animation: sp-shine 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s + 1.5s);
}
@keyframes sp-shine { 0%, 70% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes sp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.sd-partners .sol-partners span:hover { scale: 1.07; box-shadow: inset 0 0 0 1px transparent, 0 30px 60px -24px rgba(29, 97, 157, .6); }
.sd-partners .sol-partners span:hover::before { opacity: 1; }
.sd-partners .sol-partners span:hover img { transform: scale(1.08); }
/* entrance: label lines grow, tiles pop up one by one */
.js .sd-partners:not(.in) .sol-partners span { opacity: 0; }
.sd-partners.in .partners-label::before, .sd-partners.in .partners-label::after { animation: sp-line 1s var(--ease) backwards .2s; }
@keyframes sp-line { from { width: 0; } }
.sd-partners.in .sol-partners span { animation: sp-in .9s var(--ease) backwards, sp-float 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 110ms + .35s), calc(var(--i, 0) * -.8s); }
@keyframes sp-in { from { opacity: 0; transform: translateY(30px) scale(.8) rotateX(40deg); filter: blur(6px); } }
@media (max-width: 520px) {
  .sd-partners .sol-partners { gap: 10px; }
  .sd-partners .sol-partners span { width: calc(50% - 5px); height: 70px; }
}

/* ===== 2026-11-09: portal not live yet, so the Sign In / Sign Up button stays hidden ===== */
.nav-signin { display: none !important; }

/* ===== About card: Raya HQ building photo ===== */
.ab-card { aspect-ratio: 4 / 3.7; place-items: end start; }
.ab-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; }
.ab-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: translate(calc(var(--ry, 0deg) * -1.2px / 1deg), calc(var(--rx, 0deg) * 1.2px / 1deg)) scale(1.08);
  transition: transform .6s var(--ease);
  animation: ab-kb 22s ease-in-out infinite alternate;
}
@keyframes ab-kb { from { scale: 1; } to { scale: 1.09; } }
/* navy grade: keeps the brand colour and the strip / badge readable */
.ab-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 11, 58, .55) 0%, rgba(2, 11, 58, 0) 26%, rgba(2, 11, 58, 0) 48%, rgba(2, 11, 58, .78) 82%, rgba(2, 11, 58, .95) 100%),
    radial-gradient(90% 70% at var(--gx, 30%) var(--gy, 20%), rgba(60, 103, 177, .28), transparent 70%);
  mix-blend-mode: normal;
}
/* light line travelling down the glass facade */
.ab-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(141, 180, 238, .22) 70%, rgba(255, 255, 255, .55) 98%, transparent);
  mix-blend-mode: screen; opacity: .8; animation: ab-scan 6.5s cubic-bezier(.6, 0, .3, 1) infinite 1s;
}
@keyframes ab-scan { from { transform: translateY(-110%); } 70%, to { transform: translateY(320%); } }
.ab-card .ab-ring.r1 { top: 26%; width: 50%; border-color: rgba(255, 255, 255, .28); }
.ab-card .ab-pulse { top: 26%; width: 30%; border-color: rgba(255, 255, 255, .5); }
/* glass badge with the logo */
.ab-badge {
  position: relative; z-index: 4; display: grid; gap: 10px; margin: 0 0 68px 24px; padding: 18px 22px 16px; width: min(64%, 360px);
  border-radius: 18px; background: rgba(2, 11, 58, .42); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 50px -20px rgba(0, 0, 0, .6);
}
[dir="rtl"] .ab-badge { margin: 0 24px 68px 0; }
.ab-badge .ab-logo { width: 100%; margin: 0; }
.ab-badge small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
[lang="ar"] .ab-badge small { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }
/* entrance: photo wipes up, then the badge rises */
.js .about-brand:not(.in) .ab-photo { clip-path: inset(100% 0 0 0); }
.about-brand.in .ab-photo { animation: ab-photo-in 1.4s cubic-bezier(.7, 0, .2, 1) backwards .1s; }
@keyframes ab-photo-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .about-brand:not(.in) .ab-badge { opacity: 0; }
.about-brand.in .ab-badge { animation: ab-badge-in 1s var(--ease) backwards .9s; }
@keyframes ab-badge-in { from { opacity: 0; transform: translateY(26px); } }
@media (max-width: 560px) { .ab-card { aspect-ratio: 4 / 4.6; } .ab-badge { width: auto; margin-inline-end: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .ab-photo img, .ab-scan { animation: none; }
  .js .about-brand:not(.in) .ab-photo { clip-path: none; }
  .js .about-brand:not(.in) .ab-badge { opacity: 1; }
}

/* square logo (emblem + two lines of text): give it more height than the wide logos */
.logo-tile img[src*="agri-bank"] { max-height: 100px; height: 100px; }

/* ===== About photo v2: the whole building, no crop / zoom; strip sits under the photo ===== */
.ab-card { aspect-ratio: 718 / 830; place-items: start start; background: #020b3a; }
.ab-photo { inset: 0 0 46px 0; border-radius: 26px 26px 0 0; }
.ab-photo img { object-fit: cover; object-position: 50% 50%; transform: none; animation: none; transition: none; }
.ab-shade { bottom: 46px; background: linear-gradient(180deg, rgba(2, 11, 58, .5) 0%, rgba(2, 11, 58, .12) 22%, transparent 34%); }
.ab-scan { bottom: 46px; height: 30%; }
.ab-strip { background: #020b3a; border-top-color: rgba(141, 180, 238, .25); }
.ab-badge { margin: 72px 0 0 22px; padding: 14px 18px 12px; width: min(56%, 320px); gap: 8px; background: rgba(2, 11, 58, .5); }
[dir="rtl"] .ab-badge { margin: 72px 22px 0 0; }
.ab-badge small { font-size: 10px; }
@keyframes ab-badge-in { from { opacity: 0; transform: translateY(-18px); } }
@media (max-width: 560px) { .ab-card { aspect-ratio: 718 / 830; } .ab-badge { width: min(70%, 300px); margin-top: 64px; } }
