/* ===========================
   Custom Properties
   =========================== */
:root {
  --sidebar-w:     290px;
  --sidebar-bg:    #242730;        /* dark charcoal-slate */
  --sidebar-text:  rgba(220,217,212,.8);
  --sidebar-dim:   rgba(185,181,174,.5);
  --sidebar-bdr:   rgba(255,255,255,.07);

  --accent:        #4a7d9a;        /* muted steel blue  */
  --accent-light:  #6698b2;
  --accent-pale:   #e5edf4;
  --amber:         #b5620c;
  --amber-pale:    #fdf0e2;

  --heading:       #1c2230;
  --white:         #ffffff;
  --off-white:     #f7f6f3;        /* slightly warm */
  --grey-50:       #f2f1ee;
  --grey-100:      #e8e7e3;
  --grey-200:      #d4d2cd;
  --grey-400:      #9c9890;
  --grey-600:      #6b6762;
  --grey-800:      #3d3a36;
  --text:          #2c2f35;
  --text-light:    #71706b;

  --font:    'Inter', system-ui, sans-serif;
  --serif:   'Lora', Georgia, serif;

  --radius-sm: 3px;
  --radius:    7px;
  --radius-lg: 11px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow:    0 3px 10px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
  --transition: .22s ease;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
em { font-style: italic; }
sub { font-size: .78em; vertical-align: sub; }

/* ===========================
   Page Layout
   =========================== */
.page-layout {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.6rem 2rem;
  min-height: 100%;
}

/* Profile (text only, no photo) */
.sidebar-profile {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sidebar-bdr);
  margin-bottom: 1.4rem;
}
.sidebar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2dfd9;
  line-height: 1.25;
  margin-bottom: .3rem;
  font-family: var(--serif);
}
.sidebar-role {
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .15rem;
}
.sidebar-chair {
  font-size: .82rem;
  color: rgba(220,217,212,.6);
  line-height: 1.4;
  margin-bottom: .35rem;
}
.sidebar-affil {
  font-size: .77rem;
  color: var(--sidebar-dim);
  line-height: 1.5;
}

/* Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--sidebar-bdr);
  margin-bottom: 1.4rem;
}
.sidebar-tags span {
  font-size: .68rem;
  font-weight: 500;
  padding: .18rem .55rem;
  background: rgba(74,125,154,.14);
  border: 1px solid rgba(74,125,154,.22);
  color: rgba(134,182,210,.9);
  border-radius: 12px;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-size: .86rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .6; }
.sidebar-nav-link:hover { background: rgba(255,255,255,.06); color: #e8e4de; }
.sidebar-nav-link:hover svg { opacity: 1; }
.sidebar-nav-link.active {
  background: rgba(74,125,154,.15);
  color: #94c2db;
  font-weight: 600;
}
.sidebar-nav-link.active svg { opacity: 1; }

/* Social */
.sidebar-social {
  display: flex;
  gap: .4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sidebar-bdr);
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.social-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center;
  color: var(--sidebar-dim);
  transition: all var(--transition);
}
.social-btn svg { width: 15px; height: 15px; }
.social-btn:hover {
  background: rgba(74,125,154,.18);
  border-color: rgba(74,125,154,.35);
  color: #94c2db;
  transform: translateY(-1px);
}

/* ===========================
   Main Content
   =========================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ===========================
   Sections
   =========================== */
.section { padding: 4rem 0; }
.section-alt { background: var(--off-white); }

.section-inner {
  padding: 0 3.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: .5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--accent);
  margin-top: .4rem;
  border-radius: 1px;
}
.section-intro {
  color: var(--text-light);
  font-size: .97rem;
  max-width: 720px;
  margin-top: .75rem;
  margin-bottom: 2rem;
  line-height: 1.78;
}
.subsec-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2.5rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--accent-light); }
.text-muted { color: var(--text-light); font-style: italic; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ===========================
   Mobile Header
   =========================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: var(--sidebar-bg);
  z-index: 300;
  border-bottom: 1px solid var(--sidebar-bdr);
}
.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 100%;
}
.mobile-name { color: #e2dfd9; font-weight: 700; font-size: .95rem; font-family: var(--serif); }
.mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; padding: .4rem; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #c8c4be; border-radius: 2px; transition: all var(--transition); }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
}

