/* =============================================================
   Q MADAR — Doha 3D experience
   ============================================================= */
:root {
  --ink: #07080d;
  --ink-2: #0e1018;
  --paper: #f7f1ec;
  --muted: rgba(247, 241, 236, 0.66);
  --faint: rgba(247, 241, 236, 0.14);
  --maroon: #8a1538;
  --maroon-2: #b0244f;
  --rose: #e7a9bc;
  --gold: #e8c79c;
  --glass: rgba(12, 13, 20, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "SUSE", "Noto Kufi Arabic", system-ui, sans-serif;
  --serif: "Instrument Serif", "Amiri", Georgia, serif;
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}
:root[lang="ar"] { --display: "Noto Kufi Arabic", "SUSE", system-ui, sans-serif; --serif: "Amiri", "Instrument Serif", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; color: var(--paper); background: var(--ink);
  font-family: var(--display); font-weight: 400; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:root[lang="ar"] em { font-style: normal; font-weight: 700; color: var(--rose); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--maroon); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 16px; }

/* ---------- world layers ---------- */
/* real photo backdrop — drop doha-day.jpg / doha-night.jpg into /assets to replace the defaults */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.backdrop__move { position: absolute; inset: -4%; will-change: transform; }
.backdrop__img { position: absolute; inset: 0; background-size: cover; background-position: 50% 58%; transform-origin: 46% 60%; will-change: transform, opacity; transition: opacity 1.4s var(--ease); }
.backdrop__img--night { opacity: 0; }
:root[data-theme="dark"] .backdrop__img--night { opacity: 1; }
.backdrop__shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(7,8,16,.58), rgba(7,8,16,.38) 45%, rgba(7,8,16,.6)); will-change: opacity; }
[data-theme="light"] .backdrop__shade { background: linear-gradient(180deg, rgba(240,245,250,.55), rgba(240,245,250,.3) 45%, rgba(240,245,250,.55)); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4,5,9,.55) 100%),
    linear-gradient(180deg, rgba(4,5,9,.35) 0%, transparent 18%, transparent 70%, rgba(4,5,9,.4) 100%); }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

main, .footer { position: relative; z-index: 2; }

/* ---------- veil: intro + page transitions ---------- */
.veil { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; align-content: center; gap: 0; pointer-events: none; }
.veil__panel { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, #2a0d1b 0%, #0d0b12 55%, #07070b 100%); clip-path: inset(0 0 0 0); will-change: clip-path; }
.veil__panel::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e8c79c' stroke-width='.8'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3C/g%3E%3C/svg%3E"); }
.veil__mark { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 26px; }
.veil__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.veil__ring circle { fill: none; stroke: #e8c79c; stroke-width: 1; stroke-dasharray: 352; stroke-dashoffset: 352; }
.veil__logo { position: relative; width: 64px; height: 64px; opacity: 0; filter: drop-shadow(0 8px 30px rgba(176,36,79,.6)); }
.veil__word { position: relative; display: flex; justify-content: center; overflow: hidden; color: #f7f1ec; font-weight: 600; font-size: 15px; letter-spacing: .55em; padding-inline-start: .55em; direction: ltr; }
.veil__word span { display: inline-block; transform: translateY(110%); }
.veil__line { position: relative; width: 140px; height: 1px; margin: 18px auto 14px; background: rgba(232,199,156,.15); overflow: hidden; }
.veil__line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #e8c79c, transparent); transform: scaleX(0); }
.veil__sub { position: relative; text-align: center; color: rgba(247,241,236,.55); font-size: 10px; letter-spacing: .32em; opacity: 0; }
[lang="ar"] .veil__sub { letter-spacing: 0; font-size: 12px; }
.veil-quick .veil__logo { opacity: 1; }
.veil-quick .veil__ring circle { stroke-dashoffset: 0; }
.veil-quick .veil__word span { transform: none; }
.veil-quick .veil__sub { opacity: 1; }
.veil-quick .veil__line i { transform: none; }
.veil.is-gone { visibility: hidden; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(10, 11, 18, .38); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .6s var(--ease), background .4s; }
[dir="rtl"] .nav { padding: 10px 18px 10px 10px; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .18em; font-size: 13px; }
.nav__brand img { width: 34px; height: 34px; }
.nav__brand small { display: block; font-size: 8.5px; letter-spacing: .26em; font-weight: 500; color: var(--muted); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 9px 14px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--paper); background: rgba(255,255,255,.07); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__lang { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--faint); font-size: 13px; }
.nav__lang i { width: 1px; height: 12px; background: var(--faint); }
.nav__lang .ar { font-family: "Noto Kufi Arabic"; opacity: .5; }
[lang="ar"] .nav__lang .ar { opacity: 1; } [lang="ar"] .nav__lang .en { opacity: .5; }
.nav__cta { padding: 11px 20px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--faint); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 40; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 16px; pointer-events: none;
  opacity: 0; transition: opacity .8s; }
[dir="rtl"] .hud { left: auto; right: var(--gutter); }
body.is-ready .hud { opacity: 1; }
.hud__index { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; }
.hud__index span { font-size: 14px; color: var(--muted); }
.hud__text small { display: block; direction: ltr; unicode-bidi: isolate; text-align: start; font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.hud__text strong { display: block; font-weight: 500; font-size: 14px; letter-spacing: .04em; transition: opacity .4s; }
.hud__bar { width: 80px; height: 1px; background: var(--faint); }
.hud__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.hud.is-swap strong, .hud.is-swap small { opacity: 0; }
.scroll-rail { position: fixed; z-index: 40; right: 18px; top: 50%; width: 2px; height: 120px; transform: translateY(-50%); background: var(--faint); border-radius: 2px; }
[dir="rtl"] .scroll-rail { right: auto; left: 18px; }
.scroll-rail i { display: block; width: 100%; height: 0; background: linear-gradient(var(--gold), var(--maroon-2)); border-radius: 2px; }

/* ---------- shared ---------- */
section { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 11px; letter-spacing: .28em; font-weight: 600; color: var(--gold); text-transform: uppercase; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 13px; }
.kicker i { width: 28px; height: 1px; background: currentColor; }
h2 { font-weight: 500; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 24px; }
[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
h2 em { color: var(--rose); }
p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }
.glass { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 28px;
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 99px; font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate; transition: color .4s; }
.btn svg { transition: transform .4s var(--ease); }
[dir="rtl"] .btn svg, [dir="rtl"] .prompt svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn--solid { background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); color: #fff; box-shadow: 0 18px 50px -12px rgba(176,36,79,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--solid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--solid:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--wide { width: 100%; justify-content: center; grid-column: 1 / -1; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 132px var(--gutter) 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,8,22,.45) 0%, rgba(6,8,22,.12) 42%, transparent 55%, rgba(5,7,16,.25) 78%, rgba(5,7,16,.55) 100%); }
.hero__top { display: flex; flex-direction: column; align-items: center; }
.hero__meta { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .34em; color: rgba(255,255,255,.88); margin-bottom: 26px; padding-inline-start: .34em; }
.hero__meta i { width: 34px; height: 1px; background: currentColor; opacity: .6; }
[lang="ar"] .hero__meta { letter-spacing: 0; font-size: 13px; padding: 0; }
.hero__title { font-weight: 600; font-size: clamp(40px, 6.6vw, 118px); line-height: .98; letter-spacing: -.05em; margin: 0; perspective: 900px; text-wrap: balance; }
[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.3; font-size: clamp(40px, 6.2vw, 108px); }
.hero__title em { font-weight: 400; }
.hero__title em .w > span { background: linear-gradient(100deg, #fff 0%, var(--gold) 55%, var(--rose) 110%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-inline-end: .08em; }
.hero__title em .w { padding-inline-end: .04em; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(980px, 100%);
  padding: 18px 18px 18px 30px; border-radius: 999px; text-align: start;
  background: rgba(10,12,24,.38); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
[dir="rtl"] .hero__foot { padding: 18px 30px 18px 18px; }
.hero__lead { max-width: 430px; margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.hero__caption { position: absolute; bottom: 26px; inset-inline-end: var(--gutter); display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
[lang="ar"] .hero__caption { letter-spacing: 0; font-size: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.hero__scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.9), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- MANIFESTO ---------- */
.manifesto { min-height: 160vh; padding: 30vh var(--gutter) 20vh; max-width: 1300px; }
.manifesto__text { font-size: clamp(30px, 4.3vw, 68px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; max-width: 22ch; }
[lang="ar"] .manifesto__text { line-height: 1.55; letter-spacing: 0; }
.words .wd { display: inline-block; opacity: .14; transition: none; white-space: pre; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.principles { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.principles i { width: 32px; height: 1px; background: var(--faint); }

/* ---------- SERVICES ---------- */
.services { min-height: 100vh; }
.services__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); margin-bottom: 4vh; }
.services__head h2 { margin: 0; font-size: clamp(36px, 4.6vw, 72px); }
.services__count { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; }
.services__count span { font-size: 20px; color: var(--muted); }
.services__track { display: flex; gap: 28px; padding: 30px max(var(--gutter), calc(50vw - 210px)); width: max-content; perspective: 1400px; transform-style: preserve-3d; direction: ltr; }
.svc { position: relative; width: min(420px, 78vw); min-height: 480px; padding: 34px 32px 30px; border-radius: 30px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(30,24,36,.62), rgba(10,11,18,.55)); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.1);
  transform-style: preserve-3d; will-change: transform; overflow: hidden; }
[dir="rtl"] .svc { direction: rtl; }
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(232,199,156,.55), transparent 35%, transparent 65%, rgba(176,36,79,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.svc__glare { position: absolute; inset: -40%; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.14), transparent 40%); pointer-events: none; }
.svc__no { font-family: var(--serif); font-style: italic; font-size: 92px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); position: absolute; top: 26px; inset-inline-end: 28px; }
.svc__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: var(--gold);
  background: linear-gradient(145deg, rgba(176,36,79,.45), rgba(138,21,56,.15)); border: 1px solid rgba(232,199,156,.25); margin-bottom: auto; transform: translateZ(40px); }
.svc h3 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 64px 0 14px; transform: translateZ(30px); }
[lang="ar"] .svc h3 { letter-spacing: 0; line-height: 1.5; }
.svc p { font-size: 15px; margin: 0 0 18px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 14px; }
.svc li { display: flex; align-items: center; gap: 10px; }
.svc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); }
.svc__link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--gold); padding-top: 18px; border-top: 1px solid var(--faint); }
.svc__link svg { transition: transform .4s var(--ease); }
.svc__link:hover svg { transform: translate(3px, -3px); }

