:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1e2528;
  --muted: #697678;
  --line: #dfe5df;
  --accent: #65a99a;
  --accent-dark: #2f6259;
  --soft: #eef6f2;
  --warm: #e4a16f;
  --research: #65a99a;
  --research-soft: #eef8f5;
  --publications: #8b7ac8;
  --publications-soft: #f4f1fb;
  --tools: #dd9572;
  --tools-soft: #fff2ec;
  --cv: #6c9cc9;
  --cv-soft: #eef6fc;
  --cv-computational: #5f8fc1;
  --cv-medical: #5aa786;
  --shadow: 0 18px 45px rgba(29, 38, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.2em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(30, 37, 40, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: 700;
}

.brand small,
.eyebrow,
.pub-year {
  color: var(--muted);
  font-size: 0.82rem;
}

.brand small {
  display: block;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.tab,
.menu-toggle,
.button {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tab {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

.tab:hover,
.tab.is-active {
  background: var(--soft);
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  background: var(--surface);
  color: var(--ink);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 18px 80px;
}

.panel {
  display: none;
}

.panel:focus {
  outline: none;
}

.panel.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(245px, 0.34fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  min-height: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.08;
  font-weight: 500;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lede,
.page-header p {
  max-width: 760px;
  color: #465052;
  font-size: 1.08rem;
}

.collaboration-note {
  max-width: 680px;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.latest-news {
  max-width: 680px;
  margin-top: 2.4rem;
  border-left: 3px solid var(--warm);
  padding-left: 14px;
}

.latest-news strong {
  display: block;
  color: var(--warm);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.latest-news p {
  margin: 4px 0 0;
  color: #465052;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(30, 37, 40, 0.08);
}

.button.primary {
  background: var(--accent-dark);
  color: #ffffff;
}

.email-hover {
  position: relative;
  display: inline-grid;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.email-tooltip {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 20;
  width: 300px;
  max-width: min(320px, 82vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(29, 38, 41, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.email-tooltip::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}

.email-tooltip-row,
.email-tooltip small,
.copy-status {
  display: block;
}

.email-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-tooltip-row a {
  color: var(--accent-dark);
  font-weight: 700;
}

.copy-email {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
}

.copy-email span,
.copy-email::before {
  display: block;
  width: 11px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.copy-email::before {
  content: "";
  position: absolute;
  transform: translate(-3px, -3px);
  opacity: 0.55;
}

.copy-email span {
  transform: translate(2px, 2px);
  background: var(--surface);
}

.email-tooltip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.copy-status {
  min-height: 1em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.email-hover:hover .email-tooltip,
.email-hover:focus-within .email-tooltip,
.email-hover.is-open .email-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-summary {
  display: grid;
  gap: 8px;
  align-self: start;
}

.profile-identity {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-bottom: 8px;
  text-align: center;
}

.profile-identity h2,
.profile-identity p {
  margin: 0;
}

.profile-identity h2 {
  font-size: 1.05rem;
}

.profile-identity p {
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-avatar {
  width: clamp(140px, 40vw, 208px);
  aspect-ratio: 1;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  object-fit: cover;
  object-position: center;
}

.profile-box {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 5px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
}

.profile-box > h2,
.profile-box > p,
.profile-box > a {
  grid-column: 2;
}

.profile-box > h2 + p,
.profile-box > p + p {
  align-self: start;
}

.profile-box h2,
.profile-box p,
.profile-box a {
  margin: 0;
}

.profile-box h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.profile-box p {
  font-size: 0.82rem;
  line-height: 1.38;
}

.profile-box strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.profile-box p + p {
  margin-top: 4px;
}

.primary-box {
  border-color: var(--line);
}

.meta-box {
  min-height: 0;
  align-content: center;
}

.profile-icon {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--accent-dark);
}

.profile-favicon {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 23px;
  height: 23px;
  padding: 0;
  object-fit: contain;
}

.profile-icon::before,
.profile-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.profile-icon.position::before {
  width: 16px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  top: 6px;
}

.profile-icon.position::after {
  width: 8px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  top: 3px;
}

.profile-icon.expertise::before {
  width: 16px;
  height: 16px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.profile-icon.expertise::after {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.profile-icon.training::before {
  width: 18px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  transform: perspective(20px) rotateX(45deg) rotate(45deg);
  top: 4px;
  left: 1px;
}

.profile-icon.training::after {
  width: 10px;
  height: 5px;
  border-radius: 0 0 7px 7px;
  background: currentColor;
  top: 12px;
  left: 5px;
}

.profile-icon.location::before {
  width: 13px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  top: 3px;
}

.profile-icon.location::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  top: 7px;
}

.profile-icon.email::before {
  width: 17px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  top: 5px;
}

.profile-icon.email::after {
  width: 9px;
  height: 9px;
  border-left: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  border-bottom: 0;
  transform: rotate(45deg);
  top: 5px;
  left: 5px;
}

.profile-icon.linkedin::before {
  content: "in";
  position: static;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-icon.github::before {
  width: 15px;
  height: 15px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.profile-icon.github::after {
  width: 7px;
  height: 4px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(35deg);
  top: 12px;
}

.profile-icon.scholar::before {
  width: 17px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  top: 6px;
}

.profile-icon.scholar::after {
  width: 7px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  top: 8px;
}

.profile-links {
  display: grid;
  gap: 0;
}

.link-box,
.profile-links a {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.link-box {
  min-height: 44px;
  align-content: center;
}

.profile-links a:hover,
.link-box:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.profile-links .email-tooltip {
  left: 0;
}

.content-section,
.page-header {
  margin-top: 84px;
}

.content-section {
  margin-top: 42px;
}

.home-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.home-notes article {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
}

.home-notes h2 {
  margin-bottom: 6px;
}

.home-notes p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 560px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
}

.trajectory {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 14px 2px 8px;
}

.trajectory::before {
  content: "";
  position: absolute;
  top: 66px;
  left: 50px;
  right: 50px;
  border-top: 2px dashed var(--accent);
}

.trajectory-row {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 150px;
}

.trajectory-logos {
  display: grid;
  grid-template-columns: 96px 96px;
  gap: 8px;
  align-items: start;
  min-height: 104px;
}

.trajectory-logos:not(.two-logos) {
  grid-template-columns: 96px;
}

.trajectory-copy {
  padding: 0;
}

.trajectory-copy h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  line-height: 1.25;
}

.trajectory-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.node-circle {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(33, 76, 74, 0.1);
}

.branch-node .node-circle {
  border-color: var(--warm);
  color: #744b20;
}

.branch-logo {
  border-color: var(--warm);
  color: #744b20;
}

.logo-circle img {
  display: block;
  max-width: 72%;
  max-height: 66%;
  object-fit: contain;
}

.logo-wide img {
  max-width: 82%;
  max-height: 44%;
}

.logo-circle span {
  font-size: 0.78rem;
}

.page-header {
  margin-top: 22px;
  margin-bottom: 30px;
  border-left: 4px solid var(--page-color, var(--accent));
  padding-left: 18px;
}

.page-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--page-color, transparent);
  opacity: 0.82;
}

#medical-research {
  --page-color: var(--research);
  --page-soft: var(--research-soft);
}

#publications {
  --page-color: var(--publications);
  --page-soft: var(--publications-soft);
}

#tools {
  --page-color: var(--tools);
  --page-soft: var(--tools-soft);
}

#cv {
  --page-color: var(--cv);
  --page-soft: var(--cv-soft);
}

.card.compact {
  min-height: 220px;
}

.research-figure-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 18px;
  align-items: center;
}

.research-figure-card img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.tools-layout {
  display: grid;
  gap: 18px;
}

.tool-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.tool-feature-copy {
  display: grid;
  gap: 10px;
}

.tool-feature-copy h2,
.tool-feature-copy p {
  margin: 0;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-logo {
  display: block;
  width: auto;
  max-width: 138px;
  max-height: 58px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.recon-logo {
  max-width: 240px;
  max-height: 64px;
  margin-bottom: 4px;
}

.tool-figure {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.tool-links {
  margin-bottom: 0;
  font-weight: 700;
}

.method-list,
.publication-list,
.cv-layout {
  display: grid;
  gap: 16px;
}

.method-list article,
.publication,
.cv-layout section {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  scroll-margin-top: 92px;
}

#publications .publication {
  border-top-color: rgba(106, 90, 143, 0.26);
}

#cv .cv-layout section {
  border-top-color: rgba(79, 111, 154, 0.26);
  padding: 16px 0;
}

#cv .cv-layout h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.method-list article {
  display: grid;
  grid-template-columns: 56px 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.method-list span,
.pub-year {
  color: var(--page-color, var(--accent-dark));
  font-weight: 700;
}

.publication {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
}

.pub-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.venue-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.venue-badge.preprint {
  background: var(--publications-soft);
  color: var(--publications);
}

.venue-badge.journal {
  background: #edf5f2;
  color: var(--accent-dark);
}

.publication h2 {
  margin-bottom: 4px;
}

.cv-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.cv-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cv-legend span {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.cv-legend-computational {
  color: var(--cv-computational) !important;
}

.cv-legend-medical {
  color: var(--cv-medical) !important;
}

.cv-menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(79, 111, 154, 0.18);
}

.cv-menu a {
  border: 1px solid rgba(79, 111, 154, 0.22);
  border-radius: 6px;
  background: rgba(79, 111, 154, 0.05);
  padding: 4px 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.cv-menu a:hover {
  background: var(--cv-soft);
}

.cv-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
}

.cv-item + .cv-item {
  border-top: 1px solid var(--line);
}

.cv-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.cv-item.cv-computational h3 {
  color: var(--cv-computational);
}

.cv-item.cv-medical h3 {
  color: var(--cv-medical);
}

.cv-main {
  display: grid;
  gap: 1px;
}

.cv-main p {
  margin: 0;
}

.cv-place {
  color: #626c70;
  font-size: 0.84rem;
  font-weight: 600;
}

.cv-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.cv-logo {
  display: grid;
  width: 30px;
  height: 30px;
  align-self: start;
  justify-self: center;
  object-fit: contain;
}

.cv-logo.wide {
  max-width: 38px;
  max-height: 26px;
  width: 38px;
  height: 30px;
}

.cv-logo-placeholder {
  width: 30px;
  height: 30px;
}

.cv-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(79, 111, 154, 0.38);
  border-radius: 50%;
  background: #edf2f8;
  color: #4f6f9a;
}

.cv-icon::before,
.cv-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.cv-icon::before {
  width: 11px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.cv-icon::after {
  width: 13px;
  height: 1.5px;
  background: currentColor;
  top: 14px;
  left: 50%;
  border-radius: 999px;
  transform: translateX(-50%);
}

.cv-icon.medical {
  border-color: rgba(55, 109, 106, 0.38);
  background: #edf5f2;
  color: #376d6a;
}

.cv-logo.cv-icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.cv-icon.medical::before,
.cv-icon.medical::after {
  width: 11px;
  height: 2px;
  background: currentColor;
  border: 0;
  border-radius: 999px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.cv-icon.medical::after {
  transform: translateX(-50%) rotate(90deg);
}

.cv-item p {
  margin: 0;
}

.cv-meta {
  color: var(--page-color, var(--accent-dark));
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 10px;
  color: #3f4a4d;
  font-size: 0.9rem;
}

.cv-note {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-tabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-tabs.is-open {
    display: flex;
  }

  .nav-tabs .tab {
    width: 100%;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
    font-size: 1rem;
  }

  .hero,
  .grid.two,
  .grid.three,
  .method-list article,
  .research-figure-card,
  .tool-feature {
    grid-template-columns: 1fr;
  }

  .trajectory {
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 22px;
  }

  .trajectory::before {
    display: none;
  }

  .trajectory-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-width: 0;
  }

  .trajectory-logos,
  .trajectory-logos:not(.two-logos) {
    grid-template-columns: 72px;
    grid-auto-flow: column;
    grid-auto-columns: 72px;
    min-height: 0;
  }

  .trajectory-logos.two-logos {
    grid-template-columns: 72px 72px;
  }

  .node-circle {
    width: 72px;
    height: 72px;
    padding: 8px;
  }

  .home-notes {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .profile-summary {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  main {
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  .nav,
  main,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .site-footer,
  .publication {
    display: block;
  }

  .cv-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }

  .cv-date {
    grid-column: 2;
  }

  .pub-year {
    margin-bottom: 8px;
  }
}
