/* Kodaro Studio · site styles
   Mobile-first. Logical properties throughout so the Arabic (RTL) pages mirror automatically.
   Breakpoints: 600 (large phone), 900 (tablet), 1200 (laptop). */

@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0F1D24;
  --ink-2: #132630;
  --ink-3: #1B3440;
  --paper: #F3F5F2;
  --white: #FFFFFF;
  --amber: #F5A524;
  --amber-soft: #FFD48A;
  --amber-ink: #8A5400;
  --teal: #1E7479;
  --teal-light: #6CCFD2;
  --slate: #50626A;
  --mist: #A3B5B9;
  --line-dark: rgba(243, 245, 242, .12);
  --line-light: #D5DDDA;

  --f-display: "Unbounded", "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --f-body: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --display-weight: 600;
  --display-track: -0.025em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --radius-s: 10px; --radius-m: 16px; --radius-l: 24px;
  --shadow-1: 0 1px 2px rgba(15, 29, 36, .06), 0 8px 24px rgba(15, 29, 36, .06);
  --shadow-2: 0 2px 4px rgba(15, 29, 36, .08), 0 24px 48px rgba(15, 29, 36, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --t-fast: 160ms; --t-med: 320ms; --t-slow: 700ms;
  --max: 1200px;
  --header-h: 72px;
  color-scheme: light;
}
:lang(ar) {
  --f-display: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --display-weight: 700;
  --display-track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.12; margin: 0; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3, h4) { line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

@view-transition { navigation: auto; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * max(20px, env(safe-area-inset-left, 0px))); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
:lang(ar) .eyebrow { font-family: var(--f-body); letter-spacing: 0; font-size: .92rem; font-weight: 500; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--amber); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 60ch; }
.on-dark .lede { color: var(--mist); }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn { --bg: var(--amber); --fg: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; touch-action: manipulation; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-med); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--ease-out); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 10px 30px rgba(245, 165, 36, .35); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.on-dark .btn--ghost { --fg: var(--paper); border-color: var(--line-dark); }
.on-dark .btn--ghost:hover { border-color: var(--paper); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--dark:hover { box-shadow: 0 10px 30px rgba(15, 29, 36, .3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { scale: -1 1; }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: translateX(-4px); }
.on-dark .link-arrow { color: var(--paper); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); background: rgba(15, 29, 36, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: background-color var(--t-med), border-color var(--t-med); color: var(--paper); }
.site-header.is-scrolled { background: rgba(15, 29, 36, .92); border-bottom-color: var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: "Unbounded", var(--f-body); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; color: var(--mist); margin-top: 5px; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--mist); font-weight: 500; font-size: .98rem; transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover { color: var(--paper); background: rgba(243, 245, 242, .06); }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-inline-start: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); text-decoration: none; font-size: .95rem; color: var(--paper); transition: border-color var(--t-fast); }
.lang-switch:hover { border-color: var(--paper); }
.lang-switch svg { width: 18px; height: 18px; }
.header-cta { display: none; min-height: 44px; padding: 0 18px; font-size: .95rem; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--paper); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* mobile menu (native <dialog>) */
.menu { margin: 0; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 0; background: var(--ink); color: var(--paper); }
.menu::backdrop { background: rgba(15, 29, 36, .6); }
.menu[open] { display: flex; flex-direction: column; animation: menu-in 380ms var(--ease-out); }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-top: env(safe-area-inset-top, 0px); }
.menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu ul { list-style: none; display: grid; gap: 4px; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 7vw, 2.2rem); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.menu nav a svg { width: 24px; height: 24px; color: var(--amber); }
.menu-foot { display: grid; gap: 12px; padding-block: 24px max(24px, env(safe-area-inset-bottom, 0px)); color: var(--mist); }
.menu-foot a { color: var(--paper); }
.menu .stagger > * { animation: rise 520ms var(--ease-out) both; }
.menu .stagger > *:nth-child(2) { animation-delay: 50ms; } .menu .stagger > *:nth-child(3) { animation-delay: 100ms; } .menu .stagger > *:nth-child(4) { animation-delay: 150ms; } .menu .stagger > *:nth-child(5) { animation-delay: 200ms; } .menu .stagger > *:nth-child(6) { animation-delay: 250ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.on-dark { background: var(--ink); color: var(--paper); }
.on-white { background: var(--white); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.section-head--split { max-width: none; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 8vw, 112px); isolation: isolate; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; opacity: .45; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); animation: grid-drift 28s linear infinite; }
@keyframes grid-drift { to { background-position: 56px 56px; } }
.hero-glow { position: absolute; z-index: -1; width: 720px; height: 720px; inset-inline-end: -220px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .22), transparent 65%); pointer-events: none; animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-60px, 60px) scale(1.08); } }
.hero-inner { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 6.2vw, 4.6rem); margin-block: 20px 22px; }
:lang(ar) .hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.hero h1 .hl { color: var(--amber); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: -.08em; height: .1em; border-radius: 1em; background: var(--amber); transform-origin: left; transform: scaleX(0); animation: underline 900ms 900ms var(--ease-out) forwards; }
[dir="rtl"] .hero h1 .hl::after { transform-origin: right; }
@keyframes underline { to { transform: scaleX(1); } }
.hero .lede { color: var(--mist); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--mist); font-size: .92rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--teal-light); }
.word { display: inline-block; opacity: 0; transform: translateY(.5em); animation: word 800ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word { to { opacity: 1; transform: none; } }
.fade-in { animation: rise 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* hero visual: browser building itself */
.stage { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.browser { position: relative; border-radius: var(--radius-l); background: var(--ink-2); border: 1px solid var(--line-dark); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.browser-bar i:first-child { background: var(--amber); }
.browser-url { flex: 1; margin-inline-start: 8px; height: 26px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; padding-inline: 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--mist); direction: ltr; overflow: hidden; white-space: nowrap; }
.browser-url b { color: var(--teal-light); font-weight: 400; }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.blk { border-radius: 10px; background: var(--ink-3); transform-origin: left center; animation: build 900ms var(--ease-out) both; animation-delay: var(--d); }
[dir="rtl"] .blk { transform-origin: right center; }
@keyframes build { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.blk.nav-row { height: 14px; width: 100%; background: transparent; display: flex; justify-content: space-between; animation: none; }
.blk.nav-row span { height: 14px; border-radius: 6px; background: var(--ink-3); animation: build 700ms var(--ease-out) both; animation-delay: var(--d); }
.blk.h { height: 30px; width: 82%; background: linear-gradient(90deg, var(--paper), rgba(243, 245, 242, .7)); }
.blk.h2 { height: 30px; width: 58%; background: linear-gradient(90deg, var(--amber), var(--amber-soft)); }
.blk.p { height: 10px; width: 92%; opacity: .7; }
.blk.p.short { width: 66%; }
.blk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.blk.card { height: 86px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-dark); }
.blk.btn-b { height: 36px; width: 140px; border-radius: 999px; background: var(--amber); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(19, 38, 48, .92); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font-size: .85rem; color: var(--paper); animation: pop 700ms var(--ease-out) both, bob 6s ease-in-out infinite alternate; animation-delay: var(--d), calc(var(--d) + 700ms); }
.float b { font-family: var(--f-mono); font-weight: 400; font-size: 1.15rem; color: var(--amber); }
.float small { display: block; color: var(--mist); font-size: .72rem; }
:lang(ar) .float b { font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; }
.hero h1 .hl { display: inline-block; }
.float svg { width: 22px; height: 22px; color: var(--teal-light); }
.float--speed { inset-inline-start: -14px; bottom: 22%; }
.float--lang { inset-inline-end: -10px; top: 18%; }
.float--seo { inset-inline-end: 8%; bottom: -18px; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob { to { translate: 0 -10px; } }
.gauge { width: 42px; height: 42px; }
.gauge circle { fill: none; stroke-width: 4; }
.gauge .track { stroke: var(--ink-3); }
.gauge .val { stroke: var(--teal-light); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transform: rotate(-90deg); transform-origin: center; animation: gauge 1.6s 1.4s var(--ease-out) forwards; }
@keyframes gauge { to { stroke-dashoffset: 3; } }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.08fr .92fr; }
  .stage { margin-inline: 0; }
}

/* ---------- client strip ---------- */
.clients { padding-block: 40px; border-bottom: 1px solid var(--line-light); background: var(--white); }
.clients-label { text-align: center; font-size: .9rem; color: var(--slate); margin-bottom: 22px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: clamp(48px, 8vw, 96px); align-items: center; animation: marquee 32s linear infinite; padding-inline: 24px; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.client-logo { display: flex; align-items: center; height: 64px; filter: grayscale(1); opacity: .62; transition: filter var(--t-med), opacity var(--t-med); }
.client-logo:hover { filter: none; opacity: 1; }
.client-logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; }
.client-logo.tall img { height: 64px; }

/* ---------- services ---------- */
.services-grid { display: grid; gap: 16px; }
.svc { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line-light); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med); }
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 165, 36, .14), transparent 45%); opacity: 0; transition: opacity var(--t-med); pointer-events: none; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--amber); }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.28rem; }
.svc p { color: var(--slate); }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-family: var(--f-mono); font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--slate); }
:lang(ar) .svc li { font-family: var(--f-body); font-size: .8rem; }
.svc .link-arrow { margin-top: 6px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- benefits (dark) ---------- */
.benefits { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-l); overflow: hidden; }
.benefit { display: grid; gap: 12px; align-content: start; padding: 32px 28px; background: var(--ink); transition: background-color var(--t-med); }
.benefit:hover { background: var(--ink-2); }
.benefit svg { width: 30px; height: 30px; color: var(--amber); }
.benefit h3 { font-size: 1.12rem; }
.benefit p { color: var(--mist); font-size: .98rem; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

/* ---------- work ---------- */
.work-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.work-card { display: grid; gap: 18px; text-decoration: none; color: inherit; }
.work-media { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10.4; isolation: isolate; }
.work-media .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-out); }
.work-card:hover .work-media .shot { transform: scale(1.04); }
.work-media .phone { position: absolute; inset-inline-end: 5%; bottom: -8%; width: 23%; border-radius: 18px; border: 5px solid var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); overflow: hidden; background: var(--ink); transition: transform 900ms var(--ease-out); }
.work-media .phone img { width: 100%; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }
.work-card:hover .phone { transform: translateY(-14px) rotate(-2deg); }
.work-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.work-meta h3 { font-size: 1.35rem; }
.work-meta p { color: var(--slate); margin-top: 6px; }
.on-dark .work-meta p { color: var(--mist); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-family: var(--f-mono); font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-light); color: var(--slate); }
:lang(ar) .tags span { font-family: var(--f-body); font-size: .8rem; }
.on-dark .tags span { border-color: var(--line-dark); color: var(--mist); }
.work-go { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.work-go svg { width: 20px; height: 20px; }
.work-card:hover .work-go { background: var(--amber); border-color: var(--amber); transform: rotate(-45deg); }
[dir="rtl"] .work-card:hover .work-go { transform: rotate(45deg); }
.on-dark .work-go { border-color: var(--line-dark); }
.on-dark .work-card:hover .work-go { color: var(--ink); }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .work-grid .work-card:nth-child(even) { margin-top: 72px; } }

