/* Orbition — styles. Logical properties everywhere so the Arabic (RTL) version mirrors automatically. */

:root {
  --bg: #000;
  --bg-alt: #05060a;
  --surface: #0b0c12;
  --surface-2: #14161f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f5f7;
  --muted: #9a9eab;
  --accent: #b9c4ff;
  --accent-soft: rgba(150, 165, 255, 0.14);
  --ice: #7fe3ff;
  --ok: #7be0a6;
  --err: #ff8a80;

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

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --section-pad: clamp(88px, 11vw, 150px);
}

html[lang='ar'] {
  --font-display: 'IBM Plex Sans Arabic', 'Unbounded', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
html[lang='ar'] body { line-height: 1.85; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #fff; color: #000; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir='rtl'] .i--arrow { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 400; overflow-wrap: break-word; }
h3 { font-family: var(--font-body); font-weight: 700; overflow-wrap: break-word; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; }
html[lang='ar'] h1, html[lang='ar'] h2 { letter-spacing: 0; line-height: 1.4; font-weight: 600; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .3s;
}
.btn--sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .92rem; }
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 0 40px -6px rgba(150, 165, 255, .7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); }
.btn .i--arrow { transition: transform .2s var(--ease); }
.btn:hover .i--arrow { transform: translateX(3px); }
[dir='rtl'] .btn:hover .i--arrow { transform: scaleX(-1) translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  background: rgba(0, 0, 0, .86); border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.header.is-scrolled, body.nav-open .header {
  background: rgba(0, 0, 0, .82);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); flex: none; }
.logo__mark { width: 34px; height: 34px; overflow: visible; }
.logo__word { font-family: 'Unbounded', system-ui, sans-serif; font-weight: 400; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; }

.nav { margin-inline-start: auto; display: flex; align-items: center; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__list a:hover { color: var(--text); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: .7rem; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding-inline: .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-mono); font-size: .8rem; transition: border-color .2s; }
.lang__btn:hover { border-color: rgba(255, 255, 255, .45); }
.lang__btn .i--chev { width: .95em; height: .95em; transition: transform .2s; color: var(--muted); }
.lang.is-open .i--chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 210px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: .4rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.lang.is-open .lang__menu, html:not(.js) .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .75rem; border-radius: 10px; font-size: .95rem; color: var(--muted); transition: background-color .15s, color .15s; }
.lang__menu a:hover { background: var(--surface-2); color: var(--text); }
.lang__menu a[aria-current] { color: var(--text); background: var(--surface-2); }
.lang__code { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.burger span { position: absolute; inset-inline-start: 12px; width: 16px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded='true'] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Sky & hero ---------- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; padding-block: var(--header-h) clamp(28px, 4vw, 48px); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; animation: fade-in 2.2s ease-out .05s forwards; }
.hero__media img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 42%;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(var(--zoom, 1));
  animation: kenburns 40s ease-in-out infinite alternate;
}
.hero.is-off .hero__media img { animation-play-state: paused; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 40%, rgba(0, 0, 0, .35), transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .15) 28%, rgba(0, 0, 0, .3) 58%, rgba(0, 0, 0, .86) 84%, #000 100%);
}

.hero__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: clamp(32px, 6vh, 72px) clamp(24px, 4vh, 48px); }

