/* ===================================================================
   Alhomam Chalabi — Portfolio
   Futuristic Tech · DE/EN/AR
   =================================================================== */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --text-dim: #8a93a6;
  --text-faint: #545b6b;

  --accent: #6ee7ff;        /* cyan */
  --accent-2: #a78bfa;      /* violet */
  --accent-3: #34d399;      /* green */
  --accent-4: #c084fc;      /* vivid violet — extra pop within the cyan/violet family */
  --glow: 0 0 40px rgba(110, 231, 255, 0.32);
  --glow-violet: 0 0 44px rgba(167, 139, 250, 0.30);
  /* signature gradient, reused across name, stats, mail, accents */
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-4) 52%, var(--accent-2) 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', sans-serif; }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .contact-title,
html[dir="rtl"] .project-name { font-family: 'Cairo', 'Space Grotesk', sans-serif; }

/* Arabic needs room for descenders + no negative tracking (it breaks the cursive script) */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .contact-title,
html[dir="rtl"] .project-name,
html[dir="rtl"] .about-lead,
html[dir="rtl"] .stat-num { letter-spacing: normal; }
html[dir="rtl"] .hero-title { line-height: 1.18; }
html[dir="rtl"] .hero-title .line { overflow: visible; line-height: 1.2; padding-bottom: 0.14em; max-width: 100%; }
html[dir="rtl"] .contact-title { line-height: 1.2; padding-bottom: 0.12em; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #02040a; }

/* ---------- background layers ---------- */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb {
  position: fixed; z-index: 0; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
  will-change: transform;
}
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(110,231,255,0.35), transparent 70%); top: -120px; left: -80px; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(167,139,250,0.30), transparent 70%); bottom: -160px; right: -100px; }
.orb-3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(52,211,153,0.18), transparent 70%); top: 40%; left: 55%; }

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
  mix-blend-mode: screen;
}
.cursor-glow.hover { width: 56px; height: 56px; background: rgba(110,231,255,0.12); border-color: transparent; }
@media (hover: none) { .cursor-glow { display: none; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999; box-shadow: var(--glow);
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mono {
  font-family: var(--font-mono); font-size: 40px; font-weight: 700;
  letter-spacing: 4px; color: var(--accent); text-shadow: var(--glow);
}
.loader-bar { width: 160px; height: 2px; background: var(--border); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--accent); animation: load 1.2s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: 14px; padding-bottom: 14px;
}
.logo-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
  letter-spacing: 2px; color: var(--text);
  border: 1px solid var(--border-bright); border-radius: 8px;
  padding: 6px 10px; transition: all .3s var(--ease);
}
.nav-logo:hover .logo-mark { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim); letter-spacing: .3px;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: var(--surface); }
.lang-switch button {
  background: none; border: none; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 7px; transition: all .25s var(--ease);
}
.lang-switch button.active { background: var(--accent); color: #02040a; }
.lang-switch button:not(.active):hover { color: var(--text); }

/* ---------- layout ---------- */
main { position: relative; z-index: 2; }
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 40px);
}
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 56px; }
.section-index {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  font-weight: 600; text-shadow: 0 0 16px rgba(110,231,255,0.55);
}
.section-index.center { display: block; margin: 0 auto 12px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px); font-weight: 600; letter-spacing: -1px;
  position: relative;
}
.section-title::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -10px;
  width: 46px; height: 3px; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 14px rgba(167,139,250,0.5);
}
.contact-title { position: relative; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero-inner { max-width: 760px; padding-top: 80px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 7px 16px;
  background: var(--surface); margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title { font-family: var(--font-display); font-weight: 700; line-height: 0.95; letter-spacing: -3px; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; font-size: clamp(52px, 12vw, 132px); }
.hero-title .accent {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-4) 45%, var(--accent-2) 70%, var(--accent) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: grad-pan 7s linear infinite;
  filter: drop-shadow(0 4px 40px rgba(167,139,250,0.25));
}
@keyframes grad-pan { to { background-position: 220% center; } }
.hero-tagline { font-family: var(--font-mono); font-size: clamp(14px, 2.2vw, 18px); color: var(--accent); margin-bottom: 22px; letter-spacing: .5px; }
.hero-sub { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-dim); max-width: 540px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: 12px; transition: all .3s var(--ease);
  border: 1px solid transparent; letter-spacing: .3px;
}
.btn-primary { background: var(--grad); background-size: 160% auto; color: #02040a; font-weight: 600; transition: all .3s var(--ease), background-position .5s var(--ease); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(110,231,255,0.4), 0 0 60px rgba(167,139,250,0.25); transform: translateY(-2px); background-position: right center; }
.btn-ghost { border-color: var(--border-bright); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- status widget ---------- */
.status-card {
  position: absolute; right: clamp(20px, 5vw, 40px); top: 50%;
  transform: translateY(-50%);
  width: 320px; max-width: 38vw;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--border-bright); border-radius: 18px;
  padding: 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.status-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(110,231,255,0.18), transparent 50%);
  pointer-events: none;
}
html[dir="rtl"] .status-card { right: auto; left: clamp(20px, 5vw, 40px); }

