/* =========================================================
   Huda Mahmoud — Portfolio
   Tokens → base → components → sections → modes → responsive
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f3f1ec;
  --ink-2: #bdbab2;
  --muted: #86837c;
  --acc: #b1a26f;
  --acc-ink: #b1a26f;
  --on-acc: #0b0b0c;
  --c: var(--acc);
  --wa: #25d366;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);

  --f-display: "Syne", "Cairo", system-ui, sans-serif;
  --f-body: "Manrope", "Cairo", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-ar: "Cairo", sans-serif;

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

html[lang="ar"] {
  --f-display: "Cairo", system-ui, sans-serif;
  --f-body: "Cairo", system-ui, sans-serif;
  --f-serif: "Cairo", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd { font: 500 11px/1 var(--f-mono); padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .ic.flip, [dir="rtl"] .ic-flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ltr { display: inline-block; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
html[lang="ar"] .serif { font-style: normal; font-weight: 300; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--acc); color: var(--on-acc); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Buttons, pills, tags ---------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding-inline: 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--acc); transform: translateY(101%); transition: transform .45s var(--ease-out); z-index: -1; border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }
.btn--sm { --bh: 42px; padding-inline: 18px; font-size: 14px; }
.btn--acc { background: var(--acc); color: var(--on-acc); }
.btn--acc::before, .btn--c::before { background: #cfc08e; }
.btn--acc:hover, .btn--c:hover { color: var(--on-acc); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { color: var(--on-acc); border-color: var(--acc); }
.btn--c { background: var(--c); color: var(--on-acc); }
.btn--wa { background: var(--wa); color: #06220f; }
.btn--wa::before { background: #1eb556; }
.btn--wa:hover { color: #06220f; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
html[lang="ar"] .pill { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding-inline: 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }

.kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html[lang="ar"] .kicker { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 600; }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.sec-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.sec-title { font: 700 clamp(44px, 7.4vw, 104px)/.95 var(--f-display); letter-spacing: -.035em; }
html[lang="ar"] .sec-title { letter-spacing: 0; line-height: 1.15; font-weight: 700; }
.sec-sub { color: var(--muted); max-width: 34ch; font-size: 15px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Intro loader ---------- */
.intro { display: none; }
.intro.intro--run, html.intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300;
  background: var(--bg); color: var(--ink);
  transition: clip-path .9s var(--ease-out);
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__inner { width: min(420px, 86vw); display: grid; gap: 18px; }
.intro__name { font: 700 clamp(28px, 5vw, 40px)/1 var(--f-display); letter-spacing: -.02em; }
.intro__log { font: 400 13px/1.9 var(--f-mono); color: var(--muted); min-height: 7.6em; }
.intro__log li::before { content: "› "; color: var(--acc-ink); }
.intro__log li:last-child { color: var(--ink); }
.intro__bar { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.intro__bar span { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
[dir="rtl"] .intro__bar span { transform-origin: right; }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .progress span { transform-origin: right; }

.cursor { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--acc); opacity: 0; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s, background-color .3s; display: grid; place-items: center; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--acc); }
.cursor__label { font: 600 13px/1 var(--f-body); color: var(--on-acc); opacity: 0; transition: opacity .2s; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; border: 1.5px solid var(--acc); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h); transition: background-color .3s, border-color .3s, transform .4s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav__inner { height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 42px; height: 42px; flex: none; transition: transform .6s var(--ease-out); }
.logo__mark path, .logo__win { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark circle { fill: var(--acc); }
.logo__lt, .logo__gt { transition: transform .4s var(--ease-out); }
.logo:hover .logo__lt { transform: translateX(-2.5px); }
.logo:hover .logo__gt { transform: translateX(2.5px); }
.logo__text { display: grid; gap: 5px; }
.logo__text b { font: 700 16px/1 var(--f-display); letter-spacing: -.01em; }
.logo__text small { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-ink); }
.logo:hover .logo__mark { transform: rotate(-4deg); }
.nav__links { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .25s, background-color .25s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { background: var(--ink); color: var(--bg); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.tool { height: 42px; min-width: 42px; padding-inline: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: color .25s, border-color .25s, background-color .25s; }
.tool:hover { color: var(--ink); border-color: var(--line-2); }
.tool--icon { padding: 0; width: 42px; }
.tool .ic { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(28px, 5vh, 64px)); padding-bottom: 88px; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, color-mix(in srgb, var(--acc) 6%, transparent), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding-inline: 14px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc-ink); font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 70%, transparent); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.meta-sep { width: 1px; height: 18px; background: var(--line-2); }
.clock { display: inline-flex; align-items: center; gap: 6px; }
.clock__time { font-family: var(--f-mono); color: var(--ink); }