/* case studies (work page) */
.case { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-light); }
.case:first-of-type { border-top: 0; }
.case .work-media { aspect-ratio: 16 / 10; }
.case-body { display: grid; gap: 16px; }
.case-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.case-body .where { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 500; }
.case-body .where svg { width: 18px; height: 18px; }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.case-facts div { padding: 16px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line-light); }
.case-facts dt { font-size: .82rem; color: var(--slate); }
.case-facts dd { margin: 4px 0 0; font-weight: 600; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.on-dark .checks svg { color: var(--teal-light); }
@media (min-width: 1000px) {
  .case { grid-template-columns: 1.1fr .9fr; }
  .case:nth-of-type(even) .work-media { order: 2; }
}

/* ---------- process ---------- */
.process { position: relative; display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; padding-inline-start: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--amber); font-family: var(--f-mono); font-size: .85rem; }
.on-dark .step::before { background: var(--amber); color: var(--ink); }
.step h3 { font-size: 1.2rem; padding-top: 8px; }
.step p { color: var(--slate); }
.on-dark .step p { color: var(--mist); }
.step .when { font-family: var(--f-mono); font-size: .78rem; color: var(--amber-ink); }
:lang(ar) .step .when { font-family: var(--f-body); }
.on-dark .step .when { color: var(--amber); }
.process-line { position: absolute; inset-inline-start: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line-light); }
.on-dark .process-line { background: var(--line-dark); }
.process-line::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: view()) {
  .process-line::after { animation: draw-line linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
}
@supports not (animation-timeline: view()) { .process-line::after { transform: scaleY(1); } }
@keyframes draw-line { to { transform: scaleY(1); } }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { padding-inline-start: 0; padding-top: 72px; }
  .step::before { top: 0; }
  .process-line { inset-inline: 0; top: 22px; bottom: auto; width: auto; height: 2px; }
  .process-line::after { transform-origin: left; transform: scaleX(0); }
  [dir="rtl"] .process-line::after { transform-origin: right; }
  @supports (animation-timeline: view()) { .process-line::after { animation-name: draw-line-x; } }
  @supports not (animation-timeline: view()) { .process-line::after { transform: scaleX(1); } }
}
@keyframes draw-line-x { to { transform: scaleX(1); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-light); }
.stat { padding: 28px 24px; background: var(--white); display: grid; gap: 4px; }
.stat b { font-family: "Unbounded", var(--f-body); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--slate); font-size: .95rem; }
@media (min-width: 900px) { .stats:not(.stats--2) { grid-template-columns: repeat(4, 1fr); } }
.feature-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-grid--plain .work-card:nth-child(even) { margin-top: 0; } }
.work-grid--plain:has(> :only-child) { max-width: 760px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line-light); transition: border-color var(--t-med), box-shadow var(--t-med); }
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med); }
.faq summary .pm svg { width: 18px; height: 18px; }
.faq details[open] .pm { transform: rotate(45deg); background: var(--amber); }
.faq .answer { padding: 0 22px 22px; color: var(--slate); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); padding: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--paper); display: grid; gap: 28px; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; inset-inline-end: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .3), transparent 65%); }
.cta-band .mark-bg { position: absolute; z-index: -1; inset-inline-end: 6%; bottom: -30px; width: 220px; opacity: .08; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.cta-band p { color: var(--mist); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta-actions { justify-content: flex-end; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(48px, 7vw, 96px); isolation: isolate; }
.page-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); margin-block: 18px 18px; max-width: 20ch; }
.page-hero .lede { color: var(--mist); }
.page-hero .hero-ctas { margin-top: 28px; }
.crumbs { font-size: .88rem; color: var(--mist); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }

