:root {
  --ink: #1a1a1a;
  --ink-mid: #444;
  --ink-light: #777;
  --ink-faint: #aaa;
  --accent: #1a5276;       /* calm academic navy */
  --accent-mid: #2e86c1;
  --accent-light: #d6eaf8;
  --rule: #ddd;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --red-badge: #c0392b;
  --green-badge: #1a7a4a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 56px;
}
.nav-wordmark {
  font-family: 'Lora', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--accent); letter-spacing: .01em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-mid);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: .3rem;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink-mid); border-radius: 2px;
}

/* ── HERO ────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f0f7 55%, #fafbfc 100%);
  display: flex; align-items: center;
  padding: 120px 2rem 80px;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 900px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 3rem;
}
.hero-photo-wrap {
  flex-shrink: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-light);
  border: 3px solid #fff;
  box-shadow: 0 4px 18px rgba(26,82,118,.18);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-wrap.no-photo {
  position: relative;
}
.hero-photo-wrap.no-photo .hero-photo { display: none; }
.hero-photo-wrap.no-photo::after {
  content: "Add your\A photo here";
  white-space: pre;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem; font-weight: 600;
  color: var(--accent);
  text-align: center;
  letter-spacing: .02em;
}
.hero-text { flex: 1; min-width: 0; }
.hero-name {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600; color: var(--ink);
  line-height: 1.15; margin-bottom: .3rem;
}
.hero-role {
  font-size: 1rem; color: var(--ink-mid); font-weight: 400;
  margin-bottom: .5rem;
}
.hero-role-desc {
  font-size: .9rem; color: var(--ink-light);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: .1rem;
}
.hero-role-desc:last-of-type {
  margin-bottom: 1.8rem;
}
.hero-bio {
  font-size: .96rem;
  color: var(--ink-mid);
  line-height: 1.9;
  max-width: 680px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 1.8rem;
}
.hero-bio strong { color: var(--ink); }
.hero-highlight-box {
  max-width: 680px;
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-light);
}
.hero-highlight-label {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 3px;
  margin-bottom: .5rem;
}
.hero-highlight-text {
  font-size: .9rem; color: var(--ink-mid);
  line-height: 1.7;
}
.hero-highlight-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-highlight-text a:hover { text-decoration: underline; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-email-line { font-size: .88rem; color: var(--ink-light); margin-bottom: 1.6rem; }
.btn {
  padding: .45rem 1.1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .83rem; font-weight: 600;
  letter-spacing: .03em;
  border-radius: 4px;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer; border: none;
  display: inline-block;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-mid); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-light); }

/* ── SECTIONS ────────────────────────────────── */
section { padding: 72px 2rem; }
.container { max-width: 820px; margin: 0 auto; }
.sec-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .5rem;
}
.sec-title {
  font-family: 'Lora', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}