.hero__role { font: 500 13px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="ar"] .hero__role { font-family: var(--f-body); letter-spacing: 0; font-size: 16px; text-transform: none; }

.hero__title { font: 800 clamp(40px, 5.8vw, 96px)/.92 var(--f-display); letter-spacing: -.055em; margin-bottom: 26px; }
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.15; font-weight: 800; font-size: clamp(60px, 9vw, 150px); }
.hero__line { display: block; white-space: nowrap; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); padding-inline-start: .55em; position: relative; }
html[lang="ar"] .hero__line--outline { color: var(--acc); -webkit-text-stroke: 0; padding-inline-start: .35em; }
.hero__line--outline .ch { transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s; }
.hero__title:hover .hero__line--outline .ch { color: var(--acc); -webkit-text-stroke-color: var(--acc); transition-delay: calc(var(--d) * 35ms); }
.ch { display: inline-block; }
.js .hero__title .ch { opacity: 0; transform: translateY(60%) rotate(6deg); }
.is-ready .hero__title .ch { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), color .5s, -webkit-text-stroke-color .5s; transition-delay: calc(var(--d) * 45ms + 100ms); }
.is-ready .hero__line--outline .ch { transition-delay: calc(var(--d) * 45ms + 300ms); }

.hero__rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; font: 500 clamp(22px, 2.6vw, 36px)/1.25 var(--f-body); letter-spacing: -.01em; margin-bottom: 20px; }
.rotator { display: inline-grid; font-family: var(--f-serif); font-style: italic; color: var(--acc-ink); font-size: 1.12em; }
html[lang="ar"] .rotator { font-style: normal; font-weight: 600; font-size: 1em; }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .6s; white-space: nowrap; }
.rotator__word.is-on { opacity: 1; transform: none; filter: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-.6em); filter: blur(6px); }

.hero__lead { max-width: 56ch; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; justify-self: end; width: 100%; }
.win { border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.win__bar, .frame__bar { height: 38px; display: flex; align-items: center; gap: 12px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.win__dots { display: inline-flex; gap: 6px; direction: ltr; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win__dots i:nth-child(1) { background: #ff5f57; } .win__dots i:nth-child(2) { background: #febc2e; } .win__dots i:nth-child(3) { background: #28c840; }
.win__url, .frame__url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; border-radius: 7px; background: var(--bg); font: 400 12px/1 var(--f-mono); color: var(--muted); direction: ltr; overflow: hidden; white-space: nowrap; }
.win__url .ic, .frame__url .ic { width: 11px; height: 11px; }
.win__body { aspect-ratio: 480 / 560; overflow: hidden; background: var(--surface-2); }
.win__body img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.32); transform-origin: 50% 40%; transition: transform 1.2s var(--ease-out); }
.win:hover .win__body img { transform: scale(1.38); }

.float { position: absolute; display: inline-flex; align-items: center; height: 38px; padding-inline: 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); font: 600 13px/1 var(--f-body); white-space: nowrap; animation: bob 6s ease-in-out infinite; unicode-bidi: isolate; }
.float::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-inline-end: 9px; }
.float--1 { top: 10%; inset-inline-start: -14%; animation-delay: -1s; }
.float--2 { top: 44%; inset-inline-end: -12%; animation-delay: -3s; }
.float--3 { bottom: 16%; inset-inline-start: -28%; animation-delay: -2s; background: var(--acc); color: var(--on-acc); border-color: transparent; }
.float--3::before { background: var(--on-acc); }
.float--4 { bottom: -18px; inset-inline-end: 8%; animation-delay: -4s; }
.float--5 { top: 20%; inset-inline-end: -9%; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .scroll-cue { transform: translateX(50%); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: var(--acc); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- About ---------- */
.b-label { font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .b-label { font-family: var(--f-body); letter-spacing: 0; font-size: 13px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__intro .sec-head { margin-bottom: 32px; }
.about__bio { display: grid; gap: 14px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
html[lang="ar"] .about__bio { font-size: 17px; line-height: 1.9; }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 36px 0 0; border-top: 1px solid var(--line); }
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.fact:nth-child(odd) { padding-inline-end: 20px; }
.fact:nth-child(even) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.fact dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fact dt .ic { color: var(--acc-ink); width: 16px; height: 16px; }
.fact dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.fact dd a:hover { color: var(--acc-ink); }

.about__label { display: block; font: 500 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="ar"] .about__label { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.about__label--lg { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--ink); }
.about__label--lg::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.about__side { display: grid; align-content: start; }
.xp { position: relative; display: grid; gap: 14px; margin-bottom: 44px; }
.xp__card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); position: relative; transition: border-color .3s, transform .5s var(--ease-out), background-color .3s; }
.xp__card:hover { border-color: color-mix(in srgb, var(--acc) 60%, transparent); transform: translateY(-3px); }
.xp__item.is-current .xp__card { background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 12%, var(--surface)), var(--surface) 55%); }
.xp__logo, .edu__ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--acc-ink); }
.xp__logo .ic, .edu__ico .ic { width: 26px; height: 26px; }
.xp__main { display: grid; gap: 6px; min-width: 0; }
.xp__top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.xp__company { font: 700 21px/1.2 var(--f-display); letter-spacing: -.01em; }
html[lang="ar"] .xp__company { letter-spacing: 0; }
.xp__badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding-inline: 10px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc-ink); font-size: 12px; font-weight: 600; }
.xp__badge .status__dot { width: 6px; height: 6px; }
.xp__role { font-size: 15px; font-weight: 500; color: var(--ink); }
.xp__period { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1.2 var(--f-mono); color: var(--muted); }
html[lang="ar"] .xp__period { font-family: var(--f-body); font-size: 13.5px; }
.xp__period .ic { width: 14px; height: 14px; }
.xp__desc { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.xp__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease-out); }
.xp__card:hover .xp__arrow { background: var(--acc); color: var(--on-acc); border-color: var(--acc); transform: rotate(45deg); }
[dir="rtl"] .xp__card:hover .xp__arrow { transform: rotate(-45deg); }