/* ---------- STATEMENT ---------- */
.statement { padding: 26vh 0 22vh; overflow: hidden; }
.marquee { position: absolute; inset: 50% 0 auto; transform: translateY(-50%) rotate(-4deg); display: grid; gap: 10px; pointer-events: none; }
.marquee__row { display: flex; white-space: nowrap; font-size: clamp(64px, 11vw, 190px); font-weight: 700; letter-spacing: -.04em; line-height: 1; will-change: transform; }
.marquee__row span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); }
.marquee__row--ar { font-family: "Noto Kufi Arabic"; letter-spacing: 0; }
.marquee__row--ar span { -webkit-text-stroke: 0; color: rgba(176,36,79,.22); }
.statement__card { position: relative; width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(28px, 5vw, 64px); text-align: center; }
.statement__card .kicker { justify-content: center; }
.statement__card h2 { font-size: clamp(32px, 4.2vw, 62px); }
.statement__card p { margin: 0 auto; max-width: 52ch; }

/* ---------- Q GET ---------- */
.qget { padding: 16vh var(--gutter); }
.qget__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1320px; margin: 0 auto; }
.qget__copy { padding: clamp(26px, 4vw, 52px); }
.qget__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2em; margin-bottom: 26px; }
.qget__brand img { width: 44px; height: 44px; border-radius: 12px; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--faint); margin: 26px 0 18px; flex-wrap: wrap; }
.tabs button { flex: 1; padding: 11px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .4s var(--ease); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.system { min-height: 190px; }
.system__code { font-size: 11px; letter-spacing: .24em; color: var(--gold); }
.system h3 { font-size: 26px; margin: 8px 0 6px; font-weight: 600; letter-spacing: -.02em; }
.system > p { margin: 0 0 14px; font-size: 15px; }
.system ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.system li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.system li b { color: var(--paper); font-weight: 600; display: block; }
.system li svg { color: var(--rose); margin-top: 4px; }
.system.is-swapping { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.qget__stage { position: relative; height: min(760px, 90vh); display: grid; place-items: center; perspective: 1600px; }
.phone { position: relative; width: min(300px, 62vw); aspect-ratio: 650 / 1413; transform-style: preserve-3d; will-change: transform; }
.phone__body { position: absolute; inset: 0; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2a2d36, #0b0c11); box-shadow: 0 80px 120px -30px rgba(0,0,0,.8), 0 0 0 2px rgba(255,255,255,.08), 0 0 120px rgba(176,36,79,.35); transform: translateZ(10px); }
.phone__body img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone__shine { position: absolute; inset: 12px; border-radius: 36px; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.08)); mix-blend-mode: screen; }
.phone__edge { position: absolute; inset: 0; border-radius: 46px; background: #1a1c23; transform: translateZ(-10px); }
.float { position: absolute; padding: 14px 18px; border-radius: 18px; background: rgba(12,13,20,.6); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); will-change: transform; }
.float b { display: block; font-size: 14px; } .float span { font-size: 12px; color: var(--muted); }
.float--a { top: 14%; left: 0; } .float--b { top: 46%; right: -2%; } .float--c { bottom: 12%; left: 6%; }

/* ---------- MEET Q ---------- */
.meetq { padding: 14vh var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1320px; margin: 0 auto; }
.meetq__stage { position: relative; height: min(640px, 80vh); display: grid; place-items: center; }
.meetq__halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(176,36,79,.55), rgba(176,36,79,0) 65%); filter: blur(10px); }
.meetq__halo::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(232,199,156,.25); animation: spin 18s linear infinite; border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.meetq__bot { position: relative; height: 92%; width: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); will-change: transform; }
.meetq__bubble { position: absolute; top: 12%; inset-inline-end: 4%; padding: 14px 18px; border-radius: 20px 20px 20px 4px; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: float 4s ease-in-out infinite; }
.meetq__bubble b { display: block; } .meetq__bubble span { font-size: 13px; color: #5c4b54; }
.meetq__copy { padding: clamp(26px, 4vw, 52px); }
.prompts { display: grid; gap: 10px; margin: 24px 0; }
.prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--faint); background: rgba(255,255,255,.04); text-align: start; transition: .4s var(--ease); }
.prompt:hover { background: rgba(255,255,255,.1); border-color: rgba(232,199,156,.4); transform: translateX(4px); }

/* ---------- WORK ---------- */
.work { padding: 14vh var(--gutter); max-width: 1400px; margin: 0 auto; }
.work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
.project { display: block; border-radius: 24px; overflow: hidden; background: rgba(12,13,20,.55); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s; will-change: transform; }
.project:nth-child(even) { margin-top: 60px; }
.project__img { aspect-ratio: 4 / 5; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.project:hover .project__img img { transform: scale(1.02); }
.project:hover { box-shadow: 0 50px 100px -30px rgba(176,36,79,.55); }
.project__meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.project__meta span { font-size: 13px; color: var(--muted); }
.work__all { display: inline-flex; align-items: center; gap: 10px; margin-top: 48px; font-weight: 600; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 6px; }

/* ---------- APPLY ---------- */
.apply { padding: 14vh var(--gutter); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 80px); max-width: 1320px; margin: 0 auto; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; color: var(--paper); }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); width: 34px; }
.wa { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 20px; border: 1px solid var(--faint); background: rgba(37,211,102,.06); max-width: 420px; transition: .4s; }
.wa:hover { background: rgba(37,211,102,.14); }
.wa b { display: block; } .wa small { color: var(--muted); }
.form { padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__title { grid-column: 1 / -1; margin-bottom: 8px; }
.form__title span { font-size: 11px; letter-spacing: .26em; color: var(--gold); }
.form__title h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin: 8px 0 0; letter-spacing: -.02em; }
.chip { grid-column: 1 / -1; justify-self: start; padding: 8px 14px; border-radius: 99px; background: rgba(176,36,79,.25); border: 1px solid rgba(231,169,188,.35); font-size: 13px; }
.field { position: relative; display: block; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; height: 60px; padding: 22px 18px 8px; border-radius: 16px; border: 1px solid var(--faint); background: rgba(255,255,255,.04); color: var(--paper); font: inherit; font-size: 15px; transition: border-color .3s, background .3s; appearance: none; }
.field select { padding-top: 8px; }
.field select option { background: var(--ink-2); }
.field--select::after { content: "⌄"; position: absolute; inset-inline-end: 18px; top: 16px; color: var(--muted); pointer-events: none; }
.field input:focus, .field select:focus { outline: none; border-color: rgba(232,199,156,.6); background: rgba(255,255,255,.07); }
.field > span { position: absolute; inset-inline-start: 18px; top: 19px; font-size: 15px; color: var(--muted); pointer-events: none; transition: .3s var(--ease); }
.field input:focus + span, .field input:not(:placeholder-shown) + span { top: 8px; font-size: 11px; color: var(--gold); letter-spacing: .04em; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 1em; }
.form__status.is-success { color: #8ee3b0; } .form__status.is-error { color: #ff9aa9; }
.form__note { grid-column: 1 / -1; font-size: 12px; margin: 0; }
.form__note a { color: var(--gold); }

/* ---------- FOOTER ---------- */
.hud.is-off { opacity: 0 !important; }
.footer { padding: 18vh var(--gutter) 100px; background: linear-gradient(180deg, transparent, rgba(5,6,10,.85) 30%); }
.footer__giant { position: relative; display: block; font-size: clamp(64px, 13vw, 230px); font-weight: 700; line-height: .9; letter-spacing: -.06em; margin-bottom: 12vh; }
[lang="ar"] .footer__giant { letter-spacing: 0; line-height: 1.3; font-size: clamp(54px, 10vw, 180px); }
.footer__line { display: block; }
.footer__line--em { font-family: var(--serif); font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); transition: color .6s, -webkit-text-stroke-color .6s; }
[lang="ar"] .footer__line--em { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 700; }
.footer__giant:hover .footer__line--em { color: var(--rose); -webkit-text-stroke-color: transparent; }
.footer__orb { position: absolute; inset-inline-end: 0; bottom: 6%; width: clamp(90px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); font-size: .25em; transition: transform .8s var(--ease); box-shadow: 0 30px 80px -10px rgba(176,36,79,.7); }
.footer__orb svg { stroke-width: 1.2; }
.footer__giant:hover .footer__orb { transform: rotate(45deg) scale(1.06); }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--faint); }
.footer__id { display: flex; align-items: center; gap: 14px; }
.footer__id img { width: 52px; height: 52px; }
.footer__id b { letter-spacing: .2em; } .footer__id small { display: block; color: var(--muted); }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; color: var(--muted); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--faint); }
.footer__bottom p { font-size: 13px; margin: 0; }
.footer__bottom nav { display: flex; gap: 18px; }
.anchor { display: block; position: relative; top: -100px; }

