/* ───────── Tokens ───────── */
:root {
  --ink: #07080c;
  --ink-2: #0d0f16;
  --ink-3: #151824;
  --line: rgba(237, 234, 227, .1);
  --line-2: rgba(237, 234, 227, .18);
  --text: #edeae3;
  --muted: #8c8f9c;
  --lapis: #2b5bff;
  --lapis-2: #6f8dff;
  --gold: #e9b949;
  --gold-2: #f5d98c;
  --faience: #2ee6c5;
  --grad: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 30%, var(--lapis-2) 75%, var(--faience) 100%);
  --sans: 'Inter Tight', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Inter Tight', system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:root[dir="rtl"] { --sans: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif; --display: 'Alexandria', sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Grain */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  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");
  }

/* ───────── Loader ───────── */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: transform 1.1s var(--ease) .1s; }
.loader.out { transform: translateY(-100%); }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-mark { font: italic 400 clamp(64px, 12vw, 132px)/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; animation: pulse 2.4s var(--ease) infinite; }
.loader-name { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .loader-name { letter-spacing: 0; font-size: 16px; }
.loader-count { position: absolute; bottom: var(--pad); inset-inline-end: var(--pad); font: 500 clamp(40px, 8vw, 96px)/1 'Inter Tight', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; opacity: .9; }
@keyframes pulse { 50% { opacity: .55 } }

/* Page transition */
.curtain { position: fixed; inset: 0; z-index: 99; background: var(--ink-2); display: grid; place-items: center; pointer-events: none; transform: translateY(100%); }
.curtain .mark { width: 64px; height: 64px; font-size: 30px; opacity: 0; transition: opacity .3s .25s; }
.curtain.enter { transform: none; transition: transform .65s var(--ease); pointer-events: auto; }
.curtain.enter .mark { opacity: 1; }
.curtain.cover { transform: none; transition: none; }
.curtain.cover .mark { opacity: 1; transition: none; }
.curtain.lift { transform: translateY(-100%); transition: transform .9s var(--ease) .1s; }

/* ───────── Cursor ───────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 95; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text); pointer-events: none; mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s; }
.cursor span { font-size: 12px; font-weight: 500; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--gold); }
.cursor.big span { opacity: 1; }
.cursor.link { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ───────── Nav ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); transition: transform .5s var(--ease), background .4s, backdrop-filter .4s; }
.nav.solid { background: rgba(7, 8, 12, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -.01em; }
.mark { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: italic 400 19px/1 var(--serif); color: var(--ink); background: var(--grad); }
.links { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; background: rgba(13, 15, 22, .75); }
.links a { padding: 7px 16px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.links a:hover, .links a.on { color: var(--text); background: rgba(237, 234, 227, .07); }
.nav-r { display: flex; align-items: center; gap: 10px; }
.lang { height: 40px; min-width: 48px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; transition: background .3s; }
.lang:hover { background: rgba(237, 234, 227, .06); }
.pill { height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 99px; background: var(--text); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .3s; }
.pill:hover { background: var(--gold); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
body.menu .burger span:first-child { transform: translateY(3px) rotate(45deg); }
body.menu .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ───────── Type ───────── */
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker .count { font: italic 400 16px var(--serif); color: var(--gold); letter-spacing: 0; }
.h2 { font-size: clamp(38px, 6.2vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
[dir="rtl"] .h2 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.25; font-size: clamp(32px, 5.2vw, 76px); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .08s; }
.in .ln > span { transform: none; }
.em { font: italic 400 1.04em/1 var(--serif); letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
[dir="rtl"] .em { font: 300 1em/1.25 var(--display); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.h2.reveal, .mega.reveal { opacity: 1; transform: none; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 26px; overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--ink)); z-index: -1; pointer-events: none; }
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 2.4s var(--ease); }
.liquid.on { opacity: 1; }
.liquid.nogl { background: radial-gradient(40% 50% at 70% 40%, rgba(43, 91, 255, .35), transparent 70%), radial-gradient(30% 40% at 80% 60%, rgba(233, 185, 73, .25), transparent 70%); opacity: 1; }
.hero-kicker { position: absolute; top: 110px; inset-inline-start: var(--pad); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--faience); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 197, .6) } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 230, 197, 0) } }
.hero-grid { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(18px, 3vw, 40px); }
.hero-lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: rgba(237, 234, 227, .82); max-width: 430px; }
.hero-now { text-align: end; display: flex; flex-direction: column; gap: 4px; }
.hero-now small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .hero-now small { letter-spacing: 0; font-size: 14px; }
.swap { font: italic 400 clamp(26px, 2.6vw, 38px)/1.15 var(--serif); color: var(--gold-2); display: inline-block; transition: opacity .45s, transform .6s var(--ease), filter .45s; }
[dir="rtl"] .swap { font: 400 clamp(22px, 2.2vw, 32px)/1.4 var(--display); }
.swap.out { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
.name { font-size: clamp(54px, 13.4vw, 250px); line-height: .84; font-weight: 500; letter-spacing: -.065em; white-space: nowrap; margin-inline-start: -.05em; }
.name .w { display: inline-block; overflow: hidden; padding-bottom: .07em; vertical-align: top; }
.name .c { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.name .w + .w { margin-inline-start: .18em; }
.name .w:last-child .c { font: italic 400 1.07em/1 var(--serif); letter-spacing: -.02em; background: var(--grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .03em; }
.ready .name .c { transform: none; }
[dir="rtl"] .name { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-size: clamp(54px, 12vw, 220px); margin: 0; }
[dir="rtl"] .name .w:last-child .c { font: 300 1em/1.2 var(--display); letter-spacing: -.02em; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 26px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%) } 60%, 100% { transform: translateY(100%) } }

/* ───────── Marquee ───────── */
.marquee { overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); }
.track { display: flex; width: max-content; animation: marq 38s linear infinite; }
[dir="rtl"] .track { animation-name: marq-r; }
.track span { display: inline-flex; align-items: center; gap: 36px; padding-inline-end: 36px; font-size: clamp(28px, 4vw, 54px); font-weight: 500; letter-spacing: -.035em; white-space: nowrap; }
[dir="rtl"] .track span { font-family: var(--display); letter-spacing: 0; }
.track span:nth-child(even) { font: italic 400 clamp(30px, 4.3vw, 58px) var(--serif); color: var(--muted); letter-spacing: 0; }
[dir="rtl"] .track span:nth-child(even) { font: 300 clamp(28px, 4vw, 54px) var(--display); }
.track span::after { content: '✦'; font: normal 400 18px var(--sans); color: var(--gold); }
@keyframes marq { to { transform: translateX(-50%) } }
@keyframes marq-r { to { transform: translateX(50%) } }