.edu { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.edu__year { font: 700 28px/1 var(--f-display); color: var(--acc-ink); letter-spacing: -.02em; }

/* ---------- Skills ---------- */
.skills { border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 24px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.skill::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; background: var(--acc); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); border-radius: 18px; }
.skill:hover::before { transform: scaleY(1); }
.skill:hover, .skill:hover .skill__desc, .skill:hover .skill__num { color: var(--on-acc); }
.skill:hover .tag { background: rgba(0, 0, 0, .08); border-color: rgba(0, 0, 0, .15); color: var(--on-acc); }
.skill__num { font: 500 14px/1 var(--f-mono); color: var(--muted); transition: color .3s; }
.skill__title { font: 700 clamp(24px, 2.6vw, 38px)/1.05 var(--f-display); letter-spacing: -.025em; }
html[lang="ar"] .skill__title { letter-spacing: 0; line-height: 1.3; }
.skill__desc { color: var(--ink-2); font-size: 15px; transition: color .3s; }
.skill__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.cwv { margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cwv__head h3 { font: 700 clamp(24px, 2.4vw, 34px)/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 12px; }
html[lang="ar"] .cwv__head h3 { letter-spacing: 0; line-height: 1.35; }
.cwv__head p { color: var(--muted); font-size: 15px; }
.cwv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gauge { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.gauge__svg { width: 100%; max-width: 180px; justify-self: center; overflow: visible; direction: ltr; }
.gauge__track { fill: none; stroke-width: 9; stroke-linecap: round; }
.g-good { stroke: #0cce6b; } .g-mid { stroke: #ffa400; opacity: .35; } .g-poor { stroke: #ff4e42; opacity: .35; }
.gauge__needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-origin: 60px 62px; transform: rotate(80deg); transition: transform 1.6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 150ms + 200ms); }
.gauge__hub { fill: var(--ink); }
.cwv.in .gauge__needle { transform: rotate(-52deg); }
.gauge__info { display: grid; gap: 4px; text-align: center; }
.gauge__abbr { font: 700 26px/1 var(--f-display); }
.gauge__what { font-size: 12px; color: var(--muted); line-height: 1.4; }
.gauge__value { font: 500 15px/1.2 var(--f-mono); }
.gauge__value em { font-style: normal; font: 600 11px/1 var(--f-body); color: #3ee48d; background: rgba(12, 206, 107, .16); padding: 3px 8px; border-radius: 99px; margin-inline-start: 6px; vertical-align: 2px; }

.process { margin-top: clamp(64px, 8vw, 110px); }
.process__head { display: grid; gap: 14px; margin-bottom: 36px; }
.process__title { font: 700 clamp(28px, 3.4vw, 48px)/1.05 var(--f-display); letter-spacing: -.03em; }
html[lang="ar"] .process__title { letter-spacing: 0; line-height: 1.35; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .5s var(--ease-out); }
.step:hover { border-color: var(--acc); transform: translateY(-4px); }
.step::after { content: ""; position: absolute; top: 44px; inset-inline-end: -17px; width: 18px; height: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step__num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 13px/1 var(--f-mono); color: var(--acc-ink); margin-bottom: 22px; }
.step h4 { font: 700 20px/1.2 var(--f-display); margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Work: stacked cards ---------- */
.stack { display: grid; gap: 28px; }
.card {
  --p: 0;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 52px); align-items: center;
  padding: clamp(20px, 3vw, 44px);
  border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    var(--surface);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * .06));
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--p) * .5); pointer-events: none; }
[dir="rtl"] .card { background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--surface); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, transparent), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8; }
.card__info { display: grid; gap: 18px; align-content: center; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__idx { font: 700 44px/1 var(--f-display); letter-spacing: -.04em; color: var(--c); }
.card__idx small { font: 500 14px/1 var(--f-mono); color: var(--muted); letter-spacing: 0; margin-inline-start: 4px; }
.card__name { font: 800 clamp(32px, 3.5vw, 52px)/1 var(--f-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
html[lang="ar"] .card__name { letter-spacing: 0; line-height: 1.2; }
.card__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: -6px; }
.card__sum { color: var(--ink-2); font-size: 15.5px; max-width: 48ch; }
.card__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.card__domain { font: 400 13px/1 var(--f-mono); color: var(--muted); }
.card__media { display: block; perspective: 1400px; }
.frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c) 60%, #000); transition: transform .7s var(--ease-out); transform-style: preserve-3d; }
.frame__img { aspect-ratio: 16 / 10; overflow: hidden; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease-out); }
.card__media:hover .frame__img img { transform: scale(1.05); }

