@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0b1739;
  --navy-2: #142653;
  --ink: #172036;
  --muted: #667089;
  --line: #dfe5ef;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --accent: #18a7a0;
  --accent-2: #0f7f7a;
  --accent-soft: #def6f4;
  --shadow: 0 18px 50px rgba(10, 24, 58, .12);
  --shadow-soft: 0 10px 30px rgba(10, 24, 58, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --navy: #eaf0ff;
  --navy-2: #cbd8ff;
  --ink: #eef3ff;
  --muted: #aeb9d1;
  --line: #2a3551;
  --surface: #111a2e;
  --surface-2: #0b1325;
  --accent: #50d5cf;
  --accent-2: #87ece7;
  --accent-soft: #183a3d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #07131e; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

.container {
  width: min(calc(100% - 2.2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 1000;
  background: var(--navy);
  color: var(--surface);
  padding: .7rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 248px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #0b1739, #18a7a0);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  letter-spacing: -.04em;
  font-family: var(--font-body);
}
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.15; color: var(--navy); }
.brand small { color: var(--muted); font-size: .75rem; margin-top: .18rem; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  flex: 1;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  padding: .6rem .65rem;
  border-radius: 10px;
  transition: .2s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--navy);
  background: var(--surface-2);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; }

.section {
  position: relative;
  padding: 104px 0;
  scroll-margin-top: 72px;
}
.alt-section { background: var(--surface-2); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 76px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .77rem;
  font-family: var(--font-body);
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 900px;
  margin: 0;
}
.hero-lead {
  max-width: 680px;
  margin: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}
.hero-actions, .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}
.hero-links { margin-top: 1.5rem; }
.hero-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.hero-links a:hover { color: var(--accent-2); border-color: currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.15rem;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--navy);
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .button.primary { color: #0b1325; }
.button.secondary {
  border-color: var(--line);
  color: var(--navy);
  background: var(--surface);
}

.portrait-wrap {
  position: relative;
  z-index: 2;
  max-width: 470px;
  justify-self: end;
}
.portrait-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 55%, white), var(--surface));
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.5);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 6/7;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 24px;
  background: #80cec9;
}
.portrait-badge {
  position: absolute;
  left: -36px;
  bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .72rem 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2fcf7f;
  box-shadow: 0 0 0 6px rgba(47,207,127,.15);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .5;
}
.hero-orb-one {
  width: 460px; height: 460px;
  right: -170px; top: 20px;
  background: radial-gradient(circle, rgba(24,167,160,.32), transparent 68%);
}
.hero-orb-two {
  width: 600px; height: 600px;
  left: -360px; bottom: -250px;
  background: radial-gradient(circle, rgba(68,100,190,.2), transparent 70%);
}

.stats-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid article {
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.stats-grid article + article { border-left: 1px solid var(--line); }
.stats-grid strong {
  color: var(--navy);
  font-size: 1.8rem;
  letter-spacing: -.04em;
  font-family: var(--font-body);
}
.stats-grid span { color: var(--muted); font-size: .84rem; line-height: 1.35; }

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}
.section-heading h2, .contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.section-heading > p:last-child, .contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}
.section-subheading { max-width: 720px; }
.section-subheading h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  letter-spacing: -.035em;
  font-family: var(--font-display);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.card, .prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.card h3, .prose-card h3 { color: var(--navy); margin-top: 0; font-size: 1.35rem; }
.card p, .prose-card p { color: var(--muted); }
.timeline { display: grid; gap: .8rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item span {
  color: var(--accent-2);
  font-size: .82rem;
  font-weight: 800;
}
.timeline-item h3 { color: var(--navy); margin: 0; font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; }
.timeline-item p { color: var(--muted); margin: .22rem 0 0; font-size: .9rem; }

.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  background: var(--surface);
}
.mini-card > span {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 900;
}
.mini-card h3 { color: var(--navy); font-size: 1rem; margin: .8rem 0 .35rem; font-family: var(--font-body); font-weight: 700; }
.mini-card p { color: var(--muted); margin: 0; font-size: .86rem; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.research-card {
  min-height: 250px;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.research-card .number {
  color: color-mix(in srgb, var(--accent) 52%, var(--muted));
  font-size: .78rem;
  font-weight: 900;
}
.research-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 2.6rem 0 .7rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.research-card p { color: var(--muted); margin: 0; }
.research-card::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  right: -50px; top: -50px;
  background: var(--accent-soft);
  opacity: .65;
}

.publication-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, .25fr));
  gap: .8rem;
}
.search-field {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 .95rem;
  background: var(--surface);
}
.search-field svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.publication-toolbar select {
  min-height: 48px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
}
.publication-meta {
  margin: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.text-link { color: var(--accent-2); font-weight: 800; text-decoration: none; }
.publication-list { display: grid; gap: .75rem; }
.publication-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: .2s ease;
}
.publication-item:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.publication-year {
  color: var(--accent-2);
  font-weight: 900;
  font-size: .88rem;
}
.publication-item h3 {
  color: var(--navy);
  margin: 0 0 .35rem;
  font-size: 1.04rem;
  line-height: 1.4;
  font-family: var(--font-body);
  font-weight: 700;
}
.publication-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.pub-badges { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.pub-badges span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .7rem;
  color: var(--muted);
}
.publication-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 900;
  font-size: .83rem;
  white-space: nowrap;
}
.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.patents-block {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}
.patent-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.patent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  padding: 1.5rem;
}
.status-pill {
  display: inline-block;
  background: #fff2cf;
  color: #805300;
  border: 1px solid #f1d589;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .7rem;
  font-weight: 900;
}
html[data-theme="dark"] .status-pill { background: #3d3219; color: #ffd774; border-color: #65501d; }
.patent-card h4 { color: var(--navy); font-size: 1.08rem; margin: 1rem 0 .3rem; }
.patent-card p { color: var(--muted); margin: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 290px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}
.project-period { color: var(--accent-2); font-weight: 900; font-size: .78rem; }
.project-card h3 { color: var(--navy); margin: 1.1rem 0 .6rem; font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }
.project-role { color: var(--accent-2); font-weight: 800; font-size: .82rem; margin: 0; }
.project-card p { color: var(--muted); }
.project-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.project-tags span, .tag-cloud span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: .3rem .58rem;
  font-size: .72rem;
  font-weight: 800;
}