/* ───────── Sections ───────── */
.sec { padding: clamp(90px, 13vw, 180px) var(--pad); }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 1100px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: end; gap: 30px; max-width: none; }

/* Featured project */
.feat { display: block; position: relative; border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); isolation: isolate; }
.feat-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.feat-media img, .feat-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.8s var(--ease); }
.feat.in .feat-media img, .feat.in .feat-media video { transform: scale(1.02); }
.feat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 12, .35), transparent 22%); pointer-events: none; }
.feat-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 48px); padding: clamp(22px, 3vw, 40px); border-top: 1px solid var(--line); }
.feat-title { font-size: clamp(40px, 5.6vw, 88px); line-height: .95; font-weight: 500; letter-spacing: -.05em; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(7, 8, 12, .7); color: rgba(237, 234, 227, .88); }
.chip.gold { border-color: rgba(233, 185, 73, .5); color: var(--gold-2); }
.feat-blurb { max-width: 520px; color: rgba(237, 234, 227, .72); font-size: 16px; }
.feat-go { width: clamp(68px, 7vw, 100px); aspect-ratio: 1; border-radius: 50%; background: var(--text); color: var(--ink); display: grid; place-items: center; font-size: 26px; transition: background .3s, transform .6s var(--ease); }
.feat:hover .feat-go { background: var(--gold); transform: rotate(-45deg); }
[dir="rtl"] .feat-go i { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .feat:hover .feat-go { transform: rotate(45deg); }
.feat-year { position: absolute; top: clamp(16px, 2.4vw, 30px); inset-inline-end: clamp(18px, 2.6vw, 34px); font: italic 400 24px var(--serif); z-index: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.feat-idx { position: absolute; top: clamp(16px, 2.4vw, 30px); inset-inline-start: clamp(18px, 2.6vw, 34px); z-index: 1; }

.rows { margin-top: 22px; }
.row { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 24px; padding: 30px 8px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 91, 255, .14), rgba(233, 185, 73, .08)); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.row:hover::before { transform: none; }
.row-n { font: italic 400 20px var(--serif); color: var(--muted); }
.row-t { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; color: rgba(237, 234, 227, .5); transition: color .4s, transform .6s var(--ease); }
[dir="rtl"] .row-t { font-family: var(--display); letter-spacing: 0; }
.row:hover .row-t { color: var(--text); transform: translateX(10px); }
[dir="rtl"] .row:hover .row-t { transform: translateX(-10px); }
.row-c { font-size: 13px; color: var(--muted); }
.row-s { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--muted); white-space: nowrap; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.about-card { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #1b2033, var(--ink-2)); border: 1px solid var(--line); isolation: isolate; }
.about-card .liquid { z-index: 0; }
.about-mono { position: absolute; inset-inline-start: 26px; bottom: 6px; font: italic 400 clamp(110px, 15vw, 220px)/1 var(--serif); color: var(--text); z-index: 1; mix-blend-mode: overlay; }
.about-tag { position: absolute; top: 22px; inset-inline-start: 22px; z-index: 1; }
.about-copy > p:not(.kicker) { font-size: clamp(16px, 1.25vw, 19px); color: rgba(237, 234, 227, .78); max-width: 600px; margin-top: 20px; }
.about-copy .h2 { font-size: clamp(34px, 4.6vw, 68px); }
[dir="rtl"] .about-copy .h2 { font-size: clamp(30px, 3.8vw, 56px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
[dir="rtl"] .facts dt { letter-spacing: 0; font-size: 13px; }
.facts dd { font-size: 15px; }

/* Services */
.svc { border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc button { width: 100%; display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 38px) 8px; text-align: start; }
.svc-n { font: italic 400 20px var(--serif); color: var(--gold); }
.svc-t { font-size: clamp(28px, 4.2vw, 62px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; transition: transform .6s var(--ease), color .4s; }
[dir="rtl"] .svc-t { font-family: var(--display); letter-spacing: 0; line-height: 1.3; }
.svc button:hover .svc-t { transform: translateX(12px); }
[dir="rtl"] .svc button:hover .svc-t { transform: translateX(-12px); }
.svc-i { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .4s, border-color .4s, color .4s; }
.svc-i::before, .svc-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; }
.svc-i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.svc li.open .svc-i { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.svc li.open .svc-i::after { transform: rotate(0); }
.svc li.open .svc-t { color: var(--gold-2); }
.svc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc li.open .svc-b { grid-template-rows: 1fr; }
.svc-b > div { overflow: hidden; padding-inline-start: calc(70px + 24px + 8px); }
.svc-b p { max-width: 560px; color: rgba(237, 234, 227, .75); font-size: 17px; }
.svc-b ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 36px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 26px 32px; min-height: 300px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s, transform .6s var(--ease), opacity 1s var(--ease); }
.steps li:hover { border-color: rgba(233, 185, 73, .4); transform: translateY(-6px); }
.steps li::before { counter-increment: s; content: '0' counter(s); font: italic 400 64px/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; padding-inline-end: .1em; align-self: flex-start; }
.steps li::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; inset-inline-end: -80px; top: -80px; background: radial-gradient(circle, rgba(43, 91, 255, .28), transparent 70%); }
.steps h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; margin: 40px 0 10px; }
[dir="rtl"] .steps h3 { font-family: var(--display); letter-spacing: 0; }
.steps p { color: var(--muted); font-size: 15px; }

/* Writing */
.posts { border-top: 1px solid var(--line); }
.post a { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: baseline; padding: 30px 8px; border-bottom: 1px solid var(--line); transition: background .4s; }
.post a:hover { background: rgba(237, 234, 227, .025); }
.post time { font-size: 13px; color: var(--muted); }
.post h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; transition: color .3s; }
.post [lang="ar"] h3, .post h3:lang(ar) { font-family: 'Alexandria', sans-serif; letter-spacing: 0; line-height: 1.45; }
.post a:hover h3 { color: var(--gold-2); }
.post p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 680px; }
.post p:lang(ar) { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.post-meta { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.post-lang { font-size: 11px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); }
.post-draft { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(233, 185, 73, .15); color: var(--gold-2); }
.posts-empty { padding: 30px 8px; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 15px; white-space: nowrap; transition: background .3s, color .3s; }
.link-arrow:hover { background: var(--text); color: var(--ink); }
[dir="rtl"] .link-arrow i, [dir="rtl"] .back i { display: inline-block; transform: scaleX(-1); }

/* Contact */
.contact { position: relative; min-height: 100svh; padding: 140px var(--pad) 100px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 18%, rgba(7, 8, 12, .55) 48%, transparent 75%); z-index: -1; }
[dir="rtl"] .contact::before { background: linear-gradient(-90deg, var(--ink) 18%, rgba(7, 8, 12, .55) 48%, transparent 75%); }
.mega { font-size: clamp(54px, 10.5vw, 180px); line-height: .9; font-weight: 500; letter-spacing: -.06em; }
[dir="rtl"] .mega { font-family: var(--display); letter-spacing: -.01em; line-height: 1.25; font-size: clamp(44px, 8.2vw, 140px); }
.contact-sub { font-size: clamp(17px, 1.4vw, 20px); color: rgba(237, 234, 227, .78); margin-top: 28px; max-width: 460px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.c-link { display: inline-flex; flex-direction: column; gap: 4px; padding: 18px 28px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(7, 8, 12, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .35s, color .35s, border-color .35s; }
.c-link small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .35s; }
[dir="rtl"] .c-link small { letter-spacing: 0; font-size: 13px; }
.c-link b { font: 500 clamp(18px, 1.8vw, 24px) 'Inter Tight', sans-serif; letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
.c-link:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.c-link:hover small { color: rgba(7, 8, 12, .6); }
.c-soon { color: var(--muted); }

/* Footer */
.foot { padding: 36px var(--pad) 28px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.foot-time small { color: var(--muted); font-size: 13px; }
.foot-time b { font-weight: 500; font-variant-numeric: tabular-nums; font-family: 'Inter Tight', sans-serif; }
.socials { display: flex; gap: 18px; }
.socials a, .totop { color: var(--muted); transition: color .3s; }
.socials a:hover, .totop:hover { color: var(--text); }
.foot-legal { margin-top: 24px; font-size: 12px; color: var(--muted); }

/* ───────── Inner pages (case study, blog) ───────── */
.page-hero { padding: 150px var(--pad) 50px; }
.back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 40px; transition: color .3s; }
.back:hover { color: var(--text); }
.case-title { font-size: clamp(56px, 12vw, 210px); line-height: .88; font-weight: 500; letter-spacing: -.065em; }
.page-lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; color: rgba(237, 234, 227, .8); max-width: 820px; margin-top: 34px; }
.case-badge { display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; font-size: 13px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(233, 185, 73, .4); color: var(--gold-2); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
[dir="rtl"] .case-meta dt { letter-spacing: 0; }
.case-video { margin: 0 var(--pad); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.case-video video { width: 100%; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: clamp(70px, 9vw, 130px) var(--pad); }
.case-body h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
[dir="rtl"] .case-body h3 { font-family: var(--display); letter-spacing: 0; line-height: 1.35; }
.case-body p { font-size: clamp(16px, 1.3vw, 19px); color: rgba(237, 234, 227, .78); margin-bottom: 18px; max-width: 720px; }
#built { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
#built li { padding: 24px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
#built b { display: block; color: var(--text); font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 var(--pad); }
.gal img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.gal .wide { grid-column: 1 / -1; }
.gal-mob { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px var(--pad) 0; max-width: 1000px; margin: 0 auto; }
.gal-mob img { border-radius: 20px; border: 1px solid var(--line); }
.next { display: block; padding: clamp(90px, 12vw, 170px) var(--pad); border-top: 1px solid var(--line); text-align: center; }
.next small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.next b { font-size: clamp(48px, 9vw, 150px); font-weight: 500; letter-spacing: -.06em; line-height: .95; transition: color .4s; }
[dir="rtl"] .next b, [dir="rtl"] .case-title { font-family: var(--display); letter-spacing: -.01em; line-height: 1.2; }
.next:hover b { color: var(--gold-2); }

/* Blog index & article */
.blog-title { font-size: clamp(56px, 11vw, 190px); line-height: .9; font-weight: 500; letter-spacing: -.065em; }
.blog-filters { display: flex; gap: 8px; margin-top: 40px; }
.blog-filters button { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all .3s; }
.blog-filters button.on { background: var(--text); color: var(--ink); border-color: var(--text); }
.blog-list { padding: 0 var(--pad) clamp(90px, 12vw, 160px); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--grad); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: right; }
.article-head { padding: 150px var(--pad) 40px; max-width: 980px; margin: 0 auto; }
.article-head h1 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -.045em; margin-top: 18px; }
.article-head h1:lang(ar) { font-family: 'Alexandria', sans-serif; letter-spacing: -.01em; line-height: 1.35; font-size: clamp(32px, 4.6vw, 64px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; align-items: center; }
.prose { max-width: 720px; margin: 0 auto; padding: 30px var(--pad) 100px; font-size: 19px; line-height: 1.75; color: rgba(237, 234, 227, .86); box-sizing: content-box; }
.prose:lang(ar) { font-size: 19px; line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.03em; color: var(--text); margin-top: 2em; }
.prose h3 { font-size: 23px; font-weight: 500; color: var(--text); margin-top: 1.6em; }
.prose:lang(ar) h2, .prose:lang(ar) h3 { font-family: 'Alexandria', sans-serif; letter-spacing: 0; line-height: 1.5; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 217, 140, .4); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { border-inline-start: 2px solid var(--gold); padding: 4px 0 4px 1.1em; color: var(--text); font-size: 1.12em; }
.prose:lang(ar) blockquote { padding: 4px 1.1em 4px 0; }
.prose code { font: .86em ui-monospace, 'SF Mono', Menlo, monospace; background: var(--ink-3); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; }
.prose img { border-radius: 16px; border: 1px solid var(--line); margin: 1.6em 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.article-end { max-width: 720px; margin: 0 auto; padding: 0 var(--pad) 100px; box-sizing: content-box; }
.article-cta { padding: 34px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(43, 91, 255, .22), transparent 60%), var(--ink-2); border: 1px solid var(--line); }
.article-cta h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.article-cta p { color: var(--muted); margin: 8px 0 22px; }
.article-cta:lang(ar) h3 { font-family: 'Alexandria', sans-serif; letter-spacing: 0; }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 0 var(--pad); border: 0; border-radius: 0; background: rgba(7, 8, 12, .97); opacity: 0; pointer-events: none; transition: opacity .4s; }
  body.menu .links { opacity: 1; pointer-events: auto; }
  .links a { font-size: 44px; font-weight: 500; letter-spacing: -.04em; color: var(--text); padding: 4px 0; background: none !important; }
  [dir="rtl"] .links a { font-family: var(--display); letter-spacing: 0; }
  .burger { display: block; }
  .logo-name { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-card { aspect-ratio: 4 / 3.4; }
  .feat-media { aspect-ratio: 16 / 10; }
  .feat-body { grid-template-columns: 1fr; gap: 14px; }
  .feat-go { display: none; }
  .case-body { grid-template-columns: 1fr; gap: 20px; }
  #built { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pill { display: none; }
  .hero { padding-top: 96px; }
  .hero-kicker { top: 88px; font-size: 13px; }
  .hero-grid { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-now { text-align: start; }
  .name { font-size: clamp(44px, 16.5vw, 120px); white-space: normal; line-height: .86; }
  .name .w { display: block; width: fit-content; }
  .name .w + .w { margin: 0; }
  [dir="rtl"] .name { font-size: clamp(48px, 17vw, 120px); line-height: 1.2; }
  .hero-foot > span:last-child { display: none; }
  .row { grid-template-columns: 34px 1fr; gap: 6px 12px; padding: 22px 4px; }
  .row-c, .row-s { grid-column: 2; justify-self: start; }
  .svc button { grid-template-columns: 30px 1fr 40px; gap: 12px; }
  .svc-i { width: 40px; height: 40px; }
  .svc-b > div { padding-inline-start: 42px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 230px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .post a { grid-template-columns: 1fr; gap: 8px; }
  .sec-head.split { flex-direction: column; align-items: flex-start; }
  .gal { grid-template-columns: 1fr; }
  .contact { justify-content: flex-end; padding-bottom: 70px; }
  .contact::before { background: linear-gradient(180deg, rgba(7, 8, 12, .1) 10%, rgba(7, 8, 12, .85) 55%, var(--ink) 80%) !important; }
  .c-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
