:root {
  --bg: #1a0510;
  --bg-2: #200612;
  --warm: #6a040f;
  --hot: #9d0208;

  --ink: rgba(255,255,255,0.94);
  --ink-2: rgba(255,255,255,0.74);
  --ink-dim: rgba(255,255,255,0.5);
  --ink-faint: rgba(255,255,255,0.28);
  --ink-ghost: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --glass: rgba(10, 4, 16, 0.42);
  --glass-2: rgba(10, 4, 16, 0.62);

  --en: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --ar: "Tajawal", "SF Arabic", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #1a0510; color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--en);
  font-feature-settings: "ss01", "cv11";
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(106, 4, 15, 0.30), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(157, 2, 8, 0.16), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ─── language toggle behavior ──────────────────────── */
html[data-lang="en"] .lang-ar { display: none !important; }
html[data-lang="ar"] .lang-en { display: none !important; }

html[data-lang="ar"] { direction: rtl; }
html[data-lang="ar"] body {
  font-family: var(--ar);
  line-height: 1.85;
  font-weight: 400;
}
html[data-lang="ar"] .mono-keep { direction: ltr; unicode-bidi: isolate; }

.lang-en { font-family: var(--en); direction: ltr; }
.lang-ar { font-family: var(--ar); direction: rtl; line-height: 1.85; }

/* ─── shader background ────────────────────────────── */
canvas#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; will-change: contents; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, transparent 30%, rgba(26,5,16,0.55) 90%),
    linear-gradient(180deg, rgba(26,5,16,0.0) 0%, rgba(26,5,16,0.35) 60%, rgba(26,5,16,0.75) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── nav ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px clamp(32px, 6vw, 90px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(180deg, rgba(3,7,30,0.6), rgba(3,7,30,0));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  transition:
    top 0.55s cubic-bezier(0.16,1,0.3,1),
    left 0.55s cubic-bezier(0.16,1,0.3,1),
    right 0.55s cubic-bezier(0.16,1,0.3,1),
    padding 0.55s cubic-bezier(0.16,1,0.3,1),
    border-radius 0.55s cubic-bezier(0.16,1,0.3,1),
    background 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.nav.scrolled {
  top: 10px;
  left: max(0px, calc(50% - 410px));
  right: max(0px, calc(50% - 410px));
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.07);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand .mark {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg {
  width: 44px; height: 50px;
  display: block; overflow: visible;
}
.brand .mark svg path {
  fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round;
}
.brand .mark--brand {
  width: auto; height: 40px;
}
.brand .mark--brand img {
  height: 100%; width: auto; display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(157, 2, 8, 0.3));
}
.brand .wm { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand .wm b {
  font-family: var(--en);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
}
.brand .wm span {
  font-family: var(--ar);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  direction: rtl;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 14px; border-radius: 8px;
  transition: color .25s ease, background .25s ease;
}
html[data-lang="ar"] .nav-links a {
  font-family: var(--ar); font-size: 14px;
  letter-spacing: 0; text-transform: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links a.active {
  color: var(--ink);
  background: rgba(157,2,8,0.18);
  box-shadow: inset 0 0 0 1px rgba(157,2,8,0.35);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }

.lang-toggle-btn {
  position: relative; isolation: isolate;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  width: 38px; height: 38px; border-radius: 999px;
  color: var(--ink); border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.lang-toggle-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.2px 2px 0px -2px rgba(255,255,255,0.7),
    inset -1px -1px 0px -1px rgba(255,255,255,0.5),
    0px 2px 8px rgba(0,0,0,0.12);
  transition: background 0.25s ease;
}
.lang-toggle-btn:hover::before { background: rgba(255,255,255,0.09); }
.lang-toggle-btn:active { transform: scale(0.93); }
.lang-toggle-btn.ar-mode { font-family: var(--ar); font-size: 14px; letter-spacing: 0; }
.cta-btn {
  position: relative; isolation: isolate;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 999px;
  color: #fff; border: none; background: transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
html[data-lang="ar"] .cta-btn {
  font-family: var(--ar); font-size: 14px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(157,2,8,0.35);
  backdrop-filter: blur(14px) url(#cyber-glass) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.13),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.9),
    inset -2px -2px 0px -2px rgba(255,255,255,0.8),
    inset -3px -8px 1px -6px rgba(255,255,255,0.6),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 4px 14px rgba(157,2,8,0.35),
    0px 1px 4px rgba(0,0,0,0.15);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.cta-btn:hover { transform: scale(1.04); }
.cta-btn:hover::before { background: rgba(157,2,8,0.48); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 1.8px 3px 0px -2px rgba(255,255,255,0.9), inset -2px -2px 0px -2px rgba(255,255,255,0.8), inset -3px -8px 1px -6px rgba(255,255,255,0.6), inset -0.3px -1px 4px 0px rgba(0,0,0,0.12), inset 0px 3px 4px -2px rgba(0,0,0,0.18), 0px 8px 28px rgba(157,2,8,0.55), 0px 1px 4px rgba(0,0,0,0.15); }
.cta-btn:active { transform: scale(0.96); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ─── shared layout ──────────────────────────────── */
main { position: relative; z-index: 2; }
section {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.section-head {
  margin-bottom: 56px;
}
.section-title {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.section-title h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}
html[data-lang="ar"] .section-title h2 {
  font-family: var(--ar);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ─── hero ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: 80px;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  width: fit-content;
  margin-bottom: 32px;
}
html[data-lang="ar"] .hero .kicker {
  font-family: var(--ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
}
.hero .kicker .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 12px rgba(157, 2, 8, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(48px, 8.5vw, 132px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 22px;
  max-width: 14ch;
  text-wrap: balance;
}
html[data-lang="ar"] .hero h1 {
  font-family: var(--ar);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(40px, 7.5vw, 110px);
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--hot), #ff5a63 60%, var(--warm));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 600;
}
html[data-lang="ar"] .hero h1 em { font-weight: 800; }
.hero .lede {
  max-width: 580px;
  display: grid; gap: 14px;
  margin-bottom: 44px;
}
.hero .lede p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
}
html[data-lang="ar"] .hero .lede p {
  font-family: var(--ar);
  font-size: 19px;
  line-height: 1.95;
  font-weight: 400;
  color: var(--ink);
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-secondary, .btn-primary {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px;
  border: none; background: transparent; color: #fff;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
html[data-lang="ar"] .btn-secondary, html[data-lang="ar"] .btn-primary {
  font-family: var(--ar); font-size: 14.5px;
  letter-spacing: 0; text-transform: none; font-weight: 500;
}
.btn-secondary::before, .btn-primary::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  backdrop-filter: blur(14px) url(#cyber-glass) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.9),
    inset -2px -2px 0px -2px rgba(255,255,255,0.8),
    inset -3px -8px 1px -6px rgba(255,255,255,0.6),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 1px 5px rgba(0,0,0,0.12),
    0px 6px 18px rgba(0,0,0,0.10);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.btn-primary::before { background: rgba(157,2,8,0.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 1.8px 3px 0px -2px rgba(255,255,255,0.9), inset -2px -2px 0px -2px rgba(255,255,255,0.8), inset -3px -8px 1px -6px rgba(255,255,255,0.6), inset -0.3px -1px 4px 0px rgba(0,0,0,0.12), inset 0px 3px 4px -2px rgba(0,0,0,0.18), 0px 4px 14px rgba(157,2,8,0.30), 0px 1px 4px rgba(0,0,0,0.15); }
.btn-secondary::before { background: rgba(255,255,255,0.04); }
.btn-primary:hover { transform: scale(1.04); }
.btn-primary:hover::before { background: rgba(157,2,8,0.46); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 1.8px 3px 0px -2px rgba(255,255,255,0.9), inset -2px -2px 0px -2px rgba(255,255,255,0.8), inset -3px -8px 1px -6px rgba(255,255,255,0.6), inset -0.3px -1px 4px 0px rgba(0,0,0,0.12), inset 0px 3px 4px -2px rgba(0,0,0,0.18), 0px 8px 28px rgba(157,2,8,0.50), 0px 1px 4px rgba(0,0,0,0.15); }
.btn-secondary:hover { transform: scale(1.03); }
.btn-secondary:hover::before { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 1.8px 3px 0px -2px rgba(255,255,255,0.9), inset -2px -2px 0px -2px rgba(255,255,255,0.8), inset -3px -8px 1px -6px rgba(255,255,255,0.6), inset -0.3px -1px 4px 0px rgba(0,0,0,0.12), inset 0px 3px 4px -2px rgba(0,0,0,0.18), 0px 6px 20px rgba(0,0,0,0.14), 0px 1px 4px rgba(0,0,0,0.12); }
.btn-primary:active, .btn-secondary:active { transform: scale(0.96); }
.hero-actions svg { width: 14px; height: 14px; }
html[data-lang="ar"] .hero-actions svg { transform: scaleX(-1); }

.hero-meta {
  position: absolute;
  bottom: clamp(30px, 6vh, 60px);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
html[data-lang="ar"] .hero-meta { font-family: var(--ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
.hero-meta .scroll {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.hero-meta .scroll .bar {
  width: 1px; height: 28px; background: var(--ink-ghost);
  position: relative; overflow: hidden;
}
.hero-meta .scroll .bar::after {
  content: ""; position: absolute; top: -50%;
  width: 100%; height: 50%;
  background: var(--hot);
  animation: scroll-tick 2.4s ease-in-out infinite;
}
@keyframes scroll-tick {
  0% { top: -50%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ─── body content blocks ─────────────────────────── */
.content-block { max-width: 760px; }
.content-block p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
html[data-lang="ar"] .content-block p {
  font-family: var(--ar);
  font-size: 20px;
  line-height: 1.95;
  font-weight: 400;
  color: var(--ink);
  max-width: 60ch;
}

/* ─── services grid ──────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.svc {
  position: relative;
  padding: 32px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: start;
  transition: transform .35s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(157, 2, 8, 0.18), transparent 60%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.svc:hover::before { opacity: 1; }
.svc .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.svc .ico::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(157,2,8,0.45), transparent 65%);
}
.svc .ico svg { position: relative; width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.3; fill: none; }
.svc .copy h3 {
  margin: 0 0 8px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}
html[data-lang="ar"] .svc .copy h3 {
  font-family: var(--ar); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
}
.svc .copy p {
  margin: 0;
  font-size: 14.5px; line-height: 1.6;
  color: var(--ink-2);
}
html[data-lang="ar"] .svc .copy p {
  font-family: var(--ar); font-size: 16px; line-height: 1.85; color: var(--ink-2);
}
.svc .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  direction: ltr;
}

/* ─── team grid ─────────────────────────────────── */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .team { grid-template-columns: 1fr; } }
.member {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .35s, box-shadow .35s;
}
.member:hover {
  border-color: rgba(157,2,8,0.55);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(157,2,8,0.18);
}
/* full-card avatar */
.member .avatar {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  border: none; margin: 0;
}
.member .avatar .av-img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: sepia(0.6) hue-rotate(320deg) saturate(2) brightness(0.6);
  transition: filter .5s ease;
}
.member:hover .avatar .av-img {
  filter: sepia(0.15) hue-rotate(320deg) saturate(1.2) brightness(0.85);
}

/* ─── Team card entrance animation ──────────────────────── */
@keyframes team-from-left  { from { opacity:0; transform:translateX(-340px); } to { opacity:1; transform:translateX(0); } }
@keyframes team-from-right { from { opacity:0; transform:translateX(340px);  } to { opacity:1; transform:translateX(0); } }
@keyframes team-from-below { from { opacity:0; transform:translateY(60px);   } to { opacity:1; transform:translateY(0); } }

.member { opacity: 0; }
.member.anim-left  { animation: team-from-left  1.6s cubic-bezier(0.16,1,0.3,1) both; will-change: opacity, transform; }
.member.anim-right { animation: team-from-right 1.6s cubic-bezier(0.16,1,0.3,1) both; will-change: opacity, transform; }
.member.anim-up    { animation: team-from-below 0.85s cubic-bezier(0.16,1,0.3,1) both; will-change: opacity, transform; }
.member.anim-d1    { animation-delay: 0.14s; }
.member.anim-d2    { animation-delay: 0.26s; }
.member.anim-done  { opacity: 1; }

.member .avatar .av-img svg {
  position: absolute;
  width: 55%; height: 65%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
/* bottom gradient overlay for text readability */
.member::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 2, 12, 0.92) 0%,
    rgba(8, 2, 12, 0.55) 40%,
    rgba(8, 2, 12, 0.15) 70%,
    transparent 100%
  );
  pointer-events: none;
  transition: background .3s ease;
}
.member:hover::before {
  background: linear-gradient(
    to top,
    rgba(40, 2, 8, 0.9) 0%,
    rgba(20, 2, 8, 0.45) 40%,
    rgba(8, 2, 12, 0.1) 70%,
    transparent 100%
  );
}
/* name + role pinned to bottom */
.member .card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 24px 22px 20px;
}
.member .name {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.97);
  margin-bottom: 5px;
  line-height: 1.2;
}
html[data-lang="ar"] .member .name { font-family: var(--ar); font-weight: 700; font-size: 18px; }
.member .role {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,140,140,0.85);
  line-height: 1.2;
  margin: 0;
}
html[data-lang="ar"] .member .role {
  font-family: var(--ar); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600;
}
/* open hint top-right */
.member .open-hint {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
html[data-lang="ar"] .member .open-hint { right: auto; left: 16px; }
.member .open-hint svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.8); stroke-width: 1.5; fill: none; }
.member:hover .open-hint { opacity: 1; }

/* ─── member modal ───────────────────────────────── */
.member-modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,4,16,0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.member-modal-bg.open { opacity: 1; pointer-events: all; }
.member-modal {
  position: relative;
  width: 100%; max-width: 560px;
  background: linear-gradient(160deg, rgba(28,8,20,0.96), rgba(12,4,14,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: scale(0.93) translateY(20px);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.member-modal::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(157,2,8,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(106,4,15,0.12), transparent 60%);
}
.member-modal-bg.open .member-modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
html[data-lang="ar"] .modal-close { right: auto; left: 18px; }
.modal-close:hover { background: rgba(255,255,255,0.1); }
.modal-close svg { width: 14px; height: 14px; stroke: var(--ink-dim); stroke-width: 1.5; fill: none; }
.modal-head {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 28px; position: relative;
}
.modal-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,0.22), transparent 52%),
    linear-gradient(145deg, #d06070 0%, #6a040f 45%, #2a0004 100%);
  position: relative; overflow: hidden;
}
.modal-avatar svg {
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 60%;
  opacity: 0.6;
}
.modal-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}
.modal-info { flex: 1; }
.modal-name {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 6px;
}
html[data-lang="ar"] .modal-name { font-family: var(--ar); font-weight: 700; font-size: 24px; }
.modal-role {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hot); margin: 0 0 10px;
}
html[data-lang="ar"] .modal-role {
  font-family: var(--ar); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600;
}
.modal-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.modal-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 8px rgba(157,2,8,0.7);
}
.modal-tag span {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); direction: ltr;
}
.modal-divider {
  height: 1px; background: var(--line); margin: 0 0 24px;
}
.modal-bio {
  font-size: 15.5px; line-height: 1.7; color: var(--ink-2);
  margin: 0 0 24px;
}
html[data-lang="ar"] .modal-bio {
  font-family: var(--ar); font-size: 17px; line-height: 1.95;
}
.modal-skills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.modal-skill {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 7px;
  background: rgba(157,2,8,0.12);
  border: 1px solid rgba(157,2,8,0.25);
  color: rgba(255,200,200,0.8);
  direction: ltr;
}

/* ─── partners marquee ───────────────────────────── */
.partners-strip {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  position: relative;
  direction: ltr;
}
.partners-strip::before,
.partners-strip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; z-index: 2;
  width: 120px; pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}
.partners-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.partners-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.partners-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  direction: ltr;
  will-change: transform;
}
.partner-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: opacity .25s;
  transform: translateZ(0);
}
.partner-item:hover { opacity: 0.9; }
.partner-item .p-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.partner-item .p-icon svg { width: 22px; height: 22px; overflow: visible; }
.partner-item .p-icon svg path, .partner-item .p-icon svg rect, .partner-item .p-icon svg circle, .partner-item .p-icon svg ellipse { vector-effect: non-scaling-stroke; }
.partner-item .p-name {
  font-family: var(--en); direction: ltr;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ─── selected work ─────────────────────────────── */
.work { display: grid; gap: 14px; }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1.6fr 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: border-color .25s, background .25s, transform .35s;
}
.work-row:hover { border-color: var(--line-strong); transform: translateY(-2px); }
@media (max-width: 880px) {
  .work-row { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}
.work-row .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--hot);
  direction: ltr;
}
.work-row .title h3 {
  margin: 0;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.2;
}
html[data-lang="ar"] .work-row .title h3 {
  font-family: var(--ar); font-weight: 700; font-size: 24px;
}
.work-row .desc {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}
html[data-lang="ar"] .work-row .desc {
  font-family: var(--ar); font-size: 16px; line-height: 1.9;
}
.work-row .meta {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
}
html[data-lang="ar"] .work-row .meta { align-items: flex-start; }
@media (max-width: 880px) { .work-row .meta { align-items: flex-start; } }
.work-row .chip {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  direction: ltr;
}

/* ─── impact / stats ─────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 36px 28px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
  min-height: 220px;
}
.stat::before {
  content: "";
  position: absolute;
  top: -30%; right: -30%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(157,2,8,0.25), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
html[data-lang="ar"] .stat::before { right: auto; left: -30%; }
.stat .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  direction: ltr;
}
html[data-lang="ar"] .stat .label {
  font-family: var(--ar); font-size: 14px; letter-spacing: 0; text-transform: none;
  color: var(--ink-dim); font-weight: 500;
  direction: rtl;
}
.stat .value {
  font-family: var(--en);
  font-size: clamp(46px, 5.8vw, 78px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin: 14px 0 8px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.stat .value sup {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--hot);
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 4px;
}
.stat .desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: auto;
}
html[data-lang="ar"] .stat .desc {
  font-family: var(--ar); font-size: 16px; line-height: 1.9;
}

/* ─── philosophy quote ───────────────────────────── */
.philosophy {
  position: relative;
  padding: clamp(60px, 10vw, 100px) clamp(28px, 6vw, 80px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 8, 16, 0.55), rgba(8, 4, 12, 0.55));
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(157,2,8,0.22), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(106,4,15,0.18), transparent 50%);
  pointer-events: none;
}
.philosophy .quote-mark {
  font-family: var(--en);
  font-size: 120px;
  line-height: 0.7;
  font-weight: 300;
  color: var(--hot);
  opacity: 0.4;
  position: relative;
  height: 50px;
  margin-bottom: 16px;
}
.philosophy blockquote {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 24ch;
  position: relative;
}
html[data-lang="ar"] .philosophy blockquote {
  font-family: var(--ar);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 28ch;
}

/* ─── contact ────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}
html[data-lang="ar"] .contact-copy h3 {
  font-family: var(--ar); font-weight: 700; line-height: 1.4;
}
.contact-copy p { font-size: 16.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.7; }
html[data-lang="ar"] .contact-copy p {
  font-family: var(--ar); font-size: 18px; line-height: 1.95;
}

.contact-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: grid; gap: 14px;
}
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}
.contact-row:hover { background: rgba(255,255,255,0.05); border-color: var(--line-strong); }
.contact-row .label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
  direction: ltr;
}
html[data-lang="ar"] .contact-row .label {
  font-family: var(--ar); font-size: 13px; letter-spacing: 0; text-transform: none;
}
.contact-row .value { font-size: 14.5px; color: var(--ink); font-weight: 500; }
html[data-lang="ar"] .contact-row .value { font-family: var(--ar); font-size: 16.5px; font-weight: 500; }
.contact-row svg { width: 18px; height: 18px; stroke: var(--ink-dim); stroke-width: 1.4; fill: none; flex-shrink: 0; }
html[data-lang="ar"] .contact-row svg { transform: scaleX(-1); }

.contact-card .send {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  color: #fff; border: none; background: transparent;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
html[data-lang="ar"] .contact-card .send {
  font-family: var(--ar); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600;
}
.contact-card .send::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(157,2,8,0.32);
  backdrop-filter: blur(14px) url(#cyber-glass) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.9),
    inset -2px -2px 0px -2px rgba(255,255,255,0.8),
    inset -3px -8px 1px -6px rgba(255,255,255,0.6),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 4px 14px rgba(157,2,8,0.30),
    0px 1px 4px rgba(0,0,0,0.15);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.contact-card .send:hover { transform: scale(1.04); }
.contact-card .send:hover::before { background: rgba(157,2,8,0.48); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 1.8px 3px 0px -2px rgba(255,255,255,0.9), inset -2px -2px 0px -2px rgba(255,255,255,0.8), inset -3px -8px 1px -6px rgba(255,255,255,0.6), inset -0.3px -1px 4px 0px rgba(0,0,0,0.12), inset 0px 3px 4px -2px rgba(0,0,0,0.18), 0px 8px 28px rgba(157,2,8,0.52), 0px 1px 4px rgba(0,0,0,0.15); }
.contact-card .send:active { transform: scale(0.96); }
.contact-card .send svg { width: 14px; height: 14px; }
html[data-lang="ar"] .contact-card .send svg { transform: scaleX(-1); }

/* ─── footer ─────────────────────────────────────── */
footer {
  position: relative; z-index: 2;
  padding: 44px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
html[data-lang="ar"] footer {
  font-family: var(--ar); letter-spacing: 0; text-transform: none; font-size: 13px;
}
footer .left { display: flex; gap: 16px; align-items: center; }

/* ═══════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════ */
#intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, #810100 0%, #5a0006 70%, #2a0004 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 4vh, 56px);
  overflow: hidden;
  transition: opacity 0.8s ease;
  contain: layout style;
  will-change: opacity;
}
#intro-overlay::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#intro-overlay .i-corner {
  position: absolute; font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); direction: ltr;
  opacity: 0; animation: i-corner-in 0.8s ease 0.2s forwards;
}
#intro-overlay .i-corner.tl { top: 22px; left: 22px; }
#intro-overlay .i-corner.tr { top: 22px; right: 22px; text-align: right; }
#intro-overlay .i-corner.bl { bottom: 22px; left: 22px; }
#intro-overlay .i-corner.br { bottom: 22px; right: 22px; text-align: right; }
@keyframes i-corner-in { to { opacity: 0.55; } }