/* ── PUBLICATIONS ────────────────────────────── */
#publications { background: var(--bg-alt); }
.pub-tabs { display: flex; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.pub-tab {
  padding: .35rem .95rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem; font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff; color: var(--ink-mid);
  cursor: pointer; transition: all .15s;
}
.pub-tab:hover { border-color: var(--accent); color: var(--accent); }
.pub-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item {
  display: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
}
.pub-item.show { display: block; }
.pub-item:first-child { border-top: 1px solid var(--rule); }
.pub-venue-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .2rem; }
.pub-venue {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .1rem .45rem; border-radius: 2px;
}
.pub-item-highlight { background: var(--accent-light); border-radius: 6px; padding: .9rem .9rem; margin-bottom: .4rem; border-bottom: none; }
.pub-item-highlight:first-child { border-top: none; }
.pub-badge-tracker {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 3px;
  white-space: nowrap;
}
.venue-nature { background: #d5f5e3; color: #1e8449; }
.venue-ieee   { background: #d6eaf8; color: #1a5276; }
.venue-arxiv  { background: #e8daef; color: #6c3483; }
.venue-conf   { background: #fef9e7; color: #7d6608; }
.pub-badge {
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-faint);
}
.pub-title {
  font-weight: 600; color: var(--ink); line-height: 1.5;
  margin-bottom: .15rem;
}
.pub-authors { font-size: .85rem; color: var(--ink-light); margin-bottom: .1rem; }
.pub-meta    { font-size: .82rem; color: var(--ink-faint); }
.pub-link    {
  font-size: .8rem; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-left: .4rem;
}
.pub-link:hover { text-decoration: underline; }

.show-more-wrap { margin-top: 1rem; }
.btn-text {
  font-size: .83rem; font-weight: 600; color: var(--accent);
  background: none; border: none; cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  padding: 0; text-decoration: underline;
}

/* ── SIMPLE LISTS ─────────────────────────────── */
.simple-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.simple-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
}
.simple-item:first-child { border-top: 1px solid var(--rule); }
.item-status {
  display: inline-block;
  font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 2px; margin-right: .5rem;
}
.status-granted { background: #d5f5e3; color: var(--green-badge); }
.status-filed   { background: #fef9e7; color: #7d6608; }
.item-title { font-weight: 600; color: var(--ink); line-height: 1.5; }
.item-meta  { font-size: .82rem; color: var(--ink-faint); margin-top: .1rem; }

/* ── TALKS ───────────────────────────────────── */
#talks { background: var(--bg-alt); }
.talk-item {
  display: none;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
}
.talk-item.show { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.talk-item:first-child { border-top: 1px solid var(--rule); }
.talk-left { flex: 1; min-width: 0; }
.talk-type { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .1rem; }
.talk-title { font-weight: 600; color: var(--ink); line-height: 1.5; }
.talk-venue { font-size: .85rem; color: var(--ink-light); }
.talk-link  { font-size: .8rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.talk-link:hover { text-decoration: underline; }
.talk-date  { font-size: .8rem; color: var(--ink-faint); white-space: nowrap; flex-shrink: 0; }

/* ── TEACHING ────────────────────────────────── */
#teaching { background: var(--bg); }
#mentorship { background: var(--bg-alt); }
.teach-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
}
.teach-item:first-child { border-top: 1px solid var(--rule); }
.teach-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.teach-title { font-weight: 600; color: var(--ink); }
.teach-period { font-size: .8rem; color: var(--ink-faint); white-space: nowrap; }
.teach-detail { font-size: .87rem; color: var(--ink-light); margin-top: .1rem; }

.subsec { margin-top: 2.2rem; }
.subsec-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}
.lec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .7rem; margin-bottom: .5rem;
}
.lec-card {
  padding: .8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-alt);
  font-size: .87rem;
}
.lec-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 2px;
  margin-right: .3rem; margin-bottom: .4rem; display: inline-block;
}
.tag-qem { background: #fdecea; color: #c0392b; }
.tag-alg { background: #e8daef; color: #6c3483; }
.tag-ent { background: #d5f5e3; color: #1e8449; }
.tag-fund { background: #fef9e7; color: #7d6608; }
.lec-title { font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: .15rem; }
.lec-link { font-size: .78rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.lec-link:hover { text-decoration: underline; }

/* ── AWARDS ──────────────────────────────────── */
#awards { background: var(--bg); }
.award-item {
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
  display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap;
}
.award-item:first-child { border-top: 1px solid var(--rule); }
.award-year { font-size: .78rem; color: var(--ink-faint); white-space: nowrap; flex-shrink: 0; min-width: 80px; }
.award-title { font-weight: 600; color: var(--ink); }
.award-org  { font-size: .85rem; color: var(--ink-light); }

/* ── PRESS ───────────────────────────────────── */
#press { background: var(--bg-alt); }
.press-item {
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .91rem;
  display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap;
  text-decoration: none; color: inherit;
}
.press-item:first-child { border-top: 1px solid var(--rule); }
.press-source { font-size: .75rem; font-weight: 700; color: var(--ink-faint); white-space: nowrap; flex-shrink: 0; min-width: 160px; text-transform: uppercase; letter-spacing: .04em; }
.press-title { color: var(--accent); font-weight: 500; }
.press-title:hover { text-decoration: underline; }
.press-item-highlight { background: var(--accent-light); border-radius: 6px; padding: .9rem .9rem; margin-bottom: .4rem; border-bottom: none; }
.press-item-highlight:first-child { border-top: none; }
.press-item-highlight .press-source { white-space: normal; min-width: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.press-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 3px;
  white-space: nowrap;
}
.press-item-highlight .press-title { font-weight: 600; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--accent); margin-bottom: .2rem;
}
.footer-sub { font-size: .83rem; color: var(--ink-light); margin-bottom: 1rem; }
.footer-links {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  gap: 1.6rem; flex-wrap: wrap; margin-bottom: .8rem;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.footer-links a { font-size: .82rem; color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-email { font-size: .82rem; color: var(--ink-light); }
.footer-copy { font-size: .73rem; color: var(--ink-faint); }
.footer-visits {
  position: absolute; left: 0;
  height: 18px; opacity: .6;
}

/* ── REVEAL ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────── */
@media(max-width: 860px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: .2rem;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; padding: .8rem 1.4rem;
    border-bottom: 1px solid var(--rule);
  }
}
@media(max-width: 700px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 1.6rem; }
  .hero-bio, .hero-highlight-box { text-align: left; }
  .hero-cta { justify-content: center; }
}
@media(max-width: 600px) { section { padding: 52px 1.2rem; } }
