/* ==========================================================================
   Mohamed Kamal — site styles
   Hub page + full profile + project pages. RTL/LTR, dark/light.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --gold: #f5b544;

    --bg: #050508;
    --bg-elev: #0c0c13;
    --bg-soft: #101018;
    --card: rgba(255, 255, 255, .035);
    --card-2: rgba(255, 255, 255, .06);
    --card-solid: #0e0e16;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --text: #f5f5fa;
    --muted: #a5a5bb;
    --dim: #6c6c84;
    --glass-blur: saturate(160%) blur(18px);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .65);
    --shadow-md: 0 14px 40px -12px rgba(0, 0, 0, .55);
    --grid-line: rgba(255, 255, 255, .035);
    --aurora-opacity: .55;

    --grad: linear-gradient(115deg, var(--accent), var(--accent-2));
    --grad-text: linear-gradient(100deg, color-mix(in oklab, var(--accent) 70%, white) 0%, var(--accent-2) 60%, color-mix(in oklab, var(--accent-2) 60%, white) 100%);
    --gold-grad: linear-gradient(110deg, #8a5a12 0%, var(--gold) 28%, #fff1c9 50%, var(--gold) 72%, #8a5a12 100%);

    --r-sm: 12px;
    --r: 20px;
    --r-lg: 28px;
    --r-xl: 36px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --nav-h: 76px;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);

    --font-ar: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display-en: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-body: var(--font-ar);
    --font-display: var(--font-ar);
}

html[lang="en"] {
    --font-body: var(--font-en);
    --font-display: var(--font-display-en);
}

[data-theme="light"] {
    --bg: #f6f6fb;
    --bg-elev: #ffffff;
    --bg-soft: #eeeef6;
    --card: rgba(255, 255, 255, .72);
    --card-2: rgba(255, 255, 255, .95);
    --card-solid: #ffffff;
    --line: rgba(18, 18, 48, .09);
    --line-2: rgba(18, 18, 48, .16);
    --text: #0b0b18;
    --muted: #4c4c66;
    --dim: #8a8aa3;
    --shadow-lg: 0 30px 70px -24px rgba(30, 20, 80, .25);
    --shadow-md: 0 14px 34px -14px rgba(30, 20, 80, .22);
    --grid-line: rgba(18, 18, 48, .05);
    --aurora-opacity: .32;
    --grad-text: linear-gradient(100deg, color-mix(in oklab, var(--accent) 85%, black) 0%, color-mix(in oklab, var(--accent-2) 75%, black) 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.reduce-motion { scroll-behavior: auto; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    transition: background-color .5s var(--ease), color .5s var(--ease);
}
html[lang="en"] body { line-height: 1.6; letter-spacing: -.005em; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; line-height: 1.15; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
p { margin: 0; }
::selection { background: color-mix(in oklab, var(--accent) 55%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.grad-text, h1 em, h2 em, .rich em {
    font-style: normal;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html[lang="en"] h1 em, html[lang="en"] h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
    padding-inline-end: .06em;
}
.num { font-family: var(--font-display-en); font-feature-settings: "tnum"; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Background layers ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; inset: -20%; opacity: var(--aurora-opacity); filter: blur(80px) saturate(140%); }
.aurora .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
[data-theme="light"] .aurora .blob { mix-blend-mode: multiply; }
.aurora .b1 { width: 52vmax; height: 52vmax; left: -6%; top: -12%; background: radial-gradient(circle, var(--accent) 0%, transparent 62%); animation: drift1 26s var(--ease-in-out) infinite alternate; }
.aurora .b2 { width: 46vmax; height: 46vmax; right: -10%; top: 8%; background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%); animation: drift2 32s var(--ease-in-out) infinite alternate; opacity: .8; }
.aurora .b3 { width: 40vmax; height: 40vmax; left: 25%; bottom: -25%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 50%, #ff3d8a) 0%, transparent 60%); animation: drift3 38s var(--ease-in-out) infinite alternate; opacity: .55; }
@keyframes drift1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-14vw, 14vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-8vw, -18vh, 0) scale(1.2); } }
.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.grain {
    position: absolute; inset: -50%;
    opacity: .06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 8s steps(10) infinite;
}
[data-theme="light"] .grain { opacity: .05; }
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-5%, 4%); }
    40% { transform: translate(4%, -6%); }
    60% { transform: translate(-3%, 7%); }
    80% { transform: translate(6%, -2%); }
}

/* ---------- Buttons & chips ---------- */
.btn {
    --h: 52px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    height: var(--h); padding-inline: 26px;
    border-radius: 999px;
    font-weight: 600; font-size: .98rem; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s, color .35s;
    isolation: isolate;
}
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ico-arrow { transform: translateX(-4px) scaleX(-1); }
[dir="rtl"] .btn .ico-arrow { transform: scaleX(-1); }
.btn-primary {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: var(--grad); filter: blur(18px); opacity: .55; transition: opacity .35s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px color-mix(in oklab, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::after { opacity: .85; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: var(--card-2); transform: translateY(-2px); }
.btn-sm { --h: 42px; padding-inline: 18px; font-size: .9rem; }
.icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-grid; place-items: center;
    border: 1px solid var(--line); background: var(--card);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.icon-btn .ico { width: 19px; height: 19px; }
.lang-btn { font-weight: 700; font-size: .85rem; font-family: var(--font-ar); }
html[lang="ar"] .lang-btn { font-family: var(--font-display-en); }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }

.chip {
    display: inline-flex; align-items: center; gap: .45em;
    padding: .38em .85em; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card);
    font-size: .82rem; color: var(--muted); white-space: nowrap;
}
.chip .ico { width: 14px; height: 14px; }
.chip-gold {
    color: #1a1204; border: 0; font-weight: 600;
    background: var(--gold-grad); background-size: 220% 100%;
    animation: shine 5s linear infinite;
    box-shadow: 0 6px 24px -6px color-mix(in oklab, var(--gold) 70%, transparent);
}
@keyframes shine { to { background-position: -220% 0; } }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7em;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.eyebrow .idx { font-family: var(--font-display-en); color: var(--accent-2); letter-spacing: .05em; }

