@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #fbfcfd;
  --surface: #f1f4f6;
  --surface-strong: #e7ebef;
  --ink: #172431;
  --muted: #5b6671;
  --line: #cfd6dc;
  --red: #a32332;
  --red-dark: #781824;
  --thu: #6f247a;
  --blue-gray: #354b5f;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:hover {
  color: var(--red);
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.75rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgb(207 214 220 / 88%);
  background: rgb(251 252 253 / 96%);
}

.wordmark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.3vw, 2.2rem);
}

.site-header nav a,
.edition-link {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.68rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="location"] {
  color: var(--ink);
}

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

.edition-link {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.menu-toggle {
  display: none;
}

.hero {
  width: min(100%, var(--content));
  min-height: min(47rem, calc(100svh - 6rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) 2.2rem;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(19rem, 0.62fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
  min-height: 34rem;
}

.hero-copy {
  display: flex;
  min-width: 0;
  max-width: 46rem;
  flex-direction: column;
  justify-content: center;
}

.tsinghua-identity {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  width: min(100%, 42rem);
  margin-bottom: 1.8rem;
  padding: 1.15rem 1.35rem;
  border-top: 3px solid var(--thu);
  border-bottom: 1px solid #d8d2da;
  background: #f1eef3;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-kicker span {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--red-dark);
  background: #fff8f8;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 5.5vw, 5.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.tsinghua-mark {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.tsinghua-details {
  min-width: 0;
}

.tsinghua-name {
  margin: 0;
  color: var(--thu);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 3.3vw, 3.2rem);
  font-weight: 650;
  line-height: 1;
}

.tsinghua-degree {
  margin: 0.55rem 0 0;
  color: var(--blue-gray);
  font-size: 0.98rem;
  font-weight: 700;
}

.tsinghua-institute {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-role {
  margin: 1.35rem 0 0;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-summary {
  max-width: 41rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-email {
  margin: 1.25rem 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-email span {
  margin-right: 0.55rem;
  color: var(--red-dark);
  font-weight: 700;
}

.hero-portrait {
  position: relative;
  align-self: stretch;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  background: var(--surface-strong);
}

.hero-portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  box-shadow: inset 0 0 0 1px rgb(23 36 49 / 10%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
  object-position: center 18%;
}

.hero-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 0.6rem 0.8rem;
  color: var(--paper);
  background: rgb(23 36 49 / 92%);
  font-family: var(--serif);
  font-size: 0.8rem;
  text-align: center;
}

.credential-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.credential-row div {
  min-width: 0;
  padding: 1.05rem 1.4rem 1.05rem 0;
}

.credential-row div + div {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.credential-row dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.credential-row dd {
  margin: 0.22rem 0 0;
  overflow-wrap: anywhere;
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile-overview {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: 3.6rem max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
  background: var(--thu);
  color: #fff;
}

.profile-overview-heading h2 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
}

.profile-overview-heading > p:last-child {
  max-width: 15rem;
  margin: 1rem 0 0;
  color: #e3d7e6;
  font-size: 0.8rem;
}

.profile-overview .section-label,
.profile-index {
  color: #dcc2e1;
}

.profile-dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 58%);
}

.profile-dimensions article {
  min-width: 0;
  padding: 1.25rem 1.35rem 0 0;
}

.profile-dimensions article + article {
  padding-left: 1.35rem;
  border-left: 1px solid rgb(255 255 255 / 28%);
}

.profile-index {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
}

.profile-dimensions h3 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.profile-dimensions article > p:last-child {
  margin: 0.75rem 0 0;
  color: #eee7f0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.front-honors {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 3.2rem max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.front-honors-heading {
  padding-right: 2.5rem;
}

.front-honors-heading h2 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
}

.front-honors-heading > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.front-honor-group {
  min-width: 0;
  padding: 0 2.3rem;
  border-left: 1px solid var(--line);
}

.front-honor-group:last-child {
  padding-right: 0;
}

.front-honor-group h3 {
  margin: 0 0 0.75rem;
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.front-honor-group ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.front-honor-group li {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.front-honor-group strong {
  color: var(--ink);
  font-weight: 650;
}

.front-honor-group span {
  color: var(--muted);
}

.section {
  padding: clamp(5rem, 8vw, 8rem) max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 3rem minmax(18rem, 1fr) minmax(18rem, 27rem);
  gap: 1.4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-number,
.section-label,
.institution-type,
.project-meta,
.leadership-year {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.section-number {
  color: var(--red);
}

.section-label,
.institution-type {
  color: var(--red-dark);
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.education {
  background: var(--surface);
}

.education-list {
  border-top: 2px solid var(--ink);
}

.education-list article {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2.4rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.education-time,
.experience-date {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 650;
}

.education-list h3,
.experience-title h3,
.leadership-grid h3,
.service-columns h3 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
}

.education-primary h3 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
}

.degree {
  margin: 0.65rem 0 0;
  color: var(--blue-gray);
  font-weight: 650;
}

.education-list article > div:last-child > p:last-of-type {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.fact-list,
.experience-main ul,
.plain-list {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.fact-list li,
.experience-main > ul li,
.plain-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.fact-list li::before,
.experience-main > ul li::before,
.plain-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--red);
  content: "·";
}

.experience-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.experience-list > li {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2.4rem;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--line);
}

.experience-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
  gap: 1.5rem;
  align-items: baseline;
}

.experience-title p {
  margin: 0;
  color: var(--blue-gray);
  font-size: 0.88rem;
  font-weight: 650;
  text-align: right;
}

.experience-main > ul {
  max-width: 58rem;
}

.experience-main > ul li + li,
.plain-list li + li {
  margin-top: 0.55rem;
}

.capability-line {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2.4rem;
  padding-top: 1.4rem;
}

.capability-line > p {
  margin: 0;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.capability-line ul,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability-line li,
.project-tags li {
  color: var(--muted);
  font-size: 0.82rem;
}

.capability-line li::before,
.project-tags li::before {
  margin-right: 0.45rem;
  color: var(--red);
  content: "/";
}

.projects {
  color: #f7f8f9;
  background: var(--ink);
}

.projects .section-heading > p:last-child,
.projects .section-label {
  color: #adb8c1;
}

.projects .section-number,
.projects .project-index,
.projects .project-meta {
  color: #e57480;
}

.project-list {
  border-top: 1px solid #66727c;
}

.project {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: clamp(3.2rem, 5vw, 5rem) 0;
  border-bottom: 1px solid #44515c;
}

.project:last-child {
  border-bottom: 0;
}

.project-index {
  padding-top: 0.35rem;
  font-family: var(--serif);
  font-size: 2.2rem;
}

.project-meta {
  text-transform: none;
}

.project h3 {
  max-width: 34ch;
  margin: 0.65rem 0 1.5rem;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.25;
}

.project-content > p:not(.project-meta) {
  max-width: 58rem;
  margin: 0;
  color: #c8d0d6;
}

.project-content > p:not(.project-meta) + p {
  margin-top: 0.9rem;
}

.project-tags {
  margin-top: 1.4rem;
}

.project-tags li {
  color: #aeb8c0;
}

.service {
  background: var(--surface);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.leadership-grid article {
  min-width: 0;
  padding: 2.2rem 2.3rem 2.5rem 0;
}

.leadership-grid article + article {
  padding-left: 2.3rem;
  border-left: 1px solid var(--line);
}

.leadership-year {
  color: var(--red-dark);
}

.leadership-grid p:last-child,
.service-columns > article > p:not(.section-label) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 4.5rem;
  border-top: 1px solid var(--ink);
}

.service-columns > article {
  min-width: 0;
  padding: 2.5rem 3rem 0 0;
}

.service-columns > article + article {
  padding-right: 0;
  padding-left: 3rem;
  border-left: 1px solid var(--line);
}

details {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--blue-gray);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  flex: none;
  color: var(--red);
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

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

.index-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.index-list time {
  color: var(--red-dark);
  white-space: nowrap;
}

.honors {
  background: var(--paper);
}

.honor-featured {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.honor-featured > div {
  min-width: 0;
  padding: 1.8rem 1.6rem 2rem 0;
}

.honor-featured > div + div {
  padding-left: 1.6rem;
  border-left: 1px solid var(--line);
}

.honor-featured p,
.honor-featured time {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.honor-featured strong {
  display: block;
  min-height: 3.5em;
  margin: 0.45rem 0 0.8rem;
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.35;
}

.honor-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3.5rem;
}

.honor-index details {
  margin: 0;
}

.honor-index summary span {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.honor-index summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  color: var(--paper);
  background: var(--red-dark);
}

.contact .section-label {
  color: #f4b8be;
}

.contact h2 {
  max-width: 18ch;
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  font-weight: 600;
  line-height: 1.25;
}

.contact-copy {
  display: grid;
  border-top: 1px solid rgb(255 255 255 / 50%);
}

.contact-copy p {
  margin: 1.2rem 0 1.8rem;
  color: #ead8da;
  font-size: 0.88rem;
}

.contact-copy a {
  min-width: 0;
  padding: 0.9rem 0;
  overflow-wrap: anywhere;
  border-top: 1px solid rgb(255 255 255 / 28%);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-copy a:hover {
  color: #ffdce0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.45rem var(--gutter);
  color: #aeb8c0;
  background: var(--ink);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 1.5rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.7fr);
    gap: 2.5rem;
  }

  .tsinghua-identity {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .tsinghua-mark {
    width: 3.7rem;
    height: 3.7rem;
  }

  .tsinghua-name {
    font-size: 2.35rem;
  }

  .section-heading {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .section-heading > p:last-child {
    grid-column: 2;
    max-width: 38rem;
  }

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

  .honor-featured > div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .honor-featured > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .honor-featured > div:nth-child(5) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .front-honors {
    grid-template-columns: 1fr 1fr;
  }

  .front-honors-heading {
    grid-column: 1 / -1;
    padding: 0 0 1.8rem;
  }

  .front-honors-heading > p:last-child {
    max-width: 30rem;
  }

  .front-competition {
    padding-left: 0;
    border-left: 0;
  }

  .profile-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-overview-heading > p:last-child {
    max-width: 30rem;
  }
}

@media (max-width: 800px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 4.2rem;
  }

  .js .menu-toggle {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0.65rem;
    place-content: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    justify-self: start;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(0.175rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-0.175rem) rotate(-45deg);
  }

  .site-header nav {
    justify-content: flex-end;
  }

  .js .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1.2rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .js .site-header nav[data-open] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem 1rem;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 27rem;
  }

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

  .credential-row div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .credential-row div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .education-list article,
  .experience-list > li,
  .capability-line {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1.7rem;
  }

  .experience-title {
    display: block;
  }

  .experience-title p {
    margin-top: 0.45rem;
    text-align: left;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid article,
  .leadership-grid article + article {
    padding: 2rem 0;
    border-left: 0;
  }

  .leadership-grid article + article {
    border-top: 1px solid var(--line);
  }

  .service-columns,
  .honor-index,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-columns > article,
  .service-columns > article + article {
    padding: 2.5rem 0 0;
    border-left: 0;
  }

  .service-columns > article + article {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
  }

  .front-honor-group li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

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

  .profile-dimensions article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgb(255 255 255 / 28%);
    border-left: 0;
  }

  .profile-dimensions article:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 28%);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.96rem;
  }

  .site-header {
    grid-template-columns: 2.55rem 1fr auto;
  }

  .wordmark {
    display: none;
  }

  .edition-link {
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: 2.2rem;
  }

  .hero-body,
  .hero-copy {
    display: contents;
  }

  .tsinghua-identity {
    order: 1;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 0;
    padding: 0.9rem 1rem;
  }

  .hero-kicker {
    order: 2;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
  }

  .hero h1 {
    order: 3;
    font-size: 3.8rem;
  }

  .tsinghua-mark {
    width: 3.2rem;
    height: 3.2rem;
  }

  .tsinghua-name {
    font-size: 2.2rem;
  }

  .tsinghua-degree {
    font-size: 0.82rem;
  }

  .tsinghua-institute {
    font-size: 0.7rem;
  }

  .hero-role {
    order: 4;
  }

  .hero-summary {
    order: 6;
  }

  .hero-email {
    order: 7;
    max-width: 100%;
  }

  .hero-portrait {
    order: 5;
    width: 100%;
    min-height: 0;
    margin-top: 0.5rem;
    aspect-ratio: 4 / 3;
  }

  .hero-portrait img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .credential-row {
    order: 8;
    margin-top: 0.5rem;
  }

  .credential-row div,
  .credential-row div + div {
    padding: 0.9rem 0.8rem 0.9rem 0;
  }

  .credential-row div:nth-child(even) {
    padding-left: 0.8rem;
  }

  .credential-row dd {
    font-size: 1.08rem;
  }

  .section-heading {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
  }

  .section-heading > p:last-child {
    grid-column: 1 / -1;
  }

  .front-honors {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .profile-overview {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .profile-dimensions {
    grid-template-columns: 1fr;
  }

  .profile-dimensions article,
  .profile-dimensions article + article,
  .profile-dimensions article:nth-child(3) {
    padding: 1.25rem 0;
    border-top: 1px solid rgb(255 255 255 / 28%);
    border-left: 0;
  }

  .front-honor-group,
  .front-honor-group:last-child {
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .front-honor-group + .front-honor-group {
    margin-top: 1.6rem;
  }

  .education-list article,
  .experience-list > li,
  .capability-line {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .project {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 1rem;
  }

  .project-index {
    font-size: 1.25rem;
  }

  .project h3 {
    font-size: 1.7rem;
  }

  .honor-featured {
    grid-template-columns: 1fr;
  }

  .honor-featured > div,
  .honor-featured > div + div,
  .honor-featured > div:nth-child(3) {
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .honor-featured > div:first-child {
    border-top: 0;
  }

  .honor-featured strong {
    min-height: 0;
  }

  .honor-index summary {
    align-items: flex-start;
  }

  .honor-index summary small {
    display: none;
  }

  .index-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