/* ===========================
   About Section
   =========================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 2.5rem;
  align-items: start;
}
.about-bio p {
  margin-bottom: 1rem;
  line-height: 1.82;
  font-size: .97rem;
}

/* Floating portrait in bio text */
.bio-photo {
  float: right;
  width: 160px;
  height: 195px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  margin: 0 0 1.25rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-100);
  clear: both;
}
.stat-item {
  text-align: center;
  padding: .85rem .4rem;
  background: var(--grey-50);
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
}
.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-lbl {
  font-size: .7rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.about-cards { display: flex; flex-direction: column; gap: .9rem; }
.info-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.section-alt .info-card { background: var(--white); }
.info-card-heading {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .6rem;
}
.info-card p { font-size: .85rem; line-height: 1.65; color: var(--grey-800); }
.edu-list li {
  font-size: .84rem;
  color: var(--grey-800);
  padding: .38rem 0;
  border-bottom: 1px solid var(--grey-50);
  line-height: 1.5;
}
.edu-list li:last-child { border-bottom: none; }
.award-list li {
  font-size: .81rem;
  color: var(--grey-800);
  padding: .28rem 0;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.45;
}
.award-yr {
  color: var(--accent);
  font-weight: 700;
  font-size: .76rem;
  flex-shrink: 0;
  padding-top: .05rem;
}
.lang-list { display: flex; flex-direction: column; gap: .45rem; }
.lang-list li { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.lang-pill {
  font-size: .7rem;
  font-weight: 700;
  padding: .16rem .55rem;
  border-radius: 10px;
}
.lang-pill.native { background: var(--accent-pale); color: var(--accent); }
.lang-pill.c2 { background: #edf0f8; color: #4863a0; }

/* ===========================
   Research Cards
   =========================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.research-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.research-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--grey-200);
}
.rc-icon {
  width: 38px; height: 38px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .85rem;
}
.rc-icon svg { width: 19px; height: 19px; stroke: var(--accent); }
.research-card h3 {
  font-size: .91rem;
  color: var(--heading);
  margin-bottom: .4rem;
  font-weight: 600;
  line-height: 1.35;
}
.research-card p { font-size: .83rem; color: var(--text-light); line-height: 1.65; }

/* ===========================
   Publications
   =========================== */
.pub-controls { margin-bottom: 1.1rem; }
.pub-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-btn {
  padding: .28rem .75rem;
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--grey-600);
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.pub-list { display: flex; flex-direction: column; gap: .55rem; padding: 0; }
.pub-item {
  display: flex;
  gap: .9rem;
  padding: .95rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  align-items: flex-start;
}
.pub-item:hover { border-color: var(--grey-200); box-shadow: var(--shadow); }
.pub-item.highlighted { border-left: 3px solid var(--accent); }

.pub-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  flex-shrink: 0;
  min-width: 70px;
}
.pub-year-chip {
  font-size: .73rem;
  font-weight: 700;
  color: var(--white);
  background: var(--heading);
  padding: .16rem .52rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.pub-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .13rem .42rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  text-align: center;
}
.pub-badge.featured { background: var(--accent-pale); color: var(--accent); }
.pub-badge.award { background: var(--amber-pale); color: var(--amber); }

.pub-body { flex: 1; min-width: 0; }
.pub-authors { font-size: .81rem; color: var(--text-light); margin-bottom: .18rem; line-height: 1.4; }
.pub-me { color: var(--heading); font-weight: 600; }
.pub-title { font-size: .93rem; color: var(--text); font-weight: 500; margin-bottom: .22rem; line-height: 1.44; }
.pub-ref { font-size: .81rem; color: var(--text-light); }
.pub-ref em { font-style: italic; }
.pub-inpress { color: var(--amber); font-weight: 500; }
.pub-doi { margin-left: .4rem; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; font-size: .78rem; }
.pub-doi:hover { color: var(--accent-light); }
.pub-item.hidden { display: none; }
.pub-more-wrap { margin-top: 1.6rem; display: flex; justify-content: center; }

/* ===========================
   Teaching
   =========================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .87rem;
}
.data-table th {
  background: var(--heading);
  color: rgba(255,255,255,.88);
  padding: .7rem .95rem;
  text-align: left;
  font-weight: 600;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.data-table td {
  padding: .68rem .95rem;
  border-bottom: 1px solid var(--grey-50);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--grey-50); }
.row-current td { background: var(--accent-pale); }
.row-current td:first-child { border-left: 3px solid var(--accent); }

.supervision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .85rem;
}
.sup-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: .95rem 1.05rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.sup-level {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.sup-card p { font-size: .82rem; color: var(--text-light); flex: 1; line-height: 1.5; }
.sup-status {
  font-size: .71rem;
  font-weight: 600;
  padding: .16rem .5rem;
  border-radius: 10px;
  align-self: flex-start;
}
.sup-status.ongoing { background: var(--accent-pale); color: var(--accent); }
.sup-status.done { background: var(--grey-50); color: var(--grey-600); }
.sup-pub-link {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: flex-start;
}
.sup-pub-link:hover { color: var(--accent-light); }

/* ===========================
   Funding & Projects
   =========================== */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.1rem;
}
.grant-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow var(--transition);
}
.grant-card:hover { box-shadow: var(--shadow); }
.grant-pi       { border-top: 3px solid var(--accent); }
.grant-collab   { border-top: 3px solid #7a8fa6; }
.grant-researcher { border-top: 3px solid #7a8fa6; }

.grant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem;
}
.grant-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .18rem .55rem;
  border-radius: var(--radius-sm);
}
.grant-badge.pi         { background: var(--accent-pale); color: var(--accent); }
.grant-badge.researcher { background: #e8ecf5; color: #4a6fa5; }
.grant-badge.collab     { background: #eef0f5; color: #5b6b84; }
.grant-funder { font-size: .73rem; color: var(--text-light); font-weight: 500; }
.grant-title  { font-size: .97rem; font-weight: 600; color: var(--heading); line-height: 1.35; }
.grant-ref    { font-size: .76rem; color: var(--text-light); font-family: monospace; }
.grant-desc   { font-size: .85rem; color: var(--text-light); line-height: 1.65; flex: 1; }
.grant-desc em { color: var(--grey-600); font-style: italic; }

.grant-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  border-top: 1px solid var(--grey-50);
  flex-wrap: wrap;
  gap: .5rem;
}
.grant-amount { font-size: .93rem; font-weight: 700; color: var(--accent); }
.grant-period { font-size: .8rem; color: var(--text-light); }
.grant-link {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.grant-link:hover { color: var(--accent-light); }

/* ===========================
   Contact
   =========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.cicon {
  width: 36px; height: 36px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cicon svg { width: 16px; height: 16px; stroke: var(--accent); }
.clabel { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-light); font-weight: 700; margin-bottom: .18rem; }
.cvalue { font-size: .9rem; color: var(--text); line-height: 1.55; }
.cvalue.link { color: var(--accent); }
.cvalue.link:hover { text-decoration: underline; }

.contact-profiles { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.profile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .85rem;
  background: var(--grey-50);
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
  transition: all var(--transition);
}
.profile-link:hover { background: var(--accent-pale); border-color: var(--accent); }
.profile-name { font-size: .83rem; font-weight: 600; color: var(--heading); }
.profile-id { font-size: .76rem; color: var(--text-light); font-family: monospace; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.form-honeypot { display: none; }
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--grey-800); margin-bottom: .28rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .58rem .82rem;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,125,154,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--sidebar-bg);
  color: rgba(210,206,200,.4);
  padding: 1.6rem 0;
  font-size: .82rem;
}
.footer-inner {
  padding: 0 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: rgba(210,206,200,.4); transition: color var(--transition); }
.footer-links a:hover { color: #94c2db; }

/* ===========================
   Animations
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 265px; }
  .section-inner { padding: 0 2.25rem; }
  .funding-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mobile-header { display: flex; }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
  .sidebar-overlay.visible { opacity: 1; pointer-events: all; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); top: 54px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding-top: 54px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-cards { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .bio-photo { width: 130px; height: 160px; }
}

@media (max-width: 560px) {
  .section-inner { padding: 0 1rem; }
  .about-cards { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .supervision-grid { grid-template-columns: 1fr; }
  .pub-item { flex-direction: column; gap: .35rem; }
  .pub-meta { flex-direction: row; min-width: unset; }
  .footer-inner { flex-direction: column; text-align: center; }
  .bio-photo { float: none; width: 140px; height: 170px; object-position: top center; display: block; margin: 0 auto 1.25rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
