/* =====================================================================
   CYBEROLOGY — visual system
   Concept: "The Khatam Lattice" — the 8-point star of Arabian geometry
   rebuilt as a living security mesh. Chrome from the wordmark, a single
   signal-green for "secured", amber only for "in development".
   ===================================================================== */

:root {
  --bg: #04070c;
  --bg-1: #070c14;
  --bg-2: #0b121c;
  --panel: rgba(14, 22, 34, .62);
  --panel-solid: #0c141f;
  --line: rgba(170, 196, 216, .12);
  --line-2: rgba(170, 196, 216, .22);
  --text: #e9eef3;
  --text-2: #b4c0cb;
  --muted: #7d8b98;
  --signal: #16f2a0;
  --signal-dim: rgba(22, 242, 160, .14);
  --signal-glow: rgba(22, 242, 160, .45);
  --amber: #ffb547;
  --chrome: linear-gradient(100deg, #ffffff 0%, #aeb9c4 28%, #f2f5f8 46%, #8794a1 64%, #e3e8ed 82%, #9aa6b2 100%);
  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --f-display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
.lang-ar {
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.lang-ar body, body.lang-ar { line-height: 1.85; font-size: 17.5px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { line-height: 1.5; letter-spacing: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: #021; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* subtle film grain + scanlines over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--signal); color: #021; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(4, 7, 12, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 18px; width: auto; }
.lang-ar .brand img { height: 30px; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: flex; align-items: baseline; gap: 6px;
  padding: 8px 12px; font-size: 14.5px; color: var(--text-2); border-radius: var(--radius);
  transition: color .25s;
}
.lang-ar .nav a { font-size: 15.5px; }
.nav .n-idx { font-family: var(--f-mono); font-size: 10px; color: var(--muted); opacity: 0; transform: translateY(4px); transition: .25s var(--ease); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease);
}
.lang-ar .nav a::after { --origin: right; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover .n-idx, .nav a[aria-current="page"] .n-idx { opacity: 1; transform: none; color: var(--signal); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-foot { display: none; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text);
  transition: border-color .25s, background .25s;
}
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 15px; }
.lang-switch[lang="en"] { font-family: "IBM Plex Sans", sans-serif; }
.lang-switch:hover { border-color: var(--signal); background: var(--signal-dim); }
.ls-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: var(--h);
  padding: 0 22px 0 24px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  border-radius: var(--radius); overflow: hidden; isolation: isolate; cursor: pointer; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s, color .3s, background .3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.lang-ar .btn { font-size: 15.5px; letter-spacing: 0; padding: 0 24px 0 22px; }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--signal); color: #01140c; box-shadow: 0 0 0 0 var(--signal-glow); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 10px 40px -10px var(--signal-glow); transform: translateY(-2px); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); background: var(--signal-dim); }

/* ---------------------------------------------------------------- lattice canvas */
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 50%, rgba(22,242,160,.07), transparent 70%),
    radial-gradient(90% 70% at 30% 55%, rgba(4,7,12,.92) 0%, rgba(4,7,12,.55) 55%, rgba(4,7,12,.2) 100%),
    linear-gradient(to bottom, rgba(4,7,12,.6), transparent 25%, transparent 70%, var(--bg));
}
[dir="rtl"] .hero-vignette {
  background:
    radial-gradient(60% 55% at 28% 50%, rgba(22,242,160,.07), transparent 70%),
    radial-gradient(90% 70% at 70% 55%, rgba(4,7,12,.92) 0%, rgba(4,7,12,.55) 55%, rgba(4,7,12,.2) 100%),
    linear-gradient(to bottom, rgba(4,7,12,.6), transparent 25%, transparent 70%, var(--bg));
}
.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: 40px;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .28em; color: var(--signal);
  padding: 8px 14px; border: 1px solid rgba(22,242,160,.25); border-radius: 2px; background: rgba(22,242,160,.05);
}
.lang-ar .eyebrow { letter-spacing: 0; font-family: var(--f-body); font-size: 15px; font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal-glow); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,242,160,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(22,242,160,0); } }
.hero-title { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; margin-bottom: 30px; }
.lang-ar .hero-title { font-size: clamp(36px, 5.4vw, 74px); line-height: 1.35; letter-spacing: 0; font-weight: 700; }
.ht-line { display: block; }
.ht-chrome {
  background: var(--chrome); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.hero-intro { max-width: 600px; color: var(--text-2); font-size: 18px; }
.hero-intro p:last-child { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-emblem { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.emblem { width: 100%; height: 100%; overflow: visible; }
.emblem g { transform-origin: 200px 200px; transform-box: view-box; }
.em-r1 { animation: spin 80s linear infinite; }
.em-r2 { animation: spin 26s linear infinite reverse; }
.em-r3 { animation: spin 60s linear infinite; }
.em-r4 { animation: spin 40s linear infinite reverse; }
.em-sweep { animation: spin 4s linear infinite; }
.em-glow { animation: breathe 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; transform: scale(1.12); } }
.emblem-scan {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(to bottom, transparent 47%, rgba(22,242,160,.18) 50%, transparent 53%);
  background-size: 100% 200%; animation: scanY 5s ease-in-out infinite;
  mask: radial-gradient(circle, #000 60%, transparent 70%);
}
@keyframes scanY { 0% { background-position: 0 100%; } 50% { background-position: 0 0; } 100% { background-position: 0 100%; } }

.hud { position: absolute; inset: auto 0 0 0; border-top: 1px solid var(--line); background: linear-gradient(to top, rgba(4,7,12,.9), rgba(4,7,12,.4)); backdrop-filter: blur(6px); }
.hud .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 58px; }
.hud ul { display: flex; gap: 0; overflow: hidden; }
.hud li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); padding-inline: 18px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
.lang-ar .hud li { letter-spacing: 0; font-size: 13px; font-family: var(--f-body); }
.hud li:first-child { padding-inline-start: 0; border: 0; color: var(--text-2); }
.hud-scroll { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.lang-ar .hud-scroll { letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }
.hud-scroll i { width: 1px; height: 26px; background: linear-gradient(var(--signal), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* load-in */
.load { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.section + .section::before {
  content: ""; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lang-ar .kicker { letter-spacing: 0; font-family: var(--f-body); font-size: 14.5px; }
.k-num { color: var(--signal); }
.k-line { width: 48px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.k-line::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: translateX(-100%); animation: kline 3.2s var(--ease) infinite; }
[dir="rtl"] .k-line::after { animation-name: klineR; }
@keyframes kline { 50%, 100% { transform: translateX(100%); } }
@keyframes klineR { 50%, 100% { transform: translateX(-100%); } }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: 64px; }
.sec-head h2, .sec-title { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -.02em; }
.lang-ar .sec-head h2, .lang-ar .sec-title { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0; }
.sec-title { margin-bottom: 48px; max-width: 18ch; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 17.5px; }
.sec-foot { margin-top: 56px; display: flex; }
.sub-label { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); margin-bottom: 28px; line-height: 1.4; }
.lang-ar .sub-label { font-family: var(--f-body); letter-spacing: 0; font-size: 16px; font-weight: 600; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- service cards */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc-card { grid-column: span 2; }
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 30px 28px 26px;
  background: linear-gradient(180deg, rgba(16,25,38,.7), rgba(8,13,21,.7));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
}
.svc-glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(22,242,160,.13), transparent 60%);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; mask: linear-gradient(to bottom, #000, transparent 55%);
}
.svc-card:hover { border-color: rgba(22,242,160,.4); transform: translateY(-4px); }
.svc-card:hover .svc-glow { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 40px; }
.svc-icon { width: 54px; height: 54px; color: var(--text); padding: 11px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.02); transition: color .3s, border-color .3s, box-shadow .3s; }
.svc-card:hover .svc-icon { color: var(--signal); border-color: rgba(22,242,160,.5); box-shadow: 0 0 30px -6px var(--signal-glow); }
.svc-num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.svc-card h3 { font-size: 22px; margin-bottom: 12px; }
.lang-ar .svc-card h3 { font-size: 20px; }
.svc-card p { color: var(--text-2); font-size: 15.5px; margin: 0; max-width: 46ch; }
.svc-go { position: absolute; inset-inline-end: 24px; bottom: 24px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: .35s var(--ease); opacity: 0; transform: translateY(6px); }
.svc-go .arr { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.svc-card:hover .svc-go { opacity: 1; transform: none; color: #01140c; background: var(--signal); border-color: var(--signal); }
.svc-card p { padding-inline-end: 44px; }

/* ---------------------------------------------------------------- about teaser */
.at-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.at-copy h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 30px; }
.lang-ar .at-copy h2 { font-size: clamp(26px, 3vw, 40px); }
.at-copy p { color: var(--text-2); }
.at-copy .btn { margin-top: 18px; }
.at-visual { position: relative; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, rgba(22,242,160,.08), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--bg-1);
}
.coord { position: absolute; top: 24px; inset-inline-start: 24px; display: grid; gap: 2px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.coord .c-lbl { color: var(--signal); letter-spacing: .2em; margin-bottom: 6px; }
.lang-ar .coord .c-lbl { letter-spacing: 0; font-family: var(--f-body); font-size: 14px; }
.year { position: absolute; inset-inline-start: 20px; bottom: 6px; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: clamp(90px, 12vw, 170px); line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(200,215,228,.35); }
.radar { position: absolute; top: 44%; left: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.radar span { position: absolute; inset: 0; border: 1px solid rgba(22,242,160,.25); border-radius: 50%; }
.radar span:nth-child(2) { inset: 18%; }
.radar span:nth-child(3) { inset: 36%; background: rgba(22,242,160,.06); }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(22,242,160,.4), transparent 22%); animation: spin 5s linear infinite; mask: radial-gradient(circle, #000 69%, transparent 70%); }
.radar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 18px var(--signal); }

/* ---------------------------------------------------------------- pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; --p: 0; }
.pipe-track { position: absolute; top: 27px; inset-inline: 28px; height: 1px; background: var(--line-2); }
.pipe-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--signal), #7cf5c9); transform: scaleX(var(--p)); transform-origin: left; box-shadow: 0 0 12px var(--signal-glow); }
[dir="rtl"] .pipe-fill { transform-origin: right; }
.pipe-pulse { position: absolute; top: -2px; width: 60px; height: 5px; border-radius: 4px; background: radial-gradient(closest-side, #fff, transparent); inset-inline-start: calc(var(--p) * 100% - 30px); opacity: calc(var(--p) * 1.2); }
.step-node { position: relative; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 26px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); background: var(--bg); transition: color .5s, box-shadow .5s; }
.step-node::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-2); transform: rotate(45deg) scale(.78); transition: border-color .5s, background .5s; }
.step-node::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-2); transform: scale(.78); transition: border-color .5s; }
.step-node span { position: relative; z-index: 1; }
.step.lit .step-node { color: #01140c; }
.step.lit .step-node::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 24px var(--signal-glow); }
.step.lit .step-node::after { border-color: var(--signal); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.lang-ar .step h3 { font-size: 20px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- product teaser */
.pt-card, .prod-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 18px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 90% at 85% 50%, rgba(22,242,160,.10), transparent 60%),
    linear-gradient(140deg, #0c1521, #060b12 60%);
  border: 1px solid var(--line);
}
[dir="rtl"] .pt-card { background: radial-gradient(70% 90% at 15% 50%, rgba(22,242,160,.10), transparent 60%), linear-gradient(220deg, #0c1521, #060b12 60%); }
.pt-card::before, .prod-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(255,255,255,.35), transparent 30%, transparent 70%, rgba(22,242,160,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pt-copy h2 { font-size: clamp(36px, 4.6vw, 62px); margin-bottom: 22px;
  background: var(--chrome); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }
.lang-ar .pt-copy h2 { font-size: clamp(32px, 4vw, 52px); }
.pt-copy p, .pf-copy p { color: var(--text-2); max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.chip { padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(0,0,0,.25); }
.chip dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.lang-ar .chip dt { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; }
.chip dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.chip-dev { border-color: rgba(255,181,71,.35); }
.chip-dev dd { color: var(--amber); }
.chip-free dd { color: var(--signal); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pingA 1.8s infinite; flex: 0 0 auto; }
@keyframes pingA { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,.6); } 80%,100% { box-shadow: 0 0 0 9px rgba(255,181,71,0); } }
.pt-visual, .pf-visual { display: grid; place-items: center; }
.shield-stage { position: relative; width: min(100%, 340px); aspect-ratio: 300/340; filter: drop-shadow(0 30px 60px rgba(22,242,160,.18)); animation: hover 6s ease-in-out infinite; }
.shield-stage.big { width: min(100%, 420px); }
@keyframes hover { 50% { transform: translateY(-12px); } }
.shield-svg { width: 100%; height: 100%; }
.sh-lattice { animation: lattice-drift 20s linear infinite; }
@keyframes lattice-drift { to { transform: translateY(44px); } }
.ss-scan { position: absolute; inset: 4% 8%; pointer-events: none; clip-path: polygon(50% 0, 100% 13%, 100% 48%, 82% 80%, 50% 100%, 18% 80%, 0 48%, 0 13%);
  background: linear-gradient(to bottom, transparent, rgba(22,242,160,.0) 40%, rgba(22,242,160,.35) 49%, rgba(200,255,235,.9) 50%, transparent 51%); background-size: 100% 220%; animation: scanY 4s ease-in-out infinite; mix-blend-mode: screen; }

/* ---------------------------------------------------------------- why */
.why-list { border-top: 1px solid var(--line); }
.why-row { position: relative; display: grid; grid-template-columns: 60px 56px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.why-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--signal-dim), transparent 60%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
[dir="rtl"] .why-row::before { transform-origin: right; background: linear-gradient(-90deg, var(--signal-dim), transparent 60%); }
.why-row:hover::before { transform: scaleX(1); }
.why-num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-inline-start: 6px; }
.why-icon { width: 44px; height: 44px; color: var(--text-2); transition: color .3s, transform .5s var(--ease); }
.why-row:hover .why-icon { color: var(--signal); transform: rotate(-8deg) scale(1.08); }
.why-row h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lang-ar .why-row h3 { font-size: clamp(20px, 2vw, 26px); }
.why-row p { margin: 0; color: var(--text-2); font-size: 16px; }

/* ---------------------------------------------------------------- articles */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.art-card { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); transition: border-color .35s, transform .5s var(--ease), background .35s; overflow: hidden; }
.art-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
[dir="rtl"] .art-card::after { transform-origin: right; }
.art-card:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--bg-2); }
.art-card:hover::after { transform: scaleX(1); }
.art-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.art-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); white-space: nowrap; }
.lang-ar .art-tag { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; }
.art-bar { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.art-card h3 { font-size: 23px; line-height: 1.25; margin-bottom: 16px; }
.lang-ar .art-card h3 { font-size: 21px; line-height: 1.6; }
.art-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-read { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--text); }
.art-read .arr { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.art-card:hover .art-read { color: var(--signal); }
.art-card:hover .art-read .arr { transform: translateX(4px); }
[dir="rtl"] .art-card:hover .art-read .arr { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------------- final CTA */
.final-cta { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 180px); text-align: center; border-top: 1px solid var(--line); }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 50%, rgba(4,7,12,.3), var(--bg) 80%); pointer-events: none; z-index: 1; }
.fc-inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.fc-ring { position: absolute; top: 50%; left: 50%; width: min(760px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .22; pointer-events: none; }
.final-cta h2 { font-size: clamp(34px, 5.4vw, 72px); max-width: 16ch; margin-bottom: 24px; letter-spacing: -.025em; }
.lang-ar .final-cta h2 { font-size: clamp(30px, 4.4vw, 58px); letter-spacing: 0; }
.final-cta p { color: var(--text-2); max-width: 56ch; margin-bottom: 40px; font-size: 18px; }

/* ---------------------------------------------------------------- page hero (inner) */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.ph-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 90% at 20% 60%, rgba(4,7,12,.92), rgba(4,7,12,.5) 70%, rgba(4,7,12,.3)), linear-gradient(to bottom, transparent 60%, var(--bg)); }
[dir="rtl"] .ph-fade { background: radial-gradient(80% 90% at 80% 60%, rgba(4,7,12,.92), rgba(4,7,12,.5) 70%, rgba(4,7,12,.3)), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 36px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.lang-ar .crumbs { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; }
.crumbs a:hover { color: var(--signal); }
.crumbs .sep { opacity: .4; }
.crumbs [aria-current] { color: var(--text-2); }
.ph-title { font-size: clamp(36px, 5.6vw, 76px); letter-spacing: -.025em; max-width: 20ch; font-weight: 700; }
.lang-ar .ph-title { font-size: clamp(30px, 4.6vw, 60px); letter-spacing: 0; }
.ph-sub { margin: 22px 0 0; font-family: var(--f-display); font-size: clamp(19px, 2vw, 26px); font-weight: 500; line-height: 1.35;
  background: var(--chrome); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.lang-ar .ph-sub { line-height: 1.7; }
.ph-intro { margin-top: 28px; max-width: 64ch; color: var(--text-2); font-size: 18px; }
.ph-icon { position: absolute; inset-inline-end: var(--gutter); top: 50%; width: clamp(120px, 16vw, 210px); color: rgba(22,242,160,.8); opacity: .9; transform: translateY(-30%); }
.ph-icon .ico { stroke-width: .6; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(22,242,160,.4)); }
.svc-hero .ph-title { max-width: 18ch; padding-inline-end: clamp(0px, 14vw, 220px); }
.art-hero .ph-title { max-width: 24ch; font-size: clamp(32px, 4.6vw, 60px); }
.lang-ar .art-hero .ph-title { font-size: clamp(28px, 3.8vw, 50px); }
.legal-hero .ph-sub { font-size: 18px; }

/* ---------------------------------------------------------------- services index rows */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row { --mx: 50%; position: relative; display: grid; grid-template-columns: 56px 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(500px 160px at var(--mx) 50%, rgba(22,242,160,.09), transparent); }
.svc-row:hover::before { opacity: 1; }
.sr-num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.sr-icon { width: 52px; height: 52px; color: var(--text-2); transition: color .3s; }
.svc-row:hover .sr-icon { color: var(--signal); }
.sr-main h2 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 6px; }
.lang-ar .sr-main h2 { font-size: clamp(19px, 1.9vw, 24px); }
.sr-sub { font-size: 14.5px; color: var(--signal); font-family: var(--f-display); }
.sr-desc { color: var(--text-2); font-size: 15.5px; }
.sr-go { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: .35s var(--ease); }
.sr-go .arr { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.svc-row:hover .sr-go { background: var(--signal); border-color: var(--signal); color: #01140c; }

/* ---------------------------------------------------------------- service detail */
.overview { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 48px; margin-bottom: 72px; }
.ov-label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); font-weight: 500; padding-top: 10px; }
.lang-ar .ov-label { font-family: var(--f-body); letter-spacing: 0; font-size: 16px; font-weight: 600; }
.ov-body p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; color: var(--text); }
.lang-ar .ov-body p { line-height: 1.9; }
.ov-body p + p { color: var(--text-2); }
.dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(16,25,38,.55), rgba(8,13,21,.4)); }
.panel-alt { background: linear-gradient(180deg, rgba(22,242,160,.05), rgba(8,13,21,.4)); border-color: rgba(22,242,160,.18); }
.panel-t { display: flex; align-items: center; gap: 14px; font-size: 19px; margin-bottom: 28px; line-height: 1.35; }
.lang-ar .panel-t { font-size: 18px; }
.pt-ico { width: 38px; height: 38px; flex: 0 0 auto; padding: 7px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--signal); }
.inc-list li, .del-list li { display: flex; gap: 16px; align-items: flex-start; padding: 13px 0; border-top: 1px dashed var(--line); font-size: 16px; color: var(--text); }
.inc-list li:first-child, .del-list li:first-child { border-top: 0; }
.li-n { font-family: var(--f-mono); font-size: 12px; color: var(--signal); padding-top: 4px; min-width: 22px; }
.li-doc { width: 22px; height: 22px; flex: 0 0 auto; color: var(--muted); margin-top: 2px; }
.note { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 20px 24px; border: 1px solid rgba(255,181,71,.3); border-radius: var(--radius-lg); background: rgba(255,181,71,.05); }
.note .ico { width: 24px; height: 24px; flex: 0 0 auto; color: var(--amber); margin-top: 2px; }
.note p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.svc-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: clamp(26px, 4vw, 44px); border-radius: 14px; border: 1px solid rgba(22,242,160,.25); background: linear-gradient(120deg, rgba(22,242,160,.10), rgba(22,242,160,.02) 60%); }
.svc-cta p { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; max-width: 26ch; line-height: 1.3; }
.lang-ar .svc-cta p { line-height: 1.6; }
.svc-cta-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(22,242,160,.15), transparent); width: 30%; animation: sweepX 5s var(--ease) infinite; }
@keyframes sweepX { from { transform: translateX(-120%); } to { transform: translateX(450%); } }
[dir="rtl"] .svc-cta-scan { animation-name: sweepXR; }
@keyframes sweepXR { from { transform: translateX(120%); } to { transform: translateX(-450%); } }
.others { background: var(--bg-1); }
.other-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.other-svc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); transition: border-color .3s, transform .4s var(--ease); font-family: var(--f-display); font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.lang-ar .other-svc { font-size: 15.5px; line-height: 1.6; }
.other-svc .os-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.other-svc .os-icon { width: 34px; height: 34px; color: var(--text-2); justify-self: end; }
.other-svc > span:nth-child(3) { grid-column: 1 / -1; }
.other-svc .arr { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; grid-column: 1 / -1; }
.other-svc:hover { border-color: rgba(22,242,160,.4); transform: translateY(-3px); }
.other-svc:hover .arr { stroke: var(--signal); }
.other-svc:hover .os-icon { color: var(--signal); }