/* ---------- Q chat ---------- */
.qfab { position: fixed; z-index: 45; right: 22px; bottom: 22px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 6px rgba(176,36,79,.25); transition: transform .4s var(--ease); opacity: 0; }
[dir="rtl"] .qfab { right: auto; left: 22px; }
body.is-ready .qfab { opacity: 1; }
.qfab:hover { transform: scale(1.08) rotate(-6deg); }
.qfab img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; transform: scale(1.9) translateY(18%); }
.qchat { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end; padding: 20px; background: rgba(4,5,9,.35); backdrop-filter: blur(4px); }
.qchat[hidden] { display: none; }
.qchat__panel { width: min(420px, 100%); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: rgba(14,15,22,.92); border: 1px solid var(--glass-edge); box-shadow: 0 50px 120px rgba(0,0,0,.6); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.qchat header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--faint); }
.qchat header img { width: 42px; height: 42px; border-radius: 50%; background: #fff; object-fit: cover; object-position: 50% 4%; }
.qchat header small { display: block; color: var(--muted); font-size: 12px; }
.qchat__close { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; background: rgba(255,255,255,.06); }
.qchat__msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.msg--q { background: rgba(255,255,255,.07); border-end-start-radius: 4px; }
.msg--me { align-self: flex-end; background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); border-end-end-radius: 4px; }
.msg.is-thinking { opacity: .6; animation: breathe 1.2s infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.qchat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--faint); }
.qchat__form input { flex: 1; height: 48px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--faint); background: rgba(255,255,255,.05); color: var(--paper); font: inherit; }
.qchat__form button { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 18px; }
[dir="rtl"] .qchat__form button svg { transform: scaleX(-1); }

