:root {
  --canvas: #f7f7f4;
  --paper: #fff;
  --ink: #202327;
  --muted: #777d84;
  --line: #e5e6e4;
  --line-strong: #cfd3d5;
  --navy: #173f5f;
  --navy-soft: #eaf0f4;
  --warm: #8a5a3b;
  --sidebar: 270px;
  --reading: 900px;
  --radius: 7px;
  --column-gap: 5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 15.5px/1.72 "Segoe UI", Inter, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--navy);
  text-decoration-color: rgba(23, 63, 95, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #0b263a; text-decoration-color: currentColor; }
img, video { max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  column-gap: var(--column-gap);
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-left: max(1.5rem, calc((100vw - 1280px) / 2));
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 4.5rem 0 2rem;
  overflow-y: auto;
  color: var(--ink);
  background: transparent;
}
.profile-photo {
  display: block;
  width: 154px;
  height: 154px;
  margin: 0 auto 1.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}
.identity { text-align: center; }
.identity__name {
  margin: 0;
  color: var(--ink);
  font: 500 1.82rem/1.06 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.identity__role {
  margin: .75rem 0 2rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.site-nav {
  margin: 1.25rem 0 1.65rem;
  text-align: right;
}
.site-nav a {
  display: block;
  padding: .33rem 0;
  color: #9a9da1;
  font-size: .96rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 650;
}
.rail-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem .72rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .74rem;
}
.rail-links a { color: var(--muted); }

.main-content {
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  padding: 4.5rem clamp(2rem, 4vw, 3.5rem) 4rem;
  overflow-wrap: anywhere;
  background: #fff;
}
.main-content > * { width: 100%; max-width: min(820px, var(--reading)); }
.page-header {
  margin-bottom: 2.7rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--line-strong);
}
.eyebrow {
  margin: 0 0 .4rem;
  color: var(--navy);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  color: #181b1e;
  line-height: 1.25;
}
h1 {
  margin: 0;
  font: 500 2.45rem/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
h2 {
  margin: 2.9rem 0 1.15rem;
  font: 500 1.47rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.012em;
}
h3 { margin: 0 0 .42rem; font-size: 1rem; }
p { margin: .55rem 0 1rem; }
.lead {
  max-width: 44rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: 1rem;
}
.muted { color: var(--muted); }
.section { scroll-margin-top: 1rem; }
.section + .section { padding-top: .1rem; }
.rule-title {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.rule-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.card-grid, .stack-list {
  display: grid;
  grid-template-columns: 1fr;
}
.card {
  padding: 1.05rem 0 1.15rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.card:first-child { border-top: 1px solid var(--line); }
.card h3 { color: var(--ink); }
.card--accent h3, .card--purple h3, .card--warm h3 { color: var(--navy); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.project-link { font-weight: 700; }

.opening {
  padding: 1.35rem 1.5rem 1.45rem;
  border: 1px solid #d8e1e8;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  background: #f8fafb;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.button {
  display: inline-block;
  padding: .55rem .82rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font-weight: 650;
  text-decoration: none;
}
.button--primary {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.news-feed {
  max-height: 24rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border-block: 1px solid var(--line);
}
.news-feed li {
  display: grid;
  grid-template-columns: 7.3rem 6.4rem minmax(0, 1fr);
  gap: .45rem;
  padding: .72rem .1rem;
  border-bottom: 1px solid var(--line);
}
.news-feed li:last-child { border-bottom: 0; }
.news-date { font-weight: 650; white-space: nowrap; }
.news-tag {
  color: var(--navy);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.news-copy { min-width: 0; }

.contact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: .5rem;
  padding: .42rem 0;
}
.contact-label { font-weight: 700; }

.page-notes { margin-top: 2.7rem; }
.page-note { border-bottom: 1px solid var(--line); }
.page-note:first-of-type { border-top: 1px solid var(--line); }
.page-note summary {
  cursor: pointer;
  padding: .72rem .1rem;
  color: var(--muted);
  font-size: .88rem;
}
.page-note[open] summary { color: var(--navy); }
.page-note video {
  display: block;
  width: min(100%, 46rem);
  margin: .15rem 0 1rem;
  border-radius: var(--radius);
  background: #111;
}

.section-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}
.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}
.media-card img { object-fit: cover; }
.media-card video { object-fit: contain; }
.media-card figcaption,
.media-card__caption {
  min-height: 3.35rem;
  padding: .72rem .8rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.teaching-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(15rem, .92fr);
  align-items: start;
  gap: 2.2rem;
}
.teaching-split .section-media {
  display: block;
  margin-top: 0;
}
.mentee-list { margin: 0; }
.mentee {
  padding: .78rem 0;
  border-bottom: 1px solid var(--line);
}
.mentee:first-child { border-top: 1px solid var(--line); }
.mentee dt { font-weight: 700; }
.mentee dd {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.award-list, .service-list {
  margin: 0;
  padding-left: 1.1rem;
}
.award-list li, .service-list li { margin: .42rem 0; }
.pill {
  display: inline-block;
  padding: .15rem .44rem;
  border-radius: 99px;
  color: var(--muted);
  background: #f0f1f0;
  font-size: .73rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.1rem;
  border-block: 1px solid var(--line);
}
.stat {
  padding: 1rem .5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  color: var(--navy);
  font: 500 1.45rem/1 Georgia, serif;
}
.pub-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto;
  gap: .55rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.pub-search {
  width: 100%;
  padding: .58rem .65rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: .3rem; }
.filter-button {
  padding: .42rem .58rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: .76rem;
}
.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}
.publication-section[hidden], .citation[hidden] { display: none; }
.pub-count {
  color: var(--muted);
  font: 400 .78rem/1 "Segoe UI", sans-serif;
}
.citation {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.citation__title { font-weight: 700; }
.citation__meta {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .84rem;
}
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }
.placeholder {
  padding: 2.5rem 1.5rem;
  border-block: 1px solid var(--line);
  text-align: center;
}
.site-footer { display: none; }

.mobile-toggle, .overlay { display: none; }

@media (max-width: 980px) {
  .site-shell {
    display: block;
    width: 100%;
    padding-left: 0;
    box-shadow: none;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 25;
    width: var(--sidebar);
    height: 100vh;
    padding-inline: 2rem;
    transform: translateX(-105%);
    background: var(--paper);
    box-shadow: 10px 0 35px rgba(0,0,0,.13);
    transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-toggle {
    display: block;
    position: fixed;
    top: .85rem;
    left: .85rem;
    z-index: 30;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  body.nav-open .overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(22,27,31,.36);
  }
  .main-content {
    width: 100%;
    padding: 5rem clamp(1.5rem, 6vw, 4rem) 3rem;
  }
  .main-content > * { margin-inline: auto; }
}

@media (max-width: 680px) {
  body { background: #fff; font-size: 15px; }
  .main-content { padding: 4.8rem 1.2rem 2.5rem; }
  h1 { font-size: 2rem; }
  h2 { margin-top: 2.35rem; }
  .news-feed li {
    display: block;
    padding: .8rem 0;
  }
  .news-tag { margin-left: .35rem; }
  .news-copy { display: block; margin-top: .22rem; }
  .contact-columns, .section-media, .teaching-split, .stats-grid {
    grid-template-columns: 1fr;
  }
  .contact-columns { gap: 0; }
  .stats-grid { border-bottom: 0; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pub-tools { grid-template-columns: 1fr; position: static; }
  .media-card figcaption, .media-card__caption { min-height: 0; }
}

.research-highlights {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.research-highlight {
  border-bottom: 1px solid var(--line);
}
.research-highlight__summary {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  list-style: none;
  margin: 0 -.35rem;
  padding: .95rem .7rem;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 650;
  line-height: 1.45;
  transition: background .15s ease;
}
.research-highlight__summary::-webkit-details-marker { display: none; }
.research-highlight__summary::before {
  content: "▸";
  flex: 0 0 auto;
  margin-top: .1rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  transition: transform .15s ease;
}
.research-highlight[open] > .research-highlight__summary::before {
  transform: rotate(90deg);
}
.research-highlight__summary:hover {
  background: var(--navy-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.research-highlight__title { flex: 1 1 auto; min-width: 0; }
.research-highlight__cue {
  flex: 0 0 auto;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.research-highlight__body {
  padding: 0 .35rem 1.4rem;
}
.research-carousel-block {
  margin-bottom: .35rem;
}
.research-carousel-block + .research-carousel-block,
.research-carousel__label + .research-carousel-block {
  margin-top: .35rem;
}
.research-carousel-block + .research-carousel__label {
  margin-top: 1.75rem;
}
.research-carousel__label {
  position: relative;
  z-index: 2;
  margin: 1.25rem 0 .85rem;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.35;
}
.research-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
}
.research-carousel__frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f4f3;
}
.research-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f3;
}
.research-carousel--portrait .research-carousel__track {
  aspect-ratio: 3 / 4;
  max-width: 28rem;
  margin-inline: auto;
}
.research-carousel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: .45rem;
  overflow: hidden;
}
.research-carousel__slide[hidden] { display: none; }
.research-carousel__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.research-carousel__slide img,
.research-carousel__slide video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.research-carousel__slide img {
  cursor: zoom-in;
}
.research-carousel__enlarge {
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 2;
  padding: .28rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.research-carousel__nav {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.research-carousel__nav:hover {
  border-color: var(--navy);
  background: var(--navy-soft);
}
.research-carousel__status {
  margin: .55rem 0 0;
  text-align: center;
  font-size: .78rem;
}
.research-papers {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.research-papers h4 {
  margin: 0 0 .55rem;
  color: var(--ink);
  font-size: .92rem;
}
.research-papers ul {
  margin: 0;
  padding-left: 1.1rem;
}
.research-papers li {
  margin: .45rem 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.research-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 22, 26, .78);
}
.research-lightbox[hidden] { display: none; }
.research-lightbox__dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(96vw, 1100px);
  max-height: 90vh;
  padding: 1.1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.research-lightbox__close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.research-lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: calc(90vh - 2.2rem);
  overflow: auto;
}
.research-lightbox__stage img,
.research-lightbox__stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(90vh - 2.8rem);
  object-fit: contain;
}

@media (max-width: 680px) {
  .research-carousel { gap: .3rem; }
  .research-carousel__nav {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1.15rem;
  }
  .research-highlight__summary {
    padding: .85rem .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body { background: #fff; }
  .sidebar, .mobile-toggle, .overlay, .pub-tools { display: none !important; }
  .site-shell { display: block; width: auto; box-shadow: none; }
  .main-content { padding: 0; }
  a { color: #000; }
}
