/* Layout: a store-builder's working index — every store is a case file you can open, switch between desktop and phone, and read feature by feature. */
:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #12201f;
  --muted: #5a6866;
  --line: #d9dedb;
  --accent: #0f6b66;
  --accent-ink: #ffffff;
  --gold: #b88a4a;
  --chip: #e7ecea;
  --glow: rgba(15, 107, 102, 0.14);
  --shadow: 0 1px 0 rgba(18, 32, 31, 0.04), 0 22px 44px -30px rgba(18, 32, 31, 0.4);
  --f-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.4rem, 6vw, 4.6rem);
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1514; --surface: #142120; --ink: #e8efed; --muted: #9fb0ad; --line: #24332f;
    --accent: #3fb3a8; --accent-ink: #06201d; --gold: #d3a866; --chip: #1b2a28; --glow: rgba(63, 179, 168, 0.16);
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 22px 44px -30px rgba(0,0,0,.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1514; --surface: #142120; --ink: #e8efed; --muted: #9fb0ad; --line: #24332f;
  --accent: #3fb3a8; --accent-ink: #06201d; --gold: #d3a866; --chip: #1b2a28; --glow: rgba(63, 179, 168, 0.16);
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 22px 44px -30px rgba(0,0,0,.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.65 var(--f-sans); overflow-x: clip; }
html[data-lang="ar"] body { font-family: var(--f-ar); }
html[data-lang="ar"] [lang="en"], html[data-lang="en"] [lang="ar"] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
html[data-lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.label { font: 500 var(--step--1)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ar"] .label { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-weight: 600; }

.rise { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.rise.pending { transform: translateY(18px); }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.mark b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--f-mono); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }
@media (max-width: 900px) { .nav .hide-sm { display: none; } }
.lang { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 var(--f-sans); cursor: pointer; }
html[data-lang="en"] .lang { font-family: var(--f-ar); }
.progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress { transform-origin: right; }

.btn { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -14px var(--accent); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow, .visit:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow, html[dir="rtl"] .visit:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 8vw, 96px) 30px; isolation: isolate; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto; height: 620px; z-index: -1; background: radial-gradient(40% 50% at var(--mx, 70%) var(--my, 30%), var(--glow), transparent 70%); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.5); } 100% { box-shadow: 0 0 0 10px rgba(43,182,115,0); } }
.hero h1 { font-size: var(--step-4); font-weight: 600; }
.rot { display: inline-grid; color: var(--accent); vertical-align: bottom; }
.rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .5s; white-space: nowrap; }
.rot > span.on { opacity: 1; transform: none; }
.rot > span.off { opacity: 0; transform: translateY(-40%); }
.hero .lede { margin-top: 22px; font-size: var(--step-1); color: var(--muted); max-width: 44ch; line-height: 1.55; }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.facts strong { display: block; font: 600 var(--step-3)/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--step--1); color: var(--muted); }

.portrait { position: relative; justify-self: center; width: min(100%, 380px); }
@media (max-width: 979px) { .portrait { width: min(78%, 320px); } }
.portrait .frame { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 28px 28px; overflow: hidden; background: linear-gradient(160deg, var(--chip), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { position: absolute; inset: 0; display: grid; place-items: center; font: 600 clamp(80px, 14vw, 140px)/1 var(--f-mono); color: color-mix(in srgb, var(--accent) 35%, transparent); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.f1 { top: 12%; inset-inline-start: -14%; }
.f2 { top: 46%; inset-inline-end: -12%; animation-delay: -2s; }
.f3 { bottom: 8%; inset-inline-start: -8%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) { .f1 { inset-inline-start: -2%; } .f2 { inset-inline-end: -2%; } .f3 { inset-inline-start: 0; } }

.strip { overflow: hidden; padding-block: 34px 6px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.strip-track img { width: 320px; height: 200px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); }
@keyframes drift { to { transform: translateX(-50%); } }
html[dir="rtl"] .strip-track { animation-name: drift-rtl; }
@keyframes drift-rtl { to { transform: translateX(50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 100px); }
.head { display: grid; gap: 12px; margin-bottom: 30px; max-width: 64ch; }
.head h2 { font-size: var(--step-3); font-weight: 600; }
.head p { color: var(--muted); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter .n { font: 500 12px var(--f-mono); opacity: .6; margin-inline-start: 6px; }

.cases { display: grid; gap: 26px; }
.case { position: relative; display: grid; gap: 28px; padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.case::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--cx, -100px) var(--cy, -100px), var(--glow), transparent 60%); opacity: 0; transition: opacity .3s; }
.case:hover::after { opacity: 1; }
.case[hidden] { display: none; }
@media (min-width: 1000px) { .case { grid-template-columns: 1.15fr 1fr; align-items: start; } .case.flip .stage { order: 2; } }
.stage { position: relative; display: grid; gap: 12px; min-width: 0; }
.views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); justify-self: start; }
.views button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.views button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.screen { position: relative; aspect-ratio: 16 / 10.5; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, var(--chip), transparent); overflow: hidden; }
.screen .desk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1), filter .45s; }
.screen .phone { position: relative; height: 92%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1); opacity: 0; transform: translateY(24px) scale(.96); }
.case[data-view="phone"] .desk { opacity: .12; transform: scale(1.04); filter: blur(2px); }
.case[data-view="phone"] .phone { opacity: 1; transform: none; }
.screen .live { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); font: 500 11px/1 var(--f-mono); border: 1px solid var(--line); direction: ltr; }
.screen .live i { width: 6px; height: 6px; border-radius: 50%; background: #2bb673; }
.case-body { display: grid; gap: 16px; min-width: 0; }
.case-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role { font: 600 12px/1 var(--f-sans); padding: 7px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.role.ops { background: var(--chip); color: var(--ink); }
.tag { font: 500 12px/1 var(--f-mono); padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.case h3 { font-size: var(--step-2); font-weight: 600; }
.case .sum { color: var(--muted); }
.feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.feats li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feats li:hover { border-color: var(--accent); transform: translateY(-2px); }
.feats .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.feats b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.feats div > span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.more { justify-self: start; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.feats li.extra { display: none; }
.case.open .feats li.extra { display: grid; }
.links { display: flex; flex-wrap: wrap; gap: 16px; }
.visit { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--accent); text-decoration: none; }
.visit:hover { text-decoration: underline; }

.skills { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.skill { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 10px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-align: center; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.skill:hover, .skill:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.skill .si { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); color: var(--accent); transition: transform .4s cubic-bezier(.2,.8,.2,1), background .25s, color .25s; }
.skill:hover .si, .skill:focus-visible .si { transform: rotate(-6deg) scale(1.08); background: var(--accent); color: var(--accent-ink); }
.skill .si .txt { font: 600 15px/1 var(--f-mono); }
.skill b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.skill .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; width: 210px; transform: translate(-50%, 6px); padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3; }
.skill:hover .tip, .skill:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.skill[hidden] { display: none; }
@media (hover: none) { .skill .tip { display: none; } }

.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service { background: var(--surface); padding: 26px; display: grid; gap: 12px; align-content: start; transition: background .25s; }
.service:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.service .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.service h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.service p { color: var(--muted); font-size: 15px; }
.service .for { font: 500 12px/1.5 var(--f-mono); color: var(--gold); }
html[data-lang="ar"] .service .for { font-family: var(--f-ar); font-weight: 600; }

.data-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .data-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.panel h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 14px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { font: 600 20px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.kpi em { display: block; margin-top: 4px; font: 500 12px/1 var(--f-mono); font-style: normal; color: var(--accent); }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--muted); font: 11px var(--f-mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.chart.armed .line { stroke-dashoffset: 900; }
.chart.armed.drawn .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
.chart .bar { fill: var(--accent); opacity: .85; transform-origin: bottom; transform-box: fill-box; }
.chart.armed .bar { transform: scaleY(0); }
.chart.armed.drawn .bar { transform: scaleY(1); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sample { margin-top: 10px; font-size: 12px; color: var(--muted); }
.delivers { display: grid; gap: 14px; }
.deliver { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.deliver:last-child { border-bottom: 0; padding-bottom: 0; }
.deliver code { font: 500 12px/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; background: var(--chip); color: var(--accent); height: fit-content; }
.deliver p { color: var(--muted); }
.deliver b { color: var(--ink); display: block; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 16px; display: grid; gap: 8px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1 var(--f-mono); color: var(--gold); }
.steps b { font-size: var(--step-1); font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; }

.cv { display: grid; gap: 28px; }
@media (min-width: 980px) { .cv { grid-template-columns: 1.15fr 1fr; } }
.timeline { position: relative; display: grid; gap: 26px; padding-inline-start: 24px; align-content: start; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 5px; width: 2px; background: var(--line); }
.job { position: relative; display: grid; gap: 4px; }
.job::before { content: ""; position: absolute; top: 7px; inset-inline-start: -24px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.job time { font: 500 13px/1.6 var(--f-mono); color: var(--muted); }
.job b { font-size: var(--step-1); font-weight: 600; }
.job p { color: var(--muted); }
.certs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-content: start; }
.cert { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); transition: transform .2s, border-color .2s; }
.cert:hover { transform: translateY(-2px); border-color: var(--gold); }
.cert .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.cert b { display: block; font-size: 14px; line-height: 1.35; }
.cert span { font-size: 12px; color: var(--muted); }

.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(26px, 5vw, 56px); display: grid; gap: 32px; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); animation: bob 10s ease-in-out infinite; pointer-events: none; }
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact > * { position: relative; min-width: 0; }
.contact h2 { font-size: var(--step-3); font-weight: 600; }
.contact .sub { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 14px; max-width: 42ch; }
.lines { display: grid; gap: 12px; margin-top: 26px; }
.line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 8%, transparent); }
.line > div { min-width: 0; }
.line .v { font: 500 15px/1.4 var(--f-mono); user-select: all; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.line .k { font-size: 12px; color: color-mix(in srgb, var(--bg) 60%, transparent); display: block; }
.copy { border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); background: transparent; color: var(--bg); border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--f-sans); cursor: pointer; text-decoration: none; }
.brief { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 24px; display: grid; gap: 16px; }
.brief h3 { font-size: var(--step-1); font-weight: 600; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { cursor: pointer; position: relative; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .2s; }
.opts input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; background: var(--bg); color: var(--ink); resize: vertical; }
.brief .send { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 12px; color: var(--muted); }

