/* assets/css/main.css — Premium redesign */

/* ── CSS Custom Properties ── */
:root {
  --bg: #fafaf8;
  --bg-secondary: #f4f4f0;
  --bg-card: #ffffff;
  --border: #e8e8e2;
  --border-light: #f0f0eb;
  --text-primary: #0f0f0d;
  --text-secondary: #6b6b62;
  --text-muted: #a8a89e;
  --accent: #1a5c35;
  --accent-mid: #2d7a4a;
  --accent-light: #e8f4ed;
  --accent-border: #b8ddc8;
  --accent-text: #1a5c35;
  --nav-bg: rgba(250, 250, 248, 0.4);
  --shadow-sm: 0 1px 4px rgba(15, 15, 13, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 15, 13, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 15, 13, 0.10);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0c0c0a;
  --bg-secondary: #141412;
  --bg-card: #181816;
  --border: #252520;
  --border-light: #1e1e1a;
  --text-primary: #f0f0ec;
  --text-secondary: #7a7a6e;
  --text-muted: #4a4a42;
  --accent: #4a9e6a;
  --accent-mid: #5ab878;
  --accent-light: #0f2a1a;
  --accent-border: #1e4a2e;
  --accent-text: #5ab878;
  --nav-bg: rgba(12, 12, 10, 0.88);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.page-content { padding: 56px 0 96px; }

/* ── Page load animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-content .container > * {
  animation: fadeUp 0.5s ease both;
}
.page-content .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-content .container > *:nth-child(2) { animation-delay: 0.10s; }
.page-content .container > *:nth-child(3) { animation-delay: 0.15s; }
.page-content .container > *:nth-child(4) { animation-delay: 0.20s; }
.page-content .container > *:nth-child(5) { animation-delay: 0.25s; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.site-nav .logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 28px; width: auto;
  display: block; margin-right: 8px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.125rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.logo-text span { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-right { display: flex; align-items: center; }

.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 12px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  background: var(--border);
  border: none; border-radius: var(--radius-full);
  width: 36px; height: 20px;
  cursor: pointer; position: relative;
  transition: background 0.2s; flex-shrink: 0;
}
.theme-toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-toggle { background: var(--accent); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(16px); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
  margin-top: 32px;
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-muted);
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ── Section label ── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.section-label::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border-light);
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border-light); margin: 48px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-mid); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-secondary); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
}
.badge-accent {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.badge-label {
  display: inline-flex; align-items: center;
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* ── HOME PAGE ── */
.hero {
  /* Full-bleed: break out of .container's max-width and extend behind nav */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -116px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Overlay fades in as image expands — opacity driven by JS via --overlay-opacity */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 248, 0.32);
  z-index: 1;
  opacity: var(--overlay-opacity, 0);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: rgba(12, 12, 10, 0.60);
}

/* Right-side image panel — JS animates to full-screen */
.hero-img-wrap {
  position: absolute;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-mid) 60%, var(--accent-light) 100%);
  will-change: top, bottom, right, width, border-radius;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Constrain text to container width — padding-right set by JS */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 400px 28px 60px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  display: flex;
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0 0 52px;
  gap: 0;
}

.stat-item {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--border-light);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Research grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.research-card {
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.2s;
}
.research-card:hover { background: var(--bg-secondary); }

.research-card .icon {
  font-size: 1.25rem;
  margin-bottom: 14px;
  filter: grayscale(0.3);
}
.research-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.research-card p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* News list */
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  transition: padding-left 0.2s;
}
.news-item:hover { padding-left: 4px; }

.news-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 56px;
}
.news-date.old { color: var(--text-muted); }
.news-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── PEOPLE PAGE ── */
.pi-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.pi-card .avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden;
}
.pi-card .info { flex: 1; }
.pi-card .info h2 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 600;
  margin-bottom: 2px;
}
.pi-card .info .role {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.pi-card .info .bio {
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 14px;
}

.person-links { display: flex; gap: 8px; flex-wrap: wrap; }
.person-link {
  font-size: 0.75rem; font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.person-link:hover { border-color: var(--accent); color: var(--accent); }
.person-link.scholar {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.people-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.person-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
}
.person-card:hover .avatar { transform: translateY(-3px); }
.person-card .avatar {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  margin: 0 auto 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden;
  transition: transform 0.2s;
}
.person-card .avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.person-card .avatar.has-cartoon { position: relative; }
.person-card .avatar.has-cartoon img {
  position: absolute; inset: 0;
  transition: opacity 0.35s ease;
}
.person-card .avatar.has-cartoon .photo-cartoon { opacity: 0; }
.person-card:hover .avatar.has-cartoon .photo-real { opacity: 0; }
.person-card:hover .avatar.has-cartoon .photo-cartoon { opacity: 1; }
.person-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  margin-bottom: 0px;
}
.person-card .role {
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent-text); margin-bottom: 0px;
  letter-spacing: 0.02em;
}
.person-card .research {
  font-size: 0.75rem; font-weight: 300;
  color: var(--text-muted); margin-bottom: 0px;
}
.person-card .person-links { justify-content: center; }