/* ---------- reveal base ---------- */
.reveal { opacity: 0; transform: translateY(60px); }
.no-motion .reveal { opacity: 1; transform: none; }
.no-motion .words .wd { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; padding: 14px; border-radius: 26px; background: rgba(10,11,18,.92); border: 1px solid var(--glass-edge); backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .4s var(--ease); }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { font-size: 18px; padding: 14px 18px; }
  .nav__burger { display: block; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .qget__grid, .meetq, .apply { grid-template-columns: 1fr; }
  .qget__stage { height: 560px; order: -1; }
  .meetq__stage { height: 440px; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__id { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__brand span { display: none; }
  .hero { padding: 120px 16px 92px; justify-content: flex-start; }
  .hero__foot { flex-direction: column; align-items: stretch; text-align: center; border-radius: 28px; padding: 22px 18px; gap: 18px; }
  [dir="rtl"] .hero__foot { padding: 22px 18px; }
  .hero__lead { max-width: none; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1; justify-content: center; padding: 15px 18px; }
  .hero__caption, .hero__scroll { display: none; }
  .hud { bottom: 18px; } .hud__bar { display: none; }
  .scroll-rail { display: none; }
  .services { height: auto; }
  .services__pin { height: auto; padding: 12vh 0; }
  .services__head .kicker { position: static; transform: none; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .services__count { display: none; }
  .services__track { flex-direction: column; width: auto; padding: 20px var(--gutter); }
  .svc { width: 100%; min-height: 0; }
  .svc h3 { margin-top: 36px; }
  .form { grid-template-columns: 1fr; }
  .work__grid { gap: 12px; }
  .project:nth-child(even) { margin-top: 30px; }
  .float { display: none; }
  .qfab { width: 54px; height: 54px; bottom: 70px; right: 14px; }
  [dir="rtl"] .qfab { left: 14px; }
  .qchat { padding: 0; }
  .qchat__panel { height: 100%; width: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .hero__scroll i, .meetq__halo::after, .meetq__bubble { animation: none; }
}
body .qfab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

/* ---------- theme toggle ---------- */
.nav__theme { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; font-size: 18px; overflow: hidden; transition: background .3s; }
.nav__theme:hover { background: rgba(255,255,255,.08); }
.nav__theme span { position: absolute; display: grid; place-items: center; transition: transform .7s var(--ease), opacity .5s; }
.nav__theme .sun { transform: translateY(140%) rotate(-90deg); opacity: 0; color: #f2b544; }
.nav__theme .moon { color: var(--gold); }
[data-theme="light"] .nav__theme .sun { transform: none; opacity: 1; }
[data-theme="light"] .nav__theme .moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
body.theme-shift main, body.theme-shift .footer, body.theme-shift .nav { transition: color .9s var(--ease); }
body.theme-shift * { transition-property: color, background-color, border-color, box-shadow, -webkit-text-stroke-color !important; transition-duration: .9s !important; }

/* =============================================================
   LIGHT — Doha in the morning
   ============================================================= */
:root[data-theme="light"] {
  --ink: #e4edf5;
  --ink-2: #f4f7fa;
  --paper: #14121a;
  --muted: rgba(20, 18, 26, .7);
  --faint: rgba(20, 18, 26, .14);
  --maroon: #8a1538;
  --maroon-2: #a51d48;
  --rose: #9c1e46;
  --gold: #8f5a1c;
  --glass: rgba(255, 255, 255, .55);
  --glass-edge: rgba(255, 255, 255, .7);
  color-scheme: light;
}
[data-theme="light"] .vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(160,180,200,.35) 100%), linear-gradient(180deg, rgba(255,255,255,.25) 0%, transparent 18%, transparent 75%, rgba(220,230,240,.35) 100%); }
[data-theme="light"] .grain { opacity: .04; }
[data-theme="light"] .nav { background: rgba(255,255,255,.55); box-shadow: 0 20px 50px -20px rgba(40,60,90,.25); }
[data-theme="light"] .nav__links a:hover, [data-theme="light"] .nav__theme:hover { background: rgba(20,18,26,.06); }
[data-theme="light"] .nav__cta { background: var(--paper); color: #fff; }
[data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.12) 40%, transparent 55%, rgba(4,40,56,.12) 80%, rgba(4,40,56,.3) 100%); }
[data-theme="light"] .hero__meta { color: #0f1d33; }
[data-theme="light"] .hero__title { color: #0c1426; }
[data-theme="light"] .hero__foot { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.85); box-shadow: 0 30px 80px -30px rgba(10,40,70,.45), inset 0 1px 0 #fff; }
[data-theme="light"] .hero__lead { color: #14121a; }
[data-theme="light"] .hero__caption { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,30,50,.4); }
[data-theme="light"] .hero__title em .w > span { background-image: linear-gradient(100deg, #6e0f2c 0%, var(--maroon-2) 50%, #c0577a 110%); }
[data-theme="light"] .hero__scroll i { background: linear-gradient(var(--paper), transparent); }
[data-theme="light"] .btn--ghost { border-color: rgba(20,18,26,.25); background: rgba(255,255,255,.4); }
[data-theme="light"] .btn--ghost:hover { background: rgba(255,255,255,.7); }
[data-theme="light"] .words .wd { text-shadow: 0 2px 24px rgba(255,255,255,.6); }
[data-theme="light"] .svc { background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(240,245,250,.55)); box-shadow: 0 50px 120px -40px rgba(30,50,80,.35), inset 0 1px 0 #fff; }
[data-theme="light"] .svc__no { -webkit-text-stroke-color: rgba(20,18,26,.2); }
[data-theme="light"] .svc__icon { color: var(--maroon); background: linear-gradient(145deg, rgba(165,29,72,.14), rgba(165,29,72,.04)); border-color: rgba(165,29,72,.25); }
[data-theme="light"] .svc__glare { background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.7), transparent 40%); }
[data-theme="light"] .marquee__row span { -webkit-text-stroke-color: rgba(20,18,26,.16); }
[data-theme="light"] .marquee__row--ar span { color: rgba(138,21,56,.12); }
[data-theme="light"] .glass { box-shadow: 0 40px 120px -40px rgba(30,50,80,.35), inset 0 1px 0 #fff; }
[data-theme="light"] .tabs { background: rgba(20,18,26,.05); }
[data-theme="light"] .tabs button[aria-selected="true"] { background: var(--paper); color: #fff; }
[data-theme="light"] .float { background: rgba(255,255,255,.75); box-shadow: 0 30px 60px -20px rgba(30,50,80,.35); }
[data-theme="light"] .phone__body { box-shadow: 0 80px 120px -30px rgba(30,50,80,.5), 0 0 0 2px rgba(255,255,255,.5), 0 0 120px rgba(165,29,72,.18); }
[data-theme="light"] .meetq__halo { background: radial-gradient(circle, rgba(165,29,72,.25), rgba(165,29,72,0) 65%); }
[data-theme="light"] .meetq__bot { filter: drop-shadow(0 40px 50px rgba(30,50,80,.35)); }
[data-theme="light"] .prompt { background: rgba(255,255,255,.45); }
[data-theme="light"] .prompt:hover { background: rgba(255,255,255,.8); }
[data-theme="light"] .project { background: rgba(255,255,255,.6); }
[data-theme="light"] .project:hover { box-shadow: 0 50px 100px -30px rgba(30,50,80,.4); }
[data-theme="light"] .wa { background: rgba(37,211,102,.12); }
[data-theme="light"] .field input, [data-theme="light"] .field select { background: rgba(255,255,255,.6); }
[data-theme="light"] .field input:focus, [data-theme="light"] .field select:focus { background: #fff; border-color: rgba(165,29,72,.5); }
[data-theme="light"] .form__status.is-success { color: #11784a; } [data-theme="light"] .form__status.is-error { color: #b4233f; }
[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(240,245,250,.92) 30%); }
[data-theme="light"] .footer__line--em { -webkit-text-stroke-color: rgba(20,18,26,.45); }
[data-theme="light"] .qfab { box-shadow: 0 20px 50px rgba(30,50,80,.35), 0 0 0 6px rgba(165,29,72,.18); }
[data-theme="light"] .qchat { background: rgba(200,215,230,.35); }
[data-theme="light"] .qchat__panel { background: rgba(255,255,255,.94); box-shadow: 0 50px 120px rgba(30,50,80,.4); }
[data-theme="light"] .msg--q { background: rgba(20,18,26,.06); }
[data-theme="light"] .msg--me { color: #fff; }
[data-theme="light"] .qchat__form input { background: rgba(20,18,26,.04); }
[data-theme="light"] .qchat__form button { background: var(--paper); color: #fff; }
[data-theme="light"] .qchat__close { background: rgba(20,18,26,.06); }
[data-theme="light"] .hud__bar i { background: var(--maroon-2); }
[data-theme="light"] .scroll-rail i { background: linear-gradient(var(--maroon-2), var(--gold)); }
@media (max-width: 1080px) { [data-theme="light"] .nav__links { background: rgba(255,255,255,.94); } }

/* ---------- polish layer ---------- */
.kicker i { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease) .1s; }
[dir="rtl"] .kicker i { transform-origin: right center; }
.kicker.is-in i, .hero__meta .kicker i, .no-motion .kicker i { transform: scaleX(1); }
.kicker span { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) .25s; }
[dir="rtl"] .kicker span { clip-path: inset(0 0 0 100%); }
.kicker.is-in span, .no-motion .kicker span { clip-path: inset(0 0 0 0); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-split] .w > span { display: inline-block; will-change: transform; }
.stagger > * { will-change: transform, opacity; }

/* section rhythm */
.manifesto, .qget, .meetq, .work, .apply { padding-block: clamp(110px, 16vh, 190px); }
.glass, .svc, .project, .hero__foot { transition: border-color .6s, box-shadow .6s, background-color .6s; }

/* services rail always runs left→right, content keeps its language direction */
.services__pin { direction: ltr; }
[dir="rtl"] .services__head { direction: rtl; }

/* =============================================================
   LUXE LAYER — champagne gold, mashrabiya, shimmer
   ============================================================= */
:root { --champagne: linear-gradient(100deg, #fff6e6 0%, #e8c79c 35%, #c99a5b 55%, #f3dcb6 75%, #e8c79c 100%); }

/* gold shimmer running through the hero accent words */
.hero__title em .w > span {
  background-image: linear-gradient(100deg, #fff 0%, #f3dcb6 22%, #e8c79c 40%, #fff7ea 50%, #d9ae75 60%, #e7a9bc 85%, #fff 100%);
  background-size: 220% 100%; animation: shimmer 7s ease-in-out infinite;
}
[data-theme="light"] .hero__title em .w > span { background-image: linear-gradient(100deg, #5e0c25 0%, #8a1538 25%, #b0244f 45%, #d9ae75 52%, #8a1538 62%, #5e0c25 100%); background-size: 220% 100%; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* mashrabiya pattern woven into the shade behind the content */
.backdrop__shade::after { content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e8c79c' stroke-width='.8'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Cpath d='M32 14l5 13 13 5-13 5-5 13-5-13-13-5 13-5z'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Cpath d='M0 0l12 12M64 0L52 12M0 64l12-12M64 64L52 52'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: radial-gradient(120% 80% at 50% 50%, #000 30%, transparent 85%); mask: radial-gradient(120% 80% at 50% 50%, #000 30%, transparent 85%); }
[data-theme="light"] .backdrop__shade::after { opacity: .05; filter: brightness(.55); }

/* gold hairlines on glass & buttons */
.glass, .svc, .hero__foot { border-color: rgba(232, 199, 156, .22); }
.btn--solid { box-shadow: 0 18px 50px -12px rgba(176,36,79,.65), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(232,199,156,.35); }
.btn--ghost:hover { border-color: rgba(232,199,156,.7); }
.nav { border-color: rgba(232,199,156,.18); }
h2 em { background: var(--champagne); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-split] em .w > span { background: var(--champagne); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-inline-end: .06em; }
[data-theme="light"] h2 em, [data-theme="light"] [data-split] em .w > span { background: linear-gradient(100deg, #6e0f2c, #a51d48 60%, #b4824a); -webkit-background-clip: text; background-clip: text; }
[lang="ar"] h2 em { color: transparent; }

/* ornamental divider above section kickers */
.manifesto::before, .statement__card::before, .work__head::before, .apply__copy::before {
  content: ""; display: block; width: 9px; height: 9px; margin-bottom: 28px; transform: rotate(45deg);
  border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(232,199,156,.08); }
.statement__card::before { margin-inline: auto; }

/* richer cards in the morning theme */
[data-theme="light"] .svc { background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(246,249,252,.8)); }
[data-theme="light"] .glass { background: rgba(255,255,255,.72); }

/* =============================================================
   COOKIE CONSENT
   ============================================================= */
.cookie { position: fixed; z-index: 70; left: 24px; bottom: 24px; width: min(460px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 24px 22px; border-radius: 28px; overflow: hidden;
  background: rgba(12, 13, 22, .78); border: 1px solid rgba(232,199,156,.28);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.1);
  opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px);
  transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); }
[dir="rtl"] .cookie { left: auto; right: 24px; }
.cookie[hidden] { display: none; }
.cookie.is-in { opacity: 1; transform: none; filter: none; }
.cookie__glow { position: absolute; width: 260px; height: 260px; top: -140px; inset-inline-start: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(176,36,79,.45), transparent 65%); pointer-events: none; }
.cookie__icon { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--gold);
  background: linear-gradient(145deg, rgba(232,199,156,.18), rgba(232,199,156,.04)); border: 1px solid rgba(232,199,156,.35); }
.cookie.is-in .cookie__icon svg { animation: cookieSpin 1.6s var(--ease) .3s both; }
@keyframes cookieSpin { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }
.cookie__body { position: relative; }
.cookie__kicker { font-size: 10px; letter-spacing: .3em; font-weight: 600; color: var(--gold); }
[lang="ar"] .cookie__kicker { letter-spacing: 0; font-size: 12px; }
.cookie h2 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 8px; }
[lang="ar"] .cookie h2 { line-height: 1.5; }
.cookie p { font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie__actions .btn { padding: 12px 18px; font-size: 13.5px; }
.cookie__more { font-size: 12.5px; color: var(--muted); margin-inline-start: 6px; border-bottom: 1px solid var(--faint); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.cookie__more:hover { color: var(--gold); border-color: var(--gold); }
[data-theme="light"] .cookie { background: rgba(255,255,255,.86); box-shadow: 0 50px 120px -30px rgba(20,40,70,.4), inset 0 1px 0 #fff; }
[data-theme="light"] .cookie__glow { background: radial-gradient(circle, rgba(176,36,79,.18), transparent 65%); }
[data-theme="light"] .cookie__icon { color: #8f5a1c; }
@media (max-width: 640px) {
  .cookie, [dir="rtl"] .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .cookie__icon { width: 44px; height: 44px; font-size: 22px; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
  .cookie__more { width: 100%; text-align: center; margin: 4px 0 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero__title em .w > span { animation: none; } .cookie { transition: opacity .3s; transform: none; filter: none; } }

/* steps: gold diamonds instead of numbers */
.steps li::before { content: ""; width: 8px; height: 8px; margin-inline-end: 8px; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(232,199,156,.15); flex-shrink: 0; font-size: 0; }
.svc h3 { margin-top: 56px; }

/* ---------- services: organised pin + clickable cards ---------- */
.services__pin { justify-content: center; padding-top: 96px; padding-bottom: 24px; }
.services__head { margin-bottom: 2vh; }
.services__head h2 { font-size: clamp(34px, 4vw, 64px); }
.services__track { padding-top: 24px; padding-bottom: 24px; align-items: stretch; }
.svc { cursor: pointer; min-height: min(470px, 58vh); transition: border-color .5s, box-shadow .5s, background-color .5s; }
.svc:hover { border-color: rgba(232,199,156,.55); box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(232,199,156,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.svc:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.svc h3 { margin-top: 44px; }
.svc__open { margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 18px; border-top: 1px solid var(--faint); font-weight: 600; font-size: 14px; color: var(--gold); }
.svc__open i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; border: 1px solid rgba(232,199,156,.4); transition: transform .5s var(--ease), background .4s, color .4s; }
.svc:hover .svc__open i { transform: rotate(90deg); background: var(--gold); color: #111; }
@media (max-height: 760px) and (min-width: 641px) { .svc { min-height: 0; } .svc p { font-size: 14px; } .svc ul { gap: 6px; margin-bottom: 14px; } .svc h3 { margin-top: 26px; font-size: 24px; } }

/* ---------- clients rail ---------- */
.clients { padding: clamp(80px, 12vh, 140px) 0; }
.clients__head { padding: 0 var(--gutter); text-align: center; margin-bottom: 44px; }
.clients__head .kicker { justify-content: center; }
.clients__head h2 { font-size: clamp(32px, 4vw, 60px); margin: 0; }
.clients__rail { position: relative; overflow: hidden; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients__track { display: flex; width: max-content; animation: rail 42s linear infinite; }
.clients__rail:hover .clients__track { animation-play-state: paused; }
.clients__group { display: flex; gap: 18px; padding-inline-end: 18px; }
@keyframes rail { to { transform: translateX(-50%); } }
.client { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--glass); border: 1px solid rgba(232,199,156,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: border-color .4s, transform .5s var(--ease); }
.client:hover { border-color: rgba(232,199,156,.6); transform: translateY(-3px); }
[dir="rtl"] .client { direction: rtl; padding: 12px 12px 12px 22px; }
.client__logo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(232,199,156,.35); }
.client__logo img { width: 100%; height: 100%; object-fit: cover; }
.client__logo--mono { background: linear-gradient(145deg, var(--maroon-2), var(--maroon)); color: var(--gold); font-weight: 700; font-size: 20px; }
.client__text b { display: block; font-size: 15px; font-weight: 600; }
.client__text small { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .clients__group[aria-hidden] { display: none; } }

/* ---------- service detail modal ---------- */
.svcmodal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; }
.svcmodal[hidden] { display: none; }
.svcmodal__scrim { position: absolute; inset: 0; background: rgba(4,5,10,.6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
[data-theme="light"] .svcmodal__scrim { background: rgba(210,222,235,.5); }
.svcmodal__panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 32px; outline: none;
  background: linear-gradient(160deg, rgba(26,22,34,.96), rgba(10,11,18,.96)); border: 1px solid rgba(232,199,156,.3);
  box-shadow: 0 80px 160px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); transform-origin: center; overscroll-behavior: contain; }
[data-theme="light"] .svcmodal__panel { background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(245,248,252,.98)); box-shadow: 0 80px 160px -40px rgba(20,40,70,.45), inset 0 1px 0 #fff; }
.svcmodal__panel::before { content: ""; position: absolute; width: 420px; height: 420px; top: -200px; inset-inline-start: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(176,36,79,.35), transparent 65%); pointer-events: none; }
.svcmodal__close { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; border: 1px solid var(--faint); background: rgba(255,255,255,.05); transition: transform .5s var(--ease), background .3s; }
.svcmodal__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.12); }
.svcmodal__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 60px); }
.svcmodal__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: var(--gold); background: linear-gradient(145deg, rgba(176,36,79,.5), rgba(138,21,56,.15)); border: 1px solid rgba(232,199,156,.35); margin-bottom: 26px; }
[data-theme="light"] .svcmodal__icon { color: var(--maroon); background: rgba(165,29,72,.08); }
.svcmodal__kicker { display: block; font-size: 11px; letter-spacing: .28em; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
[lang="ar"] .svcmodal__kicker { letter-spacing: 0; font-size: 13px; }
.svcmodal h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 0 0 12px; }
.svcmodal__lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--paper); margin: 0 0 16px; }
[lang="ar"] .svcmodal__lead { font-style: normal; font-weight: 700; color: var(--rose); }
.svcmodal__steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svcmodal__steps li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(232,199,156,.3); font-size: 13px; font-weight: 600; }
.svcmodal__steps li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.svcmodal__side { padding-top: 8px; }
.svcmodal__features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.svcmodal__features li { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--faint); background: rgba(255,255,255,.035); transition: border-color .4s, transform .5s var(--ease); }
.svcmodal__features li:hover { border-color: rgba(232,199,156,.45); transform: translateX(4px); }
[dir="rtl"] .svcmodal__features li:hover { transform: translateX(-4px); }
[data-theme="light"] .svcmodal__features li { background: rgba(20,18,26,.025); }
.svcmodal__features b { display: block; font-size: 17px; margin-bottom: 4px; }
.svcmodal__features span { color: var(--muted); font-size: 14.5px; }
.svcmodal__cta { display: flex; flex-wrap: wrap; gap: 10px; }
body.modal-open { overflow: hidden; }
@media (max-width: 820px) { .svcmodal { padding: 0; place-items: end center; } .svcmodal__panel { border-radius: 28px 28px 0 0; max-height: 92dvh; } .svcmodal__grid { grid-template-columns: 1fr; } .svcmodal__cta .btn { flex: 1; justify-content: center; } }

/* ---------- view transitions (theme circle, language wipe) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-old(root) { z-index: 1; }
.vt-theme::view-transition-new(root) { z-index: 2; }

/* =============================================================
   INNER PAGES — Work · About · Contact
   ============================================================= */
.nav__links a[aria-current="page"] { color: var(--paper); background: rgba(232,199,156,.12); box-shadow: inset 0 0 0 1px rgba(232,199,156,.3); }
.phero { position: relative; min-height: 88vh; min-height: 88svh; display: grid; place-items: center; text-align: center; padding: 150px var(--gutter) 90px; }
.phero--short { min-height: 72vh; min-height: 72svh; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6,8,22,.5) 0%, rgba(6,8,22,.2) 50%, rgba(5,7,16,.55) 100%); }
[data-theme="light"] .phero::before { background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.18) 50%, rgba(235,242,248,.55) 100%); }
.phero__inner { display: flex; flex-direction: column; align-items: center; max-width: 1100px; }
.phero__title { font-weight: 600; font-size: clamp(38px, 5.8vw, 96px); line-height: 1.02; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
[lang="ar"] .phero__title { letter-spacing: 0; line-height: 1.35; }
.phero__title em .w > span { background: var(--champagne); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-inline-end: .06em; animation: shimmer 7s ease-in-out infinite; }
[data-theme="light"] .phero__title { color: #0c1426; }
[data-theme="light"] .phero__title em .w > span { background-image: linear-gradient(100deg, #5e0c25 0%, #8a1538 25%, #b0244f 45%, #d9ae75 52%, #8a1538 62%, #5e0c25 100%); }
[data-theme="light"] .phero .hero__meta { color: #0f1d33; }
.phero__lead { max-width: 640px; margin: 26px auto 0; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.88); }
[data-theme="light"] .phero__lead { color: #1d2433; }
.phero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.section-head { max-width: 860px; margin: 0 0 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 68px); }
.section-lead { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 640px; }
.section-head--center .section-lead { margin-inline: auto; }

/* work */
.portfolio { padding: clamp(110px, 16vh, 180px) var(--gutter) 60px; max-width: 1400px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button { padding: 11px 20px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--faint); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .4s var(--ease); }
.filters button:hover { color: var(--paper); border-color: rgba(232,199,156,.5); }
.filters button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard { position: relative; border-radius: 28px; overflow: hidden; cursor: pointer; background: var(--glass); border: 1px solid rgba(232,199,156,.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color .5s, box-shadow .6s, transform .7s var(--ease); }
.pcard--wide { grid-column: span 2; }
.pcard:hover { border-color: rgba(232,199,156,.6); transform: translateY(-6px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); }
.pcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,.04); display: grid; place-items: center; }
.pcard--wide .pcard__media { aspect-ratio: 16 / 9; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1); }
.pcard__mono { font-size: 64px; color: var(--gold); font-family: var(--serif); }
.pcard__meta { padding: 20px 24px 24px; }
.pcard__meta span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
[lang="ar"] .pcard__meta span { letter-spacing: 0; font-size: 13px; }
.pcard__meta h3 { margin: 6px 0 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.pcard__open { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #111; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: scale(.8); opacity: 0; transition: .5s var(--ease); }
.pcard:hover .pcard__open, .pcard:focus-visible .pcard__open { transform: scale(1) rotate(90deg); opacity: 1; }
@media (hover: none) { .pcard__open { opacity: 1; transform: none; } }
.pgrid__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }
.pmodal__media { border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.04); align-self: start; }
.pmodal__media img { width: 100%; height: auto; display: block; }
.cta-band { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(110px, 16vh, 180px); }
.cta-band__card { max-width: 900px; margin: 0 auto; padding: clamp(36px, 6vw, 72px); text-align: center; }
.cta-band__card .kicker, .cta-band__card .actions { justify-content: center; }
.cta-band__card h2 { font-size: clamp(34px, 4.6vw, 70px); }

/* about */
.direction { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; max-width: 1320px; margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--gutter); }
.direction__cards { display: grid; gap: 18px; }
.vcard, .capcard { padding: clamp(26px, 3vw, 38px); }
.vcard__icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; color: var(--gold); background: linear-gradient(145deg, rgba(176,36,79,.4), rgba(138,21,56,.1)); border: 1px solid rgba(232,199,156,.3); margin-bottom: 20px; }
[data-theme="light"] .vcard__icon { color: var(--maroon); background: rgba(165,29,72,.08); }
.vcard h3, .capcard h3 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.02em; }
.vcard p, .capcard p { margin: 0; font-size: 15.5px; }
.capabilities, .process { padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.capgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.capcard { transition: border-color .5s, transform .7s var(--ease); }
.capcard:hover { border-color: rgba(232,199,156,.55); transform: translateY(-6px); }
.timeline { position: relative; padding-top: 30px; }
.timeline__line { position: absolute; top: 47px; left: 4%; right: 4%; height: 1px; background: var(--faint); }
.timeline__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon-2), var(--gold)); transform-origin: left; box-shadow: 0 0 12px rgba(232,199,156,.6); }
[dir="rtl"] .timeline__line i { transform-origin: right; background: linear-gradient(270deg, var(--maroon-2), var(--gold)); }
.timeline__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; text-align: center; }
.timeline__steps li { display: flex; flex-direction: column; align-items: center; gap: 18px; font-weight: 600; font-size: 14.5px; }
.timeline__steps li::before { content: ""; width: 14px; height: 14px; transform: rotate(45deg); border: 1px solid var(--gold); background: var(--ink); box-shadow: 0 0 0 6px rgba(232,199,156,.08); }
.profile { padding: clamp(80px, 12vh, 140px) var(--gutter); }
.profile__card { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; padding: clamp(26px, 4vw, 52px); }
.profile__cover { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform: rotate(-3deg); transition: transform .8s var(--ease); }
.profile__card:hover .profile__cover { transform: rotate(0) scale(1.02); }
.profile__copy h2 { font-size: clamp(30px, 3.4vw, 52px); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); max-width: 1320px; margin: 0 auto; padding: clamp(100px, 14vh, 160px) var(--gutter); align-items: start; }
.contact__side h2 { font-size: clamp(34px, 4vw, 62px); }
.channels { display: grid; gap: 12px; margin-top: 30px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; transition: border-color .4s, transform .6s var(--ease); }
a.channel:hover { border-color: rgba(232,199,156,.55); transform: translateX(6px); }
[dir="rtl"] a.channel:hover { transform: translateX(-6px); }
.channel__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; color: var(--gold); background: rgba(232,199,156,.1); border: 1px solid rgba(232,199,156,.28); flex-shrink: 0; }
.channel__icon--wa { color: #3ddc84; background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.3); }
.channel b { display: block; font-size: 16px; } .channel small { color: var(--muted); font-size: 13.5px; }
.channel__arrow { margin-inline-start: auto; color: var(--gold); font-size: 18px; }
[dir="rtl"] .channel__arrow { transform: scaleX(-1); }
.form--contact { position: sticky; top: 110px; }
.field--area textarea { width: 100%; min-height: 150px; padding: 26px 18px 12px; border-radius: 16px; border: 1px solid var(--faint); background: rgba(255,255,255,.04); color: var(--paper); font: inherit; font-size: 15px; resize: vertical; transition: border-color .3s, background .3s; }
.field--area textarea:focus { outline: none; border-color: rgba(232,199,156,.6); background: rgba(255,255,255,.07); }
.field--area textarea:focus + span, .field--area textarea:not(:placeholder-shown) + span { top: 8px; font-size: 11px; color: var(--gold); }
[data-theme="light"] .field--area textarea { background: rgba(255,255,255,.6); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice__label { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 2px; position: static !important; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label span { display: inline-block; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--faint); font-size: 14px; font-weight: 600; color: var(--muted); transition: .35s var(--ease); }
.choice label:hover span { border-color: rgba(232,199,156,.5); color: var(--paper); }
.choice input:checked + span { background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); color: #fff; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(176,36,79,.7); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1080px) {
  .capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__line { display: none; }
  .timeline__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 860px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction, .contact, .profile__card { grid-template-columns: 1fr; }
  .profile__cover { max-width: 240px; margin: 0 auto; }
  .form--contact { position: static; }
}
@media (max-width: 640px) {
  .phero { min-height: 78svh; padding: 130px 16px 70px; }
  .phero__actions .btn { flex: 1; justify-content: center; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard--wide { grid-column: auto; }
  .pcard--wide .pcard__media { aspect-ratio: 4 / 3; }
  .capgrid { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .filters button { white-space: nowrap; }
}
/* gallery mat for portfolio media: logos & screens sit framed, never cropped */
.pgrid { align-items: start; }
.pcard__media, .pcard--wide .pcard__media { aspect-ratio: auto; height: clamp(220px, 22vw, 320px); background: linear-gradient(145deg, #f7f2ea, #ece4d8); padding: 7%; }
.pcard__media img { object-fit: contain; transform: scale(.94); filter: drop-shadow(0 18px 30px rgba(40,20,10,.18)); }
.pcard:hover .pcard__media img { transform: scale(1); }
.pmodal__media { background: linear-gradient(145deg, #f7f2ea, #ece4d8); padding: 8%; }
.pmodal__media img { max-height: 60vh; object-fit: contain; margin: 0 auto; }
.pcard__media { display: block; }
.pcard__media img { display: block; width: 100%; height: 100%; }
.pcard__mono { display: grid; place-items: center; height: 100%; }
.phero::before { background: linear-gradient(180deg, rgba(6,8,22,.5) 0%, rgba(6,8,22,.2) 55%, transparent 100%); }
[data-theme="light"] .phero::before { background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 55%, transparent 100%); }
@media (max-width: 640px) {
  .phero__actions { flex-direction: column; width: 100%; }
  .phero__actions .btn { width: 100%; }
  .hero__actions .btn { white-space: nowrap; font-size: 14px; }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 10vh, 120px) var(--gutter) 20px; }
.faq__list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border-radius: 22px; overflow: hidden; transition: border-color .4s; }
.faq__item[open] { border-color: rgba(232,199,156,.5); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(232,199,156,.4); flex-shrink: 0; transition: transform .6s var(--ease), background .4s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--gold); transition: transform .6s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { transform: rotate(180deg); background: rgba(232,199,156,.12); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 26px 24px; }
.faq__a p { margin: 0; max-width: 70ch; }

/* ---------- Terms ---------- */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); max-width: 1240px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--gutter) 40px; align-items: start; }
.legal__toc { position: sticky; top: 110px; padding: 22px; border-radius: 22px; }
.legal__updated { display: block; font-size: 12px; color: var(--gold); letter-spacing: .06em; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--faint); }
.legal__toc nav { display: grid; gap: 2px; }
.legal__toc a { padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); transition: .3s; border-inline-start: 2px solid transparent; }
.legal__toc a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.legal__toc a.is-active { color: var(--paper); border-inline-start-color: var(--gold); background: rgba(232,199,156,.08); }
.legal__body { display: grid; gap: 14px; }
.legal__sec { padding: clamp(24px, 3vw, 36px); border-radius: 24px; scroll-margin-top: 110px; }
.legal__sec h2 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 12px; letter-spacing: -.02em; }
.legal__sec p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.75; }
.legal__sec a { color: var(--gold); border-bottom: 1px solid rgba(232,199,156,.4); }
.legal__actions { margin: 10px 0 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- 404 ---------- */
.nf__code { font-family: var(--serif); font-style: italic; font-size: clamp(110px, 18vw, 240px); line-height: .8; margin-bottom: 18px;
  background: var(--champagne); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 7s ease-in-out infinite; }

/* ---------- WORK SHOWCASE: stacked editorial cards ---------- */
.showcase { display: grid; gap: 0; }
.scase { position: sticky; top: 100px; padding-bottom: 6vh; }
.scase:last-child { padding-bottom: 0; }
.scase__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 4vw, 64px); align-items: center;
  min-height: min(620px, calc(100vh - 160px)); padding: clamp(20px, 2.6vw, 34px); border-radius: 36px; overflow: hidden; transform-origin: 50% 0;
  background: linear-gradient(155deg, rgba(30,24,38,.82), rgba(10,11,18,.86)); border: 1px solid rgba(232,199,156,.26);
  backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 60px 140px -50px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08); will-change: transform, opacity; }