#intro-overlay .i-logo {
  position: relative;
  width: clamp(120px, 16vw, 200px);
  aspect-ratio: 230 / 260;
  filter: drop-shadow(0 8px 32px rgba(157, 2, 8, 0.35));
}
#intro-overlay .i-logo svg {
  width: 100%; height: 100%; display: block; overflow: visible;
}
#intro-overlay .i-logo svg path {
  fill: none; stroke: #fff; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  will-change: stroke-dashoffset, fill;
}
#intro-overlay .i-logo svg path:nth-child(1) {
  stroke-dasharray: 560; stroke-dashoffset: 560;
  animation:
    i-draw 1.4s cubic-bezier(0.65,0,0.35,1) 0.4s forwards,
    i-fill-stroke 0.8s ease 4.6s forwards;
}
#intro-overlay .i-logo svg path:nth-child(2) {
  stroke-dasharray: 560; stroke-dashoffset: 560;
  animation:
    i-draw 1.4s cubic-bezier(0.65,0,0.35,1) 1.4s forwards,
    i-fill-stroke 0.8s ease 4.6s forwards;
}
#intro-overlay .i-logo svg path:nth-child(3) {
  stroke-dasharray: 610; stroke-dashoffset: 610;
  animation:
    i-draw 1.7s cubic-bezier(0.65,0,0.35,1) 2.5s forwards,
    i-fill-stroke 0.8s ease 4.6s forwards;
}
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fill-stroke {
  to { fill: #fff; }
}

#intro-overlay .i-titles {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
#intro-overlay .i-title-ar {
  font-family: "Tajawal", "SF Arabic", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; direction: rtl;
  font-size: clamp(20px, 3.2vw, 46px); font-weight: 900;
  color: rgba(255,255,255,0.98); line-height: 1.1; letter-spacing: 0.01em; margin: 0;
  opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(14px);
  will-change: opacity, transform, filter;
  animation: i-blur-ar 1.0s cubic-bezier(0.2,0.8,0.2,1) 4.8s forwards;
}
#intro-overlay .i-title-en {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; direction: ltr;
  font-size: clamp(12px, 2vw, 28px); font-weight: 600;
  color: rgba(255,255,255,0.88); line-height: 1.1; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0;
  opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(14px);
  will-change: opacity, transform, filter;
  animation: i-blur-en 1.0s cubic-bezier(0.2,0.8,0.2,1) 5.2s forwards;
}
@keyframes i-blur-ar {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(14px); }
  60%  { opacity: 0.88; filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}