@media (min-width: 1024px) and (min-height: 700px) {
  .stack { gap: 40px; padding-bottom: 20px; }
  .card { position: sticky; top: calc(var(--nav-h) + 24px + var(--i) * 14px); min-height: min(620px, calc(100svh - var(--nav-h) - 80px)); }
}

/* ---------- Work: interactive system ---------- */
.sys { margin-top: clamp(80px, 10vw, 140px); border-radius: 32px; border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 44px); position: relative; overflow: hidden; }
.sys::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
[dir="rtl"] .sys::before { background: radial-gradient(50% 60% at 0% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.sys__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sys__head .kicker { margin-bottom: 14px; }
.sys__title { font: 800 clamp(32px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -.04em; }
html[lang="ar"] .sys__title { letter-spacing: 0; line-height: 1.25; }
.sys__title .serif { color: var(--acc-ink); font-weight: 400; letter-spacing: -.01em; }
.sys__sub { color: var(--muted); margin-top: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding-inline: 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.live-badge .status__dot { background: var(--acc); }
.sys__grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.sys__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.sys__client { font-size: 13px; color: var(--muted); }
.sys__summary { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }

/* Guided tour — one step at a time */
.tour { border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); padding: 20px; }
.tour__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tour__label { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .tour__label { font-family: var(--f-body); letter-spacing: 0; font-size: 13px; }
.tour__count { font: 500 13px/1 var(--f-mono); color: var(--muted); direction: ltr; }
.tour__count b { color: var(--acc-ink); font-weight: 600; }
.tour__stage { display: grid; }
.tour__card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); filter: blur(4px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), filter .45s, visibility 0s .55s; }
.tour__card.is-out { visibility: visible; transform: translateY(-16px); transition: opacity .35s, transform .4s var(--ease-out), filter .35s, visibility 0s .4s; }
.tour__card.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .3s, .3s, .3s, 0s; }
.tour__num { display: block; font: 700 46px/1 var(--f-display); letter-spacing: -.04em; color: var(--acc-ink); margin-bottom: 14px; }
.tour__title { font: 700 22px/1.3 var(--f-display); letter-spacing: -.01em; }
html[lang="ar"] .tour__title { letter-spacing: 0; font-size: 23px; }
.tour__desc { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.tour__progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 20px 0 16px; }
.tour__progress i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .tour__progress i { transform-origin: right; }
.tour:not(.is-paused) .tour__progress i { animation: tourbar var(--tour-ms, 5500ms) linear forwards; }
@keyframes tourbar { to { transform: scaleX(1); } }
.tour__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tour__dots { display: flex; gap: 6px; }
.tour__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .35s var(--ease-out), background-color .3s; }
.tour__dot.is-on { width: 26px; background: var(--acc); }
.tour__dot:not(.is-on):hover { background: var(--ink-2); }
.tour__ctrls { display: flex; gap: 6px; }
.tour__btn { height: 36px; min-width: 36px; padding-inline: 10px; border-radius: 99px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color .25s, color .25s, border-color .25s; }
.tour__btn:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.tour__btn .ic { width: 15px; height: 15px; }
.tour__prev-ic { transform: rotate(-90deg); }
.tour__next-ic { transform: rotate(90deg); }
[dir="rtl"] .tour__prev-ic { transform: rotate(90deg); }
[dir="rtl"] .tour__next-ic { transform: rotate(-90deg); }
.tour__btn--play .is-play, .tour.is-paused .tour__btn--play .is-pause { display: none; }
.tour.is-paused .tour__btn--play .is-play { display: block; }
.sys__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); }
.sys__private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }


.try { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.try__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--acc-ink); }
.try__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.try__btn { height: 38px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; background: var(--surface-2); transition: background-color .25s, color .25s, border-color .25s, transform .2s; }
.try__btn:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.try__btn:active { transform: scale(.96); }
.try__btn--ghost { width: 38px; padding: 0; display: inline-grid; place-items: center; }
.sys__note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* The payroll mock UI (always light, Arabic) */
.pr {
  --pr-navy: #0f1b33; --pr-blue: #2563eb; --pr-bg: #f3f5f9; --pr-card: #fff; --pr-line: #e3e8f0; --pr-ink: #0f172a; --pr-muted: #64748b;
  container-type: inline-size;
  font-family: var(--f-ar); color: var(--pr-ink); background: var(--pr-bg);
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 27% 1fr; min-height: 440px;
  box-shadow: 0 40px 80px -40px rgba(37, 99, 235, .55);
  position: relative; text-align: right;
  line-height: 1.5;
}
.pr .ic { width: 15px; height: 15px; }
.pr__side { background: var(--pr-navy); color: #cbd5e1; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.pr__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pr__brand b { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.pr__brand small { font: 500 9px/1 var(--f-mono); letter-spacing: .14em; color: #7c8ba5; }
.pr__logo { width: 32px; height: 32px; border-radius: 10px; background: var(--pr-blue); display: grid; place-items: center; color: #fff; flex: none; }
.pr__branch { position: relative; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pr__branch small { display: block; font-size: 10px; color: #7c8ba5; }
.pr__branch-btn { color: #fff; font-size: 14px; display: flex; justify-content: space-between; width: 100%; align-items: center; }
.pr__branch-btn span { color: #7c8ba5; font-size: 12px; }
.pr__group { font-size: 10px; color: #64748b; margin: 8px 6px 2px; }
.pr__nav { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; }
.pr__nav.is-on { background: var(--pr-blue); color: #fff; box-shadow: 0 8px 20px -8px var(--pr-blue); }
.pr__main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.pr__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--pr-line); }
.pr__head b { display: block; font-size: 16px; font-weight: 700; }
.pr__head small { font-size: 11px; color: var(--pr-muted); }
.pr__add { display: inline-flex; align-items: center; gap: 6px; background: var(--pr-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.pr__body { display: grid; grid-template-columns: 36% 1fr; gap: 12px; padding: 14px; flex: 1; }
.pr__list { position: relative; background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: 14px; padding: 8px; align-self: start; }
.pr__list-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--pr-muted); padding: 4px 6px 8px; border-bottom: 1px solid var(--pr-line); margin-bottom: 6px; }
.pr__list-head span { background: #eef2ff; color: var(--pr-blue); font: 600 11px/1 var(--f-mono); padding: 4px 8px; border-radius: 99px; }
.pr__emp-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; text-align: right; transition: background-color .2s; }
.pr__emp-btn:hover { background: #f5f7fb; }
.pr__emp-btn.is-on { background: #eef3ff; }
.pr__emp-btn .pr__avatar { width: 28px; height: 28px; border-radius: 9px; }
.pr__emp-btn b { display: block; font-size: 12.5px; font-weight: 600; }
.pr__emp-btn.is-on b { color: var(--pr-blue); }
.pr__emp-btn small { font-size: 10.5px; color: var(--pr-muted); }
.pr__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eef2f7; color: var(--pr-muted); flex: none; }
.pr__emp-btn.is-on .pr__avatar, .pr__emp-head .pr__avatar { background: var(--pr-blue); color: #fff; }
.pr__detail { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pr__emp { background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: 14px; padding: 12px; }
.pr__emp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pr__emp-head b { display: block; font-size: 15px; font-weight: 700; }
.pr__emp-head small { font-size: 11px; color: var(--pr-muted); }
.pr__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pr__field { position: relative; border: 1px solid var(--pr-line); background: #fafbfd; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.pr__field small { font-size: 10.5px; color: var(--pr-muted); }
.pr__field b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr__field em { font-style: normal; font-size: 10px; color: #b45309; }
.pr__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr__stat { position: relative; background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: 14px; padding: 12px; display: grid; gap: 4px; border-inline-start: 4px solid var(--sc); }
.pr__stat--green { --sc: #16a34a; } .pr__stat--orange { --sc: #ea580c; } .pr__stat--blue { --sc: var(--pr-blue); }
.pr__stat--green { grid-column: span 2; }
.pr__stat small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pr-muted); }
.pr__stat b { font: 700 22px/1.1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pr__stat--green b { color: #16a34a; }
.pr__stat b i { font: 500 11px/1 var(--f-ar); color: var(--pr-muted); font-style: normal; }
.pr__stat em { font-style: normal; font-size: 10.5px; color: var(--pr-muted); }
.pr__meter { height: 5px; background: #e8f5ec; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pr__meter span { display: block; height: 100%; width: calc(var(--v) * 100%); background: #16a34a; border-radius: inherit; transition: width .8s var(--ease-out); margin-inline-start: 0; }
.pr [data-pr].bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.12); color: #dc2626; } }
.pr__toast { position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translate(50%, 20px); background: var(--pr-navy); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 10px; opacity: 0; transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; white-space: nowrap; }
.pr__toast.is-on { opacity: 1; transform: translate(50%, 0); }


.pr__nav { width: 100%; text-align: right; color: inherit; transition: background-color .2s; }
.pr__nav:not(.is-on):hover { background: rgba(255, 255, 255, .06); }
.pr__screens { display: grid; flex: 1; }
.pr__screen { grid-area: 1 / 1; display: flex; flex-direction: column; position: relative; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; }
.pr__screen.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
button.pr__add { cursor: pointer; }
.pr__add--ghost { background: #fff; color: var(--pr-ink); border: 1px solid var(--pr-line); }
.pr__body--one { grid-template-columns: minmax(0, 1fr); align-content: start; }
.pr__panel { background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: 14px; min-width: 0; }
.pr__panel-head { padding: 12px 14px; border-bottom: 1px solid var(--pr-line); }
.pr__panel-head b { display: block; font-size: 14px; font-weight: 700; }
.pr__panel-head small { font-size: 11px; color: var(--pr-muted); }
.pr__table { font-size: 12px; }
.pr__tr { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--pr-line); min-width: 0; }
.pr__tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr__th { background: #f8fafc; color: var(--pr-muted); font-size: 11px; font-weight: 600; }
.pr__table--bookings { --cols: 1.7fr .9fr .8fr 1.1fr .8fr 1fr; }
.pr__table--rev { --cols: 1.6fr 1.2fr 1.2fr .8fr; }
.pr__table--branches { --cols: 1.6fr .8fr .8fr 1.3fr; }
.pr__tr.is-today { background: #f5f9ff; }
.pr__chip { font-style: normal; display: inline-block; margin-inline-start: 4px; background: #dbeafe; color: var(--pr-blue); font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; vertical-align: 1px; }
.pr__amt { font: 700 12px/1 var(--f-mono); }
.pr__num { font-family: var(--f-mono); direction: ltr; text-align: right; }
.pr__done-btn { background: #16a34a; color: #fff; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 8px; justify-self: start; }
.pr__done-btn:hover { background: #15803d; }
.pr__done-tag { color: #16a34a; font-size: 11px; font-weight: 700; }
.pr__status { display: inline-flex; align-items: center; gap: 5px; background: #eef2ff; color: var(--pr-blue); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; justify-self: start; }
.pr__status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pr__open-btn { border: 1px solid var(--pr-line); background: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px; justify-self: start; }
.pr__open-btn:hover { border-color: var(--pr-blue); color: var(--pr-blue); }
.pr__empty { padding: 22px 14px; text-align: center; color: var(--pr-muted); font-size: 12px; }
.pr__note { padding: 10px 14px; font-size: 11px; color: var(--pr-muted); }
.pr__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr__stats--3 .pr__stat--green { grid-column: auto; }
.pr__stat--red { --sc: #dc2626; }
.pr__stat--red b { color: #dc2626; }

.pr__modal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 14px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.pr.modal-open .pr__modal { opacity: 1; visibility: visible; transition-delay: 0s; }
.pr__dialog { position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5); transform: translateY(12px) scale(.97); transition: transform .45s var(--ease-out); }
.pr.modal-open .pr__dialog { transform: none; }
.pr__dialog-title { grid-column: 1 / -1; font-size: 16px; font-weight: 700; }
.pr__dialog > small { grid-column: 1 / -1; margin-top: -10px; font-size: 11px; color: var(--pr-muted); }
.pr__label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; min-width: 0; }
.pr__label--full { grid-column: 1 / -1; }
.pr__label input, .pr__label select { width: 100%; font: 500 12px/1.4 var(--f-ar); color: var(--pr-ink); background: #f8fafc; border: 1px solid var(--pr-line); border-radius: 9px; padding: 8px 10px; }
.pr__label input:focus, .pr__label select:focus { outline: 2px solid var(--pr-blue); outline-offset: 0; border-color: transparent; }
.pr__info { background: #eff6ff; color: #1d4ed8; font-size: 11px; padding: 8px 10px; border-radius: 9px; }
.pr__dialog-btns { display: flex; gap: 8px; }
.pr__btn { background: var(--pr-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 9px; }
.pr__btn--ghost { background: #fff; color: var(--pr-ink); border: 1px solid var(--pr-line); }

/* Tour spotlight */
.pr [data-area] { position: relative; transition: box-shadow .4s var(--ease-out), opacity .4s, filter .4s; }
.pr.is-touring [data-area]:not(.is-focus) { opacity: .5; filter: saturate(.5); }
.pr [data-area].is-focus { box-shadow: 0 0 0 3px #3b82f6, 0 0 0 8px rgba(59, 130, 246, .22); border-radius: 14px; z-index: 2; }
.pr__pin { position: absolute; top: -9px; left: -9px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: var(--pr-blue); color: #fff; font: 700 11px/22px var(--f-mono); text-align: center; box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(37, 99, 235, .8); transition: transform .3s var(--ease-out); }
.pr__pin:hover { transform: scale(1.15); }
.pr [data-area].is-focus > .pr__pin { animation: pinpulse 1.6s infinite; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(37, 99, 235, .3); } }

@container (max-width: 640px) {
  .pr__body { grid-template-columns: 1fr; }
  .pr__list ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .pr__list ul::-webkit-scrollbar { display: none; }
  .pr__emp-btn { min-width: 150px; border: 1px solid var(--pr-line); }
  .pr__stats--3 { grid-template-columns: 1fr; }
  .pr__hide-sm { display: none; }
  .pr__table--bookings { --cols: 1.5fr .9fr .8fr .8fr 1fr; }
  .pr__table--rev { --cols: 1.5fr 1.2fr .8fr; }
}
@container (max-width: 520px) {
  .pr__stat b { font-size: 19px; }
  .pr__fields { grid-template-columns: 1fr 1fr; }
  .pr__field:last-child { grid-column: span 2; }
  .pr__table--bookings { --cols: 1.4fr .9fr .9fr; }
  .pr__table--bookings .pr__tr > :nth-child(3), .pr__table--bookings .pr__tr > :nth-child(5) { display: none; }
  .pr__table--branches { --cols: 1.4fr .7fr 1.2fr; }
  .pr__table--branches .pr__tr > :nth-child(3) { display: none; }
  .pr__dialog { grid-template-columns: 1fr; padding: 14px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__title { font: 800 clamp(44px, 6.6vw, 96px)/.95 var(--f-display); letter-spacing: -.045em; margin: 20px 0 24px; }
html[lang="ar"] .contact__title { letter-spacing: 0; line-height: 1.25; }
.contact__title span { display: block; }
.contact__title .serif { color: var(--acc-ink); font-size: 1.05em; letter-spacing: -.02em; }
.contact__lead { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin-bottom: 32px; }
.direct { display: grid; gap: 10px; margin-bottom: 36px; }
.direct li { display: flex; align-items: stretch; gap: 8px; }
.direct__row { flex: 1; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease-out); min-width: 0; }
.direct__row:hover { border-color: var(--acc); transform: translateX(6px); }
[dir="rtl"] .direct__row:hover { transform: translateX(-6px); }
.direct__row small { display: block; font-size: 12px; color: var(--muted); }
.direct__row b { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.direct__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--acc-ink); flex: none; }
.direct__ico--wa { color: var(--wa); }
.direct__copy { width: 60px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); transition: border-color .3s, color .3s; }
.direct__copy:hover { border-color: var(--acc); color: var(--acc-ink); }

.brief { border-radius: 28px; border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 36px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.brief::before { content: ""; position: absolute; top: -40%; inset-inline-end: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent); pointer-events: none; }
.brief__head h3 { display: flex; align-items: center; gap: 10px; font: 700 26px/1.2 var(--f-display); letter-spacing: -.02em; margin-bottom: 6px; }
.brief__head h3 .ic { color: var(--acc-ink); }
.brief__head p { color: var(--muted); font-size: 14px; }
.brief fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.brief legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.brief legend span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font: 500 11px/1 var(--f-mono); color: var(--acc-ink); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.choice:hover span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.choice input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.field { width: 100%; font: 500 15px/1.5 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 16px; resize: vertical; transition: border-color .2s; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: 0; border-color: var(--acc); }
.brief__send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief__note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.brief.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; text-align: center; }
.footer__copy { font-size: 14px; color: var(--muted); }

/* ---------- Dock (mobile) ---------- */
.dock { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; inset-inline-start: 50%; transform: translate(-50%, 30px); z-index: 260; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); display: flex; align-items: center; gap: 8px; }
[dir="rtl"] .toast { transform: translate(50%, 30px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .toast.is-on { transform: translate(50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .float--1 { inset-inline-start: -14%; } .float--3 { inset-inline-start: -18%; }
  .skill { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.3fr); }
  .skill__tags { grid-column: 2 / -1; justify-content: flex-start; }
  .cwv { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .card { grid-template-columns: minmax(0, 1fr); }
  .card__media { order: -1; }
  .sys__grid { grid-template-columns: minmax(0, 1fr); }
  .sys__summary { margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__tools { margin-inline-start: auto; }
  .logo__mark { width: 38px; height: 38px; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-self: center; max-width: 360px; margin-top: 12px; }
  .scroll-cue { display: none; }
  .sec-head--split { grid-template-columns: 1fr; }

  .dock {
    display: flex; position: fixed; z-index: 100; bottom: max(12px, env(safe-area-inset-bottom)); inset-inline: 12px;
    justify-content: space-around; gap: 4px; padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line-2);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  }
  .dock a, .dock button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; font-size: 10.5px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
  .dock .ic { width: 20px; height: 20px; }
  .dock a.is-active { background: var(--acc); color: var(--on-acc); }
  body { padding-bottom: 96px; }
  .toast { bottom: 104px; }

}

@media (max-width: 720px) {
  .pr { grid-template-columns: 1fr; min-height: 0; }
  .pr__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 8px; }
  .pr__brand { margin: 0; }
  .pr__branch { margin: 0; padding: 6px 10px; min-width: 140px; }
  .pr__group, .pr__nav { display: none; }
  .pr__head { padding: 12px 14px; }
  .pr__body { padding: 10px; }
}

@media (max-width: 640px) {
  .bento { gap: 12px; }
  .skill { grid-template-columns: 40px 1fr; gap: 10px 14px; padding-block: 24px; }
  .skill__desc, .skill__tags { grid-column: 2; }
  .skill::before { inset-inline: -10px; }
  .cwv__grid { grid-template-columns: 1fr; }
  .gauge { grid-template-columns: 120px 1fr; align-items: center; }
  .gauge__info { text-align: start; }
  .steps { grid-template-columns: 1fr; }
  .card { border-radius: 24px; padding: 16px 16px 22px; gap: 20px; }
  .card__idx { font-size: 34px; }
  .sys { border-radius: 24px; padding: 18px 16px; }
  .brief__send { grid-template-columns: 1fr; }
  .hero__meta { gap: 10px; }
  .meta-sep { display: none; }
  .float { height: 32px; padding-inline: 12px; font-size: 12px; }
  .float--1 { inset-inline-start: -4%; top: 6%; } .float--2 { inset-inline-end: -2%; } .float--3 { inset-inline-start: -6%; bottom: 12%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .direct__copy { width: 52px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 11.4vw; }
  html[lang="ar"] .hero__title { font-size: 60px; }
  .logo__text { display: none; }
}

@media (hover: none) {
  .skill::before { display: none; }
  .skill:hover, .skill:hover .skill__desc, .skill:hover .skill__num { color: inherit; }
  .skill:hover .tag { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__title .ch { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 9.6vw; }
  html[lang="ar"] .hero__title { font-size: 17vw; }
  .hero__line--outline { padding-inline-start: .18em; -webkit-text-stroke-width: 1.2px; }
  .hero__role { font-size: 11.5px; letter-spacing: .06em; }
}
@media (max-width: 640px) {
  .direct__row { padding: 12px 14px; gap: 12px; }
  .direct__row b { font-size: 14px; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
  .xp__card { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .xp__logo, .edu__ico { width: 52px; height: 52px; border-radius: 14px; }
  .xp__arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 34px; height: 34px; }
  .xp__top { padding-inline-end: 40px; }
  .edu { grid-template-columns: 52px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .edu__year { grid-column: 2; font-size: 22px; }
}

/* Work with me (contact intro) */
.wwm { margin-bottom: 32px; max-width: 54ch; }
.wwm h3 { font: 700 22px/1.3 var(--f-display); margin-bottom: 10px; }
.wwm p { color: var(--ink-2); font-size: 17px; line-height: 1.8; }

/* Tech stack — full-width row of logos */
.tech { margin-top: clamp(56px, 7vw, 90px); }
.tech__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.tech__item { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 30px 12px 26px; text-align: center; transition: background-color .35s; }
.tech__item + .tech__item { border-inline-start: 1px solid var(--line); }
.tech__item::after { content: ""; position: absolute; inset-inline: 30%; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.tech__item:hover { background: var(--surface-2); }
.tech__item:hover::after { transform: scaleX(1); }
.tech__logo { width: 38px; height: 38px; margin-bottom: 10px; color: var(--acc); transition: transform .45s var(--ease-out); }
.tech__logo svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.tech__item:hover .tech__logo { transform: translateY(-4px) scale(1.06); }
.tech__name { font-weight: 700; font-size: 15px; direction: ltr; }
.tech__cat { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
  .tech__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tech__row::-webkit-scrollbar { display: none; }
  .tech__item { scroll-snap-align: start; padding: 24px 10px 22px; }
  .tech__logo { width: 32px; height: 32px; }
}