/* Wordmark with Earth's orbit around it */
.mark { position: relative; display: grid; place-items: center; width: min(100%, 980px); padding-block: clamp(28px, 5vw, 64px); }
.mark__word {
  position: relative; z-index: 1;
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.4rem, 9.2vw, 7.6rem); line-height: 1; letter-spacing: .16em; padding-inline-start: .16em;
  color: #fff; text-shadow: 0 0 60px rgba(185, 196, 255, .35);
  opacity: 0; filter: blur(14px); animation: word-in 1.6s var(--ease) .15s forwards;
}
/* Variant: the second "O" becomes a star (?mark=o) */
.mark__o { position: relative; display: inline-block; }
.mark__ostar { display: none; }
.mark-o .mark__canvas { display: none; }
.mark-o .mark__o { color: transparent; }
.mark-o .mark__ostar { display: block; position: absolute; left: 50%; top: 50%; width: 1.25em; height: 1.25em; transform: translate(-50%, -50%); overflow: visible; }
.mark-o .ostar__glow { animation: ostar-pulse 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.mark-o .ostar__ray { transform-origin: 0 0; animation: ostar-ray 4s ease-in-out infinite; }
.mark-o .ostar__ray--v { animation-delay: -2s; }
@keyframes ostar-pulse { 50% { opacity: .65; transform: scale(.85); } }
@keyframes ostar-ray { 50% { transform: scale(.82); } }

.mark__canvas { position: absolute; left: -8%; top: -60%; width: 116%; height: 220%; pointer-events: none; }
.mark__canvas--back { z-index: 0; }
.mark__canvas--front { z-index: 2; }

.hero__title { font-size: clamp(1.15rem, 2.1vw, 1.75rem); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; margin-top: clamp(.5rem, 2vh, 1.4rem); color: rgba(244, 245, 247, .78); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); text-wrap: balance; max-width: 30ch; }
.hero__title em { font-style: normal; color: #fff; font-weight: 400; }
html[lang='ar'] .hero__title { line-height: 1.6; }
.hero__lead { color: rgba(244, 245, 247, .74); text-shadow: 0 1px 16px rgba(0, 0, 0, .7); font-size: clamp(1rem, 1.25vw, 1.1rem); max-width: 56ch; margin-top: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

.hero__clients { text-align: center; }
.hero__clients-label { color: rgba(244, 245, 247, .6); font-size: .9rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem clamp(1.3rem, 2.6vw, 2.5rem); margin-top: 1.3rem; }
.logos img { --h: 24px; height: var(--h); width: auto; filter: brightness(0) invert(1); opacity: .5; transition: opacity .25s; }
.logos img[alt='Realized'], .logos img[alt='EZY Gaming'] { --h: 34px; }
.logos img[alt='Atelier Technology'] { --h: 36px; }
.logos img[alt='Bailsman'] { --h: 28px; }
.logos img[alt='Imnoo'], .logos img[alt='Flash'] { --h: 19px; }
.logos img[alt='American Financial Resources'] { --h: 22px; }
.logos li:hover img { opacity: 1; }
.logos__name { font-weight: 700; opacity: .6; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: rgba(0, 0, 0, .7); }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise { display: grid; gap: .3rem; align-content: start; padding: 1.8rem 1.5rem 1.8rem 0; padding-inline: 0 1.5rem; }
.promise + .promise { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
.promise strong { font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; }
.promise span { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * .65); }
.section--alt { background: rgba(5, 6, 10, .82); border-block: 1px solid var(--line); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 40px); }
.split__cta { margin-top: 2rem; }
.why__head { display: flex; flex-direction: column; }
.globe {
  margin: 2.2rem 0 0; font-family: var(--font-mono); line-height: 1.2; letter-spacing: 0; white-space: pre;
  color: #dfe5ff; text-shadow: 0 0 10px rgba(150, 170, 255, .45); user-select: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 92%, transparent); mask-image: radial-gradient(closest-side, #000 92%, transparent);
}
[dir='rtl'] .globe { direction: ltr; }
.globe__cap { display: flex; justify-content: space-between; gap: 1rem; max-width: 460px; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; }
.head-split .lead { margin-top: 0; }

/* Numbered rows (services, why) */
.row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding-block: 1.8rem; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__num { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); padding-top: .3rem; transition: color .25s; }
.row:hover .row__num { color: var(--text); }
.row h3 { font-size: 1.28rem; }
.row p { color: var(--muted); margin-top: .5rem; max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
[dir='rtl'] .tags { justify-content: flex-end; }
.tags li { font-family: var(--font-mono); font-size: .72rem; padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Video band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; border-block: 1px solid var(--line); background: #000; }
.band__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; }
.band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 26%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .78) 82%, #000 100%);
}
.band__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; padding-block: clamp(90px, 14vh, 150px) clamp(48px, 8vh, 80px); }
.band__title { font-size: clamp(1.8rem, 4.3vw, 3.7rem); font-weight: 300; line-height: 1.14; letter-spacing: -0.03em; max-width: 21ch; text-wrap: balance; }
.band__title em { font-style: normal; color: var(--accent); }
.band__title .fw { opacity: .2; transition: opacity .25s linear; }
html[lang='ar'] .band__title { line-height: 1.45; letter-spacing: 0; }
.band__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .28); }
.band__stats li { padding-top: 1.5rem; padding-inline-end: 1.5rem; }
.band__stats strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
[dir='rtl'] .band__stats strong { text-align: right; }
.band__stats span { display: block; margin-top: .8rem; color: rgba(244, 245, 247, .78); font-size: .95rem; line-height: 1.5; max-width: 26ch; }