@keyframes i-blur-en {
  0%   { opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(14px); }
  60%  { opacity: 0.88; filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}
#intro-overlay .i-divider {
  width: clamp(60px, 8vw, 120px); height: 1px;
  background: rgba(255,255,255,0.4); transform: scaleX(0); transform-origin: center;
  animation: i-divider 0.6s cubic-bezier(0.7,0,0.3,1) 6.4s forwards;
}
@keyframes i-divider { to { transform: scaleX(1); } }
#intro-overlay .i-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace; font-size: clamp(10px,1vw,11.5px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); direction: ltr;
  opacity: 0; animation: i-meta 0.7s ease 6.6s forwards;
}
#intro-overlay .i-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 12px rgba(255,255,255,0.55);
  animation: i-pulse 2.2s ease-in-out 7.0s infinite;
}
@keyframes i-meta { 0% { opacity:0; transform:translateY(6px); } 100% { opacity:0.85; transform:translateY(0); } }
@keyframes i-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.75); } }
#intro-overlay .i-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,0.10);
}
#intro-overlay .i-progress .fill {
  height: 100%; width: 0%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 16px rgba(255,255,255,0.5);
  animation: i-prog 7.5s cubic-bezier(0.65,0,0.35,1) 0.4s forwards;
}
@keyframes i-prog { 0% { width:0%; } 100% { width:100%; } }
#intro-overlay .i-blackin {
  position: absolute; inset: 0; background: #000; pointer-events: none;
  animation: i-blackin 0.6s ease forwards;
}
@keyframes i-blackin { 0% { opacity:1; } 100% { opacity:0; visibility:hidden; } }