/* ---------------------------------------------------------------- products */
.prod-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.pf-kind { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px !important; }
.lang-ar .pf-kind { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; }
.pf-copy h3 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 22px; background: var(--chrome); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }

.shield-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.shield-visual { position: sticky; top: calc(var(--header-h) + 40px); display: grid; justify-items: center; gap: 24px; }
.sv-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255,181,71,.35); border-radius: 999px; color: var(--amber); font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lang-ar .sv-label { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; }
.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 40px; }
.focus-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); font-size: 15.5px; }
.focus-list .fx { width: 18px; height: 18px; flex: 0 0 auto; color: var(--signal); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
.spec { padding: 22px 24px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.spec:nth-child(2n) { border-inline-end: 0; }
.spec:nth-last-child(-n+2) { border-bottom: 0; }
.spec dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lang-ar .spec dt { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; }
.spec dd { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.spec.dev dd { color: var(--amber); }
.spec.free dd { color: var(--signal); }
.spec dd a { color: var(--signal); border-bottom: 1px solid rgba(22,242,160,.3); }

/* ---------------------------------------------------------------- about */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mv { position: relative; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--bg-2), var(--bg)); overflow: hidden; }
.mv::after { content: ""; position: absolute; width: 240px; height: 240px; inset-inline-end: -80px; top: -80px; border-radius: 50%; border: 1px solid rgba(22,242,160,.2); box-shadow: 0 0 0 40px rgba(22,242,160,.03), 0 0 0 80px rgba(22,242,160,.02); }
.mv-tag { display: block; width: 48px; height: 48px; color: var(--signal); margin-bottom: 30px; }
.mv h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 18px; }
.mv p { margin: 0; color: var(--text-2); font-size: 18px; }
.val-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.val { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); transition: border-color .3s, transform .4s var(--ease); }
.val:hover { border-color: rgba(22,242,160,.4); transform: translateY(-4px); }
.val-icon { display: block; width: 40px; height: 40px; color: var(--signal); margin-bottom: 46px; }
.val h3 { font-size: 19px; margin-bottom: 10px; }
.val p { margin: 0; color: var(--text-2); font-size: 15px; }
.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dir-grid h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 24px; }
.lead { font-size: 19px; color: var(--text-2); }
.dir-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
.dir-node { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 30px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-1); font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.35; }
.lang-ar .dir-node { line-height: 1.6; }
.dn-ico { width: 46px; height: 46px; color: var(--signal); }
.dir-link { display: flex; align-items: center; }
.dir-link i { width: 26px; height: 1px; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.dir-link b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--signal); color: var(--signal); font-family: var(--f-mono); font-weight: 400; }
.reg-card { position: relative; max-width: 880px; padding: clamp(28px, 5vw, 56px); border-radius: 16px; border: 1px solid var(--line-2); overflow: hidden;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 10px), linear-gradient(160deg, #0d1622, #070b12); }
.reg-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px dashed var(--line-2); }
.reg-head img { height: 54px; width: auto; }
.reg-stamp { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--signal); border: 1px solid rgba(22,242,160,.4); padding: 8px 12px; transform: rotate(-4deg); }
.reg-card h2 { font-size: 26px; margin-bottom: 14px; }
.reg-card > p { color: var(--text-2); }
.reg-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.reg-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.reg-row:nth-child(odd) { padding-inline-end: 20px; }
.reg-row dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lang-ar .reg-row dt { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; }
.reg-row dd { margin: 0; font-family: var(--f-mono); font-size: 17px; color: var(--text); }
.lang-ar .reg-row dd { font-family: var(--f-body); }

