/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --primary: #0c2340;
  --primary-light: #1a3a5c;
  --secondary: #1565c0;
  --accent: #0288d1;
  --accent-light: #e3f2fd;
  --success: #2e7d32;
  --text: #1a202c;
  --text-muted: #4a5568;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --nav-height: 72px;
  --transition: 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 0.5rem auto 0; border-radius: 2px;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); background: var(--primary); z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.35); }

.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-brand { display: flex; flex-direction: row; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo { width: 42px; height: 42px; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; }
.brand-main { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  color: rgba(255,255,255,0.82); padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: #fff; background: var(--secondary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 7rem 0 3.5rem; text-align: center; margin-top: var(--nav-height);
}
.page-header h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a6c 55%, #0d47a1 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(33,150,243,0.10) 0%, transparent 70%); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,188,212,0.08) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-label {
  display: inline-block; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; font-size: 3.25rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero h1 span { color: #64b5f6; }
.hero-tagline { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 580px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.25rem; }
.stat-label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem;
  border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); letter-spacing: 0.01em;
}
.btn-primary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-primary:hover { background: #1976d2; border-color: #1976d2; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,192,0.4); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; transform: translateY(-1px); }

.btn-secondary { background: var(--bg-alt); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--primary); transform: translateY(-1px); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* ===== CARDS ===== */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card-icon { width: 52px; height: 52px; background: var(--accent-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.4rem; color: var(--secondary); }
.card-title { font-size: 1.15rem; margin-bottom: 0.65rem; color: var(--primary); }
.card-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  display: flex; gap: 1.25rem; padding: 1.25rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 4px solid var(--secondary); transition: box-shadow var(--transition);
}
.news-item:hover { box-shadow: var(--shadow); }
.news-date { min-width: 72px; text-align: center; }
.news-date .month { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.news-date .day { display: block; font-size: 1.7rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.news-date .year { display: block; font-size: 0.72rem; color: var(--text-light); }
.news-content h4 { font-size: 0.98rem; margin-bottom: 0.3rem; color: var(--primary); }
.news-content p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== PUBLICATIONS ===== */
.pub-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.pub-year-group { margin-bottom: 3rem; }
.pub-year-label {
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
  padding-bottom: 0.65rem; border-bottom: 2px solid var(--accent);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.65rem;
}
.pub-year-label::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }

.pub-entry {
  padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; transition: all var(--transition); background: var(--bg);
}
.pub-entry:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.pub-title { font-size: 0.98rem; font-weight: 600; color: var(--primary); margin-bottom: 0.3rem; }
.pub-title a { color: var(--primary); }
.pub-title a:hover { color: var(--secondary); }
.pub-authors { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pub-authors .pi-name { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.pub-venue { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.75rem; }
.pub-links { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.pub-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.7rem;
  border-radius: 20px; font-size: 0.76rem; font-weight: 600; text-decoration: none; transition: all var(--transition);
}
.badge-pdf { background: #fce4ec; color: #c62828; }
.badge-pdf:hover { background: #c62828; color: white; }
.badge-doi { background: #e8f5e9; color: #2e7d32; }
.badge-doi:hover { background: #2e7d32; color: white; }
.badge-code { background: #f3e5f5; color: #7b1fa2; }
.badge-code:hover { background: #7b1fa2; color: white; }
.badge-preprint { background: var(--accent-light); color: var(--secondary); }
.badge-preprint:hover { background: var(--secondary); color: white; }

/* ===== PEOPLE ===== */
.people-section { margin-bottom: 4rem; }
.people-section-title {
  font-size: 1.35rem; color: var(--primary); margin-bottom: 1.75rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 0.65rem;
}
.people-section-title i { color: var(--accent); }

.pi-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 2.5rem;
  align-items: start; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow);
}
.person-photo-placeholder {
  width: 170px; height: 170px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-light), #bbdefb);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--border); font-size: 4rem; color: var(--secondary);
}
.pi-info h2 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.pi-title { color: var(--secondary); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.2rem; }
.pi-affiliation { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.pi-bio { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }

.pi-contact { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg-alt);
  border: 1px solid var(--border); padding: 0.32rem 0.85rem; border-radius: 20px;
  font-size: 0.83rem; color: var(--text-muted); text-decoration: none; transition: all var(--transition);
}
.contact-chip:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.pi-links { display: flex; gap: 0.5rem; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.member-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; text-align: center; transition: all var(--transition);
}
.member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent-light); }
.member-photo-placeholder {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), #bbdefb);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 2.5rem; color: var(--secondary); border: 3px solid var(--border);
}
.member-name { font-size: 0.98rem; font-weight: 600; color: var(--primary); margin-bottom: 0.2rem; }
.member-role { font-size: 0.83rem; color: var(--secondary); font-weight: 500; margin-bottom: 0.2rem; }
.member-research { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.member-links { display: flex; justify-content: center; gap: 0.45rem; }

.icon-link {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.82rem; transition: all var(--transition); text-decoration: none;
}
.icon-link:hover { background: var(--secondary); color: white; border-color: var(--secondary); }

/* ===== ALUMNI ===== */
.alumni-list { display: flex; flex-direction: column; gap: 0.65rem; }
.alumni-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.25rem; background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.alumni-name { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.alumni-meta { font-size: 0.85rem; color: var(--text-muted); }
.alumni-year { font-size: 0.82rem; color: var(--text-light); font-style: italic; }

/* ===== RESEARCH PAGE ===== */
.research-area {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--border);
}
.research-area:last-child { border-bottom: none; }
.research-area.reverse { direction: rtl; }
.research-area.reverse > * { direction: ltr; }

.research-image-placeholder {
  height: 280px; background: linear-gradient(135deg, var(--accent-light), #bbdefb);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; color: var(--secondary); border: 2px dashed var(--border);
}
.research-label {
  display: inline-block; background: var(--accent-light); color: var(--secondary);
  padding: 0.22rem 0.85rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.research-title { font-size: 1.55rem; color: var(--primary); margin-bottom: 0.85rem; }
.research-desc { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; font-size: 0.95rem; }
.research-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag { background: var(--bg-alt); border: 1px solid var(--border); padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.78rem; color: var(--text-muted); }

/* ===== GALLERY ===== */
.gallery-filter { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.45rem 1.2rem; border: 2px solid var(--border); border-radius: 30px;
  background: var(--bg); color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--secondary); background: var(--secondary); color: white; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; cursor: pointer; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-light), #e3f2fd);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--secondary); border: 2px dashed var(--border); transition: all var(--transition);
}
.gallery-placeholder:hover { background: #bbdefb; border-color: var(--secondary); }
.gallery-placeholder i { font-size: 2rem; }
.gallery-placeholder span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== JOIN US ===== */
.opening-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; margin-bottom: 1.5rem; border-left: 5px solid var(--secondary);
  transition: box-shadow var(--transition);
}
.opening-card:hover { box-shadow: var(--shadow-lg); }
.opening-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.opening-title { font-size: 1.15rem; color: var(--primary); }
.opening-badge { display: inline-block; padding: 0.22rem 0.85rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge-open { background: #e8f5e9; color: #2e7d32; }
.badge-closed { background: #fce4ec; color: #c62828; }
.opening-desc { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }
.requirements-list { margin-bottom: 1.25rem; }
.requirements-list li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; color: var(--text-muted); font-size: 0.9rem; }
.requirements-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; min-width: 44px; background: var(--accent-light);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-size: 1rem;
}
.contact-detail h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 0.25rem; }
.contact-detail p, .contact-detail a { color: var(--text); font-size: 0.93rem; }

.map-placeholder {
  height: 280px; background: var(--bg-alt); border: 2px dashed var(--border);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text-muted); gap: 0.5rem; margin-bottom: 1.5rem;
}
.map-placeholder i { font-size: 2.5rem; color: var(--secondary); }
.map-placeholder p { font-size: 0.85rem; }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.72); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.65rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; margin-bottom: 0; }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 0.88rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.social-icon {
  width: 34px; height: 34px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.62); font-size: 0.88rem; text-decoration: none; transition: all var(--transition);
}
.social-icon:hover { background: var(--secondary); color: white; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: var(--accent-light); border: 1px solid #90caf9; border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; }
.highlight-box h3 { color: var(--secondary); margin-bottom: 0.65rem; }
.highlight-box p { color: var(--text-muted); font-size: 0.93rem; }

/* ===== SCROLL ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pi-card { grid-template-columns: 150px 1fr; gap: 1.5rem; }
  .person-photo-placeholder { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-tagline { font-size: 1.05rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--primary); flex-direction: column; padding: 1.5rem;
    gap: 0.35rem; align-items: flex-start; transform: translateX(-100%);
    transition: transform 0.3s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 0.7rem 1rem; width: 100%; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .research-area { grid-template-columns: 1fr; }
  .research-area.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }

  .pi-card { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .person-photo-placeholder { margin: 0 auto; width: 110px; height: 110px; font-size: 3rem; }
  .pi-contact, .pi-links { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .opening-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-stats { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
