:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171a1d;
  --muted: #5f6871;
  --accent: #315ea8;
  --accent-dark: #1f427d;
  --line: #dce1e6;
  --line-strong: #aeb7c0;
  --fine: #e9edf0;
  --soft: #f5f7f9;
  --header: #fffffff2;
  --wide: min(calc(100vw - 48px), 1180px);
  --page: min(calc(100vw - 48px), 1080px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 118px;
  height: 260px;
  border: 1px dashed color-mix(in srgb, var(--accent) 18%, transparent);
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

body::before {
  top: 120px;
  left: -60px;
}

body::after {
  right: -66px;
  bottom: 72px;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

strong {
  font-weight: 650;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 15px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: url("assets/yufan-chen-cvhci.jpg") center / cover no-repeat;
  content: "";
}

.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 0.92rem;
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav a {
  position: relative;
  padding: 2px 0 7px;
  color: var(--ink);
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.layout,
.site-footer {
  width: var(--wide);
  margin: 0 auto;
}

.home-layout {
  padding: 54px 0 80px;
}

.academic-intro {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px 60px;
  align-items: center;
  padding: 0 0 48px;
}

.profile-photo {
  width: 220px;
  margin: 0;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.intro-content {
  max-width: 780px;
}

.intro-content h1 {
  margin: 0 0 12px;
  font-size: 3.25rem;
  font-weight: 680;
  line-height: 1.08;
}

.intro-content p {
  margin: 0;
}

.degree {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
}

.appointment {
  margin-top: 3px !important;
  color: var(--muted);
  font-size: 1.04rem;
}

.research-summary {
  max-width: 750px;
  margin-top: 28px !important;
  font-size: 1.06rem;
  line-height: 1.65;
}

.guidance {
  max-width: 750px;
  margin-top: 18px !important;
  color: var(--muted);
  line-height: 1.65;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}

.profile-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
  padding-top: 8px;
}

.profile-facts section {
  min-width: 0;
}

.profile-facts h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.profile-facts h2::before {
  width: 6px;
  height: 6px;
  background: var(--accent);
  content: "";
}

.profile-facts ol {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line-strong);
  list-style: none;
}

.profile-facts li {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 0 0 17px;
}

.profile-facts li:last-child {
  padding-bottom: 0;
}

.profile-facts li::before {
  position: absolute;
  top: 8px;
  left: -24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.profile-facts strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-facts span,
.profile-facts time {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-facts time {
  margin-top: 2px;
  color: var(--accent);
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  gap: 64px;
  padding: 42px 0 0;
  border-top: 1px solid var(--line);
}

.compact-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 43px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.compact-section-head h2 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 650;
  line-height: 1.3;
}

.compact-section-head a {
  font-size: 0.84rem;
  text-decoration: none;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--fine);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-list time {
  display: inline-block;
  width: max-content;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fine);
}

.home-publication h3 {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-publication p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.home-publication .publication-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.publication-meta a {
  font-weight: 600;
  text-decoration: none;
}

.page-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 58px 0 84px;
}

.page-title {
  max-width: 880px;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.page-title .section-label {
  display: none;
}

.page-title h1 {
  margin: 0 0 19px;
  font-size: 2.65rem;
  font-weight: 660;
  line-height: 1.18;
}

.page-title > p:last-child {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-grid {
  display: grid;
  gap: 0 40px;
}

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

.theme-grid article {
  position: relative;
  padding: 28px 0 32px 42px;
  border-top: 1px solid var(--line-strong);
}

.theme-grid article > span {
  position: absolute;
  top: 31px;
  left: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.theme-grid h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.35;
}

.theme-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.theme-grid a {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: 52px;
  margin-top: 50px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-section h2 {
  margin: 5px 0 0;
  font-size: 1.45rem;
  line-height: 1.35;
}

.detail-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.activity-page-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.activity-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.5fr);
  gap: 72px;
  align-items: start;
}

.activity-page .page-title {
  max-width: none;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
}

.activity-page .page-title .section-label {
  display: block;
  margin-bottom: 11px;
}

.activity-page .page-title h1 {
  max-width: 310px;
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.18;
}

.teaching-list {
  display: grid;
}

.teaching-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 28px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--fine);
}

.teaching-list article + article {
  padding-top: 22px;
}

.teaching-list article:last-child {
  padding-bottom: 22px;
  border-bottom: 0;
}

.teaching-list h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.4;
}

.teaching-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.teaching-list time {
  padding-top: 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-list {
  margin: 0;
}

.service-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.56fr) minmax(0, 1fr);
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--fine);
}

.service-list > div + div {
  padding-top: 22px;
}

.service-list > div:last-child {
  padding-bottom: 22px;
  border-bottom: 0;
}

.service-list dt {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: end;
  margin: 48px 0 0;
}

.page-visual img {
  display: block;
  width: 100%;
  max-height: 520px;
  padding: 18px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f4f5f7;
}

.page-visual figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.page-visual figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 650;
}

.publication-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: end;
  margin: 0 0 40px;
}

.filter-set {
  display: grid;
  gap: 7px;
}

.filter-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0;
}

