/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:          #F8F6F0;
  --text:        #1A2B3C;
  --accent:      #2A8C8C;
  --accent-dark: #1F6A6A;
  --highlight:   #D4A96A;
  --card:        #FFFFFF;
  --border:      #E5E0D8;
  --text-muted:  #5A7080;
  --navy:        #1A2B3C;

  --shadow-sm:   0 1px 4px rgba(26,43,60,0.07);
  --shadow:      0 2px 12px rgba(26,43,60,0.09);
  --shadow-lg:   0 8px 28px rgba(26,43,60,0.14);
  --radius:      8px;
  --radius-lg:   16px;
  --nav-h:       64px;
  --section-gap: 5rem;
  --transition:  0.25s ease;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text); }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-gap) 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto 0.75rem; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 4px 14px rgba(42,140,140,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.6rem 2rem;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,246,240,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); background: rgba(42,140,140,0.08); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
#hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-photo-wrap {
  display: flex;
  justify-content: center;
}
.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg);
}

.hero-pretitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.hero-name {
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.hero-institution {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.hero-mission {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 1.6rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(26,43,60,0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.hero-wave {
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ─────────────────────────────────────────────
   METRICS
───────────────────────────────────────────── */
#metrics {
  background: var(--navy);
  padding: 3.5rem 0;
  color: #fff;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.metric-card:last-child { border-right: none; }

.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.metric-value--plus::after { content: '+'; font-size: 0.65em; vertical-align: super; }
.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.metric-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* ─────────────────────────────────────────────
   RESEARCH INTERESTS
───────────────────────────────────────────── */
#interests { background: var(--bg); }
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.interest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.interest-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(42,140,140,0.3);
}
.interest-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(42,140,140,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.interest-icon svg { width: 22px; height: 22px; }
.interest-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.interest-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─────────────────────────────────────────────
   PROJECTS
───────────────────────────────────────────── */
#projects { background: #F2F0EA; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.project-funder { margin-bottom: 0; }
.funder-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
}
.funder-uk    { background: rgba(26,43,60,0.08);   color: var(--navy); }
.funder-usda  { background: rgba(42,92,140,0.1);   color: #2A5C8C; }
.funder-wb    { background: rgba(0,120,80,0.1);     color: #007850; }
.funder-danida{ background: rgba(175,20,20,0.09);   color: #AF1414; }

.project-card h3 { font-size: 1.05rem; color: var(--text); }
.project-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.project-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
}
.role-pi   { background: rgba(42,140,140,0.12); color: var(--accent); }
.role-copi { background: rgba(212,169,106,0.18); color: #9A7230; }

.project-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   PUBLICATIONS
───────────────────────────────────────────── */
#publications { background: var(--bg); }


.pub-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}
.filter-group select,
.filter-group input {
  height: 42px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--accent); }
.filter-search { width: 100%; }
.filter-search input { width: 100%; }

.pub-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--text-muted);
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.pub-card:hover { box-shadow: var(--shadow); border-color: rgba(42,140,140,0.25); }

.pub-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.pub-year  { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.pub-q     { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; letter-spacing: 0.04em; }
.pub-q1    { background: rgba(34,197,94,0.12);  color: #166534; }
.pub-q2    { background: rgba(42,140,140,0.12); color: var(--accent-dark); }
.pub-q3    { background: rgba(212,169,106,0.2); color: #7A5C20; }
.pub-q4    { background: rgba(90,112,128,0.12); color: var(--text-muted); }
.pub-oa    { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 4px; background: rgba(212,169,106,0.15); color: #7A5C20; }

.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}
.pub-authors {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.pub-authors strong { color: var(--accent); font-weight: 600; }

.pub-journal { font-size: 0.85rem; color: var(--text); font-style: italic; }

.pub-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pub-citations {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pub-doi {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}
.pub-doi:hover { color: var(--accent-dark); }

.pub-no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pub-more {
  text-align: center;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────
   AWARDS TIMELINE
───────────────────────────────────────────── */
#awards { background: #F2F0EA; }
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0 1.25rem;
  align-items: start;
  margin-bottom: 2.25rem;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  padding-top: 0.2rem;
  white-space: nowrap;
}
.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  margin-top: 0.3rem;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.timeline-content {
  padding-bottom: 0.5rem;
}
.timeline-content h3 {
  font-size: 1rem;
  color: var(--highlight);
  margin-bottom: 0.3rem;
}
.timeline-event {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.timeline-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   INTERNATIONAL REACH
───────────────────────────────────────────── */
#reach { background: var(--navy); color: #fff; }
#reach .section-header h2 { color: #fff; }
#reach .section-header p  { color: rgba(255,255,255,0.6); }

.reach-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.reach-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}
.reach-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.reach-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.collaborators-heading {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.collaborator-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: background var(--transition), border-color var(--transition);
}
.collaborator-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(42,140,140,0.4);
}
.collab-flag { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: 0.1rem; }
.collab-name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.92); margin-bottom: 0.2rem; }
.collab-dept { font-size: 0.76rem; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--text);
  text-decoration: none;
}
.contact-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(42,140,140,0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.contact-card--wide { grid-column: span 2; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(42,140,140,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label  { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.contact-value  { font-size: 0.92rem; color: var(--text); line-height: 1.5; }
a.contact-card .contact-value { color: var(--accent); }
a.contact-card:hover .contact-value { color: var(--accent-dark); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 2.5rem 0;
}
.footer-content { text-align: center; }
.footer-name  { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 0.3rem; }
.footer-affil { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.interests-grid .fade-in:nth-child(2)  { transition-delay: 0.07s; }
.interests-grid .fade-in:nth-child(3)  { transition-delay: 0.14s; }
.interests-grid .fade-in:nth-child(4)  { transition-delay: 0.07s; }
.interests-grid .fade-in:nth-child(5)  { transition-delay: 0.14s; }
.interests-grid .fade-in:nth-child(6)  { transition-delay: 0.21s; }
.interests-grid .fade-in:nth-child(7)  { transition-delay: 0.07s; }
.interests-grid .fade-in:nth-child(8)  { transition-delay: 0.14s; }
.interests-grid .fade-in:nth-child(9)  { transition-delay: 0.21s; }

.projects-grid .fade-in:nth-child(2)   { transition-delay: 0.1s; }
.projects-grid .fade-in:nth-child(3)   { transition-delay: 0.05s; }
.projects-grid .fade-in:nth-child(4)   { transition-delay: 0.15s; }

.collaborators-grid .fade-in:nth-child(2) { transition-delay: 0.05s; }
.collaborators-grid .fade-in:nth-child(3) { transition-delay: 0.10s; }
.collaborators-grid .fade-in:nth-child(4) { transition-delay: 0.05s; }
.collaborators-grid .fade-in:nth-child(5) { transition-delay: 0.10s; }
.collaborators-grid .fade-in:nth-child(6) { transition-delay: 0.15s; }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 1024px)
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card:nth-child(3) { border-right: none; }
  .metric-card { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .metric-card:nth-child(4),
  .metric-card:nth-child(5),
  .metric-card:nth-child(6) { border-bottom: none; }

  .interests-grid       { grid-template-columns: repeat(2, 1fr); }
  .reach-stats          { grid-template-columns: repeat(2, 1fr); }
  .collaborators-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 768px)
───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 3.5rem; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: var(--shadow);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.6rem 0.75rem; font-size: 0.95rem; display: block; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .hero-photo { width: 160px; height: 160px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-mission { margin: 0 auto 1.6rem; }

  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .metric-card:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.1); }
  .metric-card:nth-child(5),
  .metric-card:nth-child(6) { border-bottom: none; }

  /* Grids */
  .interests-grid     { grid-template-columns: 1fr; }
  .projects-grid      { grid-template-columns: 1fr; }
  .reach-stats        { grid-template-columns: repeat(2, 1fr); }
  .collaborators-grid { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .contact-card--wide { grid-column: span 1; }

  /* Timeline */
  .timeline::before { left: 0; }
  .timeline-item {
    grid-template-columns: 16px 1fr;
    gap: 0 1rem;
    padding-left: 1.5rem;
  }
  .timeline-date {
    display: none;
  }
  .timeline-marker { margin-left: -1.5rem; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤ 480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .reach-stats { grid-template-columns: 1fr; }
  .pub-filters { max-width: 100%; }
}

/* ── Sub-page hero ── */
.page-hero{background:var(--navy);padding:calc(var(--nav-h) + 2rem) 0 2.5rem;color:#fff}
.page-hero-content{max-width:700px}
.page-back{display:inline-block;font-size:.82rem;color:rgba(255,255,255,.5);margin-bottom:1rem;transition:color var(--transition);text-decoration:none}
.page-back:hover{color:rgba(255,255,255,.85)}
.page-hero h1{color:#fff;margin-bottom:.5rem}
.page-hero p{color:rgba(255,255,255,.65);font-size:1.05rem}

/* ── Page tabs ── */
.page-tabs{display:flex;gap:0;border-bottom:2px solid var(--border);margin-bottom:2.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tab-btn{padding:.7rem 1.2rem;font-size:.875rem;font-weight:500;color:var(--text-muted);border:none;background:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;white-space:nowrap;transition:color var(--transition),border-color var(--transition);font-family:'Inter',sans-serif}
.tab-btn:hover{color:var(--accent)}
.tab-btn.active{color:var(--accent);border-bottom-color:var(--accent)}
.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:18px;background:rgba(42,140,140,.12);color:var(--accent);border-radius:20px;font-size:.7rem;font-weight:600;padding:0 5px;margin-left:.4rem}
.tab-btn.active .tab-count{background:var(--accent);color:#fff}
.tab-panel{display:none}
.tab-panel.active{display:block}

/* ── Education ── */
#education{background:#F2F0EA}
.edu-degrees{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-bottom:2.5rem}
.edu-degree-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;transition:box-shadow var(--transition),transform var(--transition)}
.edu-degree-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.edu-degree-card--featured{border-color:rgba(42,140,140,.35);background:linear-gradient(135deg,#fff 0%,rgba(42,140,140,.04) 100%)}
.edu-badge{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);background:rgba(42,140,140,.1);padding:.28rem .7rem;border-radius:20px;margin-bottom:.85rem}
.edu-year{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:600;color:var(--text);margin-bottom:.3rem}
.edu-inst{font-size:.92rem;font-weight:500;color:var(--text);margin-bottom:.4rem}
.edu-note{font-size:.8rem;color:var(--text-muted);line-height:1.5}
.career-bar{display:flex;align-items:flex-start;justify-content:center;gap:0;margin-bottom:1.25rem;flex-wrap:wrap}
.career-milestone{display:flex;flex-direction:column;align-items:center;gap:.4rem;min-width:120px;text-align:center}
.career-line{flex:1;height:2px;background:var(--border);margin-top:24px;min-width:30px;max-width:80px}
.cm-year{font-size:.8rem;font-weight:600;color:var(--text-muted)}
.cm-dot{width:14px;height:14px;border-radius:50%;background:var(--border);border:2px solid #F2F0EA;box-shadow:0 0 0 2px var(--border)}
.career-milestone--active .cm-dot{background:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.career-milestone--active .cm-year,.career-milestone--active .cm-title{color:var(--accent)}
.cm-title{font-size:.8rem;font-weight:500;color:var(--text);line-height:1.35;max-width:110px}
.edu-institution-note{text-align:center;font-size:.85rem;color:var(--text-muted)}
.edu-institution-note strong{color:var(--text)}

/* ── Section CTA ── */
.section-cta{text-align:center;margin-top:2rem}

/* ── Proceedings ── */
.proc-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.4rem;transition:box-shadow var(--transition),border-color var(--transition);margin-bottom:.85rem}
.proc-card:hover{box-shadow:var(--shadow);border-color:rgba(42,140,140,.25)}
.proc-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem;flex-wrap:wrap}
.proc-year{font-size:.78rem;font-weight:600;color:var(--text-muted)}
.proc-type{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:.15rem .5rem;border-radius:4px}
.proc-type--intl{background:rgba(42,140,140,.1);color:var(--accent-dark)}
.proc-type--natl{background:rgba(212,169,106,.15);color:#7A5C20}
.proc-title{font-family:'Playfair Display',serif;font-size:.95rem;font-weight:600;color:var(--text);margin-bottom:.3rem;line-height:1.45}
.proc-conf{font-size:.8rem;color:var(--text-muted);line-height:1.45}
.proc-award{display:inline-block;font-size:.7rem;font-weight:600;color:var(--highlight);background:rgba(212,169,106,.15);padding:.15rem .5rem;border-radius:4px;margin-top:.4rem}
.proc-filter{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1.75rem}

/* ── Projects filter ── */
.projects-filter-bar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:2rem}
.filter-chip{padding:.4rem 1rem;border:1.5px solid var(--border);border-radius:20px;font-size:.82rem;font-weight:500;color:var(--text-muted);background:transparent;cursor:pointer;transition:all var(--transition);font-family:'Inter',sans-serif}
.filter-chip:hover{border-color:var(--accent);color:var(--accent)}
.filter-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
.project-card--completed{opacity:.88}
.project-status-badge{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:.15rem .5rem;border-radius:4px;background:rgba(90,112,128,.1)}

/* ── Consultancy ── */
#consultancy{background:#F2F0EA}
.consultancy-list{display:flex;flex-direction:column;gap:1rem}
.consultancy-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.4rem 1.6rem;display:grid;grid-template-columns:1fr auto;gap:.5rem 1.5rem;align-items:start;transition:box-shadow var(--transition),transform var(--transition)}
.consultancy-card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.consultancy-title{font-family:'Playfair Display',serif;font-size:1rem;font-weight:600;color:var(--text);margin-bottom:.3rem}
.consultancy-org{font-size:.85rem;color:var(--text-muted);margin-bottom:.2rem}
.consultancy-funder{font-size:.78rem;color:var(--accent);font-weight:500}
.consultancy-duration{font-size:.8rem;color:var(--text-muted);white-space:nowrap;padding-top:.2rem}

/* ── Fellowships ── */
#fellowships{background:var(--bg)}
.fellowship-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.fellowship-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.2rem;display:flex;gap:.85rem;align-items:flex-start;transition:box-shadow var(--transition),transform var(--transition)}
.fellowship-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.fellowship-flag{font-size:1.75rem;flex-shrink:0;line-height:1}
.fellowship-year{font-size:.75rem;font-weight:600;color:var(--text-muted);margin-bottom:.2rem}
.fellowship-title{font-size:.875rem;font-weight:600;color:var(--text);margin-bottom:.2rem;line-height:1.35}
.fellowship-event{font-size:.78rem;color:var(--text-muted);line-height:1.4}

/* ── Collaborations ── */
#collaborations{background:var(--navy);color:#fff;padding:var(--section-gap) 0}
#collaborations .section-header h2{color:#fff}
#collaborations .section-header p{color:rgba(255,255,255,.6)}

/* ── Under review ── */
.review-list{display:flex;flex-direction:column;gap:.85rem}
.review-card{background:var(--card);border:1px solid var(--border);border-left:3px solid var(--highlight);border-radius:var(--radius);padding:1.1rem 1.4rem}
.review-title{font-family:'Playfair Display',serif;font-size:.95rem;font-weight:600;color:var(--text);margin-bottom:.3rem;line-height:1.45}
.review-authors{font-size:.8rem;color:var(--text-muted);margin-bottom:.25rem}
.review-journal{font-size:.82rem;color:var(--accent);font-style:italic;font-weight:500}

/* ── Type badges ── */
.pub-type-book{font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:4px;background:rgba(26,43,60,.1);color:var(--navy)}
.pub-type-natl{font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:4px;background:rgba(212,169,106,.15);color:#7A5C20}

/* ── Responsive additions ── */
@media(max-width:768px){
  .edu-degrees{grid-template-columns:1fr}
  .career-line{min-width:15px;max-width:30px}
  .career-milestone{min-width:80px}
  .consultancy-card{grid-template-columns:1fr}
  .fellowship-grid{grid-template-columns:1fr}
  .tab-btn{padding:.6rem .85rem;font-size:.8rem}
}
@media(max-width:1024px){
  .fellowship-grid{grid-template-columns:repeat(2,1fr)}
}
