@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #52606d;
  --faint: #627480;
  --line: #d8e0e8;
  --accent: #176b78;
  --accent-soft: #eaf6f7;
  --max-width: 1060px;
  --content-width: var(--max-width);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #151c22;
  --text: #f1f5f7;
  --muted: #aebbc4;
  --faint: #7f919d;
  --line: #2d3a43;
  --accent: #66c2c8;
  --accent-soft: #162b30;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

h1, h2, h3, p { overflow-wrap: break-word; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }
.brand strong {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand span { color: var(--faint); font-size: 0.78rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--text);
  color: var(--text);
}

.header-actions { display: flex; align-items: center; }

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover,
.nav-toggle:hover { background: var(--accent-soft); color: var(--text); }
.nav-toggle { display: none; }
.nav-toggle svg, .theme-toggle svg, .meta-line svg { width: 18px; height: 18px; stroke: currentColor; }

.page-shell { padding: 4.5rem 0 5rem; }

.page-header,
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.page-title { max-width: 720px; }

.eyebrow,
.mini-label {
  margin: 0 0 0.65rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-title h1,
.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.page-title h1 { font-size: clamp(1.7rem, 2.5vw, 2.1rem); }
.page-title .lead { margin: 1rem 0 0; max-width: 66ch; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary { border-color: var(--line); background: transparent; color: var(--text); }
.button:hover { text-decoration: none; opacity: 0.78; }

/* Homepage */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(3rem, 8vw, 6rem);
  padding: 5.5rem 0 4rem;
}

.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 5.8rem); }