footer { padding-block: 34px 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }


/* ---------- skills marquee: two rows of big tiles drifting opposite ways ---------- */
.skills-band { overflow: hidden; }
.marquee { display: grid; gap: 18px; padding-block: 8px 6px; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mrow { overflow: visible; }
.mtrack { display: flex; gap: 18px; width: max-content; padding-block: 34px 10px; animation: slide 48s linear infinite; }
.mrow.rev .mtrack { animation-direction: reverse; animation-duration: 56s; padding-top: 14px; }
.mrow:first-child .mtrack { padding-top: 92px; }
.marquee { margin-top: -60px; }
.marquee:hover .mtrack, .marquee:focus-within .mtrack { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .mtrack { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.tile { position: relative; flex: 0 0 auto; width: 168px; display: grid; justify-items: center; gap: 12px; padding: 22px 12px 16px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); text-align: center; transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; perspective: 600px; }
.tile:hover, .tile:focus-visible { transform: translateY(-8px) scale(1.04); border-color: var(--accent); box-shadow: var(--shadow); z-index: 2; }
.tile .ti { position: relative; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: var(--chip); color: var(--accent); transition: transform .7s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.tile .ti::after { content: ""; position: absolute; inset: -5px; border-radius: 26px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0; transition: opacity .3s; animation: spin 9s linear infinite; }
.tile:hover .ti, .tile:focus-visible .ti { transform: rotateY(360deg); background: var(--accent); color: var(--accent-ink); }
.tile:hover .ti::after, .tile:focus-visible .ti::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile .ti svg { width: 38px; height: 38px; }
.tile .ti .txt { font: 600 22px/1 var(--f-mono); }
.tile b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tile small { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
html[data-lang="ar"] .tile small { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-weight: 600; }
.tile .tip { position: absolute; bottom: calc(100% + 10px); left: 50%; width: 220px; transform: translate(-50%, 6px); padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; }
.tile:hover .tip, .tile:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.skill-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.skill-legend b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .tile { width: 132px; padding: 16px 8px 12px; } .tile .ti { width: 62px; height: 62px; border-radius: 18px; } .tile .ti svg { width: 30px; height: 30px; } .tile b { font-size: 13px; } }

/* ---------- case extras ---------- */
.hl { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hl li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.hl li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-sans); padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.screen .live.pilot i { background: var(--gold); animation: pulse-g 2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.play { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 11px 18px; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; transition: transform .2s; }
.play:hover { transform: translateY(-2px); }
.play i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); }
.play i::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.ops-intro { display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 40px); border-radius: 22px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.ops-intro::before { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -140px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 50%, transparent), transparent); pointer-events: none; }
.ops-intro > * { position: relative; }
.ops-intro h3 { font-size: var(--step-2); font-weight: 600; }
.ops-intro .sum { color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 70ch; }
.ops-intro .label { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.ops-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1000px) { .ops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ops-grid div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 12%, transparent); transition: transform .25s, background .25s; }
.ops-grid div:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--bg) 12%, transparent); }
.ops-grid .oi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); }
.ops-grid b { display: block; font-size: 14px; }
.ops-grid span { font-size: 13px; color: color-mix(in srgb, var(--bg) 68%, transparent); line-height: 1.45; }
.ops-intro[hidden] { display: none; }

