:root {
  --ink: #111417;
  --ink-2: #3b434b;
  --muted: #5b6670;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e4e2dc;
  --accent: #0e5c55;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ee;
  --max: 1080px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f3; --ink-2: #c9d0d6; --muted: #9aa5ae; --bg: #0f1214; --card: #161a1d;
    --line: #262c31; --accent: #5fc2b5; --accent-ink: #0b1513; --accent-soft: #15302c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
body[dir="rtl"] { font-family: var(--font-ar); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: var(--font-ar); letter-spacing: 0; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }
html, body { overflow-x: clip; }

/* header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 700 18px/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
nav.top { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav.top a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
nav.top a:hover { color: var(--accent); }
nav.top .lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
@media (max-width: 720px) { nav.top a:not(.lang) { display: none; } }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
body[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
.hero .alt { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 24px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; display: block; background: var(--line); }
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .portrait { order: -1; max-width: 300px; }
}

/* sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 28px; }
.two { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.two > h2 { margin: 0; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 20px; } }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 44em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.chips li { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card .who { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.pubs li:first-child { padding-top: 0; }
.pubs .meta { color: var(--muted); font-size: 14px; padding-top: 3px; }
.pubs a { font: 600 18px/1.35 var(--font-head); color: var(--ink); text-decoration: none; }
.pubs a:hover { color: var(--accent); text-decoration: underline; }
.pubs .src { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 600px) { .pubs li { grid-template-columns: 1fr; gap: 4px; } }

.cv { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cv li { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.cv strong { font-weight: 600; }
.cv span { color: var(--muted); font-size: 15px; }

.contact .email { font: 700 clamp(22px, 3.2vw, 30px)/1.2 var(--font-head); color: var(--ink); text-decoration: none; word-break: break-all; }
.contact .email:hover { color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; list-style: none; padding: 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); }

section[id] { scroll-margin-top: 72px; }