.scase__inner::before { content: ""; position: absolute; width: 520px; height: 520px; bottom: -260px; inset-inline-end: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(176,36,79,.32), transparent 65%); pointer-events: none; }
.scase:nth-child(even) .scase__media { order: 2; }
.scase__media { position: relative; height: 100%; min-height: 360px; cursor: zoom-in; }
.scase__frame { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; display: grid; place-items: center; padding: 9%;
  background: radial-gradient(120% 90% at 30% 20%, #fbf7f1, #ece3d6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 30px 60px -30px rgba(0,0,0,.6); }
.scase__frame::after { content: ""; position: absolute; inset: 14px; border-radius: 18px; border: 1px solid rgba(143,90,28,.22); pointer-events: none; }
.scase__frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(40,20,10,.2)); transition: transform 1.4s var(--ease); }
.scase__media:hover .scase__frame img { transform: scale(1.05); }
.scase__copy { position: relative; padding: clamp(6px, 1vw, 20px); }
.scase__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
[lang="ar"] .scase__kicker { letter-spacing: 0; font-size: 13px; }
.scase__kicker i { width: 28px; height: 1px; background: currentColor; }
.scase h3 { font-size: clamp(36px, 4.4vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 18px 0 18px; }
[lang="ar"] .scase h3 { letter-spacing: 0; line-height: 1.3; }
.scase p { margin: 0 0 22px; max-width: 46ch; }
.scase__tags { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.scase__tags li { padding: 8px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(232,199,156,.3); color: var(--paper); background: rgba(255,255,255,.03); }
.scase__actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-theme="light"] .scase__inner { background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(244,247,251,.9)); box-shadow: 0 60px 140px -50px rgba(20,40,70,.45), inset 0 1px 0 #fff; }
[data-theme="light"] .scase__inner::before { background: radial-gradient(circle, rgba(176,36,79,.12), transparent 65%); }
[data-theme="light"] .scase__tags li { background: rgba(20,18,26,.03); }
.portfolio { max-width: 1320px; }
@media (max-width: 900px) {
  .scase { position: relative; top: 0; padding-bottom: 18px; }
  .scase__inner { grid-template-columns: 1fr; min-height: 0; border-radius: 28px; }
  .scase:nth-child(even) .scase__media { order: 0; }
  .scase__media { min-height: 0; aspect-ratio: 4 / 3; }
  .scase h3 { margin: 12px 0; }
  .scase__actions .btn { flex: 1; justify-content: center; }
}

/* ---------- living Q ---------- */
.meetq__stage { cursor: pointer; }
.qbot { position: relative; height: 92%; aspect-ratio: 533 / 800; transform-origin: 50% 100%; will-change: transform; }
.qbot__body { position: absolute; inset: 0; will-change: transform; }
.qbot__pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
.qbot__pose--thumb { opacity: 0; }
.qbot__shadow { position: absolute; left: 22%; right: 22%; bottom: -2%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); opacity: .7; }
[data-theme="light"] .qbot__shadow { background: radial-gradient(closest-side, rgba(20,40,70,.35), transparent); }
.meetq__bubble { animation: none; transform-origin: 0 100%; min-width: 190px; top: 4%; z-index: 2; }
[dir="rtl"] .meetq__bubble { transform-origin: 100% 100%; border-radius: 20px 20px 4px 20px; }
.meetq__halo::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(232,199,156,.18); animation: spin 26s linear infinite reverse; border-bottom-color: var(--rose); }

