:root {
  --navy: #101a2c;
  --navy-deep: #0b1322;
  --navy-card: #1b2a44;
  --navy-line: #263655;
  --gold: #dba543;
  --gold-ink: #8a5a12;
  --ink: #141c2b;
  --muted: #556070;
  --paper: #ffffff;
  --stone: #f3f3f1;
  --stone-2: #e6e6e1;
  --line: #e1e1dc;
  --on-dark: #e9edf4;
  --on-dark-muted: #a9b3c4;
  --wrap: 1080px;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
[dir="rtl"], .ar { font-family: "Noto Kufi Arabic", "Manrope", sans-serif; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 10px;
}
.dark .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.4vw, 42px); font-weight: 800; }
section { padding: 96px 0; scroll-margin-top: 72px; }
.dark { background: var(--navy); color: var(--on-dark); }
.bg-white { background: var(--paper); }
.bg-stone { background: var(--stone); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 14px/1.2 "Manrope", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e6b459; }
.link-gold {
  color: var(--gold-ink); font-weight: 700; font-size: 14px;
  text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(16, 26, 44, .96);
  backdrop-filter: blur(8px); color: var(--on-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; border-bottom: 1px solid var(--navy-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.monogram {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-dark);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 13.5px; font-weight: 500; opacity: .9; }
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-links .btn { padding: 9px 18px; font-size: 13px; opacity: 1; }
.nav-links .btn:hover { color: var(--navy); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--navy-line); color: var(--on-dark);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(44px, 6.6vw, 64px); font-weight: 800; color: #fff; margin: 6px 0 14px; }
.hero .role { font-size: 17px; color: var(--on-dark); margin: 0 0 32px; }
.hero blockquote {
  margin: 0 0 32px; font-family: "Source Serif 4", Georgia, serif; font-style: italic;
  font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: #fff; max-width: 470px;
}
.portrait {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--navy-card); border: 1px solid var(--navy-line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait-caption { margin: 14px 0 0; font-size: 12px; color: var(--on-dark-muted); }

/* Stats */
.stats { background: var(--navy-deep); color: var(--on-dark); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -.01em; }
.stat-label { font-size: 12.5px; color: var(--on-dark-muted); line-height: 1.5; margin-top: 6px; max-width: 200px; }

/* Current position */
.position { padding: 72px 0; }
.position-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; }
.position h2 { font-size: clamp(30px, 3.6vw, 36px); margin-bottom: 14px; }
.position .org { font-weight: 600; color: #3a4558; font-size: 15px; margin: 0; }
.position p.lead { margin: 0 0 22px; color: #3a4558; font-size: 15.5px; }

/* About */
.about h2 { max-width: 620px; margin-bottom: 40px; font-size: clamp(28px, 3.6vw, 34px); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-copy p { margin: 0 0 18px; color: #3a4558; font-size: 15px; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; margin-bottom: 18px;
}
.panel-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--stone-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.edu-item + .edu-item { margin-top: 14px; }
.edu-item strong { display: block; font-size: 14px; }
.edu-item span { font-size: 13px; color: var(--muted); }

/* Experience */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.timeline li:first-child .when { color: var(--gold-ink); }
.timeline h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Media */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: 0 10px 30px rgba(16, 26, 44, .1); transform: translateY(-2px); }
.feature-card .img { aspect-ratio: 16 / 7.5; overflow: hidden; background: var(--stone-2); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature-card:hover img { transform: scale(1.04); }
.feature-card .body { padding: 20px 20px 26px; }
.feature-card .src { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.feature-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

.coverage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.coverage-head h3 { font-size: 18px; font-weight: 700; }
.coverage-head h3 span { color: var(--muted); font-weight: 500; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid #c9ccd2; background: transparent; border-radius: 999px; padding: 7px 14px;
  font: 600 12.5px "Manrope", sans-serif; color: var(--ink); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li[hidden] { display: none; }
.link-list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 14px 6px; text-decoration: none; height: 100%;
}
.link-list a:hover { background: rgba(219, 165, 67, .08); }
.lang {
  background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  border-radius: 3px; padding: 2px 6px; margin-top: 3px;
}
.link-list .t { font-size: 14px; font-weight: 600; line-height: 1.45; display: block; }
.link-list .s { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.arrow { color: var(--gold-ink); font-size: 13px; margin-top: 2px; }

/* Publications */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pub {
  background: var(--stone); border-radius: var(--radius); padding: 22px 20px 20px;
  display: flex; flex-direction: column; min-height: 168px;
}
.pub-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pub-year { font-size: 22px; font-weight: 800; color: var(--gold-ink); }
.pub-lang { border: 1px solid #8b919c; border-radius: 4px; font-size: 9.5px; font-weight: 700; padding: 1px 6px; }
.pub .ar { font-size: 15px; font-weight: 600; margin: 0 0 6px; text-align: right; }
.pub h3 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; line-height: 1.35; }
.pub .where { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); }

/* Talks */
.talks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-card); border: 0; padding: 0; width: 100%; cursor: pointer; display: block;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .2s ease, transform .4s ease; }
.video:hover img { opacity: .9; transform: scale(1.03); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.video .tag { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video video.poster { object-fit: cover; opacity: .72; pointer-events: none; transition: opacity .2s ease; }
.video:hover video.poster { opacity: .9; }
.talk-meta { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 18px 0 6px; }
.talk h3 { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.35; letter-spacing: -.01em; }

/* Acknowledgement */
.ack-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.ack-grid p.intro { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 300px; }
.link-list.single { grid-template-columns: 1fr; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { color: #fff; font-size: clamp(36px, 5vw, 48px); margin-bottom: 18px; }
.contact .intro { color: var(--on-dark); font-size: 15.5px; margin: 0 0 36px; max-width: 380px; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; }
.contact-list a:hover { color: var(--gold); }
.contact-list svg { color: var(--gold); flex: none; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  border: 1px solid #3a4a68; border-radius: 999px; padding: 7px 14px; font-size: 12.5px;
  font-weight: 600; text-decoration: none;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.form { background: var(--navy-card); border-radius: var(--radius); padding: 28px 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.field label span { color: var(--on-dark-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--navy); border: 1px solid #34466a; border-radius: 4px;
  color: #fff; font: 14px "Manrope", sans-serif; padding: 10px 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 12.5px; color: var(--on-dark-muted); margin: 12px 0 0; min-height: 1em; }
.form-note a { color: var(--gold); }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); font-size: 12.5px; padding: 28px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.credits { margin-top: 14px; font-size: 11px; opacity: .7; }
.credits a { color: inherit; text-decoration: underline; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--navy); padding: 8px 24px 20px;
    border-bottom: 1px solid var(--navy-line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 15px; }
  .nav-links .btn { margin-top: 10px; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .position-grid, .about-grid, .ack-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards, .talks-grid, .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .link-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .feature-cards, .talks-grid, .pub-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Multi-page additions */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--gold); opacity: 1; }
.nav-links .btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px var(--gold); }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.explore-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 150px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.explore-card:hover { box-shadow: 0 10px 30px rgba(16, 26, 44, .08); transform: translateY(-2px); border-color: var(--gold); }
.explore-card h3 { font-size: 19px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.explore-card h3 span { color: var(--gold-ink); font-size: 18px; transition: transform .2s ease; }
.explore-card:hover h3 span { transform: translateX(3px); }
.explore-card p { margin: 0; font-size: 14px; color: var(--muted); }
.cta-strip { background: var(--navy-deep); color: var(--on-dark); padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { color: #fff; font-size: clamp(26px, 3.4vw, 32px); }
.cta-row p { margin: 6px 0 0; color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 960px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .explore-grid { grid-template-columns: 1fr; } }

/* Keep the footer at the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Engagements */
.page-intro { color: var(--muted); font-size: 15.5px; max-width: 620px; margin: 14px 0 0; }
.photo-grid { columns: 3 280px; column-gap: 12px; margin-top: 40px; }
.photo {
  display: block; width: 100%; padding: 0; border: 0; margin: 0 0 12px; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--stone-2); break-inside: avoid;
}
.photo img { width: 100%; height: auto; transition: transform .4s ease, opacity .2s ease; }
.photo:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 13, 24, .94);
  display: flex; align-items: center; justify-content: center; padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  width: 46px; height: 46px; border-radius: 50%; font: 400 28px/1 "Manrope", sans-serif; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--on-dark-muted); font-size: 13px; margin: 0; }
.explore-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.explore-card.wide > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.explore-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1.6; }
.explore-strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; width: 100%; }
@media (max-width: 1100px) { .nav-links { gap: 18px; } .nav-links a { font-size: 13px; } }
@media (max-width: 960px) { .explore-card.wide { flex-direction: column; align-items: stretch; } }
@media (max-width: 620px) {
  .photo-grid { columns: 2 140px; column-gap: 8px; }
  .photo { margin-bottom: 8px; }
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-count { bottom: 24px; }
  .explore-strip { grid-template-columns: repeat(2, 1fr); }
}
