/* Palette & tokens — matched to sb.sa */
:root {
  --bg: oklch(13.5% .006 285);
  --surface: oklch(17% .006 285);
  --raised: oklch(21% .007 285);
  --fg: oklch(96.5% .004 285);
  --muted: oklch(78% .008 285);
  --faint: oklch(62% .01 285);
  --accent: oklch(74% .19 298);
  --accent-soft: oklch(74% .19 298 / .14);
  --live: oklch(80% .2 150);
  --gold: oklch(84% .14 85);
  --line: oklch(100% 0 0 / .08);
  --line-strong: oklch(100% 0 0 / .16);

  --font-sans: "Geist", "Alexandria", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "Alexandria", ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-quart: cubic-bezier(.76, 0, .24, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.5rem;
  --radius: 1rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.has-smoother) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:lang(ar) body { line-height: 1.8; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .375rem; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.skip { position: fixed; top: .75rem; inset-inline-start: .75rem; z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding-inline: 1rem;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .875rem; font-weight: 500; white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn--lg { height: 3rem; padding-inline: 1.4rem; font-size: .95rem; }
.btn--ghost { background: oklch(17% .006 285 / .7); color: var(--fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: oklch(18% .05 298); }
.btn--accent:hover { background: var(--fg); border-color: var(--fg); }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 90; display: none;
  place-content: center; justify-items: center; gap: 1rem;
  background: var(--bg);
}
.js .loader { display: grid; }
.loader__line { width: 8rem; height: 1px; background: var(--line); overflow: hidden; }
.loader__line span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader__text { font-size: .75rem; color: var(--faint); direction: ltr; }

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

.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 80; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; opacity: 0; }
  .cursor__dot { width: 6px; height: 6px; background: var(--accent); }
  .cursor__ring { width: 36px; height: 36px; border: 1px solid oklch(74% .19 298 / .5); transition: width .35s var(--ease-out-expo), height .35s var(--ease-out-expo), background-color .35s, border-color .35s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: var(--accent-soft); border-color: transparent; }
}

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .5s, border-color .5s, backdrop-filter .5s;
}
.site-header.is-scrolled {
  background: oklch(13.5% .006 285 / .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { margin-inline-end: auto; }
.brand__name { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; transition: color .4s; }
.brand:hover .brand__name { color: var(--accent); }
.nav { position: relative; display: none; align-items: center; }
.nav a { position: relative; z-index: 1; padding: .5rem .9rem; font-size: .875rem; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
.nav__indicator {
  position: absolute; top: 50%; left: 0; height: 2.1rem; width: 0; translate: 0 -50%;
  border-radius: 999px; background: var(--raised); border: 1px solid var(--line); opacity: 0;
}
.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle { width: 2.5rem; padding: 0; font-size: .8rem; }
.menu-toggle { width: 2.5rem; padding: 0; }
.menu-toggle__bars { display: grid; gap: 5px; width: 16px; }
.menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out-expo); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 64rem) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 40rem) { .hide-sm { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: .9rem;
  border-bottom: 1px solid var(--line); font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 500;
}
.mobile-menu__nav a .mono { font-size: .75rem; color: var(--accent); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 38rem; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 52% at 50% 48%, oklch(13.5% .006 285 / .85), transparent 75%),
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg));
}
@media (max-width: 40rem) {
  .hero__vignette {
    background:
      radial-gradient(95% 50% at 50% 48%, oklch(13.5% .006 285 / .9), transparent 80%),
      linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg));
  }
}
.hero__inner { display: grid; grid-template-rows: 1fr auto; height: 100%; padding-top: var(--header-h); padding-bottom: 1.75rem; }
.hero__center { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; margin-top: -6vh; }
.hero__center > :not(.hero__particles) { position: relative; z-index: 1; }
.hero__particles { position: absolute; z-index: 0; pointer-events: none; }
.hero__name.is-particles { color: transparent; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; height: 2.1rem; padding-inline: .9rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: oklch(17% .006 285 / .6);
  backdrop-filter: blur(8px); font-size: .8rem; color: var(--muted);
}
.status__dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--live); }
.status__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--live); animation: ping 2s var(--ease-out-expo) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.hero__name {
  font-size: clamp(3.2rem, 9vw, 9rem); font-weight: 600; line-height: 1; letter-spacing: -.045em;
  text-wrap: balance;
}
:lang(ar) .hero__name { letter-spacing: 0; line-height: 1.25; font-size: clamp(2.9rem, 10vw, 9rem); }
.whoami {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.25rem; padding-inline: 1rem;
  border-radius: .75rem; border: 1px solid var(--line); background: oklch(10% .006 285 / .6);
  font-size: clamp(.78rem, 2.4vw, .92rem); color: var(--fg); direction: ltr; unicode-bidi: isolate;
}
.whoami__prompt { color: var(--accent); }
.whoami__role { color: var(--muted); }
:lang(ar) .whoami__role { font-family: var(--font-sans); direction: rtl; }
.whoami__caret { width: .5em; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: var(--muted); }
:lang(ar) .hero__lead { line-height: 1.85; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--faint); }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero__scroll i { display: block; width: 1px; height: 2.5rem; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: drip 2.2s var(--ease-in-out-quart) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.clock { direction: ltr; }

/* Sections */
.section { padding-top: clamp(6rem, 12vw, 9rem); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__index { font-size: .8rem; color: var(--accent); }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
:lang(ar) .section__title { letter-spacing: 0; line-height: 1.4; }
.section__aside { margin-inline-start: auto; font-size: .8rem; color: var(--faint); }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; isolation: isolate;
}
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 50%), oklch(74% .19 298 / .12), transparent 45%);
}
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), oklch(74% .19 298 / .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
[data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }

/* About */
.about { display: grid; gap: 3rem; }
.statement { font-size: clamp(1.5rem, 3.3vw, 2.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
:lang(ar) .statement { font-size: clamp(1.35rem, 2.7vw, 2.25rem); line-height: 1.7; letter-spacing: 0; }
.statement .word { display: inline-block; }
.statement .line { display: block; }
.facts { display: grid; gap: 0; align-content: start; }
.fact { display: grid; gap: .25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.fact:first-child { border-top: 1px solid var(--line); }
.fact dt { font-size: .75rem; color: var(--accent); }
.fact dd { color: var(--muted); }
@media (min-width: 64rem) {
  .about { grid-template-columns: 2fr 1fr; gap: 5rem; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: .5rem; padding: clamp(1.1rem, 2.5vw, 1.75rem); min-height: 9rem; align-content: space-between; }
.stat__num { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .stat__num { text-align: end; }
.stat__label { font-size: .875rem; color: var(--muted); }

/* Marquee */
.marquee {
  margin-top: clamp(6rem, 12vw, 9rem); padding-block: 1.25rem;
  border-block: 1px solid var(--line); overflow: hidden; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 2rem; align-items: center; font-size: clamp(1.1rem, 2.5vw, 1.75rem); color: var(--faint); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: .7em; }

/* Timeline */
.timeline { position: relative; }
.timeline__line { position: absolute; inset-inline-start: 0; top: .5rem; bottom: 0; width: 1px; background: var(--line); }
.timeline__line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--accent), oklch(74% .19 298 / .1)); transform-origin: top; }
.timeline__list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.job { position: relative; display: grid; gap: .9rem; padding-inline-start: clamp(1.5rem, 3vw, 2.5rem); }
.job::before {
  content: ""; position: absolute; inset-inline-start: -4px; top: .5rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.job__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .78rem; color: var(--faint); }
.job__meta span:first-child { color: var(--accent); }
.job__title { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
:lang(ar) .job__title { letter-spacing: 0; }
.job__at { color: var(--muted); }
.job__body { display: flex; flex-direction: column; gap: 1.1rem; }
.job__sub { color: var(--faint); font-size: .9rem; margin-top: -.35rem; }
.job__list { display: grid; gap: .6rem; max-width: 46rem; color: var(--muted); }
.job__list li { position: relative; padding-inline-start: 1.1rem; }
.job__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: .4rem; height: 1px; background: var(--faint); }
@media (min-width: 64rem) {
  .job { grid-template-columns: 14rem 1fr; gap: 2rem; }
  .job__meta { flex-direction: column; padding-top: .35rem; }
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-family: var(--font-mono); font-size: .72rem; padding: .25rem .6rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: oklch(100% 0 0 / .02);
}

/* Projects — stacking cards */
.projects { padding-top: clamp(6rem, 12vw, 9rem); --stack-top: calc(var(--header-h) + 1.25rem); --stack-step: 14px; }
.stack { display: grid; gap: 1.5rem; }
.stack-card {
  position: relative; display: grid; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); border-radius: 1.25rem; background: var(--surface);
  box-shadow: 0 -20px 60px -20px oklch(0% 0 0 / .7);
  transform-origin: 50% 0;
}
.stack.is-stacked .stack-card { grid-template-rows: 42% 1fr; height: min(38rem, calc(100svh - var(--header-h) - 5.5rem)); min-height: 30rem; }
.stack-card__shade { position: absolute; inset: 0; z-index: 5; background: var(--bg); opacity: 0; pointer-events: none; }
.stack-card__info { order: 2; display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem 1.25rem 1.4rem; min-height: 0; }
.stack-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project__no { font-size: .75rem; color: var(--faint); }
.project__metric {
  display: inline-flex; gap: .35rem; font-size: .75rem; color: var(--fg);
  padding: .3rem .7rem; border-radius: 999px; background: var(--raised); border: 1px solid var(--line);
}
.project__metric > span:not(.mono) { color: var(--muted); }
.project__cat { font-size: .75rem; color: var(--accent); }
.project__name { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
:lang(ar) .project__name { letter-spacing: 0; line-height: 1.35; }
.project__desc { color: var(--muted); font-size: clamp(.9rem, 1.3vw, 1rem); line-height: 1.7; }
.stack-card .tags { margin-top: auto; }
.project__link {
  display: inline-flex; align-items: center; gap: .35rem; width: fit-content;
  font-family: var(--font-mono); font-size: .82rem; color: var(--fg);
  border-bottom: 1px solid var(--line-strong); padding-bottom: .15rem; transition: color .3s, border-color .3s;
}
.project__link:hover { color: var(--accent); border-color: var(--accent); }
.project__link .icon { transition: transform .4s var(--ease-out-expo); }
.project__link:hover .icon { transform: translate(2px, -2px); }

.stack-card__media {
  order: 1; position: relative; overflow: hidden; min-height: 0; aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle, oklch(100% 0 0 / .07) 1px, transparent 1.5px) 0 0 / 8px 8px,
    radial-gradient(80% 90% at 50% 100%, color-mix(in oklch, var(--tint) 45%, transparent), transparent 70%),
    var(--raised);
  border-bottom: 1px solid var(--line);
}
.browser {
  position: absolute; top: 1.25rem; inset-inline-start: 1.25rem; width: 84%; aspect-ratio: 16 / 10.6;
  display: flex; flex-direction: column; border-radius: .7rem; overflow: hidden; background: #111;
  border: 1px solid oklch(100% 0 0 / .12);
  box-shadow: 0 30px 60px -20px oklch(0% 0 0 / .8), 0 0 0 1px oklch(0% 0 0 / .4);
  transition: transform 1s var(--ease-out-expo);
}
.browser__bar { display: flex; align-items: center; gap: .35rem; height: 1.6rem; padding-inline: .7rem; background: #1b1b1f; flex: none; direction: ltr; }
.browser__bar i { width: .5rem; height: .5rem; border-radius: 50%; background: oklch(100% 0 0 / .18); }
.browser__url { flex: 1; text-align: center; font-size: .65rem; color: var(--faint); margin-inline-end: 1.5rem; }
.browser img, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone {
  position: absolute; bottom: -18%; inset-inline-end: 1.25rem; width: 24%; aspect-ratio: 9 / 19;
  border-radius: 1.2rem; overflow: hidden; background: #000; padding: 4px;
  border: 1px solid oklch(100% 0 0 / .18);
  box-shadow: 0 30px 60px -10px oklch(0% 0 0 / .85);
  transition: transform 1s var(--ease-out-expo);
}
.phone img { border-radius: .95rem; }
.stack-card:hover .browser { transform: translateY(-6px) scale(1.015); }
.stack-card:hover .phone { transform: translateY(-14px) rotate(-2deg); }

@media (min-width: 64rem) {
  .stack-card { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); min-height: 32rem; }
  .stack-card__media { aspect-ratio: auto; }
  .stack-card__info { order: 0; padding: clamp(1.75rem, 3vw, 2.75rem); gap: 1rem; }
  .stack-card__media { order: 0; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .browser { top: 12%; inset-inline-start: 8%; width: 82%; }
  .phone { bottom: -10%; width: 21%; inset-inline-end: 5%; }
}
@media (max-width: 40rem), (max-height: 44rem) {
  .is-stacked .stack-card .tags { display: none; }
  .is-stacked .stack-card .project__link { margin-top: auto; }
}
.is-stacked .stack-card__media { aspect-ratio: auto; }

/* Skills */
.skills { border-top: 1px solid var(--line); }
.skill-row {
  position: relative; display: grid; gap: 1.1rem; padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.skill-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .5s;
}
[dir="rtl"] .skill-row::before { background: linear-gradient(-90deg, var(--accent-soft), transparent 60%); }
.skill-row:hover::before { opacity: 1; }
.skill-row__head { display: flex; align-items: baseline; gap: .9rem; }
.skill-row__no { font-size: .75rem; color: var(--faint); transition: color .4s; }
.skill-row:hover .skill-row__no { color: var(--accent); }
.skill-row__title { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; }
:lang(ar) .skill-row__title { letter-spacing: 0; }
@media (min-width: 64rem) {
  .skill-row { grid-template-columns: 22rem 1fr; align-items: center; gap: 2rem; padding-block: 1.9rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .4rem .8rem; border-radius: .6rem; border: 1px solid var(--line-strong); background: var(--raised);
  font-size: .85rem; transition: border-color .3s, color .3s, background-color .3s;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }
.chips--lg li { padding: .6rem 1.1rem; border-radius: 999px; font-size: clamp(.92rem, 1.4vw, 1rem); }
.chips--accent li { background: var(--accent-soft); border-color: oklch(74% .19 298 / .3); color: oklch(88% .08 298); }

/* Achievements */
.awards { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .awards { grid-template-columns: repeat(2, 1fr); } }
.award { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.4rem, 3vw, 2.25rem); min-height: 18rem; }
.award__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 2rem; }
.award__year { font-size: .8rem; color: var(--faint); }
.award__badge { font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.award__badge--gold { background: oklch(84% .14 85 / .14); color: var(--gold); }
.award__title { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .award__title { text-align: end; }
.award__sub { font-size: 1.05rem; }
.award__org { color: var(--faint); font-size: .9rem; }
.award__desc { color: var(--muted); font-size: .95rem; }
.award .project__link { margin-top: .5rem; }

.edu { margin-top: .75rem; padding: clamp(1.4rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.edu__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.edu__k { font-size: .75rem; color: var(--accent); margin-bottom: .5rem; }
.edu__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
:lang(ar) .edu__title { letter-spacing: 0; }
.edu__org { color: var(--muted); }
.edu__nums { display: flex; gap: 2.5rem; }
.edu__nums span { display: grid; gap: .25rem; }
.edu__nums b { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; line-height: 1; }
.edu__nums small { font-size: .72rem; color: var(--faint); font-family: var(--font-sans); }
.edu__label { font-size: .85rem; color: var(--faint); padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Contact */
.contact { padding-top: clamp(7rem, 14vw, 11rem); padding-bottom: clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset-inline: -20%; bottom: -40%; height: 90%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, oklch(74% .19 298 / .16), transparent 70%);
}
.contact__title {
  margin-top: 1.25rem; max-width: 18ch; font-size: clamp(2.4rem, 7.5vw, 6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em;
}
:lang(ar) .contact__title { max-width: 16ch; line-height: 1.35; letter-spacing: 0; font-size: clamp(2.1rem, 6.4vw, 5rem); }
.contact__title .word { display: inline-block; }
.contact__main { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.contact__email {
  display: inline-flex; align-items: center; height: 3.75rem; padding-inline: 1.75rem; border-radius: 999px;
  background: var(--accent); color: oklch(18% .05 298); font-size: clamp(.9rem, 2.4vw, 1.15rem); font-weight: 500; direction: ltr;
  transition: background-color .3s;
}
.contact__email:hover { background: var(--fg); }
.contact__links { display: grid; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .contact__links { grid-template-columns: repeat(4, 1fr); } }
.contact__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem .25rem; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .3s, padding .4s var(--ease-out-expo);
}
@media (min-width: 48rem) { .contact__links li + li a { border-inline-start: 1px solid var(--line); padding-inline: 1.25rem; } }
.contact__links a:hover { color: var(--accent); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem 2.5rem; font-size: .75rem; color: var(--faint); }
.footer__top:hover { color: var(--accent); }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 70; translate: -50% 0;
  padding: .6rem 1rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .8rem;
  opacity: 0; pointer-events: none;
}

/* Initial states so first paint doesn't flash content GSAP is about to animate */
.js .hero-in, .js .hero__name { opacity: 0; }
.js .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-in, .js .hero__name, .js .reveal { opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