/* ---------- prose / two-col ---------- */
.two-col { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col--wide { grid-template-columns: .8fr 1.2fr; } }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 12px; }
.prose h3 { font-size: 1.2rem; margin-top: 8px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-inline-start: 20px; display: grid; gap: 8px; }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line-light); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--teal); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--slate); font-size: .97rem; margin-top: 4px; }
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-light); font-weight: 500; }
.industries svg { width: 18px; height: 18px; color: var(--teal); }

/* ---------- about ---------- */
.values { display: grid; gap: 16px; }
.value { padding: 28px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line-light); display: grid; gap: 10px; }
.value .n { font-family: var(--f-mono); color: var(--amber-ink); font-size: .8rem; }
.value p { color: var(--slate); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list span { font-family: var(--f-mono); font-size: .8rem; padding: 6px 12px; border-radius: 8px; background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-dark); direction: ltr; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line-light); text-decoration: none; color: inherit; transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--amber); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--slate); font-size: .85rem; }
.contact-card strong { font-weight: 600; overflow-wrap: anywhere; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-1); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: #B42318; margin-inline-start: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line-light); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(245, 165, 36, .3); }
.field .hint { font-size: .85rem; color: var(--slate); }
.field .err { font-size: .88rem; color: #B42318; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-light); cursor: pointer; font-size: .95rem; transition: all var(--t-fast); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { display: block; background: #E6F4EA; color: #14532D; }
.form-status.bad { display: block; background: #FDECEA; color: #8A1C12; }
.form .btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.form .btn[aria-busy="true"] .arrow { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: .85rem; color: var(--slate); }

/* ---------- profile download ---------- */
.downloads { display: grid; gap: 16px; }
@media (min-width: 800px) { .downloads { grid-template-columns: 1fr 1fr; } }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line-light); text-decoration: none; color: inherit; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.dl:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.dl-cover { width: 92px; aspect-ratio: 210 / 297; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--ink); }
.dl-cover img { width: 100%; height: 100%; object-fit: cover; }
.dl h3 { font-size: 1.15rem; }
.dl p { color: var(--slate); font-size: .92rem; margin-block: 4px 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding-top: clamp(56px, 8vw, 96px); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-about { display: grid; gap: 18px; max-width: 360px; }
.footer-col h2 { font-family: var(--f-mono); font-weight: 400; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
:lang(ar) .footer-col h2 { font-family: var(--f-body); letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; color: var(--mist); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--paper); }
.footer-col svg { width: 18px; height: 18px; flex: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--paper); transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .88rem; }
.footer-bottom a { color: var(--mist); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

/* floating WhatsApp */
.wa-float { position: fixed; z-index: 90; inset-inline-end: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform var(--t-med) var(--ease-out); animation: pop 600ms 1.6s var(--ease-out) both; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--stagger, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: "Unbounded", var(--f-body); font-size: clamp(5rem, 18vw, 11rem); color: var(--amber); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-grid, .hero-glow { animation: none !important; }
}
@media print { .site-header, .wa-float, .menu { display: none !important; } }

/* generated utilities (build.py) */
.d-1040{--d:1040ms}
.d-1120{--d:1120ms}
.d-120{--d:120ms}
.d-1200{--d:1200ms}
.d-1300{--d:1300ms}
.d-1500{--d:1500ms}
.d-1700{--d:1700ms}
.d-220{--d:220ms}
.d-300{--d:300ms}
.d-500{--d:500ms}
.d-60{--d:60ms}
.d-600{--d:600ms}
.d-620{--d:620ms}
.d-740{--d:740ms}
.d-750{--d:750ms}
.d-820{--d:820ms}
.d-900{--d:900ms}
.d-920{--d:920ms}
.i-0{--i:0}
.i-1{--i:1}
.i-2{--i:2}
.i-3{--i:3}
.i-4{--i:4}
.i-5{--i:5}
.i-6{--i:6}
.u-003bc8e{font-size:1.15rem !important}
.u-031fbe8{font-size:clamp(1.6rem,4vw,2.4rem) !important}
.u-06bfec5{display:grid !important;gap:18px !important;justify-items:center !important}
.u-1386d50{margin:0 !important}
.u-14a8518{color:var(--mist) !important}
.u-1e4fdb4{list-style:none !important}
.u-2495b89{padding-bottom:0 !important}
.u-2b79b51{padding-inline-start:64px !important}
.u-2f189b6{--d:300ms !important;width:22% !important}
.u-343cb84{font-size:1.5rem !important}
.u-473ccf5{display:grid !important;gap:40px !important;align-content:start !important}
.u-4f21952{min-height:44px !important}
.u-511cd16{padding-top:0 !important}
.u-5d7ce26{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:16px !important;justify-content:space-between !important}
.u-6b92b84{align-self:center !important}
.u-6c21bc3{color:var(--slate) !important}
.u-6e8efae{font-size:1.3rem !important}
.u-7b995d0{display:grid !important;gap:18px !important;align-content:start !important}
.u-80017f4{list-style:none !important;gap:20px !important}
.u-8ea3959{font-size:1.08rem !important}
.u-9b54a37{justify-content:center !important}
.u-a32bb4e{display:grid !important;gap:16px !important}
.u-b05bb44{font-size:1.05rem !important;padding-top:10px !important}
.u-b5e1311{font-size:1.4rem !important;margin-bottom:24px !important}
.u-b8a8520{display:grid !important;gap:20px !important;align-content:start !important}
.u-bfa03e4{display:contents !important}
.u-c407398{--d:380ms !important;width:40% !important}
.u-c451fdb{position:relative !important}
.u-c96227c{padding-top:clamp(24px,4vw,48px) !important}
.u-cbd3289{padding-bottom:clamp(64px,9vw,120px) !important}
.u-f074460{display:inline-flex !important;gap:10px !important;align-items:center !important;min-height:36px !important}