/* ─── lang flash overlay ─────────────────────────── */
#lang-flash {
  position: fixed; inset: 0; z-index: 9000;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, #810100 0%, #5a0006 70%, #2a0004 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
  will-change: opacity;
}
#lang-flash.lf-show { opacity: 1; }
#lang-flash.lf-hide  { opacity: 0; }

.lf-svg {
  width: clamp(90px, 11vw, 140px);
  overflow: visible; display: block;
}
.lf-p {
  fill: none; stroke: #fff; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.lf-p1 { stroke-dasharray: 560; stroke-dashoffset: 560; }
.lf-p2 { stroke-dasharray: 560; stroke-dashoffset: 560; }
.lf-p3 { stroke-dasharray: 610; stroke-dashoffset: 610; }

.lf-show .lf-p1 { animation: lf-draw 0.42s cubic-bezier(0.65,0,0.35,1) 0ms   forwards; }
.lf-show .lf-p2 { animation: lf-draw 0.42s cubic-bezier(0.65,0,0.35,1) 100ms  forwards; }
.lf-show .lf-p3 { animation: lf-draw 0.50s cubic-bezier(0.65,0,0.35,1) 190ms  forwards; }
@keyframes lf-draw { to { stroke-dashoffset: 0; } }

.lf-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); direction: ltr;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.55s, transform 0.3s ease 0.55s;
}
.lf-show .lf-label { opacity: 1; transform: translateY(0); }