/* ---------------------------------------------------------------- article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.article-body { max-width: 70ch; }
.article-body p { font-size: 19px; line-height: 1.8; color: var(--text-2); margin-bottom: 1.4em; }
.lang-ar .article-body p { line-height: 2; font-size: 19.5px; }
.article-body p:first-child { font-size: 23px; color: var(--text); line-height: 1.6; }
.lang-ar .article-body p:first-child { line-height: 1.9; }
.article-body p:first-child::first-letter { color: var(--signal); }
.article-side { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 12px; }
.rel { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.35; transition: border-color .3s; }
.lang-ar .rel { line-height: 1.6; }
.rel .arr { width: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.rel:hover { border-color: rgba(22,242,160,.4); }
.rel:hover .arr { stroke: var(--signal); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-2); font-size: 15px; }
.back-link .arr { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: scaleX(-1); }
[dir="rtl"] .back-link .arr { transform: none; }
.back-link:hover { color: var(--signal); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.contact-card { position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(170deg, var(--bg-2), var(--bg)); min-height: 100%; }
.cc-company { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 26px; }
.lang-ar .cc-company { line-height: 1.6; }
.contact-card dl { margin: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.contact-card dl div { display: flex; gap: 14px; align-items: center; }
.contact-card dt { width: 40px; height: 40px; flex: 0 0 auto; padding: 9px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--signal); }
.contact-card dd { margin: 0; color: var(--text-2); }
.contact-card dd a:hover { color: var(--signal); }
.cc-radar { position: absolute; width: 300px; aspect-ratio: 1; inset-inline-end: -110px; bottom: -110px; opacity: .6; }
.cc-radar span { position: absolute; inset: 0; border: 1px solid rgba(22,242,160,.2); border-radius: 50%; }
.cc-radar span:nth-child(2) { inset: 20%; }
.cc-radar span:nth-child(3) { inset: 40%; }
.cc-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(22,242,160,.3), transparent 20%); animation: spin 6s linear infinite; }
.cform { padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 20px 55%, 26px 55%; }
.field select option { background: var(--panel-solid); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-dim); }
.field.err input, .field.err select, .field.err textarea { border-color: #ff6b6b; }
.field .f-err { font-size: 13px; color: #ff8c8c; }
.f-notice { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0; padding: 14px 16px; border-radius: var(--radius); background: rgba(255,181,71,.06); border: 1px solid rgba(255,181,71,.25); font-size: 14.5px; color: var(--text-2); }
.f-notice .ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--amber); margin-top: 2px; }
.cform .btn { justify-self: start; }
.f-status { margin: 0; font-size: 15px; color: var(--signal); min-height: 1em; }

/* ---------------------------------------------------------------- legal */
.legal-wrap { max-width: 860px; }
.legal-sec { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-sec h2 { display: flex; gap: 16px; align-items: baseline; font-size: 22px; margin-bottom: 14px; }
.ls-n { font-family: var(--f-mono); font-size: 13px; color: var(--signal); font-weight: 400; }
.legal-sec p, .legal-sec li { color: var(--text-2); }
.legal-sec ul { display: grid; gap: 10px; }
.legal-sec li { position: relative; padding-inline-start: 22px; }
.legal-sec li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border: 1px solid var(--signal); transform: rotate(45deg); }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; padding: 90px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg), #02050a); }
.foot-glow { position: absolute; left: 50%; bottom: -320px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(22,242,160,.10), transparent); pointer-events: none; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-brand img { width: min(100%, 300px); height: auto; margin-bottom: 30px; }
.lang-ar .foot-brand img { width: min(100%, 250px); }
.foot-company { font-family: var(--f-display); font-weight: 600; margin-bottom: 8px; }
.foot-about { color: var(--muted); font-size: 15px; max-width: 40ch; }
.foot-cols { display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); font-weight: 500; margin-bottom: 18px; line-height: 1.4; }
.lang-ar .site-footer h3 { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.site-footer h3.mt { margin-top: 32px; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.site-footer li a { transition: color .2s; }
.site-footer li a:hover { color: var(--signal); }
.foot-mid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.foot-info p { margin: 0 0 4px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.lang-ar .foot-info p { font-family: var(--f-body); font-size: 14px; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; }
.foot-bottom p { margin: 0; font-size: 13.5px; color: var(--muted); }
.to-top { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: .3s; }
.to-top svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.to-top:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-3px); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .nav .n-idx { display: none; }
  .val-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .other-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; z-index: 60; }
  .menu-btn span { width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .bar-actions { margin-inline-start: auto; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; margin: 0; display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px; background: rgba(4,7,12,.97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: .5s var(--ease); }
  .menu-open .nav li { opacity: 1; transform: none; }
  .menu-open .nav li:nth-child(2) { transition-delay: .05s; } .menu-open .nav li:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav li:nth-child(4) { transition-delay: .15s; } .menu-open .nav li:nth-child(5) { transition-delay: .2s; }
  .menu-open .nav li:nth-child(6) { transition-delay: .25s; }
  .nav a { padding: 18px 0; font-family: var(--f-display); font-size: 28px; font-weight: 600; color: var(--text); gap: 16px; }
  .lang-ar .nav a { font-size: 24px; }
  .nav .n-idx { display: inline; opacity: 1; transform: none; font-size: 12px; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--signal); }
  .nav-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
  .menu-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; padding-bottom: 110px; gap: 10px; }
  .hero-emblem { order: -1; width: min(64vw, 300px); margin-bottom: 8px; justify-self: start; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .svc-card:nth-child(5) { grid-column: span 2; }
  .at-grid { grid-template-columns: 1fr; gap: 48px; }
  .at-visual { aspect-ratio: 16/10; }
  .pipeline { grid-template-columns: 1fr; gap: 0; padding-inline-start: 0; }
  .pipe-track { top: 28px; bottom: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 1px; height: auto; }
  .pipe-fill { transform: scaleY(var(--p)); transform-origin: top; background: linear-gradient(var(--signal), #7cf5c9); }
  [dir="rtl"] .pipe-fill { transform-origin: top; }
  .pipe-pulse { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; padding-bottom: 34px; }
  .step-node { grid-row: span 2; margin: 0; }
  .step h3 { padding-top: 12px; }
  .pt-card, .prod-feature { grid-template-columns: 1fr; }
  .pt-visual { order: -1; } .pt-visual .shield-stage, .pf-visual .shield-stage { width: min(60vw, 260px); }
  .why-row { grid-template-columns: 44px 40px 1fr; row-gap: 8px; }
  .why-icon { width: 36px; height: 36px; }
  .why-row p { grid-column: 3; }
  .art-grid { grid-template-columns: 1fr; }
  .art-card { min-height: 0; }
  .art-card .art-read { margin-top: 18px; }
  .svc-row { grid-template-columns: 40px 44px 1fr 40px; row-gap: 10px; }
  .sr-icon { width: 40px; height: 40px; }
  .sr-desc { grid-column: 3 / 4; }
  .sr-go { grid-row: 1; grid-column: 4; width: 40px; height: 40px; }
  .overview { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .dual { grid-template-columns: 1fr; }
  .ph-icon { display: none; }
  .svc-hero .ph-title { padding: 0; }
  .shield-grid { grid-template-columns: 1fr; gap: 48px; }
  .shield-visual { position: static; }
  .shield-stage.big { width: min(64vw, 300px); }
  .mv-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-wrap { grid-template-columns: 1fr; gap: 56px; }
  .article-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 14px; }
  .lang-ar .brand img { height: 24px; }
  .lang-switch { height: 40px; padding: 0 12px; font-size: 13.5px; }
  .hero-title { font-size: clamp(36px, 10.5vw, 52px); }
  .lang-ar .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-intro { font-size: 16.5px; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .hud li:nth-child(n+3) { display: none; }
  .hud-scroll { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card:nth-child(5) { grid-column: auto; min-height: 0; }
  .svc-top { padding-bottom: 28px; }
  .svc-go { opacity: 1; transform: none; }
  .val-grid { grid-template-columns: 1fr 1fr; }
  .val:last-child { grid-column: span 2; }
  .val-icon { margin-bottom: 24px; }
  .other-grid { grid-template-columns: 1fr; }
  .other-svc { min-height: 0; }
  .focus-list, .spec-grid, .reg-rows, .f-row { grid-template-columns: 1fr; }
  .spec { border-inline-end: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .spec:last-child { border-bottom: 0 !important; }
  .reg-head { flex-direction: column; align-items: flex-start; }
  .reg-head img { height: 40px; }
  .dir-visual { grid-template-columns: 1fr; justify-items: stretch; }
  .dir-link { flex-direction: column; justify-self: center; }
  .dir-link i { width: 1px; height: 20px; }
  .why-row { grid-template-columns: 36px 1fr; }
  .why-icon { display: none; }
  .why-row p { grid-column: 2; }
  .svc-row { grid-template-columns: 1fr 40px; }
  .sr-num, .sr-icon { display: none; }
  .sr-main { grid-column: 1; }
  .sr-desc { grid-column: 1 / -1; }
  .sr-go { grid-column: 2; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:nth-child(2) { grid-column: span 2; order: 3; }
  .cform .btn { width: 100%; justify-content: space-between; }
  .article-body p { font-size: 17.5px; }
  .article-body p:first-child { font-size: 20px; }
  .final-cta .btn { width: 100%; justify-content: space-between; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .load { opacity: 1; transform: none; }
}

/* =====================================================================
   PROJECTS — showcase carousel, project cards, detail pages, gallery
   (extends the existing system; accent per project via --acc)
   ===================================================================== */
@property --acc { syntax: "<color>"; inherits: true; initial-value: #16f2a0; }
.showcase, .pj-card, .proj-hero, .gallery-sec { --acc-soft: color-mix(in srgb, var(--acc) 16%, transparent); --acc-line: color-mix(in srgb, var(--acc) 38%, transparent); }

.showcase {
  position: relative; isolation: isolate; overflow: hidden; outline: none;
  padding: clamp(24px, 4.4vw, 60px); border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(140deg, #0c1521, #060b12 60%);
  transition: --acc .9s var(--ease);
}
.showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(255,255,255,.32), transparent 30%, transparent 70%, var(--acc-line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sc-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 75% at 78% 42%, color-mix(in srgb, var(--acc) 13%, transparent), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(170,196,216,.035) 79px 80px); }
[dir="rtl"] .sc-bg { background:
    radial-gradient(55% 75% at 22% 42%, color-mix(in srgb, var(--acc) 13%, transparent), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(170,196,216,.035) 79px 80px); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.sc-head .kicker { margin: 0; }
.sc-count { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-mono); color: var(--muted); font-size: 13px; }
.lang-ar .sc-count { font-family: var(--f-body); font-size: 15px; }
.sc-count b { font-family: "Chakra Petch", var(--f-display); font-size: 28px; font-weight: 600; color: var(--text); line-height: 1; }
.lang-ar .sc-count b { font-family: var(--f-display); font-size: 24px; }
.sc-count i { width: 34px; height: 1px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }

.sc-viewport { display: grid; touch-action: pan-y; }
.sc-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4.6vw, 64px); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.sc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.sc-slide.is-leaving { visibility: visible; animation: scOut .45s var(--ease) both; }
@keyframes scOut { to { opacity: 0; transform: translateX(calc(var(--sx, 48px) * -0.6)); } }
.sc-slide.is-active .sc-copy > *, .sc-slide.is-active .sc-logo, .sc-slide.is-active .sc-shot { animation: scIn .8s var(--ease) both; }
.sc-copy > :nth-child(2) { animation-delay: .05s !important; } .sc-copy > :nth-child(3) { animation-delay: .1s !important; }
.sc-copy > :nth-child(4) { animation-delay: .15s !important; } .sc-copy > :nth-child(5) { animation-delay: .2s !important; }
.sc-copy > :nth-child(6) { animation-delay: .25s !important; }
@keyframes scIn { from { opacity: 0; transform: translateX(var(--sx, 48px)); } }
.sc-slide.is-active .sc-logo { animation-name: scLogo; animation-duration: 1s; }
@keyframes scLogo { from { opacity: 0; transform: scale(.95); clip-path: inset(0 50% 0 50% round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
.sc-slide.is-active .sc-shot { animation-name: scShot; animation-duration: .9s; }
.sc-slide.is-active .sc-shot.s1 { animation-delay: .18s; } .sc-slide.is-active .sc-shot.s2 { animation-delay: .26s; } .sc-slide.is-active .sc-shot.s3 { animation-delay: .34s; }
@keyframes scShot { from { opacity: 0; translate: 0 26px; } }

.sc-cat { margin: 0 0 14px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.lang-ar .sc-cat { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; font-weight: 500; }
.sc-name { font-size: clamp(36px, 4.6vw, 62px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px;
  background: var(--chrome); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }
.lang-ar .sc-name { font-size: clamp(32px, 4vw, 52px); letter-spacing: 0; }
.sc-tag { margin: 0 0 20px; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.7vw, 22px); color: var(--text); }
.sc-sum { color: var(--text-2); max-width: 54ch; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.sc-chips li { padding: 7px 12px; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--acc-line); border-radius: 999px; background: var(--acc-soft); line-height: 1.4; }
.sc-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.showcase .btn-primary { background: var(--acc); }
.showcase .btn-primary:hover { box-shadow: 0 10px 40px -10px var(--acc); }
.sc-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--text); padding-block: 6px; border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
.sc-link .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.sc-link-n { font-family: var(--f-mono); font-size: 12px; color: var(--acc); border: 1px solid var(--acc-line); border-radius: 999px; padding: 1px 8px; }
.sc-link:hover { color: var(--acc); border-color: var(--acc); }
.sc-link:hover .arr { transform: translateX(4px); }
[dir="rtl"] .sc-link:hover .arr { transform: scaleX(-1) translateX(4px); }

/* logo plate — the selected project's real logo replaces the generic emblem */
.sc-logo { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 2 / 1; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(80% 90% at 50% 45%, #0a1424, #04080f 80%); border: 1px solid var(--acc-line);
  box-shadow: 0 40px 90px -40px var(--acc), inset 0 0 0 1px rgba(255,255,255,.03); }
.sc-logo-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 58%, transparent 100%); }
.sc-logo-glow { position: absolute; inset: 15% 20%; z-index: 0; border-radius: 50%; background: var(--acc); opacity: .14; filter: blur(50px); animation: breathe 6s ease-in-out infinite; }
.sc-logo-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 16%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 22%, transparent) 70%, color-mix(in srgb, #fff 55%, var(--acc)) 98%, transparent);
  mix-blend-mode: screen; opacity: .32; animation: logoScan 6.5s var(--ease) infinite; }
[dir="rtl"] .sc-logo-scan { animation-name: logoScanR; background: linear-gradient(-90deg, transparent, color-mix(in srgb, var(--acc) 22%, transparent) 70%, color-mix(in srgb, #fff 55%, var(--acc)) 98%, transparent); }
@keyframes logoScan { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(420%); } }
@keyframes logoScanR { 0% { transform: translateX(110%); } 60%, 100% { transform: translateX(-420%); } }
.sc-logo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(var(--acc), var(--acc)) 14px 14px / 18px 1px, linear-gradient(var(--acc), var(--acc)) 14px 14px / 1px 18px,
    linear-gradient(var(--acc), var(--acc)) calc(100% - 14px) calc(100% - 14px) / 18px 1px, linear-gradient(var(--acc), var(--acc)) calc(100% - 14px) calc(100% - 14px) / 1px 18px;
  background-repeat: no-repeat; opacity: .7; }

/* screenshot deck */
.sc-deck { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; perspective: 900px; }
.sc-shot { display: block; position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2); background: #03060b;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.sc-shot img { width: 100%; height: auto; }
.sc-shot.s1 { transform: rotateY(10deg) translateZ(-10px); transform-origin: right center; }
.sc-shot.s3 { transform: rotateY(-10deg) translateZ(-10px); transform-origin: left center; }
.sc-shot.s2 { z-index: 1; transform: translateY(-8px) scale(1.04); border-color: var(--acc-line); box-shadow: 0 26px 50px -22px var(--acc); }
.sc-shot:hover { transform: translateY(-6px) scale(1.06); border-color: var(--acc); z-index: 2; }

/* controls: two arrows + three project tabs */
.sc-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 22px); margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); }
.sc-arrow { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.sc-arrow .arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sc-prev .arr { transform: scaleX(-1); }
[dir="rtl"] .sc-prev .arr { transform: none; }
.sc-arrow:hover { background: var(--acc); border-color: var(--acc); color: #02121a; box-shadow: 0 0 30px -6px var(--acc); }
.sc-arrow:active { transform: scale(.93); }
.sc-arrow:focus-visible, .sc-tab:focus-visible, .gal-arrow:focus-visible, .gal-thumb:focus-visible, .gal-open:focus-visible { outline: 2px solid var(--acc, var(--signal)); outline-offset: 3px; }
.sc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-tab { position: relative; display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 12px 14px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-family: var(--f-display); font-size: 15px; font-weight: 600; text-align: start; cursor: pointer; transition: color .3s, background .3s; }
.sc-tab:hover { color: var(--text); background: rgba(255,255,255,.025); }
.sc-tab.is-active { color: var(--text); }
.sc-tab-n { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.sc-tab.is-active .sc-tab-n { color: var(--acc); }
.sc-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tab-bar { position: absolute; inset-inline: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.sc-tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); box-shadow: 0 0 10px var(--acc); }
[dir="rtl"] .sc-tab-bar::after { transform-origin: right; }
.sc-tab.is-active .sc-tab-bar::after { transform: scaleX(1); }

/* project cards (products index + "more projects") */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pj-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-1);
  transition: border-color .35s, transform .5s var(--ease), box-shadow .4s; }
.pj-card:hover { border-color: var(--acc-line); transform: translateY(-5px); box-shadow: 0 30px 60px -36px var(--acc); }
.pj-logo { display: grid; place-items: center; aspect-ratio: 2 / 1; background: radial-gradient(80% 90% at 50% 45%, #0a1424, #04080f 80%); border-bottom: 1px solid var(--line); overflow: hidden; }
.pj-logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 58%, transparent 100%); }
.pj-card:hover .pj-logo img { transform: scale(1.05); }
.pj-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.pj-top { display: flex; align-items: baseline; gap: 12px; }
.pj-n { font-family: var(--f-mono); font-size: 12px; color: var(--acc); }
.pj-cat { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.lang-ar .pj-cat { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; }
.pj-name { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.lang-ar .pj-name { line-height: 1.5; }
.pj-sum { color: var(--text-2); font-size: 15px; }
.pj-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.pj-screens { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.lang-ar .pj-screens { font-family: var(--f-body); font-size: 14px; }
.pj-go { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: .35s var(--ease); }
.pj-go .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pj-card:hover .pj-go { background: var(--acc); border-color: var(--acc); color: #02121a; }

/* project detail hero */
.proj-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.proj-hero .kicker .k-num { color: var(--acc); }
.proj-hero .kicker .k-line::after { background: var(--acc); }
.proj-hero .ph-title { max-width: none; }
.proj-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }
.proj-hero .btn-primary { background: var(--acc); }
.proj-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--acc-line); background: var(--acc-soft); font-size: 14px; color: var(--text); }
.pb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.sc-logo.big { aspect-ratio: 16 / 10; }

/* gallery */
.gal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.gal-head .sub-label { margin: 0; color: var(--acc); }
.gal-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.gal-stage { position: relative; padding: clamp(6px, 1vw, 12px); border-radius: 16px; border: 1px solid var(--acc-line); background: linear-gradient(180deg, #08101b, #03060b);
  box-shadow: 0 50px 100px -50px var(--acc); }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; }
.gal-main { width: 100%; height: auto; border-radius: 10px; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.gal-main.swap { opacity: .15; transform: scale(.99); }
.gal-zoom { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(4,7,12,.75); border: 1px solid var(--line-2); color: var(--text); opacity: 0; transition: opacity .3s; }
.gal-zoom svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gal-open:hover .gal-zoom, .gal-open:focus-visible .gal-zoom { opacity: 1; }
.gal-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 16px 0; }
.gal-arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); cursor: pointer; transition: .3s var(--ease); }
.gal-arrow .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gal-arrow[data-dir="-1"] .arr { transform: scaleX(-1); }
[dir="rtl"] .gal-arrow[data-dir="-1"] .arr { transform: none; }
.gal-arrow:hover { background: var(--acc); border-color: var(--acc); color: #02121a; }
.gal-cap { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 14px; text-align: center; }
.gal-n { font-family: var(--f-mono); font-size: 13px; color: var(--acc); white-space: nowrap; }
.gal-t { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.gal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gal-thumb { scroll-snap-align: start; display: grid; gap: 8px; padding: 6px 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-1); color: var(--muted); cursor: pointer; font: inherit; text-align: start; transition: border-color .3s, color .3s, transform .4s var(--ease); position: relative; }
.gal-thumb img { width: 100%; height: auto; border-radius: 6px; opacity: .65; transition: opacity .3s; }
.gal-thumb-n { position: absolute; top: 12px; inset-inline-start: 12px; font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(4,7,12,.82); color: var(--text-2); }
.gal-thumb-t { font-size: 13px; line-height: 1.35; padding-inline: 4px; }
.gal-thumb:hover { color: var(--text); transform: translateY(-2px); }
.gal-thumb:hover img, .gal-thumb.is-active img { opacity: 1; }
.gal-thumb.is-active { border-color: var(--acc); color: var(--text); box-shadow: 0 0 0 1px var(--acc) inset; }
.gal-thumb.is-active .gal-thumb-n { background: var(--acc); color: #02121a; }
.gal-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2,4,8,.95); color: var(--text); }
.lightbox::backdrop { background: rgba(2,4,8,.8); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 70px 80px 0; width: 100%; flex: 1 1 auto; min-height: 0; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 240px); width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px var(--acc, #16f2a0); }
.lb-cap { display: flex; gap: 14px; align-items: baseline; font-family: var(--f-display); font-weight: 600; }
.lb-bar { display: flex; gap: 14px; padding: 18px 0 28px; flex: 0 0 auto; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.lightbox .gal-arrow { width: 52px; height: 52px; background: rgba(12,20,31,.9); }

/* detail content */
.pd-headline { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px) !important; line-height: 1.35 !important; color: var(--text) !important; }
.lang-ar .pd-headline { line-height: 1.7 !important; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cap-card { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(16,25,38,.55), rgba(8,13,21,.4)); overflow: hidden; transition: border-color .3s; }
.cap-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .7; }
[dir="rtl"] .cap-card::before { background: linear-gradient(-90deg, var(--acc), transparent); }
.cap-card:hover { border-color: var(--acc-line, var(--line-2)); }
.cap-n { font-family: var(--f-mono); font-size: 12px; color: var(--acc); }
.cap-card h3 { font-size: 19px; margin: 12px 0 16px; line-height: 1.35; }
.lang-ar .cap-card h3 { font-size: 18px; line-height: 1.6; }
.cap-card ul { display: grid; gap: 9px; }
.cap-card li { position: relative; padding-inline-start: 20px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.cap-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; border: 1px solid var(--acc); transform: rotate(45deg); }
.pd-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.pd-users, .pd-facts { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.pd-users .sub-label, .pd-facts .sub-label { color: var(--acc); }
.pd-users p { margin: 0; color: var(--text-2); font-size: 17px; }
.pd-meta > :only-child { grid-column: 1 / -1; }
.pd-facts .spec-grid { margin: 0; }
.note-calm { border-color: var(--acc-line, rgba(22,242,160,.3)); background: var(--acc-soft, rgba(22,242,160,.05)); }
.note-calm .ico { color: var(--acc); }
.gallery-sec + .section::before { display: none; }

/* responsive */
@media (max-width: 960px) {
  .sc-slide { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .sc-visual { order: -1; }
  .pj-grid, .pj-grid.two { grid-template-columns: 1fr; }
  .pj-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .pj-logo { aspect-ratio: auto; height: 100%; min-height: 180px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .proj-hero-grid { grid-template-columns: 1fr; }
  .proj-hero-logo { order: -1; max-width: 560px; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-meta { grid-template-columns: 1fr; }
  .lb-fig { padding: 60px 12px 6px; }
}
@media (max-width: 640px) {
  .sc-head { margin-bottom: 20px; }
  .sc-count b { font-size: 22px; }
  .sc-deck { gap: 8px; margin-top: 10px; }
  .sc-controls { gap: 10px; padding-top: 16px; }
  .sc-arrow { width: 46px; height: 46px; }
  .sc-tab { flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 14px; font-size: 12.5px; text-align: center; }
  .sc-tab-name { max-width: 100%; white-space: normal; overflow: visible; line-height: 1.25; text-overflow: clip; }
  .sc-tab-bar { inset-inline: 8px; }
  .sc-ctas .btn { width: 100%; justify-content: space-between; }
  .pj-card { grid-template-columns: 1fr; }
  .pj-logo { aspect-ratio: 2 / 1; height: auto; min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .cap-grid { grid-template-columns: 1fr; }
  .gal-bar { gap: 10px; }
  .gal-cap { flex-direction: column; gap: 2px; align-items: center; }
  .gal-t { font-size: 16px; }
  .gal-thumbs { grid-auto-columns: 132px; }
  .proj-hero-ctas .btn { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   CSP-safe replacements for former inline style="" attributes (security hardening).
   Values are identical to the previous inline values; the build asserts they stay in sync
   with ACCENT in _source/projects.py.
   ========================================================================== */
.si-0 { --i: 0; } .si-1 { --i: 1; } .si-2 { --i: 2; } .si-3 { --i: 3; } .si-4 { --i: 4; }
.si-5 { --i: 5; } .si-6 { --i: 6; } .si-7 { --i: 7; } .si-8 { --i: 8; } .si-9 { --i: 9; }
.si-10 { --i: 10; } .si-11 { --i: 11; } .si-12 { --i: 12; } .si-13 { --i: 13; } .si-14 { --i: 14; } .si-15 { --i: 15; }
.dl-15 { --d: .15s; } .dl-30 { --d: .3s; } .dl-35 { --d: .35s; } .dl-55 { --d: .55s; } .dl-70 { --d: .7s; } .dl-90 { --d: .9s; }
.acc-cyberology-shield { --acc: #16f2a0; }
.acc-mutabaqa-tech { --acc: #22c8ff; }
.acc-raqeeb { --acc: #3aa8ff; }