/* ---------- Spotlight cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in oklab, var(--accent) 22%, transparent), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.spot::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), color-mix(in oklab, var(--accent-2) 70%, transparent), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.card {
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--base, 0ms)); }
.js .split.in .w > span { transform: none; }
.reduce-motion [data-reveal], .reduce-motion .split .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; z-index: 400; left: 50%; bottom: 28px;
    transform: translate(-50%, 24px);
    opacity: 0; visibility: hidden;
    padding: 12px 20px; border-radius: 999px;
    background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem;
    box-shadow: var(--shadow-lg);
    transition: transform .5s var(--ease), opacity .4s, visibility .4s;
    pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
.cursor-ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1px solid color-mix(in oklab, var(--text) 45%, transparent);
    display: grid; place-items: center;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor-label { font-size: .72rem; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; letter-spacing: .04em; }
.cursor.hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: color-mix(in oklab, var(--accent) 22%, transparent); }
.cursor.label .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; border-color: transparent; background: var(--grad); }
.cursor.label .cursor-label { opacity: 1; }
.cursor.label .cursor-dot { opacity: 0; }

/* ==========================================================================
   HUB (links) PAGE
   ========================================================================== */
.hub-body { min-height: 100svh; }
.hub-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hub {
    position: relative;
    width: min(100% - 32px, 560px);
    margin-inline: auto;
    padding: 18px 0 40px;
    display: flex; flex-direction: column; align-items: stretch;
}
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.hub-top .group { display: flex; gap: 8px; }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display-en); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.hub-brand .mono-sm { width: 36px; height: 36px; }

.profile-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.avatar {
    --s: 132px;
    position: relative; width: var(--s); height: var(--s);
    display: grid; place-items: center; margin-bottom: 18px;
}
.avatar-ring {
    position: absolute; inset: -6px; border-radius: 50%;
    background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-2), var(--gold), var(--accent));
    animation: spin 6s linear infinite;
    filter: drop-shadow(0 0 24px color-mix(in oklab, var(--accent) 55%, transparent));
}
.avatar-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.avatar-inner {
    position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 35%, var(--bg-elev)), var(--bg-elev) 70%);
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar .status {
    position: absolute; bottom: 6px; inset-inline-end: 8px; z-index: 2;
    width: 22px; height: 22px; border-radius: 50%;
    background: #22c55e; border: 4px solid var(--bg);
}
.avatar .status::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 2.2s var(--ease) infinite; }

/* Monogram */
.monogram { width: 58%; height: auto; overflow: visible; }
.monogram path { fill: none; stroke: url(#mkGrad); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.js .monogram.draw path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 2.2s var(--ease) forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mono-sm { display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); }
.mono-sm .monogram { width: 66%; }
.mono-sm .monogram path { stroke-width: 6; }

.hub-name { font-size: clamp(1.75rem, 6vw, 2.2rem); font-weight: 700; display: inline-flex; align-items: center; gap: .3em; letter-spacing: -.01em; }
.verified { width: .78em; height: .78em; color: var(--accent-2); filter: drop-shadow(0 0 10px color-mix(in oklab, var(--accent-2) 60%, transparent)); }
.hub-title { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.hub-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.hub-bio { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.social {
    --c: var(--text);
    width: 46px; height: 46px; border-radius: 15px;
    display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--card);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    transition: transform .35s var(--ease), border-color .35s, background .35s, color .35s, box-shadow .35s;
}
.social .ico { width: 20px; height: 20px; }
.social:hover { transform: translateY(-4px); color: #fff; background: var(--c); border-color: transparent; box-shadow: 0 12px 30px -8px var(--c); }

/* Big CTA with rotating gradient border */
.mega-cta {
    position: relative; display: block; margin-top: 28px;
    border-radius: 24px; padding: 1.5px;
    background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-2), var(--gold), var(--accent));
    animation: spin 4s linear infinite;
    box-shadow: 0 20px 60px -18px color-mix(in oklab, var(--accent) 80%, transparent);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.mega-cta:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 26px 70px -16px color-mix(in oklab, var(--accent) 95%, transparent); }
.mega-cta-inner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: 22.5px;
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 26%, var(--bg-elev)), color-mix(in oklab, var(--accent-2) 14%, var(--bg-elev)));
}
.mega-cta-inner::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-20deg); animation: sweep 3.6s var(--ease) infinite;
}
@keyframes sweep { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.mega-cta .cta-ico {
    width: 52px; height: 52px; border-radius: 16px; flex: none;
    display: grid; place-items: center; color: #fff;
    background: var(--grad); box-shadow: 0 10px 24px -8px var(--accent);
}
.mega-cta .cta-ico .ico { width: 24px; height: 24px; }
.mega-cta .cta-txt { flex: 1; min-width: 0; }
.mega-cta strong { display: block; font-size: 1.12rem; font-weight: 700; }
.mega-cta small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.mega-cta .cta-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; transition: transform .4s var(--ease); }
[data-theme="light"] .mega-cta .cta-arrow { background: rgba(0, 0, 0, .06); }
.mega-cta:hover .cta-arrow { transform: translateX(4px); }
[dir="rtl"] .mega-cta .cta-arrow .ico { transform: scaleX(-1); }
[dir="rtl"] .mega-cta:hover .cta-arrow { transform: translateX(-4px); }