/* ---------- Process story ---------- */
.story__head { max-width: 760px; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2rem, 4vw, 3rem); }
.story__steps { position: relative; }
.story__step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 4vh;
  opacity: .28; transition: opacity .6s var(--ease);
}
.story__step.is-active { opacity: 1; }
.story__mimg { display: none; }
.story__meta { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-family: var(--font-mono); font-size: .8rem; }
html[lang='ar'] .story__meta { font-family: var(--font-body); font-size: .92rem; }
.story__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: background-color .5s, color .5s, border-color .5s; }
.story__step.is-active .story__num { background: #fff; color: #000; border-color: #fff; }
.story__step h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin-top: 1.3rem; }
html[lang='ar'] .story__step h3 { letter-spacing: 0; line-height: 1.4; font-weight: 600; }
.story__text { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; max-width: 46ch; }
.story__points { display: grid; gap: .6rem; margin-top: 1.6rem; max-width: 46ch; }
.story__points li { position: relative; padding-inline-start: 1.6rem; line-height: 1.5; }
.story__points li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 14px; height: 1px; background: var(--accent); }

.story__visual { position: relative; }
.story__frame {
  position: sticky; top: calc(var(--header-h) + 6vh); height: min(78vh, 760px); border-radius: 28px; overflow: hidden;
  background: #05060b; border: 1px solid var(--line-strong); box-shadow: 0 60px 120px -60px rgba(110, 120, 255, .35);
}
.story__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.story__img.is-active, .story__img.is-past { clip-path: inset(0 0 0 0); }
.story__img.is-past { transition-duration: .01s; transition-delay: 1.1s; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.story__img.is-active img { transform: scale(1); }
/* Wide source artwork needs its full frame visible in the process gallery. */
.story__img[data-img="0"] img,
.story__img[data-img="1"] img { transform: scale(1); }
.story__img.is-active { z-index: 2; }
.story__frame::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 65%, rgba(0,0,0,.55)); }
.story__hud { position: absolute; z-index: 4; left: 1.4rem; bottom: 1.2rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.story__hud-sep { font-size: .35em; color: rgba(255, 255, 255, .6); margin-inline-start: .4em; letter-spacing: 0; }
.story__progress { position: absolute; z-index: 4; right: 1.4rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden; }
.story__progress span { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.8rem; }
.industry {
  padding: .85rem 1.35rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 600; font-size: clamp(.98rem, 1.4vw, 1.1rem);
  transition: background-color .25s, border-color .25s, color .25s, opacity .8s var(--ease), transform .8s var(--ease) !important;
}
.industry:hover { background: #fff; color: #000; border-color: #fff; }

/* Stack marquee */
.stack__title { text-align: center; }
.marquee { overflow: hidden; margin-top: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.stack .marquee:first-of-type { margin-top: 2.6rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { margin-right: .75rem; white-space: nowrap; font-family: var(--font-mono); font-size: .88rem; padding: .65rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(244, 245, 247, .8); }

/* FAQ */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.4rem; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.15rem); transition: color .2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: #fff; color: #000; border-color: #fff; }
.faq__item p { color: var(--muted); padding-bottom: 1.5rem; max-width: 62ch; }

/* Contact */
.contact-section { background: radial-gradient(50% 70% at 0% 100%, rgba(110, 100, 255, .14), transparent 70%), rgba(5, 6, 10, .9); border-top: 1px solid var(--line); }
[dir='rtl'] .contact-section { background: radial-gradient(50% 70% at 100% 100%, rgba(110, 100, 255, .14), transparent 70%), rgba(5, 6, 10, .9); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__meta { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.contact__meta dt { color: var(--muted); font-size: .88rem; }
.contact__meta dd { font-weight: 600; font-size: 1.2rem; margin-top: .15rem; }
.contact__meta a { transition: color .2s; }
.contact__meta a:hover { color: var(--accent); }
[dir='rtl'] .contact__meta a[dir='ltr'] { display: inline-block; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong); }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 12px; background: #000; border: 1px solid var(--line-strong); color: var(--text); transition: border-color .2s, box-shadow .2s; }
[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 158, 171, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: var(--err); }
.field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9eab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 1rem center;
}
[dir='rtl'] .field select { background-position: left 1rem center; }
.field select option { background: var(--surface); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__consent { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; }
.form__status { font-size: .93rem; color: var(--muted); }
.form__status[data-state='ok'] { color: var(--ok); }
.form__status[data-state='error'] { color: var(--err); }
.form__status a { text-decoration: underline; }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: .97rem; }
.footer__mail { display: inline-block; margin-top: 1rem; font-weight: 600; transition: color .2s; }
.footer__mail:hover { color: var(--accent); }
.footer__title { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.footer__list { display: grid; gap: .55rem; }
.footer__list--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.footer__list a { opacity: .82; font-size: .96rem; transition: color .2s, opacity .2s; }
.footer__list a:hover, .footer__list a[aria-current] { opacity: 1; color: #fff; }
.footer__list a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer__bottom a:hover { color: var(--text); }
.footer__credit { opacity: .7; }

/* ---------- Motion ---------- */
.load { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Headings rise word by word */
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
h2 .w > span { display: inline-block; }
.js .reveal h2 .w > span, .js h2.reveal .w > span { transform: translateY(115%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 50ms + 80ms); }
.js .reveal.is-visible h2 .w > span, .js h2.reveal.is-visible .w > span { transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; filter: blur(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-dim { to { opacity: .35; } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes flicker { to { transform: scaleY(1.35); } }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
@keyframes drift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.2) rotate(9deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 1.4rem; }
  .header__inner { gap: 1.2rem; }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .header__actions { margin-inline-start: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    background: rgba(0, 0, 0, .97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding-block: .9rem; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__cta { display: inline-flex; }
  .header__cta { display: none; }

  .promises { grid-template-columns: 1fr 1fr; }
  .band__stats { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .promise:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .promise:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .contact { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { display: none; }
  .story__step { min-height: 0; opacity: 1; padding-block: 0 3.5rem; }
  .story__mimg { display: block; margin: 0 0 1.4rem; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); }
  .story__mimg img { width: 100%; height: 100%; object-fit: cover; }
  .globe { margin-inline: auto; }
  .split__head { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .head-split { grid-template-columns: 1fr; }
  .head-split .lead { margin-top: .3rem; }
  .form { grid-template-columns: 1fr; }
  .row { gap: 1rem; }
  .process__head { align-items: flex-start; }
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
  .mark__word { letter-spacing: .1em; padding-inline-start: .1em; }
}

@media (max-width: 480px) {
  .lang__btn .i--chev, .lang__btn .i:first-child { display: none; }
  .lang__btn { padding-inline: .7rem; }
  .logo__word { font-size: .8rem; letter-spacing: .16em; }
  .hero__actions .btn { width: 100%; }
  .logos { gap: 1rem 1.4rem; }
  .logos img { height: calc(var(--h) * .8); }
  .promises { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding-inline: 0; border-inline-start: 0; padding-block: 1.1rem; }
  .promise + .promise { border-top: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Case studies (hidden until src/cases.json has approved entries) ---------- */
.logos__btn { display: inline-flex; align-items: center; padding: .35rem .2rem; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 8px; }
.logos__btn img { opacity: .62; }
.logos__btn:hover img, .logos__btn:focus-visible img { opacity: 1; }
.logos__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.cases__grid { list-style: none; margin: clamp(2rem, 4vw, 3.2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.case-card__btn {
  position: relative;
  inline-size: 100%; block-size: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem;
  padding: clamp(1.3rem, 2.4vw, 1.8rem); text-align: start; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.case-card__btn:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); transform: translateY(-2px); }
.case-card__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.case-card__logo img { block-size: 26px; inline-size: auto; filter: brightness(0) invert(1); opacity: .75; }
.case-card__logo + .case-card__client, .case-modal__client img + span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case-card__client { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.case-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.35; }
.case-card__sum { color: var(--muted); font-size: .97rem; }
.case-card__more { margin-block-start: auto; padding-block-start: .4rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .95rem; }
[dir='rtl'] .case-card__more .i--arrow { transform: scaleX(-1); }

html.modal-open { overflow: hidden; }
.case-modal { padding: 0; border: 0; background: transparent; color: var(--text); inline-size: min(880px, calc(100% - 32px)); max-inline-size: none; max-block-size: calc(100svh - 48px); overflow: visible; }
.case-modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.case-modal[open] { animation: case-in .35s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.case-modal__inner {
  position: relative; max-block-size: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 120px -20px rgba(0, 0, 0, .9);
}
.case-modal__close {
  position: sticky; inset-block-start: 0; float: inline-end; margin-inline-start: 1rem; z-index: 1;
  inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.case-modal__close:hover { border-color: rgba(255, 255, 255, .5); }
.case-modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-modal__client { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-family: var(--font-mono); font-size: .85rem; margin: 0; }
.case-modal__client img { block-size: 24px; inline-size: auto; filter: brightness(0) invert(1); opacity: .8; }
.case-modal__title { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.25; margin-block: .8rem 0; }
.case-modal__shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-block: 1.6rem .4rem; padding-block-end: .4rem; }
.case-modal__shots { align-items: start; }
.case-modal__shots figure { margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.case-modal__shots img { inline-size: 100%; block-size: 100%; object-fit: contain; display: block; }
.case-modal__shots:has(figure:only-child) { grid-auto-columns: 100%; }
.case__part { margin-block-start: 1.6rem; }
.case__part h3 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--accent); margin: 0 0 .5rem; }
.case__part p { margin: 0 0 .7rem; color: rgba(244, 245, 247, .86); }
.case-modal__quote { margin: 0; padding-inline-start: 1.1rem; border-inline-start: 2px solid var(--accent); }
.case-modal__quote p { font-size: 1.08rem; color: var(--text); }
.case-modal__quote footer { color: var(--muted); font-size: .92rem; }

@media (max-width: 720px) {
  .case-modal { inline-size: 100%; max-block-size: 100svh; margin: auto 0 0; }
  .case-modal__inner { max-block-size: 92svh; border-radius: var(--radius) var(--radius) 0 0; border-block-end: 0; padding: 1.3rem 1.1rem 2rem; }
  .case-modal__shots { grid-auto-columns: 88%; }
}
html[lang='ar'] .case__part h3, html[lang='ar'] .case-card__client { font-family: var(--font-body); letter-spacing: 0; font-size: .9rem; font-weight: 600; }

/* ---------- Scrollbars (page, case dialog, screenshot gallery, textarea, menus) ---------- */
/* Firefox and Chrome 121+: scrollbar-color is inherited, so this covers every scrolling element. */
html { scrollbar-color: rgba(185, 196, 255, .28) transparent; scrollbar-width: thin; }
html:hover { scrollbar-color: rgba(185, 196, 255, .38) transparent; }
/* Safari and older Chromium */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(185, 196, 255, .26); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(185, 196, 255, .45); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.case-modal__inner, .case-modal__shots { scrollbar-color: rgba(185, 196, 255, .3) rgba(255, 255, 255, .03); }
