@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF,U+20A0-20AB;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+2191,U+2193,U+2212;
}
@font-face {
  font-family: Plex;
  src: url('/assets/fonts/plex-arabic-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/assets/fonts/plex-arabic-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/assets/fonts/plex-arabic-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/assets/fonts/plex-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #10120f;
  --dark: #141813;
  --line: #353c32;
  --paper: #f2f0e7;
  --quiet: #b7bdb0;
  --lime: #cefa53;
  --violet: #d0c9ff;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --type: Manrope, system-ui, sans-serif;
  --ease: cubic-bezier(.22,.72,.23,1);
  color: var(--paper);
  background: var(--ink);
  font-family: var(--type);
  scroll-behavior: smooth;
  font-synthesis: none;
}
:root[lang="ar"] { --type: Plex, Manrope, system-ui, sans-serif }
*, *::before, *::after { box-sizing: border-box }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0 }
a { color: inherit; text-decoration: none }
button { color: inherit; font: inherit; cursor: pointer }
img { display: block; max-width: 100% }
[hidden] { display: none !important }
::selection { color: var(--ink); background: var(--lime) }
:focus-visible { outline: 2px solid #8660fe; outline-offset: 5px }
.wrap { width: min(1360px, calc(100% - 112px)); margin-inline: auto }
.icon { width: 1.12em; height: 1.12em; flex: none; vertical-align: middle }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip { position: fixed; z-index: 10; inset-block-start: 12px; inset-inline-start: 12px; transform: translateY(-160%); background: var(--paper); color: var(--ink); padding: 10px 16px }
.skip:focus { transform: none }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #10120fe8;
  backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 71px; gap: 18px }