/* ---------- footer CTA (replaces the giant type) ---------- */
.fcta { position: relative; max-width: 980px; margin: 0 auto 12vh; padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 70px); text-align: center; border-radius: 40px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(176,36,79,.28), transparent 60%), var(--glass); border: 1px solid rgba(232,199,156,.3);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 60px 140px -50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; }
.fcta::after { content: ""; position: absolute; inset: 14px; border-radius: 30px; border: 1px solid rgba(232,199,156,.14); pointer-events: none; }
.fcta__ornament { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.fcta__ornament i { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.fcta__ornament i:last-child { transform: scaleX(-1); }
.fcta__ornament b { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(232,199,156,.08); }
.fcta__kicker { display: block; font-size: 11px; letter-spacing: .32em; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
[lang="ar"] .fcta__kicker { letter-spacing: 0; font-size: 13px; }
.fcta__title { font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -.05em; margin: 0 0 22px; text-wrap: balance; }
[lang="ar"] .fcta__title { line-height: 1.35; letter-spacing: 0; }
.fcta__lead { max-width: 520px; margin: 0 auto 32px; }
.fcta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
[data-theme="light"] .fcta { background: radial-gradient(120% 140% at 50% 0%, rgba(176,36,79,.1), transparent 60%), rgba(255,255,255,.72); box-shadow: 0 60px 140px -50px rgba(20,40,70,.4), inset 0 1px 0 #fff; }
.totop { display: inline-flex; align-items: center; gap: 8px; }
.totop svg { font-size: 15px; transition: transform .4s var(--ease); }
.totop:hover svg { transform: translateY(-3px); }
@media (max-width: 640px) { .fcta { border-radius: 30px; } .fcta__actions .btn { flex: 1; justify-content: center; } }

/* ---------- floating Q: full standing robot (replaces the round button) ---------- */
.qfab { width: 92px; height: 138px; right: 18px; bottom: 14px; border-radius: 0; overflow: visible; background: none; box-shadow: none; display: block; }
[dir="rtl"] .qfab { right: auto; left: 18px; }
.qfab:hover { transform: none; }
.qfab img { transform: none; object-position: initial; }
.qfab__bot { position: absolute; inset: 0 0 10px; transform-origin: 50% 100%; will-change: transform; transition: transform .5s var(--ease); animation: qfabFloat 3s ease-in-out infinite; }
.qfab:hover .qfab__bot { transform: scale(1.08) translateY(-4px); }
.qfab__pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); transition: opacity .35s; }
.qfab__pose--thumb { opacity: 0; }
.qfab.is-thumb .qfab__pose--thumb { opacity: 1; }
.qfab.is-thumb .qfab__pose--wave { opacity: 0; }
.qfab__glow { position: absolute; left: 6%; right: 6%; top: 18%; bottom: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(176,36,79,.45), transparent); filter: blur(6px); animation: qfabGlow 3s ease-in-out infinite; }
.qfab__base { position: absolute; left: 20%; right: 20%; bottom: 2px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); animation: qfabShadow 3s ease-in-out infinite; }
[data-theme="light"] .qfab__base { background: radial-gradient(closest-side, rgba(20,40,70,.35), transparent); }
.qfab__tip { position: absolute; bottom: 100%; right: 50%; transform: translate(50%, 6px); padding: 7px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); background: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: .4s var(--ease); }
.qfab:hover .qfab__tip, .qfab:focus-visible .qfab__tip { opacity: 1; transform: translate(50%, -4px); }
@keyframes qfabFloat { 50% { transform: translateY(-7px) rotate(-1.5deg); } }
@keyframes qfabGlow { 50% { opacity: .55; transform: scale(.92); } }
@keyframes qfabShadow { 50% { transform: scaleX(.8); opacity: .6; } }
@media (max-width: 640px) { .qfab { width: 66px; height: 99px; right: 10px; bottom: 64px; } [dir="rtl"] .qfab { left: 10px; } .qfab__tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .qfab__bot, .qfab__glow, .qfab__base { animation: none; } }
[data-theme="light"] .qfab, .qfab { box-shadow: none !important; background: none !important; outline-offset: 4px; }