.toolbar {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.filter-button {
  min-height: 36px;
  padding: 7px 15px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.76em;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.filter-button:hover span,
.filter-button.is-active span {
  color: #ffffff;
}

.filter-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.publication-group {
  margin-top: 56px;
}

.publication-empty + .publication-group {
  margin-top: 0;
}

.publication-empty {
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.publication-group-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.3;
}

.publication-group-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.publication-year {
  margin-top: 38px;
}

.publication-group .publication-year:first-of-type {
  margin-top: 26px;
}

.publication-group.is-empty,
.publication-year.is-empty,
.publication-row.is-hidden {
  display: none;
}

.publication-year > h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.3;
}

.publication-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 28px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--fine);
}

.publication-row h3 {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.publication-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.publication-row .venue {
  width: max-content;
  justify-self: end;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.pub-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.grant-list {
  display: grid;
}

.grant-project {
  padding: 38px 0 44px;
  border-top: 1px solid var(--line-strong);
}

.grant-project:first-child {
  padding-top: 0;
  border-top: 0;
}

.grant-heading {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  margin-bottom: 24px;
}

.grant-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.35;
}

.grant-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.grant-subtitle a {
  font-weight: 600;
  text-decoration: none;
}

.grant-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin: 0 0 22px 183px;
}

.grant-meta > div {
  padding: 13px 0;
  border-top: 1px solid var(--fine);
}

.grant-meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.grant-meta dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.grant-project > p,
.grant-project > .pub-links,
.project-visual-grid,
.project-pillars {
  margin-left: 183px;
}

.grant-project > p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.project-pillars {
  max-width: 780px;
  margin-top: 26px;
  margin-bottom: 0;
  padding: 0;
  border-top: 1px solid var(--fine);
  list-style: none;
}

.project-pillars li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--fine);
}

.project-pillars span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.project-pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-visual-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  margin-top: 28px;
}

.project-figure {
  margin: 0;
}

.project-figure img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: transparent;
}

.project-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.timeline {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 40px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.timeline:first-of-type {
  margin-top: 0;
}

.timeline > h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--fine);
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline time {
  color: var(--muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 900px) {
  .activity-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .activity-page .page-title h1 {
    max-width: none;
  }

  .academic-intro {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
    padding-right: 0;
    padding-left: 0;
  }

  .profile-photo {
    width: 220px;
  }

  .home-overview {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-right: 0;
    padding-left: 0;
  }

  .profile-facts {
    gap: 32px;
  }

  .grant-meta,
  .grant-project > p,
  .grant-project > .pub-links,
  .project-visual-grid,
  .project-pillars {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --wide: min(calc(100vw - 28px), 1180px);
    --page: min(calc(100vw - 28px), 1080px);
  }

  body {
    font-size: 15.5px;
  }

  .site-header {
    display: flex;
    gap: 18px;
    padding: 11px 14px;
    overflow: hidden;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 0.92rem;
  }

  .brand::before {
    width: 28px;
    height: 28px;
  }

  .nav {
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    font-size: 0.76rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 5px 0 7px;
  }

  .home-layout {
    padding: 32px 0 58px;
  }

  .academic-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 34px;
  }

  .profile-photo {
    width: 168px;
  }

  .intro-content h1 {
    font-size: 2.5rem;
  }

  .degree,
  .appointment {
    font-size: 1rem;
  }

  .research-summary {
    margin-top: 22px !important;
    font-size: 1rem;
  }

  .guidance {
    margin-top: 15px !important;
  }

  .contact-list {
    gap: 7px 17px;
    margin-top: 20px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 6px;
  }

  .home-overview {
    padding-top: 32px;
  }

  .home-publication h3 {
    font-size: 0.94rem;
  }

  .page-shell {
    padding: 40px 0 60px;
  }

  .page-title {
    margin-bottom: 34px;
    padding-bottom: 28px;
  }

  .page-title h1 {
    font-size: 2.1rem;
  }

  .activity-page .page-title h1 {
    font-size: 1.8rem;
  }

  .teaching-list article,
  .service-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .teaching-list time {
    padding-top: 0;
  }

  .theme-grid.large,
  .detail-section,
  .page-visual,
  .grant-heading,
  .grant-meta,
  .project-visual-grid,
  .project-pillars li,
  .timeline {
    grid-template-columns: 1fr;
  }

  .theme-grid article {
    padding-left: 36px;
  }

  .detail-section {
    gap: 18px;
    margin-top: 36px;
    padding: 26px 0;
  }

  .page-visual {
    gap: 16px;
    margin-top: 34px;
  }

  .publication-filters {
    display: grid;
    gap: 16px;
    width: 100%;
    margin-bottom: 32px;
  }

  .filter-set,
  .toolbar {
    width: 100%;
  }

  .toolbar {
    display: flex;
  }

  .filter-button {
    flex: 1 1 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.78rem;
  }

  .publication-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-row .venue {
    justify-self: start;
    text-align: left;
  }

  .grant-heading {
    gap: 6px;
  }

  .grant-heading h2 {
    font-size: 1.35rem;
  }

  .grant-meta {
    gap: 0;
  }

  .project-pillars li {
    gap: 5px;
  }

  .project-figure img {
    height: auto;
    max-height: 290px;
  }

  .timeline {
    gap: 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

  .nav a::after {
    transition: none;
  }

  .back-to-top {
    transition: none;
  }
}