.wordmark { display: inline-flex; justify-self: start; gap: 12px; align-items: center; font-size: 15px; font-weight: 800; line-height: 1.2 }
.mark { display: block; flex: none; color: var(--lime); --mark-ink: var(--ink) }
.nav-dock { display: flex; gap: 2px; padding: 4px; border: 1px solid #41483d; background: #1a1e18; border-radius: 40px }
.nav-dock a, .language, .header-contact { font-weight: 750; font-size: 13px; white-space: nowrap }
.nav-dock a { display: block; padding: 8px 15px; border-radius: 30px; transition: background .25s var(--ease), color .25s var(--ease) }
.nav-dock a:hover, .nav-dock a:focus-visible { background: var(--lime); color: var(--ink) }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 16px }
.language, .header-contact { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px }
.language[lang="ar"] { font-family: Plex, sans-serif; font-size: 15px }
.language[lang="en"] { font-family: Manrope, sans-serif }
.header-contact { border: 1px solid #50564a; padding-inline: 12px; border-radius: 5px }
.header-contact:hover { color: var(--lime) }
[dir="rtl"] .text-link .icon, [dir="rtl"] .header-contact .icon, [dir="rtl"] .contact-button .icon { transform: scaleX(-1) }

.section-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  font-family: var(--mono);
  line-height: 1.5;
}
[lang="ar"] .section-label { font-family: var(--type); font-size: 14px; letter-spacing: 0 }
h1 {
  font-size: clamp(51px, 6vw, 102px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.061em;
  margin-block: 22px 19px;
}
[lang="ar"] h1 { font-size: clamp(44px, 5.7vw, 92px); line-height: 1.12; letter-spacing: 0 }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 19px; margin-block-start: 24px }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; font-size: 14px; font-weight: 800 }
.button { padding: 9px 15px; border-radius: 5px; transition: background .25s var(--ease), transform .25s var(--ease) }
.button:hover { transform: translateY(-3px) }
.primary { background: var(--lime); color: var(--ink) }
.primary:hover { background: #e0ff9e }
.text-link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #899183 }
.text-link:hover { text-decoration-color: currentColor }
.section { padding-block: clamp(62px, 7.1vw, 108px); scroll-margin-top: 70px }
.section-heading { margin-block-end: 29px }
.section-label { margin-block-end: 12px }
.section-label bdi { margin-inline-end: 10px }
.section-label > span { display: inline-block; width: 16px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 8px }
h2 { font-size: clamp(42px, 6.3vw, 92px); letter-spacing: -.06em; line-height: 1.02; font-weight: 800 }
[lang="ar"] h2 { font-size: clamp(38px, 5.5vw, 82px); letter-spacing: 0; line-height: 1.14 }
.section-heading > p:not(.section-label) { max-width: 61ch; font-size: 16px; line-height: 1.65; margin-block-start: 14px }

.research { color: var(--paper) }
.research .section-label, .research h2 { color: var(--lime) }
.education { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px }
.education article { border: 1px solid #45503f; border-radius: 7px; background: #1a2018; padding: 17px }
.education-index { display: flex; justify-content: space-between; align-items: center; color: var(--lime); font: 600 11px var(--mono); border-block-end: 1px solid #505b48; padding-block-end: 11px }
.education-index .icon { width: 21px; height: 21px }
.education h3 { font-size: 21px; line-height: 1.22; margin-block: 15px 8px }
.education strong, .education small { display: block }
.education strong { font-size: 13px }
.education small, .education-note { color: var(--quiet); font-size: 12px; line-height: 1.5; margin-block-start: 5px }
.education .education-note { margin-block-start: 11px }
.recognition { border-block: 1px solid #495344; margin-block-start: 24px; padding-block: 17px }
.recognition summary { cursor: pointer; font-size: 15px; font-weight: 800; color: var(--lime) }
.recognition ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; list-style: none; margin: 14px 0 0; padding: 0 }
.recognition li strong, .recognition li span { display: block; font-size: 13px }
.recognition li span { color: var(--quiet); margin-block-start: 3px }

.contact { color: var(--ink); background: var(--lime); padding-block-end: 0 }
.contact-grid { display: grid; grid-template-columns: 1.45fr .55fr; align-items: center; gap: 20px; margin-block-end: 48px }
.contact h2 { max-width: 13ch }
.contact-intro { max-width: 57ch; font-size: 16px; line-height: 1.6; margin-block-start: 16px }
.contact-button { color: var(--paper); background: var(--ink) }
.contact-button:hover { background: #313d22 }
.copy-button { position: relative }
.copy-button[data-feedback]::before { content: attr(data-feedback); position: absolute; inset-block-end: calc(100% + 2px); inset-inline-start: 0; padding: 5px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); white-space: nowrap; font-size: 11px }
.email { display: inline-flex; overflow-wrap: anywhere; font-size: 13px; margin-block-start: 11px }
.email:hover { text-decoration: underline }
.contact-graphic { display: grid; place-items: center; justify-self: end; width: min(100%,260px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #17220875; background: repeating-radial-gradient(circle, transparent 0 16px, #2d3f2150 17px 18px) }
.contact-graphic .icon { width: 54%; height: 54%; stroke-width: .55; transition: transform .65s var(--ease) }
.contact-graphic:hover .icon { transform: rotate(45deg) scale(1.13) }
.footer { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-block-start: 1px solid #475c30 }
.footer .mark { --mark-ink: var(--lime); color: var(--ink); width: 30px; height: 30px }
.footer-top { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; min-height: 44px }
.footer-top:hover { text-decoration: underline }
.not-found { min-height: 75vh; padding-block: 15vh }
.not-found p { width: fit-content; margin-block-end: 20px; font-family: Plex,sans-serif }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px) }
  .header-actions { gap: 10px }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px) }
  .header-inner { grid-template-columns: 1fr 1fr; gap: 4px; padding-block: 7px }
  .header-actions { grid-column: 2; grid-row: 1 }
  .nav-dock { grid-column: 1 / -1; justify-self: center; padding: 2px }
  .nav-dock a { padding: 5px 14px }
  h1 { font-size: clamp(40px,7vw,65px) }
  [lang="ar"] h1 { font-size: clamp(38px,6.7vw,62px) }
  .section { scroll-margin-top: 101px }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 34px) }
  .education, .contact-grid { grid-template-columns: 1fr }
  h1 { font-size: clamp(42px,10vw,59px); margin-block: 12px }
  [lang="ar"] h1 { font-size: clamp(39px,10.2vw,57px) }
  .actions { margin-block-start: 16px; column-gap: 13px }
  .actions .text-link, .actions .button { font-size: 13px }
  .section { padding-block: 56px }
  .section-heading { margin-block-end: 20px }
  .contact { padding-block-end: 0 }
  .contact-graphic { display: none }
}
@media (max-width: 420px) {
  .header-inner .wordmark { white-space: nowrap; font-size: 13px }
}
@media (max-width: 380px) {
  .wordmark { gap: 7px; font-size: 13px }
  .header-inner .mark { width: 29px; height: 29px }
  .header-contact { padding-inline: 6px }
  .header-actions { gap: 6px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important }
}

.places { color: var(--ink); background: var(--violet) }
.places h2 { font-size: clamp(35px, 5vw, 72px) }
.places-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.places-route li {
  display: grid;
  gap: 6px;
  padding-inline-end: 10px;
}
.places-route bdi { font: 700 11px var(--mono); color: #49436a }
.places-route strong { font-size: clamp(15px, 2.5vw, 30px); line-height: 1.2 }
.places-route span:last-child { font-size: 12px; color: #443f59 }
.places-stop {
  position: relative;
  width: calc(100% + 10px);
  height: 14px;
}
.places-stop::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 6px;
  height: 1px;
  background: #777399;
}
.places-stop::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #56517b;
  background: var(--violet);
}
.places-route li:last-child .places-stop::after { background: #292440 }