/* ─── Companies we secured — full grid of bug-bounty disclosures ─── */
.secured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .secured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .secured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .secured-grid { grid-template-columns: 1fr; } }

.secured-tile {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106, 4, 15, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(20, 6, 14, 0.55) 0%, rgba(8, 2, 12, 0.85) 100%);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  min-height: 200px;
  transition: border-color .3s ease, transform .35s ease, box-shadow .35s ease;
}
.secured-tile::before {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff3b4a;
  box-shadow: 0 0 10px rgba(255, 59, 74, 0.8);
  animation: secured-pulse 2.4s ease-in-out infinite;
}
.secured-tile:hover {
  border-color: rgba(157, 2, 8, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(157, 2, 8, 0.2);
}
.secured-tile .secured-logo {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
  margin-bottom: 18px;
}
.secured-tile .secured-logo img {
  max-width: 75%;
  max-height: 56px;
  width: auto; height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity .3s ease, transform .35s ease;
}
.secured-tile:hover .secured-logo img { opacity: 1; transform: scale(1.04); }

.secured-tile .secured-info { text-align: center; }
.secured-tile .name {
  font-family: var(--en);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.97);
  margin: 0 0 6px;
  line-height: 1.25;
}
.secured-tile .vuln {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
html[data-lang="ar"] .secured-tile .vuln { font-family: var(--ar); font-size: 12px; letter-spacing: 0; }

@keyframes secured-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ─── Partner logos as <img> (replaces inline SVG) ─── */
.partner-item .p-icon { width: 56px; height: 40px; padding: 6px; background: transparent; border: none; }
.partner-item .p-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity .25s ease;
}
.partner-item:hover .p-icon img { opacity: 1; }