/* Icon links (people page) */
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.icon-link:hover { color: var(--accent); background: var(--accent-light); }
.icon-link .ai { font-size: 1.05rem; }

/* ── FEATURED PAPERS (homepage) ── */
.featured-papers { display: flex; flex-direction: column; gap: 12px; }
.featured-paper {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  transition: box-shadow 0.2s;
}
.featured-paper:hover { box-shadow: var(--shadow-sm); }
.featured-paper-meta { margin-bottom: 4px; }
.featured-paper-venue {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}
.featured-paper-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  line-height: 1.4; margin-bottom: 4px;
}
.featured-paper-title a { color: var(--text-primary); }
.featured-paper-title a:hover { color: var(--accent); }
.featured-paper-authors {
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 10px;
}
.featured-paper-links { display: flex; gap: 12px; }
.paper-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.paper-link:hover { color: var(--accent); }
.view-all-link {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--accent-text);
}
.view-all-link:hover { text-decoration: underline; }

/* ── PUBLICATIONS PAGE ── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.15s;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

.pub-year-group { margin-bottom: 40px; }

/* ── Publication card (thumbnail + text) ── */
.pub-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pub-card:first-of-type { border-top: 1px solid var(--border-light); }
.pub-card:hover { transform: translateX(4px); }
.pub-card.hidden { display: none; }

.pub-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 4px;
}
.pub-authors {
  font-size: 0.8125rem; font-weight: 300;
  color: var(--text-secondary); margin-bottom: 10px;
}
.pub-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pub-venue {
  font-size: 0.75rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  letter-spacing: 0.02em;
}
.pub-link {
  font-size: 0.75rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.pub-link:hover { color: var(--accent); }
button.pub-link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 0.75rem; cursor: pointer;
}
.pub-link--copy.is-copied { color: var(--accent); }
.pub-separator { color: var(--border); }
.pub-tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 1px 7px; border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pub-loading { color: var(--text-muted); font-size: 0.9rem; padding: 24px 0; }

/* Mobile: stack thumbnail above text */
@media (max-width: 640px) {
  .pub-card { flex-direction: column; gap: 12px; }
  .pub-thumb { width: 100%; height: 160px; }
}

/* ── PROJECTS PAGE ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card.completed { opacity: 0.55; }
.project-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-border) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-cover::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  top: -60px; right: -40px;
}
.project-cover::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -30px; left: -20px;
}
.project-cover-emoji {
  font-size: 3rem; position: relative; z-index: 1;
  margin-bottom: 10px;
}
.project-cover-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--accent);
  position: relative; z-index: 1;
  text-align: center; padding: 0 16px;
}
.project-cover-title a {
  color: var(--accent); text-decoration: none;
}
.project-cover-title a:hover { text-decoration: underline; }
[data-theme="dark"] .project-cover {
  background: linear-gradient(135deg, var(--accent-light) 0%, #1e4a2e 100%);
}
.project-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-body p {
  font-size: 0.8125rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.65;
  margin-bottom: 14px;
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; flex-wrap: wrap;
}
.project-repo-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent-text);
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.15s;
}
.project-repo-link:hover { opacity: 0.7; }

/* ── CONTACT PAGE ── */
.contact-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--accent-border); }
.contact-card .icon { font-size: 1.25rem; flex-shrink: 0; }
.contact-card .label {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 3px;
}
.contact-card .value { font-size: 0.9375rem; font-weight: 500; }
.contact-card .value a { color: var(--accent); }

.positions-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg); padding: 24px;
}
.positions-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.positions-box p {
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 18px;
}

/* ── Page title ── */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 1rem; font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 44px; line-height: 1.75;
  max-width: 560px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-img-wrap { display: none; }
  .hero-inner { padding: 108px 20px 48px; }
  .research-grid { grid-template-columns: 1fr; gap: 1px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links li:last-child { padding: 12px 24px; display: block; font-size: 0.9375rem; }
  .nav-hamburger { display: flex; }
  .pi-card { flex-direction: column; }
  .stats-bar { flex-wrap: wrap; gap: 24px; }
  .stat-item { border-right: none; padding: 0; min-width: 120px; }
}