.aka-inline {
  display: inline;
  margin-left: 0.45rem;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero .subtitle { margin: 0.4rem 0 0; color: var(--text); font-size: 1.05rem; }
.affiliation-links a { display: block; margin-top: 0.2rem; text-decoration: none; }
.hero p.lead { margin: 0.4rem 0 0; color: var(--muted); max-width: 68ch; }

.meta-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-line a { text-decoration: none; }

.panel, .card, .list-card, .timeline-item, .callout { background: transparent; }
.profile-panel { padding: 0; }
.profile-head { display: flex; flex-direction: column; gap: 1rem; }
.photo-frame { width: 100%; margin: 0; }
.profile-photo { width: 100%; border-radius: 2px; filter: saturate(0.98); }

.tag-list, .timeline-tags, .item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.tag {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Homepage overview */
.home-main {
  padding-bottom: 5rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 300px);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: 4rem 0 4.5rem;
}

.home-identity {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.home-name-block h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.alternate-name {
  color: var(--faint);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.alternate-name-text { font-size: 1.1em; }

.home-position {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.home-position p { margin: 0; }
.home-role { color: var(--text); font-size: 1rem; font-weight: 500; }
.home-position a { text-decoration: none; }
.home-location { padding-top: 0.45rem; color: var(--muted); font-size: 0.84rem; }

.home-research {
  max-width: 68ch;
  padding-top: 0.15rem;
}

.home-research p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.home-research strong { color: var(--text); font-weight: 600; }

.home-research .home-funding-note {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
}

.home-funding-note a { font-weight: 500; }

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-action:hover {
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.home-profile {
  width: clamp(190px, 24vw, 300px);
  max-width: 100%;
  padding-top: 0.15rem;
  justify-self: end;
}

.home-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.02;
  border-radius: 2px;
  object-fit: cover;
  filter: saturate(0.98);
}
.home-themes { margin-top: 1.5rem; }

.home-themes .mini-label { font-size: 0.86rem; }

.home-themes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-themes li {
  padding: 0.36rem 0.64rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.home-opportunities h2,
.news-heading h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-opportunities {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.home-opportunities > p:not(.mini-label) {
  margin: 0.8rem 0 1.1rem;
  color: var(--muted);
}

.opportunity-opening {
  margin: 1.4rem 0 1.25rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.opening-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.opportunity-opening h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.opportunity-opening > p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-news {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--line);
}

.news-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--text);
}

.news-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.news-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.15rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding-top: 0.12rem;
}

.news-meta time {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.news-category {
  display: inline-flex;
  padding: 0.16rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.news-item-funding .news-category {
  border-color: var(--accent);
  color: var(--accent);
}

.news-content { min-width: 0; }

.news-content h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

.news-content p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.news-content p a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

.news-content p a:hover { color: var(--accent); }

.news-content .news-supporting {
  color: var(--faint);
  font-size: 0.76rem;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
}

.news-actions a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
}

.news-actions a:hover { color: var(--accent); }

.project-item[id] { scroll-margin-top: 6rem; }

/* Publications */
.publications-header .page-title { max-width: 730px; }
.publications-header {
  padding-bottom: 0;
  border-bottom: 0;
}
.publications-header h1 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.year-block { max-width: var(--content-width); }

/* Service */
.service-header {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-header h1 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.service-list {
  max-width: var(--content-width);
}

.service-group {
  padding: 2rem 0 2.6rem;
}

.service-group + .service-group {
  margin-top: 0.4rem;
}

.service-group h2 {
  margin: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.7fr) 90px;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.service-row p { margin: 0; }
.service-role { color: var(--text); font-weight: 500; }
.service-venue { color: var(--muted); }
.service-year { color: var(--faint); font-size: 0.78rem; text-align: right; white-space: nowrap; }

/* Teaching */
.teaching-header {
  padding-bottom: 0;
  border-bottom: 0;
}

.teaching-header h1 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.teaching-list {
  max-width: var(--content-width);
  border-top: 1px solid var(--text);
}

.teaching-year {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.teaching-year h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.teaching-year ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
}

.teaching-year li {
  padding-left: 0.15rem;
  color: var(--text);
}

.teaching-term {
  display: inline-block;
  width: 8rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.teaching-course { font-weight: 500; }

.teaching-role {
  color: var(--muted);
  font-size: 0.88rem;
}

.teaching-role::before {
  content: " · ";
  color: var(--faint);
}
.year-block + .year-block { margin-top: 3.75rem; }

.year-block h2 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--text);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.year-block .stack { display: block; }

.pub-item {
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.pub-item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

.pub-meta,
.pub-venue,
.small-muted {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pub-venue { color: var(--text); font-style: normal; }
.pub-item > .tag { display: none; }
.inline-actions { display: flex; gap: 0.8rem; margin-top: 0.35rem; }
.inline-actions a { font-size: 0.8rem; font-weight: 600; text-decoration: none; }

.publication-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.publication-action,
.bib-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.publication-action:hover,
.publication-action[aria-expanded="true"],
.bib-copy:hover {
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.bib-panel {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.bib-panel[hidden] { display: none; }

.bib-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0.35rem 0.55rem 0.35rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bib-copy {
  min-width: auto;
  height: 26px;
  border-color: transparent;
  letter-spacing: 0;
  text-transform: none;
}

.bib-panel pre {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre;
}

/* Projects */
.projects-header {
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.projects-header h1 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.projects-section {
  max-width: var(--content-width);
}

.projects-section + .projects-section {
  margin-top: 4rem;
}

.projects-section > h2 {
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-item {
  padding: 1.8rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.project-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.42;
}

.project-short-name { color: var(--text); }

.project-meta,
.project-description,
.project-links-placeholder {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-meta { color: var(--text); font-weight: 500; }
.project-description {
  margin-top: 0.7rem;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.project-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.8rem;
}

.project-themes span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
}

.project-links-placeholder {
  margin-top: 0.7rem;
  font-size: 0.76rem;
}

.project-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.placeholder {
  color: var(--faint);
  font-style: italic;
}

/* Supporting pages */
.grid-3, .grid-2, .project-grid, .student-grid, .timeline {
  display: grid;
  gap: 0;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-2, .project-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.student-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

.timeline-item,
.list-card,
.student-card {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item h3, .list-card h3, .card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

.timeline-item p, .list-card p { margin: 0; color: var(--muted); }
.project-scheme { color: var(--muted); font-size: 0.86rem; }
.list-clean { margin: 0; padding: 0; list-style: none; }
.list-clean li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.students-list { display: grid; gap: 0; }
.student-card strong { display: block; font-family: var(--serif); font-weight: 600; }

.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); }
.footer-row { min-height: 76px; display: flex; align-items: center; color: var(--faint); font-size: 0.78rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .main-nav { display: none; width: 100%; order: 4; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header-row { flex-wrap: wrap; padding: 0.6rem 0; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 2rem), var(--max-width)); }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
  .page-shell { padding: 3rem 0 4rem; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 1.4rem; margin-bottom: 2.5rem; }
  .page-title h1 { font-size: 1.75rem; }
  .publications-header h1 { font-size: 1.7rem; }
  .projects-header h1 { font-size: 1.7rem; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 0 2rem; }
  .hero h1 { font-size: 3.4rem; }
  .home-hero {
    grid-template-columns: clamp(112px, 34vw, 150px) minmax(0, 1fr);
    grid-template-areas:
      "photo name"
      "photo position"
      "research research"
      "actions actions"
      "themes themes";
    column-gap: 1.25rem;
    row-gap: 1.25rem;
    padding: 2.25rem 0 3.5rem;
  }
  .home-identity { display: contents; }
  .home-name-block { grid-area: name; align-self: end; }
  .home-name-block h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 1.75rem;
  }
  .alternate-name { font-size: 0.9rem; line-height: 1.35; white-space: normal; }
  .home-position { grid-area: position; align-self: start; }
  .home-research { grid-area: research; }
  .profile-actions { grid-area: actions; }
  .home-profile { display: contents; }
  .home-photo {
    grid-area: photo;
    width: 100%;
    align-self: center;
  }
  .home-themes { grid-area: themes; margin-top: 0.25rem; }
  .home-research p { text-align: left; }
  .news-heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.65rem; padding: 1.15rem 0 1.25rem; }
  .news-meta { flex-direction: row; align-items: center; gap: 0.65rem; padding-top: 0; }
  .profile-panel { max-width: 420px; }
  .grid-3, .grid-2, .project-grid, .student-grid { grid-template-columns: 1fr; gap: 2rem; }
  .year-block + .year-block { margin-top: 3rem; }
  .pub-item h3 { font-size: 1rem; }
  .project-item h3 { font-size: 1.08rem; }
  .project-description { text-align: left; }
  .service-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .service-year { padding-top: 0.15rem; text-align: left; }
  .teaching-year { grid-template-columns: 1fr; gap: 0.85rem; }
  .teaching-term { display: block; width: auto; margin-bottom: 0.12rem; }
  .teaching-role { display: block; margin-top: 0.12rem; }
  .teaching-role::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