.status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.status-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--accent-3); }
.status-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); animation: pulse 1.6s infinite; }
.status-clock { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.status-body { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.status-icon {
  font-size: 30px; width: 56px; height: 56px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .4s var(--ease);
}
.status-card:hover .status-icon { transform: scale(1.08) rotate(-4deg); }
.status-text { min-width: 0; }
.status-label { font-size: 13px; color: var(--text-dim); }
.status-activity { color: var(--text); font-weight: 500; font-family: var(--font-display); }
.status-detail { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 3px; min-height: 16px; white-space: nowrap; overflow: hidden; }
.caret { animation: blink 1s steps(2) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.status-foot { display: flex; align-items: center; gap: 10px; }
.status-bar { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.status-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 1s var(--ease); }
.status-uptime { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.scroll-hint {
  position: absolute; bottom: 34px; left: clamp(20px, 5vw, 40px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint);
}
.scroll-line { width: 50px; height: 1px; background: var(--text-faint); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: -50%; top: 0; height: 100%; width: 50%; background: var(--accent); animation: slide 2s var(--ease) infinite; }
@keyframes slide { to { left: 120%; } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 32px; }
.about-lead { font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 30px); font-weight: 400; line-height: 1.4; max-width: 900px; letter-spacing: -.5px; }
.about-lead { color: var(--text); }
.about-body { font-size: 17px; color: var(--text-dim); max-width: 680px; }
.stats { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; margin-top: 16px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 64px); font-weight: 700; line-height: 1; display: inline;
  background: var(--grad); background-size: 180% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(110,231,255,0.25));
}
.stat-suffix {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 8px; font-family: var(--font-mono); letter-spacing: .3px; }

/* ---------- projects ---------- */
.project-list { display: grid; gap: 22px; }
.project {
  position: relative; padding: 32px clamp(24px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
  overflow: hidden;
}
.project::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(110,231,255,0.10), transparent 40%);
  transition: opacity .4s; pointer-events: none;
}
.project:hover { border-color: rgba(167,139,250,0.45); background: var(--surface-2); transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0,0,0,0.45), var(--glow-violet); }
.project:hover::before { opacity: 1; }
/* gradient accent bar that wipes in along the top edge on hover */
.project::after {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease); pointer-events: none;
}
.project:hover::after { transform: scaleX(1); }
.project:hover .project-name {
  background: var(--grad); background-size: 180% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.project-name { transition: color .3s; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.project-no { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.project-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border); }
.project-status.live { color: var(--accent-3); border-color: rgba(52,211,153,.4); }
.project-status.done { color: var(--accent); border-color: rgba(110,231,255,.4); }
.project-name { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -1px; margin-bottom: 6px; }
.project-kicker { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.project-desc { color: var(--text-dim); max-width: 720px; margin-bottom: 22px; font-size: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.project-tags span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); padding: 5px 11px; border-radius: 8px; background: var(--bg-soft); }
.project-link { font-family: var(--font-mono); font-size: 14px; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .3s, letter-spacing .3s; }
.project-link:hover { color: var(--accent); letter-spacing: .5px; }
.project-link.muted { color: var(--text-faint); border-color: var(--text-faint); }
.project-status.live { box-shadow: 0 0 18px rgba(52,211,153,0.18); }
.project-status.done { box-shadow: 0 0 18px rgba(110,231,255,0.18); }
/* highlight pills — key features at a glance */
.project-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-highlights span {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  padding: 5px 12px 5px 10px; border-radius: 100px;
  border: 1px solid rgba(167,139,250,0.28);
  background: linear-gradient(120deg, rgba(110,231,255,0.07), rgba(167,139,250,0.07));
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.project-highlights span::before {
  content: '✦'; color: var(--accent); font-size: 10px;
  text-shadow: 0 0 10px rgba(110,231,255,0.7);
}
.project:hover .project-highlights span { border-color: rgba(167,139,250,0.5); box-shadow: 0 0 16px rgba(167,139,250,0.14); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-inline-start: 28px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--accent), transparent); }
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; inset-inline-start: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(110,231,255,.5); }
.tl-date { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.tl-role { font-family: var(--font-display); font-size: clamp(19px, 3vw, 24px); font-weight: 600; margin: 6px 0 2px; }
.tl-org { font-size: 14px; color: var(--text-dim); font-family: var(--font-mono); }
.tl-desc { color: var(--text-dim); margin-top: 12px; max-width: 700px; font-size: 15px; }

/* ---------- skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.skill-card {
  position: relative; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  transition: border-color .4s, transform .4s var(--ease), background .4s, box-shadow .4s;
  overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 100%;
  background: radial-gradient(420px circle at 0% 0%, rgba(167,139,250,0.10), transparent 45%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.skill-card:hover { border-color: rgba(167,139,250,0.4); transform: translateY(-4px); background: var(--surface-2); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.skill-card:hover::before { opacity: 1; }
.skill-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 18px; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.skill-card h3::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); box-shadow: 0 0 12px rgba(110,231,255,0.6);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px;
  transition: color .25s, border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease);
}
.chips span:hover {
  color: var(--text); border-color: rgba(110,231,255,0.55);
  background: linear-gradient(120deg, rgba(110,231,255,0.10), rgba(167,139,250,0.10));
  box-shadow: 0 0 16px rgba(110,231,255,0.18); transform: translateY(-2px);
}
.skill-card:hover .chips span { border-color: var(--border-bright); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-title { font-family: var(--font-display); font-size: clamp(36px, 8vw, 84px); font-weight: 700; letter-spacing: -2px; margin-bottom: 18px; }
.contact-sub { color: var(--text-dim); font-size: 18px; margin-bottom: 36px; }
.contact-mail {
  display: inline-block; font-family: var(--font-display); font-size: clamp(20px, 4vw, 34px); font-weight: 500;
  background: var(--grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: grad-pan 8s linear infinite;
  border-bottom: 1px solid var(--border-bright); padding-bottom: 6px; transition: border-color .3s;
}
.contact-mail:hover { border-color: var(--accent); }
.contact-links { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); }
.contact-links a { transition: color .3s; }
.contact-links a:hover { color: var(--accent); }
.contact-links .sep { color: var(--text-faint); }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 40px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .status-card { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 360px; margin-top: 44px; }
  html[dir="rtl"] .status-card { left: auto; }
  .scroll-hint { display: none; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero-inner { padding-top: 0; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav { padding: 14px 20px; }
  .stats { gap: 28px; }
  /* Arabic (Cairo) renders wider per glyph than the Latin display face —
     keep the hero name comfortably inside narrow phone widths. */
  html[dir="rtl"] .hero-title .line { font-size: clamp(38px, 12vw, 60px); }
}

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