/* ---------- Q: animated face & actions ---------- */
.qb__body { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.qb__pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.qb__pose--thumb { opacity: 0; }
.qface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qface .x { opacity: 0; transition: opacity .18s; }
.qface .qe, .qface .qm { transform-box: fill-box; transform-origin: center; }
.qb__fx { position: absolute; left: 50%; top: 14%; width: 0; height: 0; pointer-events: none; }
.qb__fx i { position: absolute; left: -10px; top: -10px; font-style: normal; font-weight: 700; font-size: 26px; color: #ff6b9a; text-shadow: 0 0 12px rgba(255,107,154,.6); }
.qb__fx i:not(:empty) { line-height: 1; }
.qfab .qb__fx i { font-size: 15px; }
.qfab__bot { animation: none !important; }
.qfab .qb__pose { filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)); }

/* ---------- Q rig (layered, realistic motion) ---------- */
.qr__rig { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.qr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.qr__body, .qr__hand { filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.qfab .qr__body, .qfab .qr__hand { filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)); }
.qr__head { position: absolute; inset: 0; transform-origin: 56.3% 35.6%; will-change: transform; }
.qr__hand { transform-origin: 17.3% 37.7%; will-change: transform; }
.qr__eye--l { transform-origin: 46.5% 22.8%; }
.qr__eye--r { transform-origin: 65.7% 26.6%; }
.qr__mouth { transform-origin: 55.3% 29%; }
.qfab__bot { inset: 0 0 8px; }

/* cards render in their own perspective so they never sink behind the track (keeps them clickable) */
.services__track { transform-style: flat; }
.svc { transform-style: flat; z-index: 1; }
.svc__icon, .svc h3 { transform: none; }
.qb__fx { left: 56%; top: 6%; z-index: 3; }
.qb__fx i.is-gold { color: #f3d29a; text-shadow: 0 0 12px rgba(232,199,156,.7); font-size: 22px; }
.qfab .qb__fx i.is-gold { font-size: 13px; }

/* ---------- responsive polish (audit) ---------- */
.btn { white-space: nowrap; }
@media (max-width: 640px) {
  .fcta__actions, .cta-band .actions, .phero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .fcta__actions .btn, .cta-band .actions .btn { width: 100%; justify-content: center; }
  .hero__meta, .phero .hero__meta { letter-spacing: .2em; font-size: 10px; gap: 10px; }
  .hero__meta i { width: 22px; }
  .qfab { width: 52px; height: 78px; bottom: 10px; right: 6px; }
  [dir="rtl"] .qfab { left: 6px; right: auto; }
  .cookie { bottom: 76px; }
  .svc__open i { width: 30px; height: 30px; }
}
@media (min-width: 641px) and (max-width: 1080px) {
  .qfab { width: 72px; height: 108px; }
  .services__head h2 { font-size: clamp(32px, 5vw, 52px); }
}

/* ---------- manifesto: clean glass card ---------- */
.manifesto { min-height: 0; max-width: none; padding: clamp(110px, 16vh, 180px) var(--gutter); }
.mcard { max-width: 1180px; margin: 0 auto; padding: clamp(30px, 5vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px) clamp(30px, 5vw, 80px); align-items: end; }
.mcard__head h2 { font-size: clamp(34px, 4.2vw, 64px); margin: 0; }
.manifesto__text { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.6; letter-spacing: 0; font-weight: 400; max-width: none; margin: 0; color: var(--paper); }
.words .wd { opacity: .22; text-shadow: none; }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--faint); }
.pillar { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(232,199,156,.18); background: rgba(255,255,255,.03); transition: border-color .4s, transform .6s var(--ease), background .4s; }
.pillar:hover { border-color: rgba(232,199,156,.55); transform: translateY(-4px); background: rgba(232,199,156,.06); }
.pillar__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: var(--gold); background: linear-gradient(145deg, rgba(176,36,79,.4), rgba(138,21,56,.1)); border: 1px solid rgba(232,199,156,.3); }
[data-theme="light"] .pillar__icon { color: var(--maroon); background: rgba(165,29,72,.08); }
[data-theme="light"] .pillar { background: rgba(255,255,255,.5); }
.pillar b { font-size: 16px; font-weight: 600; }
.pillar small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .mcard { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }
.qr__head .qface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qr__head .qface .x { opacity: 0; transition: opacity .2s; }
.manifesto::before { display: none; }