.hub-links { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.hub-link {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px 14px 14px; border-radius: 20px;
    border: 1px solid var(--line); background: var(--card);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    transition: transform .4s var(--ease), border-color .4s, background .4s;
}
[dir="rtl"] .hub-link { padding: 14px 14px 14px 16px; }
.hub-link:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card-2); }
.hub-link .l-ico {
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    display: grid; place-items: center;
    background: color-mix(in oklab, var(--accent) 16%, transparent);
    color: color-mix(in oklab, var(--accent) 60%, var(--text));
    border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
    transition: transform .4s var(--ease), background .4s, color .4s;
}
.hub-link:hover .l-ico { transform: rotate(-6deg) scale(1.06); background: var(--grad); color: #fff; }
.hub-link .l-ico .ico { width: 22px; height: 22px; }
.hub-link .l-txt { flex: 1; min-width: 0; }
.hub-link strong { display: block; font-weight: 600; font-size: 1rem; }
.hub-link small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: 2px; }
.hub-link .l-go { color: var(--dim); transition: transform .4s var(--ease), color .4s; }
.hub-link:hover .l-go { color: var(--text); transform: translate(3px, -3px); }
[dir="rtl"] .hub-link .l-go .ico { transform: scaleX(-1); }
[dir="rtl"] .hub-link:hover .l-go { transform: translate(-3px, -3px); }
.hub-link.is-featured { border-color: color-mix(in oklab, var(--accent) 40%, transparent); background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 14%, transparent), var(--card)); }
.hub-link.is-gold { border-color: color-mix(in oklab, var(--gold) 50%, transparent); background: linear-gradient(120deg, color-mix(in oklab, var(--gold) 16%, transparent), var(--card)); }
.hub-link.is-gold .l-ico { background: var(--gold-grad); background-size: 220% 100%; color: #1a1204; border: 0; animation: shine 5s linear infinite; }

.hub-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.hub-actions .btn { width: 100%; min-width: 0; --h: 48px; font-size: .9rem; padding-inline: 12px; }
.hub-foot { margin-top: 28px; text-align: center; color: var(--dim); font-size: .82rem; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hub-foot a { color: var(--muted); }
.hub-foot a:hover { color: var(--text); }

/* Stagger-in for the hub */
.js .hub [data-in] { opacity: 0; transform: translateY(18px) scale(.98); animation: hubIn .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 70ms + 150ms); }
@keyframes hubIn { to { opacity: 1; transform: none; } }
.reduce-motion .hub [data-in] { animation: none; opacity: 1; transform: none; }

/* ==========================================================================
   PROFILE — Navigation
   ========================================================================== */
.nav {
    position: fixed; z-index: 100; top: 14px; left: 50%;
    transform: translateX(-50%);
    width: min(100% - 24px, 1180px);
    transition: transform .55s var(--ease), top .4s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 62px; padding-inline: 10px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 62%, transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; padding-inline: 6px; font-weight: 700; }
.nav-brand .mono-sm { width: 42px; height: 42px; border-radius: 50%; }
.nav-brand span { font-size: .95rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; display: block; padding: 8px 14px; border-radius: 999px;
    font-size: .92rem; color: var(--muted); transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { background: var(--card-2); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-actions .icon-btn { width: 42px; height: 42px; }
.nav-actions .burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column; justify-content: center;
    padding: 110px 28px 40px;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
}
[dir="rtl"] .mobile-menu { clip-path: circle(0% at 44px 44px); }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
[dir="rtl"].menu-open .mobile-menu, .menu-open[dir="rtl"] .mobile-menu { clip-path: circle(150% at 44px 44px); }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; overflow: hidden; }
.mobile-menu ol a {
    display: flex; align-items: baseline; gap: 14px;
    font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 600; line-height: 1.35;
    transform: translateY(100%); transition: transform .7s var(--ease);
}
.mobile-menu ol a::before { content: "0" counter(m); font-family: var(--font-display-en); font-size: .9rem; color: var(--accent-2); }
.menu-open .mobile-menu ol a { transform: none; transition-delay: calc(var(--i) * 60ms + 200ms); }
.mobile-menu .socials { justify-content: flex-start; margin-top: 36px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ==========================================================================
   PROFILE — Preloader
   ========================================================================== */
.preloader {
    position: fixed; inset: 0; z-index: 500;
    display: grid; place-items: center;
    background: var(--bg);
    transition: clip-path 1s var(--ease-in-out), visibility 1s;
    clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader .monogram { width: 120px; }
.preloader .monogram path { stroke-width: 4; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.6s var(--ease) forwards; }
.preloader-count { font-family: var(--font-display-en); font-size: .85rem; letter-spacing: .3em; color: var(--muted); }
.preloader-bar { width: 160px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }
.no-preloader .preloader { display: none; }

/* ==========================================================================
   PROFILE — Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 120px;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 2; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-tags .chip { padding: .5em 1em; font-size: .85rem; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.hero-name { font-size: 1.05rem; color: var(--muted); margin-bottom: 14px; }
.hero-name strong { color: var(--text); font-weight: 600; }
.hero h1 {
    font-size: clamp(2.7rem, 7.2vw, 6.6rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.02;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.28; font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 5.6rem); }
.hero-sub { margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-roles { margin-top: 44px; display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: .92rem; }
.roller { position: relative; height: 1.7em; overflow: hidden; color: var(--text); font-weight: 600; min-width: 10ch; }
.roller span { position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; transform: translateY(100%); opacity: 0; transition: transform .7s var(--ease), opacity .7s; }
.roller span.on { transform: none; opacity: 1; }
.roller span.out { transform: translateY(-100%); opacity: 0; }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%); filter: blur(40px); animation: breathe 6s var(--ease-in-out) infinite alternate; }
@keyframes breathe { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.orb-core {
    position: absolute; inset: 37%; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 40%, var(--bg-elev)), var(--bg-elev));
    border: 1px solid var(--line-2);
    box-shadow: 0 0 60px -10px var(--accent), inset 0 0 30px rgba(255, 255, 255, .05);
}
.orb-core .monogram { width: 56%; }
.orbit-tag {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px; border-radius: 14px;
    border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    font-size: .82rem; font-weight: 600; white-space: nowrap;
    box-shadow: var(--shadow-md);
    animation: floaty 6s var(--ease-in-out) infinite alternate;
    animation-delay: calc(var(--i) * -1.3s);
}
.orbit-tag .ico { width: 18px; height: 18px; }
.orbit-tag:nth-of-type(1) { top: 10%; inset-inline-start: 4%; }
.orbit-tag:nth-of-type(2) { top: 20%; inset-inline-end: 0; }
.orbit-tag:nth-of-type(3) { top: 52%; inset-inline-start: -2%; }
.orbit-tag:nth-of-type(4) { bottom: 10%; inset-inline-end: 8%; }
.orbit-tag:nth-of-type(5) { bottom: 4%; inset-inline-start: 16%; }
@keyframes floaty { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

.scroll-cue {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--dim); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue .mouse { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--line-2); position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Marquee band */
.band { position: relative; padding: 26px 0; border-block: 1px solid var(--line); background: color-mix(in oklab, var(--bg-elev) 60%, transparent); overflow: hidden; }
.band.tilt { transform: rotate(-2deg) scale(1.04); margin-top: -40px; z-index: 3; background: var(--grad); border: 0; color: #fff; }
[dir="rtl"] .band.tilt { transform: rotate(2deg) scale(1.04); }
.marquee { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee.reverse { animation-direction: reverse; }
.band:hover .marquee { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-inline-end: 44px; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display-en); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.8rem); white-space: nowrap; letter-spacing: -.01em; }
.marquee-item .ico { width: 1em; height: 1em; }
.marquee-sep { width: 10px; height: 10px; transform: rotate(45deg); background: currentColor; opacity: .5; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ==========================================================================
   PROFILE — Sections
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.03em; margin-top: 16px; max-width: 18ch; }
html[lang="ar"] .section-head h2 { letter-spacing: 0; max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 44ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 2.7rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
html[lang="ar"] .statement { line-height: 1.6; letter-spacing: 0; }
.statement .sw { opacity: .16; transition: opacity .3s linear; }
.statement .sw.lit { opacity: 1; }
.reduce-motion .statement .sw { opacity: 1; }
.no-js .statement .sw { opacity: 1; }
.about-text { margin-top: 36px; display: grid; gap: 18px; color: var(--muted); font-size: 1.05rem; max-width: 64ch; }
.id-card { position: sticky; top: calc(var(--nav-h) + 30px); padding: 26px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.id-card .avatar { --s: 108px; margin-bottom: 14px; }
.id-card-top { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.id-card-top .avatar { margin: 0; flex: none; --s: 84px; }
.id-card-top h3 { font-size: 1.25rem; }
.id-card-top p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 4px; }
.id-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.id-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.id-rows li:last-child { border-bottom: 0; }
.id-rows .k { color: var(--dim); display: inline-flex; align-items: center; gap: 8px; min-width: 104px; }
.id-rows .k .ico { color: var(--accent-2); }
.id-rows .v { font-weight: 500; }
.id-card .chip-gold { margin-top: 16px; width: 100%; justify-content: center; padding: .7em 1em; font-size: .86rem; white-space: normal; text-align: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 28px 24px; border-radius: var(--r-lg); overflow: hidden; }
.stat .ico { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 26px; }
[dir="rtl"] .stat-num { text-align: right; }
.stat-num { font-family: var(--font-display-en); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); margin-top: 12px; font-size: .92rem; line-height: 1.5; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc { padding: 28px; border-radius: var(--r-lg); min-height: 240px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); }
.svc:nth-child(1), .svc:nth-child(2) { grid-column: span 2; }
.svc-ico {
    width: 56px; height: 56px; border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 30%, transparent), color-mix(in oklab, var(--accent-2) 20%, transparent));
    border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
    color: #fff; margin-bottom: auto;
    box-shadow: 0 12px 30px -12px var(--accent);
    transition: transform .5s var(--ease);
}
[data-theme="light"] .svc-ico { color: color-mix(in oklab, var(--accent) 80%, black); }
.svc:hover .svc-ico { transform: rotate(-8deg) scale(1.08); }
.svc-ico .ico { width: 26px; height: 26px; }
.svc h3 { font-size: 1.2rem; margin-top: 30px; }
.svc p { color: var(--muted); margin-top: 8px; font-size: .94rem; line-height: 1.6; }
.svc-num { position: absolute; top: 22px; inset-inline-end: 26px; font-family: var(--font-display-en); font-size: .8rem; color: var(--dim); }

/* Work — stacked featured cards */
.stack { display: grid; gap: 28px; }
.stack-card {
    --c: var(--accent);
    position: sticky; top: calc(var(--nav-h) + 30px + var(--i) * 14px);
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
    min-height: min(560px, 76vh);
    border-radius: var(--r-xl); overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--card-solid);
    box-shadow: var(--shadow-lg);
    transform-origin: 50% 0;
    will-change: transform;
}
.stack-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 0% 0%, color-mix(in oklab, var(--c) 18%, transparent), transparent 70%); }
[dir="rtl"] .stack-card::before { background: radial-gradient(80% 70% at 100% 0%, color-mix(in oklab, var(--c) 18%, transparent), transparent 70%); }
.stack-info { position: relative; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.stack-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack-idx { font-family: var(--font-display-en); font-size: .9rem; color: var(--dim); }
.chip-c { color: var(--c); border-color: color-mix(in oklab, var(--c) 40%, transparent); background: color-mix(in oklab, var(--c) 10%, transparent); }
[data-theme="light"] .chip-c { color: color-mix(in oklab, var(--c) 70%, black); }
.stack-info h3 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; margin-top: 26px; }
html[lang="ar"] .stack-info h3 { letter-spacing: 0; }
.stack-tagline { font-size: 1.1rem; color: var(--text); margin-top: 8px; opacity: .9; }
.stack-summary { color: var(--muted); margin-top: 16px; max-width: 52ch; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-list .chip { font-size: .78rem; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 30px; }

.stack-art { display: block; height: 100%; min-height: 300px; }
.stack-art .art { height: 100%; }

/* Generated project art */
.art {
    --c: var(--accent);
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(120% 90% at 80% 10%, color-mix(in oklab, var(--c) 55%, transparent), transparent 60%),
        radial-gradient(90% 80% at 10% 100%, color-mix(in oklab, var(--accent-2) 30%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in oklab, var(--c) 30%, #0a0a12), #07070c);
    min-height: 300px;
}
.art::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
}
.art-big-ico { position: absolute; inset-inline-end: -6%; bottom: -10%; width: 62%; height: auto; color: rgba(255, 255, 255, .07); transform: rotate(-12deg); }
.art-window {
    position: absolute; inset: 14% 10% auto 12%; aspect-ratio: 16 / 10.5;
    border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(10, 10, 18, .55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
    transform: perspective(1200px) rotateY(-10deg) rotateX(6deg);
    transition: transform .9s var(--ease);
}
[dir="rtl"] .art-window { transform: perspective(1200px) rotateY(10deg) rotateX(6deg); }
.stack-card:hover .art-window, .art:hover .art-window { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px); }
.art-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); direction: ltr; }
.art-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.art-bar i:first-child { background: #ff5f57; } .art-bar i:nth-child(2) { background: #febc2e; } .art-bar i:nth-child(3) { background: #28c840; }
.art-bar span { margin-inline-start: 10px; height: 14px; flex: 1; max-width: 50%; border-radius: 7px; background: rgba(255, 255, 255, .07); }
.art-body { position: absolute; inset: 30px 0 0; display: grid; grid-template-columns: 26% 1fr; }
.art-side { border-inline-end: 1px solid rgba(255, 255, 255, .06); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.art-side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.art-side i:first-child { background: color-mix(in oklab, var(--c) 70%, white); opacity: .8; width: 70%; }
.art-main { padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.art-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art-kpis i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.art-kpis i:first-child { background: color-mix(in oklab, var(--c) 35%, transparent); }
.art-chart { display: flex; align-items: flex-end; gap: 6%; padding: 8px 4px 0; border-radius: 8px; }
.art-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, color-mix(in oklab, var(--c) 30%, transparent), var(--c)); opacity: .85; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.art-window img { position: absolute; inset: 30px 0 0; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: top; }
.art-logo {
    position: absolute; inset-inline-start: 8%; bottom: 10%; z-index: 2;
    width: 76px; height: 76px; border-radius: 22px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
}
.art-logo img { width: 62%; height: 62%; object-fit: contain; }
.art-logo .ico { width: 34px; height: 34px; }
.art-plats { position: absolute; inset-inline-end: 7%; bottom: 12%; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 60%; }
.art-plats span { padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }


/* Chat variant */
.art-chat { position: absolute; inset: 30px 0 0; display: grid; grid-template-columns: 34% 1fr; }
.art-chat-list { border-inline-end: 1px solid rgba(255, 255, 255, .06); padding: 10px 8px; display: grid; gap: 6px; align-content: start; }
.ac-row { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 8px; }
.ac-row.on { background: color-mix(in oklab, var(--c) 22%, transparent); }
.ac-row i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.ac-row.on i { background: var(--c); }
.ac-row span { flex: 1; display: grid; gap: 4px; }
.ac-row b { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.ac-row b + b { width: 60%; background: rgba(255, 255, 255, .06); }
.art-chat-thread { padding: 12px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 70% 30%, color-mix(in oklab, var(--c) 10%, transparent), transparent 70%); }
.bub { height: 18px; border-radius: 10px; background: rgba(255, 255, 255, .1); animation: bubIn .8s var(--ease) both; }
.bub.in { align-self: flex-start; border-start-start-radius: 3px; }
.bub.out { align-self: flex-end; background: color-mix(in oklab, var(--c) 70%, #0a3); border-start-end-radius: 3px; opacity: .9; }
.bub.poll { width: 52%; height: auto; padding: 8px; display: grid; gap: 5px; }
.bub.poll b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.bub.poll b:nth-child(1) { width: 85%; } .bub.poll b:nth-child(2) { width: 55%; } .bub.poll b:nth-child(3) { width: 30%; }
.bub:nth-child(2) { animation-delay: .15s; } .bub:nth-child(3) { animation-delay: .3s; } .bub:nth-child(4) { animation-delay: .45s; } .bub:nth-child(5) { animation-delay: .6s; }
@keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* Phone variant */
.art-phones { position: absolute; inset: 0; }
.phone {
    position: absolute; width: 34%; max-width: 210px; aspect-ratio: 9 / 18.5;
    border-radius: 30px; padding: 7px;
    background: linear-gradient(160deg, #2a2a35, #0d0d12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -20px rgba(0, 0, 0, .75);
    transition: transform .9s var(--ease);
}
.phone.front { top: 9%; inset-inline-end: 16%; transform: rotate(-6deg); z-index: 2; }
.phone.back { top: 15%; inset-inline-end: 42%; transform: rotate(-14deg) scale(.88); opacity: .55; filter: blur(.5px); }
[dir="rtl"] .phone.front { transform: rotate(6deg); }
[dir="rtl"] .phone.back { transform: rotate(14deg) scale(.88); }
.stack-card:hover .phone.front, .art:hover .phone.front { transform: rotate(0) translateY(-8px); }
.ph-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; padding: 30px 10px 10px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, color-mix(in oklab, var(--c) 18%, #0b0b10), #08080c 55%); }
.ph-notch { position: absolute; top: 8px; left: 50%; width: 34%; height: 14px; margin-left: -17%; border-radius: 10px; background: #000; }
.ph-top { display: flex; justify-content: space-between; align-items: center; }
.ph-top b { width: 40%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.ph-top b + b { width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--c) 60%, transparent); }
.ph-card { display: grid; align-content: end; gap: 5px; min-height: 26%; border-radius: 14px; padding: 10px; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 40%, #000)); box-shadow: 0 10px 24px -10px var(--c); }
.ph-card em { display: block; height: 6px; width: 40%; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.ph-card em + em { height: 11px; width: 66%; background: rgba(255, 255, 255, .9); }
.ph-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ph-pills b { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .06); }
.ph-pills b:first-child { background: color-mix(in oklab, var(--c) 40%, transparent); }
.ph-row { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.ph-row i { width: 18px; height: 18px; border-radius: 6px; background: color-mix(in oklab, var(--c) 45%, transparent); flex: none; }
.ph-row b { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.ph-row s { width: 22%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.phone.back .ph-screen > i { display: block; height: 14px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.phone.back .ph-screen > i.ph-card { height: 30%; }
.art.is-phone .art-logo { inset-inline-start: 7%; }
.art.is-phone .art-plats { inset-inline-end: auto; inset-inline-start: 7%; bottom: auto; top: 8%; justify-content: flex-start; }

/* Work — grid */
.work-more { margin-top: clamp(70px, 9vw, 110px); }
.work-more-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.work-more-head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .88rem; transition: all .3s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.on { color: #fff; background: var(--grad); border-color: transparent; }
.grid-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { --c: var(--accent); display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); min-height: 250px; transition: transform .5s var(--ease), border-color .4s, opacity .4s; }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--c) 45%, transparent); }
.pcard.hidden { display: none; }
.pcard-shot { display: block; margin: -22px -22px 20px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.pcard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-shot img { transform: scale(1.05); }
.pcard.has-shot .pcard-top { margin-top: -48px; position: relative; z-index: 1; padding-inline: 2px; }
.pcard.has-shot .pcard-ico { border: 3px solid var(--card-solid); }
.pcard.has-shot h4 { margin-top: 14px; }
.pcard-shot.is-gen { position: relative; display: grid; place-items: center; background:
    radial-gradient(90% 120% at 85% 0%, color-mix(in oklab, var(--c) 55%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 28%, #0b0b12), #08080d); }
.pcard-shot.is-gen::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.pcard-shot .gen-ico { position: relative; width: 34%; height: auto; color: rgba(255, 255, 255, .16); transform: rotate(-8deg); transition: transform 1s var(--ease); stroke-width: 1.2; }
.pcard:hover .pcard-shot .gen-ico { transform: rotate(0) scale(1.06); }
.gen-lines { position: absolute; inset-inline-start: 8%; bottom: 14%; display: grid; gap: 6px; width: 34%; }
.gen-lines b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.gen-lines b:first-child { width: 70%; background: color-mix(in oklab, var(--c) 70%, white); opacity: .7; }
.gen-lines b:last-child { width: 45%; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--c), color-mix(in oklab, var(--c) 50%, #000)); box-shadow: 0 12px 26px -10px var(--c); }
.pcard-ico .ico { width: 24px; height: 24px; }
.pcard-ico img { width: 60%; height: 60%; object-fit: contain; }
.pcard-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: all .4s var(--ease); }
.pcard:hover .pcard-go { background: var(--c); color: #fff; border-color: transparent; transform: rotate(-45deg); }
[dir="rtl"] .pcard-go .ico { transform: scaleX(-1); }
[dir="rtl"] .pcard:hover .pcard-go { transform: rotate(45deg); }
.pcard h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-top: 22px; }
.pcard .tag { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.55; }
.pcard .tech-list { margin-top: auto; padding-top: 18px; }
.pcard .tech-list .chip { font-size: .72rem; padding: .3em .7em; }

/* Honors */
.honors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.honor { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; transition: transform .5s var(--ease); }
.honor:hover { transform: translateY(-6px); }
.honor-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--accent-2); }
.honor-ico .ico { width: 24px; height: 24px; }
.honor-year { margin-inline-start: auto; font-family: var(--font-display-en); font-size: .85rem; color: var(--dim); }
.honor-top { display: flex; align-items: center; }
.honor h3 { font-size: 1.18rem; margin-top: 8px; }
.honor .issuer { color: var(--accent-2); font-size: .88rem; font-weight: 500; }
.honor p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.honor.gold {
    grid-column: span 2; grid-row: span var(--rows, 2);
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
    background:
        radial-gradient(90% 80% at 85% 0%, color-mix(in oklab, var(--gold) 34%, transparent), transparent 60%),
        radial-gradient(70% 60% at 0% 100%, color-mix(in oklab, var(--gold) 16%, transparent), transparent 60%),
        linear-gradient(160deg, #1a1306, #0b0906);
    color: #fff4dc;
    justify-content: flex-end; min-height: 420px;
}
[data-theme="light"] .honor.gold { color: #fff4dc; }
.honor.gold::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background: conic-gradient(from 0deg at 80% 20%, transparent 0 20deg, rgba(255, 214, 120, .18) 20deg 24deg, transparent 24deg 60deg, rgba(255, 214, 120, .12) 60deg 63deg, transparent 63deg 110deg, rgba(255, 214, 120, .14) 110deg 114deg, transparent 114deg 360deg);
    animation: rays 30s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.honor.gold .emblem {
    position: absolute; top: clamp(26px, 4vw, 44px); inset-inline-end: clamp(26px, 4vw, 44px);
    width: clamp(90px, 12vw, 140px); height: clamp(90px, 12vw, 140px); border-radius: 50%;
    display: grid; place-items: center; color: #1a1204;
    background: var(--gold-grad); background-size: 220% 100%; animation: shine 6s linear infinite;
    box-shadow: 0 0 0 10px rgba(245, 181, 68, .1), 0 0 0 22px rgba(245, 181, 68, .05), 0 30px 60px -20px var(--gold);
}
.honor.gold .emblem .ico { width: 44%; height: 44%; }
.honor.gold .gold-label { display: inline-flex; align-self: flex-start; padding: .4em .9em; border-radius: 999px; border: 1px solid rgba(245, 181, 68, .5); color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .honor.gold .gold-label { letter-spacing: 0; font-size: .88rem; }
.honor.gold h3 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.02em; background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; line-height: 1.2; }
.honor.gold .issuer { color: #ffd98a; font-size: 1.05rem; }
.honor.gold p { color: rgba(255, 244, 220, .75); font-size: 1rem; max-width: 46ch; }

/* Stack */
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sgroup { padding: 24px; border-radius: var(--r-lg); }
.sgroup h3 { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sgroup h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
    --bc: var(--text);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card);
    font-size: .86rem; font-weight: 500;
    transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.skill .ico { width: 17px; height: 17px; transition: color .35s; }
.skill:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--bc) 60%, transparent); background: color-mix(in oklab, var(--bc) 12%, transparent); }
.skill:hover .ico { color: var(--bc); }
.band-icons .marquee-item { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted); gap: 10px; }
.band-icons .marquee-item .ico { width: 1.4em; height: 1.4em; }

/* Journey */
.timeline { position: relative; max-width: 980px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.timeline-fill { position: absolute; top: 0; left: 50%; width: 2px; margin-left: -1px; height: 0; background: var(--grad); box-shadow: 0 0 20px var(--accent); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 22px; }
.tl-item .tl-card { grid-column: 1; text-align: end; }
.tl-item.tl-alt .tl-card { grid-column: 2; text-align: start; }
.tl-dot {
    position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); border: 1px solid var(--line-2); color: var(--muted);
    transition: color .5s, border-color .5s, box-shadow .5s, background .5s;
}
.tl-item.in .tl-dot { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 18%, transparent), 0 10px 30px -6px var(--accent); }
.tl-item.k-milestone.in .tl-dot { background: var(--gold-grad); background-size: 220% 100%; color: #1a1204; box-shadow: 0 0 0 6px rgba(245, 181, 68, .15), 0 10px 30px -6px var(--gold); }
.tl-dot .ico { width: 20px; height: 20px; }
.tl-card { padding: 24px 26px; border-radius: var(--r-lg); }
.tl-period { display: inline-block; font-family: var(--font-display-en); font-weight: 600; font-size: .85rem; color: var(--accent-2); padding: .25em .8em; border-radius: 999px; background: color-mix(in oklab, var(--accent-2) 12%, transparent); }
html[lang="ar"] .tl-period { font-family: var(--font-ar); }
.k-milestone .tl-period { color: var(--gold); background: color-mix(in oklab, var(--gold) 14%, transparent); }
.tl-card h3 { font-size: 1.2rem; margin-top: 12px; }
.tl-org { color: var(--text); opacity: .75; font-size: .92rem; margin-top: 4px; }
.tl-card p { color: var(--muted); margin-top: 10px; font-size: .93rem; line-height: 1.6; }

/* Clients */
.clients-band .marquee-item { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .4s, -webkit-text-stroke-color .4s; letter-spacing: -.02em; }
.clients-band .marquee-item:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.clients-band { border: 0; background: transparent; padding: 10px 0; }
.clients-band + .clients-band { margin-top: 6px; }

/* Company */
.company {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
    padding: clamp(30px, 5vw, 64px);
    border-radius: var(--r-xl);
    border: 1px solid var(--line-2);
    background: radial-gradient(80% 100% at 100% 0%, color-mix(in oklab, var(--gold) 14%, transparent), transparent 60%), radial-gradient(70% 80% at 0% 100%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 60%), var(--card-solid);
}
.company-logo { height: 54px; width: auto; margin-bottom: 26px; }
[data-theme="light"] .company-logo.inverse { filter: invert(1) hue-rotate(180deg); }
.company h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.02em; }
.company .role { margin-top: 14px; }
.company-desc { color: var(--muted); margin-top: 18px; font-size: 1.02rem; }
.company-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.company-points li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: .92rem; font-weight: 500; }
.company-points .ico { color: var(--gold); width: 20px; height: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-title { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.035em; line-height: 1.04; }
html[lang="ar"] .contact-title { letter-spacing: 0; line-height: 1.3; }
.contact-intro { color: var(--muted); margin-top: 22px; font-size: 1.08rem; max-width: 46ch; }
.contact-methods { display: grid; gap: 10px; margin-top: 34px; }
.cmethod { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; transition: transform .4s var(--ease), border-color .4s; }
.cmethod:hover { transform: translateY(-3px); border-color: var(--line-2); }
.cmethod .c-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--accent-2); flex: none; }
.cmethod .c-ico .ico { width: 21px; height: 21px; }
.cmethod small { display: block; color: var(--dim); font-size: .8rem; }
.cmethod strong { display: block; font-weight: 600; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.contact-socials { justify-content: flex-start; margin-top: 26px; }
.form-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
    width: 100%; padding: 26px 18px 10px; border-radius: 16px;
    border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 55%, transparent);
    outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
    font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; inset-inline-start: 18px; top: 18px; color: var(--dim); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: color-mix(in oklab, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: .74rem; color: var(--accent-2); }
.field ::placeholder { color: transparent; }
.field textarea:focus::placeholder { color: var(--dim); }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-size: .9rem; color: var(--muted); }
.form-msg.ok { color: #22c55e; }
.form-msg.err { color: #f87171; }
.form-card .btn[disabled] { opacity: .7; pointer-events: none; }
.form-done { text-align: center; padding: 40px 10px; display: none; }
.form-done .check { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 20px 50px -15px var(--accent); animation: pop .7s var(--ease); }
.form-done .check .ico { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.form-card.sent form { display: none; }
.form-card.sent .form-done { display: block; }

/* Footer */
.footer { position: relative; padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 22ch; }
.footer-giant {
    margin-top: 60px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.6rem, 11.5vw, 12rem); line-height: .9; letter-spacing: -.05em;
    text-align: center; white-space: nowrap;
    background: linear-gradient(180deg, color-mix(in oklab, var(--text) 16%, transparent), transparent 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    user-select: none;
}
html[lang="ar"] .footer-giant { letter-spacing: 0; line-height: 1.25; font-size: clamp(3.2rem, 13.5vw, 13rem); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.p-hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 40px; }
.p-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin-bottom: 30px; transition: color .3s; }
.p-back:hover { color: var(--text); }
[dir="ltr"] .p-back .ico { transform: scaleX(-1); }
.p-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.p-head h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.045em; line-height: .98; margin-top: 18px; }
html[lang="ar"] .p-head h1 { letter-spacing: 0; line-height: 1.2; }
.p-head h1.is-long { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.12; }
html[lang="ar"] .p-head h1.is-long { line-height: 1.35; }
.p-tagline { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--muted); margin-top: 18px; max-width: 40ch; }
.p-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-fact { padding: 16px 18px; border-radius: 18px; }
.p-fact small { display: block; color: var(--dim); font-size: .78rem; margin-bottom: 4px; }
.p-fact strong { font-weight: 600; font-size: .95rem; }
.p-visual { margin-top: 50px; border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow-lg); }
.p-visual .art { height: 100%; }
.p-visual .art-window { inset: 12% 14% auto 14%; }
.p-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.p-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.p-story { display: grid; gap: 18px; color: var(--muted); font-size: 1.08rem; }
.p-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-features li { display: flex; gap: 12px; padding: 18px; border-radius: 18px; font-weight: 500; font-size: .95rem; line-height: 1.5; }
.p-features .ico { color: var(--c, var(--accent-2)); width: 20px; height: 20px; margin-top: 2px; }
.p-next { display: block; padding: clamp(30px, 5vw, 60px); border-radius: var(--r-xl); overflow: hidden; position: relative; transition: transform .5s var(--ease); }
.p-next:hover { transform: translateY(-6px); }
.p-next small { color: var(--dim); font-size: .9rem; }
.p-next h3 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.03em; margin-top: 8px; display: flex; align-items: center; gap: 20px; }
html[lang="ar"] .p-next h3 { letter-spacing: 0; }
.p-next h3 .ico { width: .7em; height: .7em; transition: transform .5s var(--ease); }
[dir="rtl"] .p-next h3 .ico { transform: scaleX(-1); }
.p-next:hover h3 .ico { transform: translateX(10px); }
[dir="rtl"] .p-next:hover h3 .ico { transform: translateX(-10px) scaleX(-1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-links a { padding: 8px 10px; font-size: .88rem; }
    .stack-groups { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 1; }
}
@media (max-width: 960px) {
    :root { --nav-h: 70px; }
    .nav-links, .nav-actions .nav-cta { display: none; }
    .nav-actions .burger { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { position: absolute; inset: auto -20% -10% auto; width: 90vw; max-width: 620px; opacity: .45; z-index: 0; pointer-events: none; }
    [dir="rtl"] .hero-visual { inset: auto auto -10% -20%; }
    .orbit-tag { display: none; }
    .about-grid, .contact-grid, .company, .p-head, .p-body { grid-template-columns: 1fr; }
    .id-card { position: relative; top: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stack-card { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
    .stack-card .stack-art { order: -1; height: auto; min-height: 0; }
    .stack-card .stack-art .art { height: clamp(260px, 72vw, 380px); min-height: 0; }
    .phone { width: 36%; }
    .phone.front { top: 16%; }
    .phone.back { top: 20%; }
    .grid-work { grid-template-columns: repeat(2, 1fr); }
    .honors { grid-template-columns: repeat(2, 1fr); }
    .honor.gold { grid-column: span 2; grid-row: auto; min-height: 380px; }
    .timeline::before, .timeline-fill { left: 23px; }
    [dir="rtl"] .timeline::before, [dir="rtl"] .timeline-fill { left: auto; right: 23px; margin-right: -1px; }
    .tl-item { grid-template-columns: 1fr; gap: 0; padding-inline-start: 70px; }
    .tl-item .tl-card, .tl-item.tl-alt .tl-card { grid-column: 1; text-align: start; }
    .tl-dot { left: 23px; top: 36px; }
    [dir="rtl"] .tl-dot { left: auto; right: 23px; transform: translateX(50%); }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .hero { padding-bottom: 100px; }
    .hero-ctas .btn { flex: 1 1 auto; }
    .stats { gap: 10px; }
    .stat { padding: 22px 18px; }
    .stat .ico { margin-bottom: 18px; }
    .bento, .grid-work, .honors, .stack-groups, .company-points, .p-features, .form-row { grid-template-columns: 1fr; }
    .honor.gold { grid-column: span 1; padding: 28px; }
    .honor.gold .emblem { position: relative; top: 0; inset-inline-end: 0; margin-bottom: 30px; }
    .svc { min-height: 0; }
    .svc h3 { margin-top: 24px; }
    .p-facts { grid-template-columns: 1fr 1fr; }
    .p-visual { aspect-ratio: 4 / 3.4; }
    .footer-cta { flex-direction: column; align-items: flex-start; }
    .nav-brand span { display: none; }
    .avatar { --s: 118px; }
    .socials { gap: 8px; }
    .social { width: 41px; height: 41px; border-radius: 13px; }
    .social .ico { width: 18px; height: 18px; }
    .art-window { inset: 12% 6% auto 8%; }
}
@media (hover: none) {
    .spot::before, .spot::after { display: none; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