.partner-item.partner-more {
  gap: 8px;
}
.partner-item.partner-more .p-more-num {
  font-family: var(--mono);
  font-size: 18px; font-weight: 600;
  color: #ff5868;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(255, 88, 104, 0.5);
}

/* ─── Training program CTA section ─── */
.training {
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(157, 2, 8, 0.22), transparent 55%),
    radial-gradient(140% 120% at 100% 100%, rgba(106, 4, 15, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(20, 6, 14, 0.7) 0%, rgba(8, 2, 12, 0.88) 100%);
  padding: 56px clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .training { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
}
.training::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 90% 50%, rgba(157, 2, 8, 0.12), transparent 70%);
  pointer-events: none;
}
.training-copy { position: relative; z-index: 1; }
.training-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  direction: ltr;
}
html[data-lang="ar"] .training-eyebrow { font-family: var(--ar); letter-spacing: 0.02em; direction: rtl; font-size: 13px; text-transform: none; }
.training-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff3b4a;
  box-shadow: 0 0 12px rgba(255, 59, 74, 0.8);
  animation: secured-pulse 2s ease-in-out infinite;
}
.training h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
html[data-lang="ar"] .training h3 { font-family: var(--ar); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.training p {
  margin: 0 0 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.7;
}
html[data-lang="ar"] .training p { font-family: var(--ar); font-size: 16px; }
.training-cta {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
}
.training-cta .btn-train {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9d0208 0%, #6a040f 100%);
  border: 1px solid rgba(255, 88, 104, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 36px rgba(157, 2, 8, 0.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
html[data-lang="ar"] .training-cta .btn-train { font-family: var(--ar); font-weight: 700; }
.training-cta .btn-train:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(157, 2, 8, 0.5);
  border-color: rgba(255, 88, 104, 0.7);
}
.training-cta .btn-train svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
html[data-lang="ar"] .training-cta .btn-train svg { transform: scaleX(-1); }
.training-cta .btn-train:hover svg { transform: translateX(4px); }
html[data-lang="ar"] .training-cta .btn-train:hover svg { transform: scaleX(-1) translateX(4px); }
.training-cta .train-host {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  direction: ltr;
}
.training-cta .train-host .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