/* ---------- certificates ---------- */
.certs { padding: clamp(90px, 13vh, 150px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.certs[hidden] { display: none; }
.certgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cert { position: relative; flex: 0 1 300px; min-width: 240px; cursor: pointer; border-radius: 26px; overflow: hidden; background: var(--glass); border: 1px solid rgba(232,199,156,.26); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 100px -50px rgba(0,0,0,.7); transition: transform .7s var(--ease), border-color .5s, box-shadow .6s; }
.cert:hover { transform: translateY(-8px); border-color: rgba(232,199,156,.65); box-shadow: 0 60px 120px -50px rgba(0,0,0,.8), 0 0 0 1px rgba(232,199,156,.2); }
.cert:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.cert__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; background: radial-gradient(120% 90% at 30% 20%, #fbf7f1, #ece3d6); }
.cert__media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(143,90,28,.25); border-radius: 14px; pointer-events: none; }
.cert__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(40,20,10,.22)); transition: transform 1.2s var(--ease); }
.cert:hover .cert__media img { transform: scale(1.04); }
.cert__seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; color: #8f5a1c; background: radial-gradient(circle, #f6e7cc, #e2c597); box-shadow: 0 0 0 6px rgba(143,90,28,.12), 0 20px 40px -10px rgba(143,90,28,.45); }
.cert__seal--lg { width: 140px; height: 140px; font-size: 70px; margin: 60px auto; }
.cert__badge { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 1; padding: 6px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: #0f5132; color: #d7f5e5; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cert__badge--in_progress { background: #8f5a1c; color: #fff4e1; }
.cert__badge--expired { background: #5b5560; color: #eee; }
.cert__badge--inline { position: static; display: inline-block; padding: 3px 10px; font-size: 10.5px; vertical-align: middle; box-shadow: none; }
.cert__body { padding: 20px 22px 24px; }
.cert__issuer { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
[lang="ar"] .cert__issuer { letter-spacing: 0; font-size: 12.5px; }
.cert h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cert__meta span { padding: 5px 11px; border-radius: 99px; font-size: 12px; color: var(--muted); border: 1px solid var(--faint); }
.cert__open { position: absolute; bottom: 20px; inset-inline-end: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(232,199,156,.4); transition: transform .5s var(--ease), background .4s, color .4s; }
.cert:hover .cert__open { transform: rotate(90deg); background: var(--gold); color: #111; }
.cert-modal__media { background: radial-gradient(120% 90% at 30% 20%, #fbf7f1, #ece3d6); padding: 6%; }
.cert-modal__media img { max-height: 70vh; width: 100%; object-fit: contain; }
.cert-facts { list-style: none; padding: 0; margin: 10px 0 26px; display: grid; gap: 8px; }
.cert-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--faint); background: rgba(255,255,255,.03); }
.cert-facts span { color: var(--muted); font-size: 14px; }
.cert-facts b { font-weight: 600; text-align: end; }
@media (max-width: 640px) { .cert { flex-basis: 100%; } }

/* ---------- phones: same choreography as desktop, sized for the hand ---------- */
.hero { --hero-veil: 1; }
.hero::before { opacity: var(--hero-veil); }
@media (max-width: 640px) {
  .services { height: auto; min-height: 100svh; }
  .services__pin { height: 100vh; height: 100svh; padding: 78px 0 14px; justify-content: center; overflow: hidden; }
  .services__head { flex-direction: row; align-items: flex-end; margin-bottom: 0; }
  .services__head h2 { font-size: clamp(28px, 8.4vw, 36px); }
  .services__track { flex-direction: row; width: max-content; gap: 14px; padding: 18px 9vw 22px; }
  .svc { width: 82vw; min-height: min(430px, 60svh); padding: 24px 22px 20px; border-radius: 26px; }
  .svc h3 { margin: 26px 0 10px; font-size: 23px; }
  .svc p { font-size: 14px; margin-bottom: 12px; }
  .svc ul { gap: 6px; margin-bottom: 14px; font-size: 13px; }
  .svc__icon { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; }
  .float { display: block; padding: 9px 12px; border-radius: 14px; max-width: 46vw; }
  .float b { font-size: 12px; } .float span { font-size: 10.5px; }
  .float--a { top: 8%; left: 2%; } .float--b { top: 44%; right: 2%; } .float--c { bottom: 8%; left: 4%; }
  .qget__stage { overflow: visible; }
}
@media (max-width: 640px) and (max-height: 700px) { .svc { min-height: 0; } .svc ul { display: none; } .svc h3 { margin-top: 18px; } }

/* ---------- Q chat: tidy sheet, typing dots, quick chips ---------- */
html.q-chat-open, html.q-chat-open body { overflow: hidden; }
.qchat.is-closing { animation: qfade .32s var(--ease) forwards; }
.qchat.is-closing .qchat__panel { animation: qout .32s var(--ease) forwards; }
@keyframes qfade { to { opacity: 0; } }
@keyframes qout { to { opacity: 0; transform: translateY(40px) scale(.97); } }
.qchat header { position: relative; }
.qchat header img { box-shadow: 0 0 0 2px rgba(232,199,156,.5); }
.qchat header b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.18); vertical-align: middle; }
.msg { animation: msgin .45s var(--ease) both; }
.msg--me { color: #fff; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.msg.is-thinking { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; opacity: 1; animation: msgin .3s var(--ease) both; }
.msg.is-thinking i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: qdot 1.1s infinite ease-in-out; }
.msg.is-thinking i:nth-child(2) { animation-delay: .15s; } .msg.is-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes qdot { 40% { opacity: 1; transform: translateY(-4px); } }
.qchat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; animation: msgin .5s .15s var(--ease) both; }
.qchat__chips button, .qchat__wa { padding: 9px 14px; border-radius: 99px; font: 600 13px/1.2 inherit; font-family: inherit; color: var(--gold); border: 1px solid rgba(232,199,156,.45); background: rgba(232,199,156,.08); text-decoration: none; transition: background .3s, color .3s; }
.qchat__chips button:hover, .qchat__chips button:focus-visible { background: var(--gold); color: #111; }
.qchat__wa { align-self: flex-start; background: #25d366; color: #fff; border-color: transparent; animation: msgin .45s var(--ease) both; }
[data-theme="light"] .qchat__chips button { color: var(--maroon); border-color: rgba(165,29,72,.3); background: rgba(165,29,72,.05); }
[data-theme="light"] .qchat__chips button:hover { background: var(--maroon); color: #fff; }
@media (max-width: 640px) {
  .qchat { padding: 0; place-items: end stretch; background: rgba(4,5,9,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .qchat__panel { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; background: var(--ink); animation: qsheet .5s var(--ease); }
  [data-theme="light"] .qchat__panel { background: #f6f8fb; }
  .qchat header { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
  .qchat__msgs { padding: 16px; overscroll-behavior: contain; }
  .qchat__form { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .qchat__form input { font-size: 16px; }
  .qchat.is-closing .qchat__panel { animation: qsheetout .32s var(--ease) forwards; }
}
@keyframes qsheet { from { transform: translateY(100%); } }
@keyframes qsheetout { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .msg, .qchat__chips, .qchat__panel { animation: none !important; } }

/* ---------- footer: social icons ---------- */
.footer__main { grid-template-columns: 1.4fr 1fr 1.1fr; }
.footer__connect { display: grid; gap: 14px; align-content: start; }
.footer__label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
[lang="ar"] .footer__label { letter-spacing: 0; font-size: 13px; }
.footer__mail { color: var(--muted); font-size: 14px; width: fit-content; transition: color .3s; }
.footer__mail:hover { color: var(--paper); }
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.social__item { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); isolation: isolate;
  background: rgba(255,255,255,.05); border: 1px solid rgba(232,199,156,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px -18px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .5s var(--ease), border-color .4s, color .4s, box-shadow .5s; }
.social__item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--brand); transform: scale(0); transition: transform .5s var(--ease); }
.social__item::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 1px solid var(--brand); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.social__ico { width: 21px; height: 21px; display: grid; transition: transform .5s var(--ease); }
.social__ico svg { width: 100%; height: 100%; }
.social__item:hover, .social__item:focus-visible { transform: translateY(-5px); color: #fff; border-color: transparent; box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--brand) 70%, transparent); outline: none; }
.social__item:hover::before, .social__item:focus-visible::before { transform: scale(1); }
.social__item:hover::after, .social__item:focus-visible::after { opacity: .55; transform: scale(1); }
.social__item:hover .social__ico { transform: scale(1.08) rotate(-6deg); }
.social__tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); padding: 6px 10px; border-radius: 10px; white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; background: rgba(10,11,18,.92); border: 1px solid var(--glass-edge); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.social__item:hover .social__tip, .social__item:focus-visible .social__tip { opacity: 1; transform: translate(-50%, 0); }
[data-theme="light"] .social__item { background: rgba(255,255,255,.65); border-color: rgba(165,29,72,.18); color: #1a1720; box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(30,50,80,.45); }
[data-theme="light"] .social__item:hover { color: #fff; }
@media (hover: none) { .social__tip { display: none; } }
@media (max-width: 860px) { .footer__connect { grid-column: 1 / -1; } }
@media (max-width: 640px) { .social { gap: 10px; } .social__item { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .social__item, .social__item::before, .social__ico { transition: none; } }
.social:not(.is-in) .social__item { opacity: 0; }
.social.is-in .social__item { animation: socialIn .9s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes socialIn { from { opacity: 0; transform: translateY(24px) scale(.6) rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .social:not(.is-in) .social__item { opacity: 1; } .social.is-in .social__item { animation: none; } }

/* Touch performance: native document flow; no scroll-pinned 3D layers. */
@media (max-width: 900px), (pointer: coarse) {
  .hero__title { perspective: none; }
  .reveal { opacity: 1; transform: none; }
  .services { height: auto; min-height: 0; }
  .services__pin { height: auto; min-height: 0; overflow: visible; padding: 78px 0 30px; }
  .services__track { flex-direction: column; width: auto; padding: 20px var(--gutter); gap: 20px; perspective: none; transform-style: flat; }
  .svc { width: 100%; min-height: 0; transform: none; will-change: auto; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .svc { background: rgba(23, 21, 30, .96); }
  [data-theme="light"] .svc { background: rgba(250, 249, 247, .96); }
  .svc ul { display: grid; }
  .grain { display: none; }
  .backdrop__move, .backdrop__img, .marquee__row, .phone { will-change: auto; }
  .manifesto__text .word, .manifesto__text .word span { opacity: 1; }
  .kicker i { transform: none; }
  .kicker span, [dir="rtl"] .kicker span { clip-path: none; }
  [data-split] .w > span, .stagger > * { will-change: auto; }
  .hero__title em .w > span, .phero__title em .w > span, .qfab__glow, .qfab__base { animation: none; }
  .meetq__halo::after, .meetq__bubble, .clients__track, .hero__scroll i { animation-play-state: paused; }
  .touch-motion-active .meetq__halo::after, .touch-motion-active .meetq__bubble,
  .touch-motion-active .clients__track, .touch-motion-active .hero__scroll i { animation-play-state: running; }
  .touch-motion-active #qBot { animation: touchBotFloat 4s ease-in-out infinite; }
  .touch-motion-paused .meetq__halo::after, .touch-motion-paused .meetq__bubble,
  .touch-motion-paused .clients__track, .touch-motion-paused .hero__scroll i,
  .touch-motion-paused #qBot { animation-play-state: paused; }
  .qr__rig { filter: none; }
  .float, .social__item { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@keyframes touchBotFloat { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  .touch-motion-active #qBot, .touch-motion-active .clients__track,
  .touch-motion-active .meetq__halo::after, .touch-motion-active .meetq__bubble,
  .touch-motion-active .hero__scroll i { animation: none; }
}

/* Moving touch layers stay composited without repainting backdrop blur or shadow filters. */
.meetq__bubble b { color: #241921; }
@media (max-width: 900px), (pointer: coarse) {
  .client { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(23,21,30,.9); }
  [data-theme="light"] .client { background: rgba(250,249,247,.94); }
  .clients__track { will-change: transform; }
  .qr__body, .qr__hand, .qfab .qr__body, .qfab .qr__hand { filter: none; }
  .meetq__halo { filter: none; }
  .meetq__bubble { background: #faf6f7; }
}
/* Shadow the assembled thobe rig once, keeping clipped moving layers clean. */
.qr__body,.qr__hand,.qfab .qr__body,.qfab .qr__hand{filter:none}
.qr__rig{filter:drop-shadow(0 22px 30px rgba(0,0,0,.24))}
.qfab .qr__rig{filter:drop-shadow(0 8px 10px rgba(0,0,0,.3))}
@media(max-width:640px){.qr__rig,.qfab .qr__rig{filter:none}}
