/* =========================================================
   Fikra Code — main stylesheet
   ========================================================= */
:root {
  --bg: #07070D;
  --bg-2: #0D0E18;
  --bg-3: #141527;
  --ink: #F4F6FF;
  --muted: #8A8FA8;
  --line: rgba(255, 255, 255, .08);
  --a1: #8F7BFF;
  --a2: #C77DFF;
  --cyan: #5EE7F0;
  --pink: #FF7AC6;
  --amber: #FFC35C;
  --grad: linear-gradient(100deg, var(--a1), var(--a2));
  /* Latin glyphs use the first font, Arabic glyphs fall through to the second */
  --f-head: "Space Grotesk", "Alexandria", system-ui, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-ar: "Alexandria", sans-serif;
  --pad: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* no CSS smooth scroll: it breaks ScrollTrigger measurements; anchors scroll from JS */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: clip;   /* clip, not hidden: hidden would make body a scroll box and break sticky panels */
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 600; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 5.5vw, 72px); line-height: 1.02; }
p { margin: 0; }
::selection { background: var(--a1); color: #fff; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.ar { font-family: var(--f-ar); }
.eyebrow {
  font: 500 12px/1 var(--f-head);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--a1); box-shadow: 0 0 12px var(--a1);
  animation: blinkDot 1.6s infinite;
}
@keyframes blinkDot { 50% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font: 600 15px/1 var(--f-head);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { padding: 11px 20px; font-size: 13px; }

/* =========================================================
   INTRO LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 65%);
  opacity: 0;
}
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.loader__logo { width: clamp(96px, 16vw, 150px); height: auto; overflow: visible; }
.lg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lg-pulse { stroke-dasharray: .06 1; stroke-dashoffset: .06; opacity: 0; }
.loader__word {
  margin-top: 30px;
  display: flex;
  font: 600 clamp(20px, 3vw, 30px)/1 var(--f-head);
  letter-spacing: .32em;
  overflow: hidden;
  padding-bottom: 4px;
}
.lw { display: inline-block; transform: translateY(110%); }
.lw--gap { width: .5em; }
.lw--c { color: var(--a2); }
.loader__tag {
  margin-top: 16px;
  font: 400 14px/1 var(--f-head);
  letter-spacing: .1em;
  color: var(--muted);
  opacity: 0;
}
.loader__tag .ar { color: var(--ink); font-size: 16px; }
.loader__count {
  position: absolute; inset-inline-end: var(--pad); bottom: 36px;
  font: 500 14px/1 var(--f-head);
  letter-spacing: .1em;
  color: var(--muted);
}

/* =========================================================
   CURSOR + PROGRESS
   ========================================================= */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--ink); }
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s, background .35s;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; border-color: var(--a1); background: rgba(143,123,255,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress {
  position: fixed; right: 22px; top: 50%;
  width: 1px; height: 30vh;
  transform: translateY(-50%);
  background: var(--line);
  z-index: 40;
}
.progress__bar { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.progress__dot {
  position: absolute; left: 50%; top: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--a1);
}
@media (max-width: 700px) { .progress { display: none; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(7,7,13,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand__mark { width: 26px; height: 40px; overflow: visible; }
.brand__name { font: 500 19px/1 var(--f-head); letter-spacing: -.01em; }
.brand__name b { font-weight: 700; color: var(--a2); }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative;
  font: 500 13px/1 var(--f-head);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; }
.nav > * { opacity: 0; }
body.is-ready .nav > * { opacity: 1; transition: opacity .6s; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn--sm { display: none; }
  .nav__burger {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.06);
    cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 26px;
    position: fixed; inset: 0; z-index: -1;
    padding: 120px var(--pad);
    background: var(--bg);
  }
  .nav.is-open .nav__links a { font-size: 26px; color: var(--ink); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 100px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax;
  right: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(143,123,255,.22), transparent 60%);
  pointer-events: none;
}
.hero__content { position: relative; max-width: 1100px; }
.hero__title {
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .split { display: inline-block; }
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__title em { font-style: normal; }
.hero__sub { max-width: 540px; margin-top: 30px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__eyebrow, .hero__sub, .hero__cta { opacity: 0; transform: translateY(20px); }
.hero__scroll {
  position: absolute; inset-inline-start: var(--pad); bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--a1);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* =========================================================
   WHO WE ARE — the idea bulb lights up as you scroll
   ========================================================= */
.about {
  position: relative; z-index: 1;
  background: var(--bg);
  min-height: 100svh;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5vw;
  padding: 90px var(--pad) 30px;
  overflow: hidden;
}
.about__visual { position: relative; display: grid; place-items: center; }
.bulb { height: min(66vh, 520px); width: auto; max-width: 100%; overflow: visible; }
.bulb__glow { opacity: 0; }
.bulb__glass, .bulb__wires path, .bulb__rays path, .bulb__traces path, .fil { stroke-dasharray: 1; stroke-dashoffset: 1; }
.bulb__shine, .bulb__base { opacity: 0; }
.bulb__nodes { opacity: 0; }
.bulb__filament.is-lit { filter: drop-shadow(0 0 6px #C77DFF) drop-shadow(0 0 18px rgba(143,123,255,.8)); }
.bulb__filament.is-lit .fil { animation: flicker 3.2s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .55; } 49% { opacity: 1; } 51% { opacity: .7; } 52% { opacity: 1; } }
.manifesto__text {
  font: 500 clamp(22px, 2.6vw, 40px)/1.4 var(--f-head);
  letter-spacing: -.02em;
}
.manifesto__text .w { opacity: .12; display: inline-block; }
.manifesto__text .w.hl { color: var(--a2); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.value {
  position: relative;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(143,123,255,.12), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.value::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: var(--from, left);
  transition: transform .8s var(--ease);
}
.value.is-in::before { transform: scaleX(1); }
.value span { font: 500 12px/1 var(--f-head); color: var(--a2); letter-spacing: .2em; }
.value h4 { font-size: 22px; margin: 12px 0 6px; }
.value p { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; padding-top: 90px; gap: 20px; align-content: center; }
  .bulb { width: min(240px, 60vw); }
  .values { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .value { padding: 14px 16px; }
  .value p { display: none; }
  .value h4 { margin: 6px 0 0; font-size: 18px; }
}

/* =========================================================
   WHAT WE BRING — robot projects hologram cards
   ========================================================= */
.stats {
  position: relative;
  padding: 14vh var(--pad) 18vh;
  text-align: center;
  overflow: hidden;
  perspective: 1200px;
}
.stats__floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(143,123,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,123,255,.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floorMove 3s linear infinite;
  opacity: .7;
  pointer-events: none;
}
@keyframes floorMove { to { background-position: 0 64px, 0 0; } }
.stats__head { width: min(280px, 58vw); margin: 0 auto; position: relative; z-index: 2; }
.stats__head svg { width: 100%; overflow: visible; display: block; }
/* eyes start closed: set from JS so GSAP owns the transform */
.stats__tip { animation: tip 1.4s ease-in-out infinite; }
.stats__beam {
  position: absolute; left: 50%; top: calc(14vh + min(150px, 30vw));
  width: min(1300px, 170vw); height: 1000px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(199,125,255,.32), rgba(143,123,255,.06) 55%, transparent 80%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
}
.stats__intro { position: relative; margin-top: 50px; }
.stats__intro .eyebrow { justify-content: center; }
.stats__title { font-size: clamp(32px, 5vw, 66px); max-width: 900px; margin: 0 auto; }
.stats__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1180px; margin: 70px auto 0;
  transform-style: preserve-3d;
}
.holo {
  position: relative;
  padding: 30px 20px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(143,123,255,.14), rgba(13,14,24,.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(199,125,255,.22), 0 30px 60px -30px rgba(143,123,255,.5);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.holo::after {   /* scanning line */
  content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(to bottom, transparent, rgba(199,125,255,.12), transparent);
  animation: scanline 4s linear infinite;
  pointer-events: none;
}
.holo:nth-child(2)::after { animation-delay: -1s; }
.holo:nth-child(3)::after { animation-delay: -2s; }
.holo:nth-child(4)::after { animation-delay: -3s; }
@keyframes scanline { to { top: 140%; } }
.holo__ring { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; }
.holo__ring > svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 6; }
.ring-fg { fill: none; stroke: #C77DFF; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 0 6px rgba(199,125,255,.8)); }
.holo__icon {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px;
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.holo__num { display: flex; justify-content: center; align-items: baseline; gap: 2px; unicode-bidi: isolate; }
.holo__num b { font: 600 clamp(40px, 4.4vw, 62px)/1 var(--f-head); letter-spacing: -.04em; }
.holo__num span { font: 500 clamp(22px, 2.4vw, 32px)/1 var(--f-head); color: var(--a2); }
.holo h4 { font-size: 17px; margin-top: 12px; }
.holo p { margin-top: 6px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .holo__ring { width: 86px; height: 86px; } .holo__icon { width: 32px; height: 32px; } }

/* =========================================================
   SERVICES — stacked full-screen panels
   ========================================================= */
.services__head { padding: 10vh var(--pad) 8vh; }
.svc {
  --acc: var(--a1);
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4vw;
  padding: 100px var(--pad) 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  transform-origin: center top;
}
.svc::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 75% 55%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.svc[data-accent="cyan"]   { --acc: var(--cyan); }
.svc[data-accent="blue"]   { --acc: var(--a1); background: #0C0D1A; }
.svc[data-accent="violet"] { --acc: var(--a2); background: #0E0C1A; }
.svc[data-accent="pink"]   { --acc: var(--pink); background: #120C17; }
.svc[data-accent="amber"]  { --acc: var(--amber); background: #14110A; }
.svc__text { position: relative; z-index: 1; }
.svc__num {
  display: block;
  font: 500 14px/1 var(--f-head); letter-spacing: .25em;
  color: var(--acc);
  margin-bottom: 26px;
}
.svc h3 { font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -.035em; }
.svc p { margin-top: 24px; max-width: 470px; color: var(--muted); font-size: 17px; }
.tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 9px 16px; border-radius: 999px;
  font: 500 13px/1 var(--f-head);
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(255,255,255,.03);
}
.svc__scene { position: relative; z-index: 1; width: 100%; }
.svc__scene svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; align-content: center; padding-top: 90px; gap: 30px; border-radius: 26px 26px 0 0; }
  .svc__scene { order: -1; max-width: 520px; margin: 0 auto; }
  .svc p { font-size: 15px; margin-top: 14px; }
  .tags { margin-top: 20px; }
}

/* =========================================================
   ROBOTS — shared parts & idle motion
   ========================================================= */
.bot-body { animation: bob 2.8s ease-in-out infinite; }
.bot--b .bot-body { animation-delay: -1.4s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bot-shadow { animation: shadow 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bot--b .bot-shadow { animation-delay: -1.4s; }
@keyframes shadow { 50% { transform: scaleX(.86); opacity: .6; } }
.bot-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.bot--b .bot-eye { animation-delay: -2s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.bot-tip { animation: tip 1.4s ease-in-out infinite; }
@keyframes tip { 50% { opacity: .35; } }
/* head and arms pivot around points given inline in robot-space units */
.bot-head { transform-box: view-box; animation: tilt 5s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 60% { transform: rotate(4deg); } }
.bot-arm { transform-box: view-box; transform: rotate(var(--r, 0deg)); }

/* arm poses */
.arm-type    { animation: type .32s ease-in-out infinite alternate; }
.arm-type.d  { animation-delay: -.16s; }
@keyframes type { from { transform: rotate(var(--r, 0deg)); } to { transform: rotate(calc(var(--r, 0deg) + 9deg)); } }
.arm-wave    { animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(var(--r, 150deg)); } 50% { transform: rotate(calc(var(--r, 150deg) + 25deg)); } }
.arm-hold    { animation: hold 2.8s ease-in-out infinite; }
@keyframes hold { 0%, 100% { transform: rotate(var(--r, 0deg)); } 50% { transform: rotate(calc(var(--r, 0deg) - 6deg)); } }
.arm-scan    { animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: rotate(var(--r, -110deg)); } 50% { transform: rotate(calc(var(--r, -110deg) - 30deg)); } }

/* ---------- scene: AI ---------- */
.nn-link { stroke-dasharray: 4 10; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.nn-node { transform-box: fill-box; transform-origin: center; animation: fire 2.4s ease-in-out infinite; }
@keyframes fire { 0%, 100% { opacity: .45; transform: scale(.85); } 40% { opacity: 1; transform: scale(1.2); } }
.holo-beam { animation: holo 3s ease-in-out infinite; }
@keyframes holo { 50% { opacity: .55; } }
.train-bar { transform-box: fill-box; transform-origin: left; animation: train 5s var(--ease) infinite; }
@keyframes train { 0% { transform: scaleX(.04); } 80%, 100% { transform: scaleX(1); } }
.brain-spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scene: Web ---------- */
.drop { transform-box: fill-box; animation: drop 7s var(--ease) infinite; opacity: 0; }
@keyframes drop {
  0% { transform: translateY(-60px); opacity: 0; }
  10%, 82% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(0); opacity: 0; }
}
.pop { transform-box: fill-box; transform-origin: center; animation: pop 7s var(--ease) infinite; opacity: 0; }
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  8%, 82% { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(1); opacity: 0; }
}
.caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.float { transform-box: fill-box; animation: float 4s ease-in-out infinite; }
.float.d { animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.lift { animation: lift 2.8s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-8px); } }

/* ---------- scene: Data ---------- */
.bar { transform-box: fill-box; transform-origin: bottom; animation: grow 6s var(--ease) infinite; }
@keyframes grow { 0% { transform: scaleY(0); } 18%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 6s var(--ease) infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.donut { transform-box: fill-box; transform-origin: center; animation: spin 10s linear infinite; }
.magnify { animation: magnify 3.2s ease-in-out infinite; }
@keyframes magnify { 50% { transform: translate(-34px, -8px); } }

/* ---------- scene: Marketing ---------- */
.wave-ring { transform-box: fill-box; transform-origin: left center; animation: ring 1.8s ease-out infinite; opacity: 0; }
.wave-ring.d1 { animation-delay: .6s; }
.wave-ring.d2 { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.rise { transform-box: fill-box; animation: rise 4s ease-out infinite; opacity: 0; }
@keyframes rise { 0% { transform: translateY(30px) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translateY(0) scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-90px) scale(.9); opacity: 0; } }
.arrow-fly { animation: arrowFly 3s var(--ease) infinite; }
@keyframes arrowFly { 0% { transform: translate(-150px, 30px); opacity: 0; } 10% { opacity: 1; } 35%, 85% { transform: translate(0, 0); opacity: 1; } 100% { opacity: 0; } }
.target-hit { transform-box: fill-box; transform-origin: center; animation: hit 3s ease-out infinite; }
@keyframes hit { 0%, 33% { transform: scale(1); } 38% { transform: scale(1.08); } 46%, 100% { transform: scale(1); } }

/* ---------- scene: Feasibility ---------- */
.stamp { transform-box: fill-box; transform-origin: center; animation: stamp 4.5s cubic-bezier(.175, .885, .32, 1.275) infinite; }
@keyframes stamp {
  0%, 18% { transform: scale(2.2) rotate(-12deg); opacity: 0; }
  26%, 82% { transform: scale(1) rotate(-8deg); opacity: 1; }
  90%, 100% { transform: scale(.9) rotate(-8deg); opacity: 0; }
}
.check-item { transform-box: fill-box; animation: checkPop 4.5s var(--ease) infinite; }
.check-item.d1 { animation-delay: .2s; }
.check-item.d2 { animation-delay: .4s; }
.check-item.d3 { animation-delay: .6s; }
@keyframes checkPop {
  0%, 12% { opacity: 0; transform: translateX(-12px); }
  22%, 85% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(0); }
}

/* scenes pause until visible to save CPU */
.svc__scene:not(.is-live) * { animation-play-state: paused !important; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 20vh var(--pad) 16vh; overflow-x: clip; }
.process__track { position: relative; margin-top: 80px; }
.process__line { width: 100%; height: 40px; display: block; }
.process__fill { stroke-dasharray: 1; stroke-dashoffset: 1; }
.process__bot {
  position: absolute; left: 0; top: -92px;
  width: 80px; height: 110px;
  transform: translateX(-50%);
}
.process__bot svg { width: 100%; height: 100%; overflow: visible; }
.steps {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.step span { font: 500 13px/1 var(--f-head); letter-spacing: .2em; color: var(--a2); }
.step h4 { font-size: 26px; margin: 16px 0 10px; }
.step p { color: var(--muted); font-size: 15px; max-width: 260px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; padding: 34px 0; border-block: 1px solid var(--line); }
.marquee__row {
  display: flex; align-items: center; gap: 40px; width: max-content;
  font: 500 clamp(28px, 4vw, 54px)/1 var(--f-head); letter-spacing: -.02em;
  animation: marquee 34s linear infinite;
}
.marquee__row span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .3s; }
.marquee__row span:hover { color: var(--ink); }
.marquee__row i { font-style: normal; color: var(--a1); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CONTACT + FOOTER
   ========================================================= */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start;
  padding: 18vh var(--pad);
}
.contact__title { font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: -.045em; margin-bottom: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; }
.form label span { font: 500 12px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .3s, background .3s;
}
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--a1); background: rgba(143,123,255,.06); }
.form__ok { grid-column: 1 / -1; color: var(--a2); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

.footer {
  position: relative;
  padding: 90px var(--pad) 28px;
  background: linear-gradient(to bottom, var(--bg), #0B0A16);
  overflow: hidden;
}
.footer::before {   /* gradient hairline on top */
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px;
  background: linear-gradient(90deg, transparent, var(--a1), var(--a2), transparent);
  opacity: .6;
}
.footer__glow {
  position: absolute; left: 50%; bottom: -30vw; width: 90vw; height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143,123,255,.22), transparent);
  pointer-events: none;
}
.footer__top {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 6vw;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__tag { margin-top: 22px; max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font: 500 clamp(20px, 2.2vw, 30px)/1 var(--f-head);
  letter-spacing: -.02em;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 6px;
  transition: background-size .5s var(--ease), color .3s;
}
.footer__mail span { color: var(--a2); transition: transform .4s var(--ease); }
.footer__mail:hover { color: var(--a2); background-size: 100% 1px; }
.footer__mail:hover span { transform: translate(3px, -3px); }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .4s var(--ease), background .3s, box-shadow .3s;
}
.socials svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { transform: translateY(-4px); background: var(--grad); box-shadow: 0 10px 24px -8px rgba(143,123,255,.7); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols div { display: grid; gap: 14px; align-content: start; }
.footer h5 { font: 500 12px/1 var(--f-head); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer__cols a, .footer__cols span { color: var(--ink); opacity: .78; font-size: 15px; width: fit-content; transition: opacity .3s, color .3s, transform .3s var(--ease); }
.footer__cols a:hover { opacity: 1; color: var(--a2); transform: translateX(4px); }
[dir="rtl"] .footer__cols a:hover { transform: translateX(-4px); }

/* giant wordmark: outline that lights up under the cursor */
.footer__mega {
  position: relative;
  margin: 70px 0 10px;
  font: 700 clamp(60px, 16.5vw, 300px)/.82 var(--f-head);
  letter-spacing: -.055em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  --mx: 50%; --my: 50%;
}
.mega__base { display: block; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); }
.mega__lit {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #F4F6FF, var(--a1) 45%, var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: radial-gradient(circle 22vw at var(--mx) var(--my), #000 0, rgba(0,0,0,.35) 45%, transparent 75%);
  mask-image: radial-gradient(circle 22vw at var(--mx) var(--my), #000 0, rgba(0,0,0,.35) 45%, transparent 75%);
}

.footer__bottom {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer__made { margin-inline-start: auto; }
.totop {
  position: relative;
  width: 48px; height: 48px; flex: none;
  border: 0; padding: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
}
.totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop__bg { fill: rgba(255,255,255,.03); stroke: var(--line); stroke-width: 1.5; }
.totop__ring { fill: none; stroke: var(--a2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.totop span { position: relative; font-size: 18px; transition: transform .4s var(--ease); }
.totop:hover span { transform: translateY(-4px); }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: 50px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-wrap: wrap; }
  .footer__made { margin-inline-start: 0; order: 3; width: 100%; }
  .totop { margin-inline-start: auto; }
}

/* =========================================================
   LANGUAGE BUTTON
   ========================================================= */
.lang {
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 600 13px/1 var(--f-head);
  transition: background .3s, box-shadow .3s;
}
.lang:hover { background: rgba(143,123,255,.18); box-shadow: inset 0 0 0 1px var(--a1); }

/* =========================================================
   RIGHT-TO-LEFT (Arabic, the default)
   Arabic letters join, so no letter-spacing and roomier lines.
   ========================================================= */
[dir="rtl"] :is(h1, h2, h3, h4, .eyebrow, .nav__links a, .hero__title, .manifesto__text, .contact__title,
  .form label span, .footer h5, .hero__scroll, .loader__tag, .holo h4) { letter-spacing: 0; }
[dir="rtl"] .hero__title { font-size: clamp(42px, 7.6vw, 116px); line-height: 1.28; }
[dir="rtl"] .hero__title .line { padding-bottom: .12em; }
[dir="rtl"] h2 { line-height: 1.32; }
[dir="rtl"] .svc h3 { line-height: 1.25; }
[dir="rtl"] .contact__title { line-height: 1.25; }
[dir="rtl"] .manifesto__text { line-height: 1.65; }
[dir="rtl"] .nav__links a { font-size: 15px; }
[dir="rtl"] .eyebrow { font-size: 14px; }
[dir="rtl"] .btn:hover .arr { transform: translateX(-4px); }
[dir="rtl"] .value { --from: right; }
[dir="rtl"] .process__line { transform: scaleX(-1); }
[dir="rtl"] .process__bot { left: 100%; }
[dir="rtl"] .progress { right: auto; left: 22px; }
/* the brand is forced LTR, so its logical margin would point the wrong way */
[dir="rtl"] .brand { margin-inline-end: 0; margin-left: auto; }
/* SVG scenes hold code and English UI text: keep them left-to-right */
.svc__scene svg, .bulb, .process__bot svg { direction: ltr; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }

}