.teaching-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1.2rem;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.metric-row strong { color: var(--navy); font-size: 1.7rem; font-family: var(--font-body); }
.metric-row span { color: var(--muted); }
.note { font-size: .82rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .55rem; }
.supervision-callout {
  margin-top: 1.4rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--navy), #17346f);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
html[data-theme="dark"] .supervision-callout { background: linear-gradient(130deg, #17223c, #203c6a); }
.supervision-callout h3 { margin: 0; font-size: 1.7rem; font-family: var(--font-display); }
.supervision-callout p { max-width: 760px; color: rgba(255,255,255,.78); }
.supervision-callout .eyebrow { color: #76e7df; }
.supervision-callout .button.primary { background: white; color: #0b1739; white-space: nowrap; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: .65rem 0 .65rem 1.6rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 900;
}

.contact-section {
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(24,167,160,.3), transparent 32%),
    linear-gradient(135deg, #0b1739, #142653);
}
.contact-section .eyebrow { color: #72e4dc; }
.contact-section h2 { color: white; }
.contact-section p { color: rgba(255,255,255,.72); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: rgba(255,255,255,.08); }
.contact-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  font-weight: 900;
}
.contact-row small, .contact-row strong { display: block; }
.contact-row small { color: rgba(255,255,255,.64); }
.contact-row strong { font-size: .92rem; overflow-wrap: anywhere; }

.site-footer {
  padding: 2rem 0;
  background: #071025;
  color: rgba(255,255,255,.75);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
.footer-inner strong { color: white; }
.footer-inner p { margin: .2rem 0; font-size: .82rem; }

.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.1rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  background: var(--navy);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 850;
}
html[data-theme="dark"] .assistant-launcher { color: #0b1325; }
.assistant-launcher svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.assistant-panel {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 42px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  transform: translateY(28px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.assistant-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--navy);
  color: var(--surface);
}
html[data-theme="dark"] .assistant-header { color: #0b1325; }
.assistant-header strong, .assistant-header small { display: block; }
.assistant-header small { opacity: .72; font-size: .72rem; }
.assistant-header .icon-button {
  width: 34px; height: 34px;
  border-color: color-mix(in srgb, var(--surface) 24%, transparent);
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
}
.assistant-notice {
  padding: .65rem .9rem;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 700;
}
.assistant-messages {
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.message {
  max-width: 88%;
  padding: .72rem .8rem;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.5;
}
.message.assistant {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.message.user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--surface);
  border-bottom-right-radius: 4px;
}
html[data-theme="dark"] .message.user { color: #0b1325; }
.quick-prompts {
  padding: .55rem .8rem;
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.quick-prompts button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: .38rem .65rem;
  font-size: .7rem;
}
.assistant-form {
  border-top: 1px solid var(--line);
  padding: .7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
}
.assistant-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .68rem .75rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.assistant-form input:focus { border-color: var(--accent); }
.assistant-form button {
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: var(--surface);
  padding: 0 .9rem;
  font-weight: 800;
}
html[data-theme="dark"] .assistant-form button { color: #0b1325; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .main-nav a { font-size: .8rem; padding-inline: .45rem; }
  .brand { min-width: 215px; }
  .project-grid, .research-grid { grid-template-columns: repeat(2, 1fr); }
  .education-grid { grid-template-columns: repeat(2, 1fr); }
  .publication-toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle {
    order: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
  .icon-button#themeToggle { margin-left: auto; }
  .main-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 84px;
    padding: .7rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: .2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: .65rem; }
  .hero-grid, .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .portrait-wrap { order: 1; justify-self: center; max-width: 360px; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .portrait-badge { left: -15px; bottom: 25px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .teaching-grid, .service-grid { grid-template-columns: 1fr; }
  .supervision-callout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .section { padding: 78px 0; }
  .brand small { display: none; }
  .brand { min-width: 0; flex: 1; }
  .brand strong { font-size: .92rem; }
  .hero { min-height: auto; }
  .hero-grid { gap: 2.2rem; }
  .portrait-wrap { max-width: 290px; }
  .portrait-badge { font-size: .72rem; }
  .stats-grid article { padding: 1rem .7rem; gap: .55rem; }
  .stats-grid strong { font-size: 1.4rem; }
  .stats-grid span { font-size: .72rem; }
  .research-grid, .project-grid, .patent-grid, .education-grid { grid-template-columns: 1fr; }
  .publication-toolbar { grid-template-columns: 1fr; }
  .publication-meta { align-items: flex-start; flex-direction: column; }
  .publication-item { grid-template-columns: 1fr; gap: .45rem; }
  .publication-link { justify-self: start; }
  .timeline-item { grid-template-columns: 1fr; gap: .25rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .assistant-launcher span { display: none; }
  .assistant-launcher { width: 54px; height: 54px; justify-content: center; padding: 0; }
  .assistant-panel { right: 14px; bottom: 14px; height: min(660px, calc(100vh - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
