:root {
  --ink: #000;
  --paper: #fff;
  --muted: #6b6b6b;
  --hairline: #d8d8d8;
  --soft: #f4f4f4;
  --blue: #00a9e8;
  --green: #90ca16;
  --red: #d71920;
  --yellow: #ffd43b;
  --page-pad: clamp(22px, 3.4vw, 52px);
  --max: 1040px;
  --display-weight: 800;
  --nav-weight: 800;
  --label-weight: 700;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.16;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: var(--header-height);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--page-pad);
  background: var(--paper);
}

.wordmark {
  font-size: 1.08rem;
  font-weight: var(--display-weight);
  line-height: 0.95;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: var(--nav-weight);
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .language-switch {
  color: var(--red);
}

.site-nav a:hover,
.site-footer a:hover,
.link-list a:hover,
.card-links a:hover {
  color: var(--red);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 136px minmax(0, 620px);
  gap: clamp(30px, 5vw, 54px);
  align-items: center;
  justify-content: start;
  padding: 54px var(--page-pad) 52px;
  background: var(--paper);
}

.hero::before {
  display: none;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 136px;
  height: 136px;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  width: min(620px, 100%);
}

.kicker,
.paper-year,
.work-card span {
  margin: 0;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: var(--label-weight);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: 2.05rem;
  font-weight: var(--display-weight);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-local-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--label-weight);
  line-height: 1.2;
}

.hero-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.38;
}

.hero-affiliation {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: var(--label-weight);
}

.hero-actions,
.card-links,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 18px;
}

.action,
.card-links a,
.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: var(--nav-weight);
  text-decoration: none;
}

.action-primary,
.link-list a:first-child {
  background: var(--ink);
  color: #fff;
}

.action:hover,
.card-links a:hover,
.link-list a:hover {
  border-color: var(--red);
}

.action-primary:hover,
.link-list a:first-child:hover {
  background: var(--red);
  color: #fff;
}

.split-section,
.rail-section,
.band-section,
.link-band,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--page-pad);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  gap: 54px;
}

.section-heading h2,
.section-title-row h2,
.link-band h2 {
  margin: 10px 0 0;
  font-size: 2.04rem;
  font-weight: var(--display-weight);
  line-height: 0.92;
  letter-spacing: 0;
}

.section-heading {
  align-self: start;
}

.bio-body p {
  margin: 0 0 20px;
  max-width: 860px;
  font-size: 1.04rem;
  line-height: 1.48;
}

.bio-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.bio-lists h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: var(--display-weight);
}

.bio-lists ul,
.bio-lists ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-lists li {
  font-size: 1rem;
  line-height: 1.3;
}

.bio-lists strong,
.bio-lists span {
  display: block;
}

.bio-lists span {
  color: var(--muted);
}

.research-band {
  max-width: var(--max);
  margin-top: 18px;
  background: var(--green);
  border-top: 0;
}

.research-band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.section-title-row p {
  max-width: 420px;
  margin: 0;
  font-size: 1.08rem;
  font-weight: var(--label-weight);
  line-height: 1.24;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  /* background: rgba(0, 0, 0, 0.38); */
  /* border: 1px solid rgba(0, 0, 0, 0.38); */
}

.theme-card {
  min-width: 0;
  padding: 22px;
  background: var(--green);
}

.theme-card h3,
.publication-card h3,
.work-card h3,
.compact-card h3,
.leadership-item h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: var(--display-weight);
  line-height: 0.96;
  letter-spacing: 0;
}

.theme-card p,
.publication-card p,
.work-card p,
.compact-card p,
.leadership-item p {
  margin: 14px 0 0;
  line-height: 1.38;
}

.rail-controls {
  display: flex;
  gap: 14px;
}

.rail-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 2rem;
  font-weight: var(--display-weight);
  line-height: 1;
  cursor: pointer;
}

.rail-controls button:hover,
.rail-controls button:focus-visible {
  color: var(--red);
}

.publication-rail {
  display: grid;
  grid-auto-columns: minmax(294px, 420px);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.publication-rail::-webkit-scrollbar {
  display: none;
}

.publication-card {
  min-width: 0;
  min-height: 390px;
  display: grid;
  align-content: start;
  padding: 24px;
  /* border: 2px solid var(--ink); */
  scroll-snap-align: start;
}

.publication-card.is-featured {
  background: #f4d526;
  /* background: #f4d526; */
}

.paper-year {
  margin-bottom: 18px;
}

.paper-authors,
.paper-venue {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: var(--label-weight);
}

.paper-venue {
  color: var(--ink);
}

.card-links {
  margin-top: 22px;
}

.card-links a {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.work-card a {
  display: block;
  text-decoration: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--soft);
  border: 0;
}

.work-card span {
  display: block;
  margin-top: 16px;
}

.work-card h3 {
  margin-top: 8px;
}

.link-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  background: var(--blue);
  border-top: 0;
  border-bottom: 0;
}

.link-band h2 {
  margin: 0;
}

.link-list {
  justify-content: flex-start;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(220px, 1fr) minmax(260px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 32px;
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: var(--label-weight);
}

.projects-section {
  border-top: 1px solid var(--hairline);
}

.compact-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.compact-card {
  padding: 20px;
  background: #f8f8f5;
  border: 1px solid var(--hairline);
}

.leadership-section {
  border-bottom: 0;
}

.leadership-list {
  display: grid;
  gap: 18px;
}

.leadership-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.leadership-item > p {
  margin-top: 0;
}

.leadership-item div p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: var(--label-weight);
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  font-size: 1.32rem;
  font-weight: var(--display-weight);
  line-height: 0.96;
}

.footer-brand span,
.mit-affiliation p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--label-weight);
  line-height: 1.24;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.92rem;
  line-height: 1;
}

.mit-affiliation {
  justify-self: end;
  max-width: 360px;
}

.mit-lockup {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.mit-lockup span {
  display: block;
  font-size: 1.05rem;
  font-weight: var(--display-weight);
  line-height: 0.98;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.has-scroll-animations [data-animate] {
  animation: section-rise 520ms ease both;
}

@keyframes section-rise {
  from {
    transform: translateY(12px);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-card,
  .publication-card,
  .work-card,
  .leadership-item {
    transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease;
  }

  .theme-card:hover,
  .publication-card:hover,
  .work-card:hover,
  .leadership-item:hover {
    transform: translateY(-3px);
  }

  .work-card img {
    transition: transform 620ms ease;
  }

  .work-card a:hover img {
    transform: scale(1.018);
  }
}

.not-found {
  min-height: calc(100svh - var(--header-height) - 110px);
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.not-found section {
  width: min(720px, 100%);
}

.not-found h1 {
  margin: 12px 0;
  font-size: 5.4rem;
  font-weight: var(--display-weight);
  line-height: 0.9;
}

@media (min-width: 981px) {
  .section-heading {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .wordmark {
    font-size: 1.08rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .section-heading h2,
  .section-title-row h2,
  .link-band h2 {
    font-size: 1.9rem;
  }

  .not-found h1 {
    font-size: 4rem;
  }

  .split-section,
  .link-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .leadership-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-links {
    justify-content: start;
  }

  .mit-affiliation {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-nav {
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .not-found h1 {
    font-size: 3.1rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-photo img {
    width: 92px;
    height: 92px;
  }

  .bio-lists,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-card {
    min-height: 430px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .hero {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-photo img {
    width: 88px;
    height: 88px;
  }
}