/* ---------- data case study ---------- */
.study { display: grid; gap: 22px; padding: clamp(18px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 24px; }
.study h3 { font-size: var(--step-2); font-weight: 600; margin-top: 10px; }
.study .sum { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.study-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .study-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.study-shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #fff; }
.study-shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.study-shot:hover img { transform: scale(1.03); }
.zoom-hint { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(18,32,31,.82); color: #fff; font-size: 12px; font-weight: 600; }
.story { display: grid; gap: 18px; min-width: 0; }
.kpi .neg { color: #c2453b; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; display: grid; gap: 2px; padding: 0 0 14px; padding-inline-start: 38px; color: var(--muted); font-size: 14.5px; }
.flow li::before { content: counter(f); position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--accent); font: 600 12px/1 var(--f-mono); }
.flow li::after { content: ""; position: absolute; inset-inline-start: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow b { color: var(--ink); font-weight: 600; }
.flow li.root::before { background: var(--gold); color: #fff; content: "!"; }
.flow li.root b { color: var(--gold); }
.recs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.recs > div { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.slides { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.slides button { flex: 0 0 auto; width: 210px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; scroll-snap-align: start; transition: transform .25s; }
.slides button:hover { transform: translateY(-3px); }
.slides img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.qs li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); }
.qs li::before { content: "?"; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--chip); color: var(--accent); font: 600 13px/1 var(--f-mono); }

/* ---------- certificates ---------- */
.cert-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ccard { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.ccard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--gold); }
.ccard .thumb { position: relative; aspect-ratio: 16 / 11; padding: 0; border: 0; background: var(--chip); cursor: zoom-in; overflow: hidden; display: grid; place-items: center; }
.ccard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.ccard:hover .thumb img { transform: scale(1.05); }
.ccard .thumb.blank { cursor: default; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }
.ccard .thumb.blank .seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--gold); border: 2px solid color-mix(in srgb, var(--gold) 50%, transparent); }
.ccard .cbody { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.ccard .issuer { font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ccard b { font-size: 15px; line-height: 1.35; }
.ccard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ccard .verify { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 13px; }
.ccard .verify:hover { text-decoration: underline; }
.ccard[hidden] { display: none; }
.training { margin-top: 26px; display: grid; gap: 10px; }
.training .row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 500; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(8, 14, 13, .86); backdrop-filter: blur(6px); animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-body { max-width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.lb-body img, .lb-body video { max-width: 100%; max-height: calc(100vh - 80px); border-radius: 12px; background: #fff; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); inset-inline-end: max(14px, env(safe-area-inset-right, 0px)); width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .mtrack { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .mrow.rev { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise.pending { transform: none; }
}

/* ===================== v5 additions ===================== */

/* reveal: elements below the fold rise, sharpen and fade up as they enter */
.rise { transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .9s ease, filter .9s ease; }
.rise.pending { transform: translateY(34px) scale(.985); opacity: .25; filter: blur(4px); }
.stagger > * { transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .7s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.stagger.pending > * { transform: translateY(22px); opacity: .2; }

/* hero portrait: cut-out photo inside an arch with turning rings */
.portrait .frame { background: radial-gradient(70% 60% at 50% 35%, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent) 80%, #071a19) 100%); border: 0; }
.portrait .frame img { object-fit: cover; object-position: bottom; transform: translateY(var(--py, 0px)); transition: transform .2s linear; }
.portrait .rings { position: absolute; inset: -9%; z-index: -1; pointer-events: none; }
.portrait .rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 38s linear infinite; }
.portrait .rings i:nth-child(2) { inset: 9%; border-style: solid; border-color: color-mix(in srgb, var(--gold) 35%, transparent); animation-duration: 26s; animation-direction: reverse; }
.portrait .rings i:nth-child(3) { inset: -7%; border: 0; background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--accent) 60%, transparent) 88%, transparent 100%); -webkit-mask: radial-gradient(closest-side, transparent 96%, #000 97%); mask: radial-gradient(closest-side, transparent 96%, #000 97%); animation-duration: 6s; }
.orbit { position: absolute; inset: -9%; z-index: 2; pointer-events: none; animation: spin 30s linear infinite; }
.orbit span { position: absolute; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow); animation: spin 30s linear infinite reverse; }
.orbit span:nth-child(1) { top: -2%; left: 50%; margin-left: -22px; }
.orbit span:nth-child(2) { top: 50%; right: -2%; margin-top: -22px; }
.orbit span:nth-child(3) { bottom: -2%; left: 50%; margin-left: -22px; }
.orbit span:nth-child(4) { top: 50%; left: -2%; margin-top: -22px; }
@media (max-width: 560px) { .orbit span { width: 36px; height: 36px; border-radius: 11px; } }

/* hero headline: words slide up one after another */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.split .w > span { display: inline-block; transform: translateY(105%); animation: wordup .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordup { to { transform: none; } }
.hero .lede, .hero .cta, .hero .facts, .hero .status { animation: fadeup 1s cubic-bezier(.16,1,.3,1) both; }
.hero .lede { animation-delay: .55s; } .hero .cta { animation-delay: .7s; } .hero .facts { animation-delay: .85s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
.portrait { animation: popin 1.2s cubic-bezier(.16,1,.3,1) .2s both; }
@keyframes popin { from { opacity: 0; transform: scale(.9) translateY(20px); } }

/* magnetic buttons */
.btn.mag { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }

/* brand logo strip */
.brands { padding-block: 26px 10px; }
.brands .cap { text-align: center; margin-bottom: 16px; }
.lstrip { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ltrack { display: flex; gap: 18px; width: max-content; animation: slide 36s linear infinite; }
html[dir="rtl"] .ltrack { animation-name: slide-rtl; }
.lstrip:hover .ltrack { animation-play-state: paused; }
.lchip { flex: 0 0 auto; height: 84px; min-width: 170px; padding: 14px 26px; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.lchip.dark { background: #111; }
.lchip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lchip img { max-height: 52px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .3s, opacity .3s; }
.lchip:hover img, .lchip.dark img { filter: none; opacity: 1; }

/* track headers */
.track-head { display: grid; gap: 14px; margin-bottom: 30px; }
.track-head .kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-sans); color: var(--accent); }
.track-head .kicker i { width: 34px; height: 2px; background: var(--accent); transform-origin: left; animation: grow 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.track-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
.track-head p { color: var(--muted); max-width: 66ch; font-size: 17px; }

/* case: brand badge, tilt and screens strip */
.brandbadge { display: inline-grid; place-items: center; height: 46px; min-width: 96px; padding: 6px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.brandbadge.dark { background: #111; border-color: #111; }
.brandbadge img { max-height: 32px; max-width: 120px; object-fit: contain; }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.screen { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.screens { display: grid; gap: 10px; }
.screens .strip2 { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screens button { flex: 0 0 auto; position: relative; width: 150px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--chip); cursor: zoom-in; scroll-snap-align: start; transition: transform .25s, border-color .25s; }
.screens button.m { width: 66px; }
.screens button:hover { transform: translateY(-3px); border-color: var(--accent); }
.screens img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.screens button.m img { aspect-ratio: 9 / 16; }
.screens .cap2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screens .cap2 button.all { width: auto; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }

/* gallery lightbox */
.gal { display: grid; gap: 14px; justify-items: center; width: min(1200px, 100%); }
.gal figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.gal figure img { max-height: calc(100vh - 170px); border-radius: 12px; background: #fff; }
.gal figcaption { color: #fff; font-size: 15px; text-align: center; max-width: 70ch; }
.gal figcaption b { display: block; font-size: 17px; }
.gal .gnav { display: flex; align-items: center; gap: 14px; color: #fff; font: 500 13px var(--f-mono); }
.gal .gnav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 20px; cursor: pointer; }

/* demo dashboard */
.dash { display: grid; gap: 16px; padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 24px; }
.dash-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dash-top h3 { font-size: var(--step-1); font-weight: 600; }
.dash .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.dash .seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.dash .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dash .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 700px) { .dash .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .dash-grid { grid-template-columns: 1.5fr 1fr; } }
.dash .box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.dash .box h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.funnel { display: grid; gap: 8px; }
.funnel div { display: grid; grid-template-columns: 96px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.funnel .bar2 { height: 14px; border-radius: 7px; background: var(--chip); overflow: hidden; }
.funnel .bar2 i { display: block; height: 100%; width: var(--w, 0%); border-radius: 7px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold))); transition: width 1s cubic-bezier(.16,1,.3,1); }
.funnel b { font: 600 13px var(--f-mono); color: var(--ink); text-align: end; }
.chan { display: grid; gap: 8px; margin-top: 14px; }
.chan div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.chan b { color: var(--ink); font-family: var(--f-mono); }
#dash-line .line { transition: d .8s ease; }
.dash .note { font-size: 12px; color: var(--muted); }

/* cover card for stores shown without photography */
.cover { position: relative; aspect-ratio: 16 / 10.5; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background:
  radial-gradient(60% 70% at 70% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
  radial-gradient(50% 60% at 15% 90%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 70%),
  linear-gradient(160deg, var(--chip), var(--surface)); border: 1px solid var(--line); isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask: radial-gradient(70% 70% at 50% 50%, #000, transparent); z-index: -1; animation: gridmove 18s linear infinite; }
@keyframes gridmove { to { background-position: 28px 28px, 28px 28px; } }
.cv-logo { margin-bottom: 16%; position: relative; z-index: 2; padding: 22px 34px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -24px rgba(0,0,0,.35); animation: float 6s ease-in-out infinite; }
.cv-logo img { max-height: 70px; max-width: 220px; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-8px); } }
.cv-ui { position: absolute; inset: 9% 7%; z-index: 1; pointer-events: none; }
.cv-ui i { position: absolute; border-radius: 10px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); overflow: hidden; }
.cv-ui i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 2.6s ease-in-out infinite; }
.cv-ui .a { top: 0; left: 0; right: 0; height: 9%; }
.cv-ui .b { top: 16%; left: 0; width: 23%; height: 70%; }
.cv-ui .c { top: 16%; left: 27%; width: 20%; height: 32%; animation-delay: .2s; }
.cv-ui .d { top: 16%; right: 0; width: 20%; height: 32%; }
.cv-ui .e { bottom: 0; left: 27%; width: 20%; height: 32%; }
.cv-ui .f { bottom: 0; right: 0; width: 20%; height: 32%; }
.cv-ui i:nth-child(2)::after { animation-delay: .3s; } .cv-ui i:nth-child(3)::after { animation-delay: .6s; } .cv-ui i:nth-child(4)::after { animation-delay: .9s; } .cv-ui i:nth-child(5)::after { animation-delay: 1.2s; } .cv-ui i:nth-child(6)::after { animation-delay: 1.5s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.cv-chips { position: absolute; z-index: 3; bottom: 6%; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-inline: 12px; }
.cv-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); animation: chipin .8s cubic-bezier(.16,1,.3,1) both; }
.cv-chips span svg { color: var(--accent); }
.cv-chips span:nth-child(2) { animation-delay: .1s; } .cv-chips span:nth-child(3) { animation-delay: .2s; } .cv-chips span:nth-child(4) { animation-delay: .3s; }
@keyframes chipin { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@media (max-width: 560px) { .cv-chips span:nth-child(n+3) { display: none; } .cv-logo img { max-height: 48px; max-width: 160px; } }

/* toolkit tiles v2: coloured badges, drawn icons, optional logos */
.tile { width: 178px; background: var(--surface); }
.tile .ti { width: 86px; height: 86px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 14px 28px -16px var(--c2); }
.tile.c-build { --c1: #12857e; --c2: #0b4f4b; }
.tile.c-track { --c1: #e0814a; --c2: #b2482b; }
.tile.c-data { --c1: #4a7fe0; --c2: #26489e; }
.tile.c-cloud { --c1: #6b7c8f; --c2: #384656; }
.tile.c-ai { --c1: #b07ae6; --c2: #6a3cb4; }
.tile.c-grow { --c1: #d4a24a; --c2: #9c6a1f; }
.tile .ti svg { width: 42px; height: 42px; }
.tile .ti svg * { stroke-dasharray: 120; stroke-dashoffset: 0; }
.tile:hover .ti svg *, .tile:focus-visible .ti svg * { animation: draw 1.1s ease forwards; }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.tile:hover .ti, .tile:focus-visible .ti { background: linear-gradient(145deg, var(--c2), var(--c1)); color: #fff; }
.tile .ti::after { border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.tile .ti.has-logo { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile .ti.has-logo > svg, .tile .ti.has-logo > .txt { display: none; }
.tile .tlogo { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; }
.tile small { color: var(--c2); }
html[data-theme="dark"] .tile small { color: var(--c1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile small { color: var(--c1); } }
@media (max-width: 700px) { .tile { width: 138px; } .tile .ti { width: 66px; height: 66px; border-radius: 20px; } .tile .ti svg { width: 32px; height: 32px; } }

/* ===================== v6: gallery showcase, case study, systems ===================== */

/* hero: pale arch, glass panels behind the cut-out (person sits above the panels) */
.portrait .parch { position: absolute; inset: 0; border-radius: 200px 200px 28px 28px; background: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent) 30%, var(--surface)) 100%); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); box-shadow: var(--shadow); }
.portrait .frame { background: transparent !important; box-shadow: none; z-index: 2; }
.portrait .float { z-index: 4; }
.portrait .orbit { z-index: 3; }
.glass { position: absolute; z-index: 1; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, #fff 55%, var(--line)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -26px rgba(18,32,31,.45); animation: bob 7s ease-in-out infinite; pointer-events: none; }
.glass svg { display: block; width: 100%; height: auto; }
.glass .gl { stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glass .gb { fill: var(--accent); opacity: .75; }
.glass .gm { fill: color-mix(in srgb, var(--muted) 45%, transparent); }
.glass .gc { fill: none; stroke: var(--accent); stroke-width: 7; }
.glass .gc2 { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 7; }
.glass.g1 { width: 30%; top: 27%; inset-inline-start: -4%; animation-delay: -1s; }
.glass.g2 { width: 38%; top: 50%; inset-inline-start: -15%; animation-delay: -3s; }
.glass.g3 { width: 40%; top: 13%; inset-inline-end: -13%; animation-delay: -5s; }
@media (max-width: 560px) { .glass.g2 { inset-inline-start: -6%; } .glass.g3 { inset-inline-end: -6%; } }

/* showcase: one big moving stage per custom platform */
.show { position: relative; display: grid; gap: 22px; }
.show-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .show-grid { grid-template-columns: 0.85fr 1.15fr; } }
.show-info { position: relative; display: grid; min-width: 0; }
.si { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1), visibility 0s .6s; }
.si.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .15s, transform .8s cubic-bezier(.16,1,.3,1) .15s, visibility 0s; }
.si h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
.si .sum { color: var(--muted); font-size: 16.5px; max-width: 52ch; }
.own { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-sans); padding: 7px 10px; border-radius: 999px; background: var(--gold); color: #fff; }
.si .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.si .stats div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.si .stats strong { display: block; font: 600 22px/1.1 var(--f-mono); color: var(--accent); }
.si .stats span { font-size: 12.5px; color: var(--muted); }
.si .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.src-note { font-size: 12px; color: var(--muted); }

.show-stage { position: relative; aspect-ratio: 16 / 11; min-width: 0; isolation: isolate; }
.show-stage .halo { position: absolute; inset: 4% 8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.show-stage .ring { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.show-stage .ring.r1 { inset: -4% 6%; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); animation: spin 50s linear infinite; }
.show-stage .ring.r2 { inset: 8% 16%; border: 1.5px solid color-mix(in srgb, var(--gold) 30%, transparent); animation: spin 36s linear infinite reverse; }
.sf { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateX(40px) scale(.97); transition: opacity .7s ease, transform 1s cubic-bezier(.16,1,.3,1), visibility 0s .7s; }
html[dir="rtl"] .sf { transform: translateX(-40px) scale(.97); }
.sf.on { opacity: 1; visibility: visible; transform: none !important; transition: opacity .7s ease, transform 1s cubic-bezier(.16,1,.3,1), visibility 0s; }
.browser { position: absolute; top: 6%; bottom: 8%; inset-inline-start: 0; width: 88%; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(18,32,31,.55); }
.bbar { height: 30px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: var(--chip); border-bottom: 1px solid var(--line); direction: ltr; }
.bbar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.bbar span { margin-inline-start: 10px; padding: 3px 12px; border-radius: 6px; background: var(--surface); font: 500 11px/1.3 var(--f-mono); color: var(--muted); }
.browser .shot { position: absolute; inset: 30px 0 0; overflow: hidden; }
.browser .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: 50% 0; }
.sf.on .browser .shot img { animation: kb 9s ease-in-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-2%); } }
.sphone { position: absolute; bottom: 0; inset-inline-end: 0; width: 24%; aspect-ratio: 9 / 19; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform: translateY(26px); opacity: 0; transition: transform 1s cubic-bezier(.16,1,.3,1) .35s, opacity .6s ease .35s; }
.sf.on .sphone { transform: none; opacity: 1; }
.sphone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sfloat { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(14px) scale(.95); }
.sfloat small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.sfloat .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--chip); color: var(--accent); flex: 0 0 auto; }
.sf.on .sfloat { animation: chipin .8s cubic-bezier(.16,1,.3,1) forwards, bob 6s ease-in-out 1s infinite; }
.sf.on .sfloat.p1 { animation-delay: .55s, 1.4s; } .sf.on .sfloat.p2 { animation-delay: .75s, 2.2s; } .sf.on .sfloat.p3 { animation-delay: .95s, 3s; }
.sf.on .sfloat { animation-fill-mode: forwards; }
@keyframes chipin { to { opacity: 1; transform: none; } }
.sfloat.p1 { top: 0; inset-inline-end: 6%; }
.sfloat.p2 { top: 44%; inset-inline-start: -4%; }
.sfloat.p3 { bottom: 4%; inset-inline-start: 18%; }
@media (max-width: 700px) { .sfloat { font-size: 11.5px; padding: 7px 10px; } .sfloat small { display: none; } .sfloat .ic { width: 24px; height: 24px; } .sfloat.p2 { inset-inline-start: 0; } .sfloat.p3 { inset-inline-start: 4%; } .bbar { height: 22px; } .browser .shot { top: 22px; } }

.show-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stab { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: start; overflow: hidden; transition: border-color .3s, transform .3s; }
.stab:hover { transform: translateY(-2px); }
.stab[aria-selected="true"] { border-color: var(--accent); }
.stab .lg { flex: 0 0 auto; width: 54px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.stab .lg.dark { background: #111; }
.stab .lg img { max-width: 44px; max-height: 28px; object-fit: contain; }
.stab b { display: block; font-size: 14.5px; }
.stab small { display: block; font-size: 12px; color: var(--muted); }
.stab .pg { position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .stab .pg { transform-origin: right; }
.stab[aria-selected="true"] .pg { animation: fillbar var(--dur, 8s) linear forwards; }
.show.paused .stab .pg { animation-play-state: paused; }
@keyframes fillbar { to { transform: scaleX(1); } }
@media (max-width: 700px) { .show-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .stab { scroll-snap-align: start; } }

/* Gulf Fashion rail */
.gf { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 20px; }
.gf-head { display: grid; gap: 10px; max-width: 72ch; }
.gf-head h3 { font-size: var(--step-2); font-weight: 600; }
.gf-head p { color: var(--muted); }
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 500; }
.gf-chips svg { color: var(--accent); }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; }
.rcard { flex: 0 0 min(300px, 78%); scroll-snap-align: start; display: grid; gap: 10px; padding: 0 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: start; cursor: pointer; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.rcard:hover, .rcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.rcard .cover { aspect-ratio: 16 / 11; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.rcard .cover .cv-logo { margin-bottom: 0; padding: 16px 24px; }
.rcard .cover .cv-logo img { max-height: 48px; max-width: 150px; }
.rcard .rimg { aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--chip); }
.rcard .rimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.rcard:hover .rimg img { transform: scale(1.06); }
.rcard .rb { display: grid; gap: 4px; padding-inline: 16px; }
.rcard b { font-size: 16px; }
.rcard .rs { font-size: 13px; color: var(--muted); }
.rcard .rk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rcard .rk span { font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.rcard .rk span.q { border-color: var(--gold); color: var(--gold); }
.rnav { display: flex; gap: 8px; justify-content: flex-end; }
.rnav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; }
html[dir="rtl"] .rnav button { transform: scaleX(-1); }

/* case study sheet */
.cs { position: fixed; inset: 0; z-index: 40; display: grid; justify-items: center; align-items: end; background: rgba(8, 14, 13, .62); backdrop-filter: blur(4px); animation: fade .25s ease; }
.cs[hidden] { display: none; }
.cs-panel { position: relative; width: min(1180px, 100%); height: min(94vh, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -30px 80px -40px rgba(0,0,0,.6); animation: sheet .6s cubic-bezier(.16,1,.3,1); }
@keyframes sheet { from { transform: translateY(60px); opacity: 0; } }
.cs-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 3vw, 32px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cs-top .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-top .who b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-top .acts { display: flex; align-items: center; gap: 8px; }
.cs-top .btn { white-space: nowrap; }
@media (max-width: 560px) { .cs-top .brandbadge { display: none; } .cs-top .btn { padding: 8px 12px; font-size: 13px; } .cs-panel { height: 100%; border-radius: 0; } }
.cs-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.cs-body { display: grid; gap: clamp(36px, 5vw, 56px); padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) 60px; }
.cs-hero { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .cs-hero { grid-template-columns: 1.2fr 1fr; } }
.cs-hero .pic { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--chip); padding: 0; cursor: zoom-in; }
.cs-hero .pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cs-hero h2 { font-size: var(--step-3); font-weight: 600; }
.cs-hero .sum { color: var(--muted); font-size: 16.5px; }
.cs-hero .meta { display: grid; gap: 12px; }
.cs-sec { display: grid; gap: 16px; }
.cs-sec > h3 { font-size: var(--step-1); font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cs-sec > h3 small { font: 500 12px var(--f-mono); color: var(--muted); }
html[data-lang="ar"] .cs-sec > h3 small { font-family: var(--f-ar); }
.nums { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.nums div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.nums strong { display: block; font: 600 26px/1.1 var(--f-mono); color: var(--accent); }
.nums span { font-size: 13px; color: var(--muted); }
.nums.sample div { background: transparent; border-style: dashed; }
.nums.sample strong { color: var(--ink); }
.nums em { display: block; margin-top: 4px; font: 500 12px var(--f-mono); font-style: normal; color: var(--gold); }
.badge-sample { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); font: 600 11.5px/1.2 var(--f-sans); }
.cs-shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cs-shots button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--chip); cursor: zoom-in; transition: transform .25s, border-color .25s; }
.cs-shots button:hover { transform: translateY(-3px); border-color: var(--accent); }
.cs-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cs-shots button.m img { object-fit: contain; background: var(--ink); }
.arch { display: grid; gap: 10px; }
.arow { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 640px) { .arow { grid-template-columns: 1fr; gap: 6px; } }
.arow > b { font: 600 12px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
html[data-lang="ar"] .arow > b { font-family: var(--f-ar); text-transform: none; letter-spacing: 0; }
.arow > div { display: flex; flex-wrap: wrap; gap: 8px; }
.node { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.node svg { color: var(--accent); flex: 0 0 auto; }
.node small { font-weight: 400; color: var(--muted); }
.arow.core .node { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.arow.core .node svg, .arow.core .node small { color: inherit; opacity: .9; }
.arrowdown { justify-self: center; width: 2px; height: 14px; background: linear-gradient(var(--line), var(--accent)); }
.ints { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.int { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.int .ii { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.int b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.int b i { font: 500 10.5px/1 var(--f-mono); font-style: normal; padding: 4px 6px; border-radius: 5px; background: var(--chip); color: var(--muted); direction: ltr; }
.int > div > span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cs .feats div > span { display: block; }

/* systems section */
.sys-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sys-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.sys-tabs button svg { color: var(--accent); }
.sys-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sys-tabs button[aria-selected="true"] svg { color: inherit; }
.sys-pane { display: grid; gap: 18px; padding: clamp(18px, 3vw, 30px); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); animation: fadeup .6s cubic-bezier(.16,1,.3,1); }
.sys-pane[hidden] { display: none; }
.sys-pane > p { color: var(--muted); max-width: 75ch; }
.wf { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); counter-reset: w; }
.wf li { counter-increment: w; position: relative; display: grid; gap: 8px; align-content: start; padding: 16px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.wf li::before { content: counter(w, decimal-leading-zero); font: 500 12px/1 var(--f-mono); color: var(--gold); }
.wf li .wi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.wf li b { font-size: 14.5px; }
.wf li span { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (min-width: 1100px) { .wf { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wf li::after { content: ""; position: absolute; top: 50%; inset-inline-end: -11px; width: 10px; height: 2px; background: var(--accent); }
.wf li:last-child::after { display: none; }
@media (max-width: 640px) { .wf li::after { display: none; } }
.wf.live li { animation: wfin .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes wfin { from { opacity: 0; transform: translateY(14px); } }
.wf li.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line); }
.sync .node { background: var(--bg); }
.sync .to { color: var(--accent); font-weight: 600; }
html[dir="rtl"] .sync .to { transform: scaleX(-1); display: inline-block; }
.principles { display: flex; flex-wrap: wrap; gap: 8px; }
.principles > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--ink); font-size: 13px; font-weight: 500; }
.principles svg { color: var(--gold); }
.er { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); align-items: start; }
.ent { border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ent h4 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; background: var(--chip); }
.ent h4 small { font: 500 11px var(--f-mono); color: var(--accent); }
.ent ul { margin: 0; padding: 8px 12px 10px; list-style: none; display: grid; gap: 4px; direction: ltr; }
.ent li { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1.5 var(--f-mono); color: var(--ink); }
.ent li i { font-style: normal; color: var(--muted); }
.ent li.k { color: var(--accent); }
.er-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .er-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } .er-grid > div:last-child { position: sticky; top: 90px; } }
.code { margin: 0; padding: 16px; border-radius: 14px; background: #0f1a19; color: #d5e6e3; font: 500 12.5px/1.6 var(--f-mono); overflow-x: auto; direction: ltr; text-align: left; }
.code .c { color: #6f8b87; } .code .s { color: #8fd3c7; } .code .n { color: #e3b878; } .code .k { color: #9fb7ff; }
.code-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.hub { display: grid; gap: 14px; }
@media (min-width: 1000px) { .hub { grid-template-columns: 1fr 1fr; align-items: start; } }
.hub-map { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hub-map svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-map svg.lines path { vector-effect: non-scaling-stroke; fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.6; stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.hub-map .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; line-height: 1.3; box-shadow: 0 0 0 10px var(--glow), 0 24px 40px -20px var(--accent); padding: 8px; }
.hub-map .spoke { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 25%; text-align: center; font-size: 12px; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink); }
.hub-map .spoke span.b { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); box-shadow: var(--shadow); transition: transform .3s, background .3s, color .3s; }
.hub-map .spoke[aria-pressed="true"] span.b, .hub-map .spoke:hover span.b { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.hub-detail { display: grid; gap: 12px; align-content: start; }
.hub-detail .hd { display: none; gap: 10px; padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); animation: fadeup .5s cubic-bezier(.16,1,.3,1); }
.hub-detail .hd.on { display: grid; }
.hub-detail .hd h4 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.hub-detail .hd ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.hub-detail .used { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-detail .used span { font: 500 11.5px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; background: var(--chip); }
.dir { display: inline-flex; padding: 4px 8px; border-radius: 6px; font: 600 11px/1 var(--f-mono); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* ===================== v7: multi-page, short home ===================== */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.hero { padding-block: clamp(32px, 6vw, 72px) 10px; }

/* stats band: one row, counting and drifting */
.statband { position: relative; padding-block: 18px 8px; }
.stats-row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--bg); isolation: isolate; }
.stats-row::before { content: ""; position: absolute; inset: -40% -10%; z-index: -1; background: radial-gradient(30% 60% at 20% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), radial-gradient(25% 55% at 80% 40%, color-mix(in srgb, var(--gold) 35%, transparent), transparent 70%); animation: drift2 14s ease-in-out infinite alternate; }
@keyframes drift2 { to { transform: translateX(8%) translateY(-4%); } }
.stat { position: relative; display: grid; gap: 6px; padding: 26px 22px; align-content: start; animation: statin .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 110ms + .3s); }
.stat + .stat { border-inline-start: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
@keyframes statin { from { opacity: 0; transform: translateY(18px); } }
.stat .si2 { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 10%, transparent); color: var(--gold); }
.stat strong { font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: color-mix(in srgb, var(--bg) 72%, transparent); line-height: 1.4; }
.stat i.bar { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--bg) 12%, transparent); overflow: hidden; margin-top: 6px; }
.stat i.bar b { display: block; height: 100%; width: var(--w, 60%); background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; animation: barfill 1.6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 110ms + .6s); }
html[dir="rtl"] .stat i.bar b { transform-origin: right; }
@keyframes barfill { from { transform: scaleX(0); } }
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat + .stat { border-inline-start: 0; } .stat { border-top: 1px solid color-mix(in srgb, var(--bg) 12%, transparent); } .stat:first-child { grid-column: 1 / -1; border-top: 0; } }

/* home gallery: short bento of selected work */
.sel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.sel-head h2 { font-size: var(--step-3); font-weight: 600; }
.sel-head p { color: var(--muted); max-width: 56ch; margin-top: 8px; }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
.tilecard { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--chip); cursor: pointer; padding: 0; text-align: start; color: #fff; text-decoration: none; display: block; isolation: isolate; }
.tilecard.big { grid-column: span 2; grid-row: span 2; }
.tilecard.wide { grid-column: span 2; }
.tilecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; transition: transform 1.2s cubic-bezier(.16,1,.3,1); animation: slowpan 18s ease-in-out infinite alternate; }
.tilecard:nth-child(2n) img { animation-delay: -6s; } .tilecard:nth-child(3n) img { animation-delay: -11s; }
@keyframes slowpan { from { transform: scale(1.03); } to { transform: scale(1.12) translateY(-3%); } }
.tilecard:hover img, .tilecard:focus-visible img { animation-play-state: paused; transform: scale(1.14); }
.tilecard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(8, 20, 19, .88)); transition: opacity .4s; }
.tilecard .tc { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 18px 20px; transform: translateY(6px); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.tilecard:hover .tc { transform: none; }
.tilecard .tk { display: inline-flex; width: fit-content; gap: 6px; align-items: center; font: 600 11.5px/1 var(--f-sans); padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.tilecard .tk.own { background: var(--gold); }
.tilecard b { font-size: 19px; font-weight: 600; line-height: 1.2; }
.tilecard.big b { font-size: clamp(22px, 2.6vw, 30px); }
.tilecard small { font-size: 13px; opacity: .8; }
.tilecard .go { position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #111; opacity: 0; transform: scale(.8) rotate(-45deg); transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); }
.tilecard:hover .go, .tilecard:focus-visible .go { opacity: 1; transform: none; }
.tilecard.logo { background: var(--surface); color: var(--ink); }
.tilecard.logo::after { display: none; }
.tilecard.logo .lgs { position: absolute; inset: 14px 16px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: center; }
.tilecard.logo .lgs span { height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.tilecard.logo .lgs img { position: static; width: auto; height: auto; max-width: 80%; max-height: 30px; object-fit: contain; animation: none; z-index: 0; }
.tilecard.logo small { color: var(--muted); opacity: 1; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; } .tilecard.big { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; } .tilecard.big, .tilecard.wide { grid-column: auto; grid-row: span 1; } .tilecard.big { grid-row: span 2; } .tilecard .go { opacity: 1; transform: none; } }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.cta-band h2 { font-size: var(--step-2); font-weight: 600; }
.cta-band p { color: var(--muted); margin-top: 6px; }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* sub-page header */
.page-head { padding-block: clamp(36px, 6vw, 64px) 0; }
.page-head + section { padding-top: clamp(28px, 4vw, 44px); }

/* analytics project switcher */
.anav { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.anav a { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .3s, border-color .3s; }
.anav a:hover { transform: translateY(-3px); border-color: var(--accent); }
.anav img { width: 96px; height: 64px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.anav b { display: block; font-size: 15px; }
.anav small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .anav { grid-template-columns: 1fr; } }
.aproj { scroll-margin-top: 90px; margin-bottom: 24px; }

/* power bi */
.pbi-grid { display: grid; gap: 22px; }
@media (min-width: 1000px) { .pbi-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.pbi-main { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; padding: 0; cursor: zoom-in; }
.pbi-main img { width: 100%; aspect-ratio: 1256 / 640; object-fit: cover; transition: opacity .35s; }
.pbi-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 10px; }
.pbi-thumbs button { flex: 0 0 auto; width: 120px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--chip); cursor: pointer; }
.pbi-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.pbi-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.pbi-thumbs span { display: block; padding: 4px 6px; font-size: 11.5px; font-weight: 600; text-align: start; background: var(--surface); }
.pbi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pbi-kpis div { padding: 14px; border-radius: 14px; background: #1f2526; color: #fff; }
.pbi-kpis strong { display: block; font: 600 26px/1.1 var(--f-mono); color: #4fd1c5; }
.pbi-kpis span { font-size: 12.5px; color: #c9d4d2; }
.skills-used { display: flex; flex-wrap: wrap; gap: 6px; }

/* looker studio report rebuild */
.lk { --lk-bg: var(--surface); display: grid; gap: 14px; padding: clamp(14px, 2.4vw, 22px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lk-bar .src { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); font-size: 12.5px; font-weight: 600; }
.lk-bar .src i { display: flex; gap: 2px; align-items: end; height: 18px; }
.lk-bar .src i b { width: 4px; border-radius: 1px; background: #f9ab00; } .lk-bar .src i b:nth-child(1) { height: 8px; } .lk-bar .src i b:nth-child(2) { height: 13px; background: #e37400; } .lk-bar .src i b:nth-child(3) { height: 18px; }
.lk-ctrls { display: flex; flex-wrap: wrap; gap: 8px; }
.lk select { appearance: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 30px 8px 12px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%235a6866'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font: 500 13px var(--f-sans); cursor: pointer; }
html[dir="rtl"] .lk select { padding: 8px 12px 8px 30px; background-position: left 10px center; }
.lk h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.lk-score { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lk-score div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.lk-score span { font-size: 12px; color: var(--muted); }
.lk-score strong { font: 500 22px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.lk-score em { font: 500 11.5px var(--f-mono); font-style: normal; }
.up { color: #1e8e3e; } .down { color: #d93025; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .up { color: #5bd27a; } :root:not([data-theme="light"]) .down { color: #ff7b72; } }
:root[data-theme="dark"] .up { color: #5bd27a; } :root[data-theme="dark"] .down { color: #ff7b72; }
@media (max-width: 760px) { .lk-score { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .lk-grid { grid-template-columns: 1.2fr 1fr; } }
.lk-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.lk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lk-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 6px; }
.lk-chart { width: 100%; height: auto; display: block; }
.lk-chart text { fill: var(--muted); font: 10.5px var(--f-mono); }
.lk-chart .gr { stroke: var(--line); }
.lk-chart path { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.lk-tbl { overflow-x: auto; }
.lk-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lk-tbl th { text-align: start; font-weight: 600; color: var(--muted); padding: 7px 8px; background: var(--chip); white-space: nowrap; }
.lk-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lk-tbl td.n { font-family: var(--f-mono); text-align: end; }
.lk-tbl th.n { text-align: end; }
.lk-tbl .cellbar { position: relative; }
.lk-tbl .cellbar i { position: absolute; inset: 4px auto 4px 0; width: var(--w); background: color-mix(in srgb, #4285f4 30%, transparent); border-radius: 3px; z-index: 0; }
html[dir="rtl"] .lk-tbl .cellbar i { inset: 4px 0 4px auto; }
.lk-tbl .cellbar span { position: relative; z-index: 1; }
.lk-tbl .heat { background: color-mix(in srgb, #34a853 var(--h), transparent); }
.lk-ev { display: grid; gap: 7px; }
.lk-ev div { display: grid; grid-template-columns: 112px 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.lk-ev code { font: 500 12px var(--f-mono); color: var(--ink); direction: ltr; text-align: start; }
.lk-ev .b2 { height: 12px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.lk-ev .b2 i { display: block; height: 100%; width: var(--w); background: #4285f4; transition: width .8s cubic-bezier(.16,1,.3,1); }
.lk-ev b { font: 500 12px var(--f-mono); text-align: end; }
.lk-note { font-size: 12px; color: var(--muted); }

@media (max-width: 560px) { .portrait .f2, .glass.g1 { display: none; } .portrait .f1 { top: 4%; } .portrait .f3 { bottom: 2%; } }

/* ===================== v8: luxury rotating studio ===================== */
.stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:first-child { grid-column: auto; } .stat:nth-child(-n+2) { border-top: 0; } }
.studio { --s-bg: #0a1110; --s-fg: #eef3f1; --s-mute: #93a7a3; --s-gold: #d3a866; --s-line: rgba(211, 168, 102, .28);
  position: relative; margin-top: clamp(36px, 6vw, 70px); background: radial-gradient(70% 60% at 50% 0%, #15302d 0%, var(--s-bg) 62%); color: var(--s-fg); overflow: hidden; padding-block: clamp(56px, 7vw, 90px) clamp(40px, 5vw, 64px); isolation: isolate; }
.studio::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(211,168,102,.18) 1px, transparent 1.5px); background-size: 26px 26px; -webkit-mask: radial-gradient(60% 50% at 50% 40%, #000, transparent); mask: radial-gradient(60% 50% at 50% 40%, #000, transparent); opacity: .5; }
.studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.studio .label { color: var(--s-gold); }
.studio h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.03em; margin-top: 10px; }
.studio-head p { color: var(--s-mute); margin-top: 10px; max-width: 56ch; }
.studio-all { color: var(--s-fg); border: 1px solid var(--s-line); background: rgba(255,255,255,.04); }
.stage3d { position: relative; height: clamp(330px, 46vw, 600px); perspective: 1400px; perspective-origin: 50% 10%; margin-top: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage3d.drag { cursor: grabbing; }
.stage3d .spot { position: absolute; left: 50%; top: -10%; width: 70%; height: 120%; transform: translateX(-50%); background: radial-gradient(40% 50% at 50% 40%, rgba(63,179,168,.22), transparent 70%); pointer-events: none; }
.stage3d .floor { position: absolute; left: 10%; right: 10%; bottom: 6%; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(211,168,102,.22), transparent); filter: blur(6px); pointer-events: none; }
.ring3d { position: absolute; left: 50%; top: 42%; width: var(--cw); height: calc(var(--cw) * .625); margin-left: calc(var(--cw) / -2); margin-top: calc(var(--cw) * -.3125); transform-style: preserve-3d; --cw: min(560px, 46vw); }
@media (max-width: 700px) { .ring3d { --cw: 72vw; } }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; transition: filter .4s; }
.card3d .face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #111; border: 1px solid var(--s-line); box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4); -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(255,255,255,.18)); }
.card3d img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; pointer-events: none; }
.card3d .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 35%, transparent 70%, rgba(211,168,102,.12)); pointer-events: none; }
.card3d .tagline { position: absolute; inset: auto 10px 10px auto; padding: 5px 9px; border-radius: 999px; background: rgba(10,17,16,.78); border: 1px solid var(--s-line); font: 600 10.5px/1 var(--f-sans); letter-spacing: .04em; color: var(--s-gold); text-transform: uppercase; }
html[data-lang="ar"] .card3d .tagline { text-transform: none; letter-spacing: 0; font-family: var(--f-ar); }
.card3d.front .face { border-color: var(--s-gold); box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px var(--s-gold), 0 0 60px -10px rgba(211,168,102,.35); }
.studio-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; max-width: 820px; margin: 4px auto 0; }
.snav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--s-line); background: rgba(255,255,255,.04); color: var(--s-fg); font-size: 20px; cursor: pointer; transition: background .3s, transform .3s; }
.snav:hover { background: rgba(211,168,102,.16); transform: scale(1.06); }
html[dir="rtl"] .snav { transform: scaleX(-1); }
.cap-body { text-align: center; display: grid; gap: 8px; justify-items: center; min-height: 150px; align-content: start; }
.cap-body .cnt { direction: ltr; font: 500 12px var(--f-mono); color: var(--s-gold); letter-spacing: .14em; }
.cap-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -0.02em; animation: capin .7s cubic-bezier(.16,1,.3,1) both; }
.cap-body p { color: var(--s-mute); max-width: 52ch; animation: capin .7s cubic-bezier(.16,1,.3,1) .08s both; }
.cap-body .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; animation: capin .7s cubic-bezier(.16,1,.3,1) .16s both; }
.cap-body .own { background: var(--s-gold); }
@keyframes capin { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.btn-gold { background: var(--s-gold); color: #1a1408; }
.btn-line { border: 1px solid var(--s-line); color: var(--s-fg); background: transparent; }
.dots { display: flex; gap: 6px; margin-top: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: width .4s, background .4s; }
.dots i.on { width: 22px; border-radius: 3px; background: var(--s-gold); }
@media (max-width: 560px) { .studio-cap { grid-template-columns: 1fr; } .snav { display: none; } }

.pillars-sec { padding-block: clamp(48px, 6vw, 80px) 10px; }
.pillars { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; }
.pillar::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); transition: transform .6s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.pillar:hover::after { transform: scale(1.6); }
.pillar .pn { font: 500 13px var(--f-mono); color: var(--gold); }
.pillar b { font-size: var(--step-1); font-weight: 600; }
.pillar p { color: var(--muted); font-size: 15px; }
.pillar .more2 { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 4px; }
.cap-body .ccat { display: inline-flex; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--s-line); color: var(--s-gold); font: 600 12px/1 var(--f-sans); }
.card3d .face { border-radius: 16px; }

/* ===================== v9: navigation, start, credentials ===================== */
.nav { gap: 18px; }
.nav .nl { white-space: nowrap; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; gap: 5px; align-content: center; }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mmenu { display: grid; gap: 2px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--bg); animation: fadeup .35s cubic-bezier(.16,1,.3,1); }
.mmenu a { padding: 13px 4px; text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mmenu a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1100px) { .nav .nl { display: none; } .menu-btn { display: grid; } }
@media (max-width: 480px) { .nav .hire { display: none; } }
.ph1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.journey li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.journey li::after { content: ""; position: absolute; inset-inline-start: 51px; top: 86px; bottom: -16px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.journey li:last-child::after { display: none; }
.journey .jn { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -18px var(--accent); }
.journey .ji svg { width: 24px; height: 24px; }
.journey b { font-size: var(--step-1); font-weight: 600; }
.journey p { color: var(--muted); margin-top: 4px; }
.journey .get { color: var(--ink); font-size: 14px; margin-top: 10px; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 12%, transparent); }
.journey .get > span:first-child { color: var(--gold); font-weight: 600; }
@media (min-width: 1000px) { .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); } .journey li { grid-template-columns: 1fr; align-content: start; } .journey li::after { inset-inline-start: auto; inset-inline-end: -14px; top: 51px; bottom: auto; width: 14px; height: 2px; background: var(--accent); } }
.levers { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .levers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .levers { grid-template-columns: 1fr; } }
.lever { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.lever:hover { transform: translateY(-4px); border-color: var(--accent); }
.lever .li2 { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--accent); }
.lever b { font-size: var(--step-1); font-weight: 600; }
.lever p { color: var(--muted); font-size: 15px; }
.lever .lt { display: flex; flex-wrap: wrap; gap: 6px; }
.lever .lt span { font: 500 11.5px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.start-end { display: grid; gap: 28px; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .start-end { grid-template-columns: 1fr 1fr; align-items: center; } }
.needs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.needs li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.needs li > span:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--accent); flex: 0 0 auto; }

.cred-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .cred-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.edu-card { display: grid; gap: 8px; justify-items: start; margin-top: 14px; padding: 24px; border-radius: 20px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.edu-card::after { content: ""; position: absolute; width: 260px; height: 260px; inset-inline-end: -90px; top: -110px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 45%, transparent), transparent); }
.edu-card .ei { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--gold); }
.edu-card b { font-size: var(--step-1); font-weight: 600; }
.edu-card > span:not(.ei):not(.chip) { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.edu-card .chip { background: var(--gold); color: #1a1408; font-weight: 600; }
