:root {
  --paper: #fcfcf9;
  --paper-deep: #eeebe2;
  --ink: #18201e;
  --muted: #66706c;
  --line: #d8d6cd;
  --accent: #176b58;
  --accent-soft: #d8e8e0;
  --white: #fff;
  --shadow: 0 24px 70px rgb(20 34 30 / 12%);
  --radius: 24px;
  --container: 980px;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    "Nunito Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}


* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.65;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body,
.site-header,
.project-card,
.publication-item {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.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;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav-wrap,
.site-nav,
.wordmark,
.footer-inner {
  display: flex;
  align-items: center;
}
.nav-wrap {
  min-height: 78px;
  justify-content: space-between;
}
.wordmark {
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark-logo {
  display: block;
  width: auto;
  height: 31px;
  object-fit: contain;
}
.site-nav {
  gap: 28px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.menu-toggle {
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.language-switcher {
  position: relative;
}
.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker {
  display: none;
}
.language-switcher[open] summary,
.language-switcher summary:hover {
  background: var(--accent-soft);
}
.language-switcher[open] summary span {
  transform: rotate(180deg);
}
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.site-nav .language-options a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.site-nav .language-options a:hover,
.site-nav .language-options a[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.language-switcher summary:focus-visible,
.language-options a:focus-visible,
.coming-soon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.language-coming-soon {
  display: grid;
  flex: 1;
  padding-block: clamp(70px, 12vw, 140px);
  place-items: center;
  text-align: center;
}
.language-coming-soon section {
  max-width: 600px;
}
.coming-soon-intro {
  display: grid;
  width: 193px;
  max-width: 100%;
  margin-inline: auto;
}
.coming-soon-symbol {
  display: block;
  width: 0;
  min-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
.language-coming-soon h1 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.4;
}
html[lang="zh"] .language-coming-soon h1 {
  font-family: "LXGW WenKai TC", "Kaiti SC", KaiTi, serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}
html[lang="ja"] .language-coming-soon h1 {
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.coming-soon-message {
  max-width: 32em;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.9;
  text-wrap: pretty;
}
.coming-soon-message span {
  display: block;
}
.coming-soon-message span + span {
  margin-top: 8px;
}
.coming-soon-link {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: 0.8rem;
  text-decoration: none;
}
.coming-soon-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(48px, 8vw, 100px);
  min-height: calc(100vh - 78px);
  padding-block: clamp(70px, 10vw, 130px);
  align-items: center;
}
.single-page-main {
  display: grid;
  flex: 1;
}
.page-tinted {
  background: var(--paper-deep);
}
.page-section {
  width: min(calc(100% - 40px), var(--container));
  padding-block: clamp(70px, 9vw, 120px);
}
.page-heading {
  max-width: 800px;
  margin-bottom: clamp(46px, 7vw, 80px);
}
.page-heading-row {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 60px;
  align-items: end;
}
.page-heading h1 {
  margin-bottom: 24px;
}
.page-heading-row h1 {
  margin-bottom: 0;
}
.page-heading > p:last-child,
.page-heading-row > p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.page-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.work-hero {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: 16px;
}
.work-hero,
.work-section > .container,
.life-page {
  --container: 900px;
}
.work-hero h1 {
  margin-bottom: 28px;
}
.image-title {
  max-width: none;
  line-height: 0;
}
.title-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.title-image-work {
  width: min(85%, 890px);
}
.title-image-life {
  width: min(85%, 440px);
}
.life-page {
  padding-top: clamp(46px, 6vw, 90px);
}
.work-hero > p:last-child {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.life-page .page-heading,
.life-page .page-heading > p:last-child {
  max-width: none;
}
.work-section {
  padding-block: clamp(80px, 10vw, 130px);
}
#publications.work-section {
  padding-top: 20px;
  padding-bottom: 24px;
}
#projects.work-section {
  padding-top: 28px;
}
#skills.work-section {
  padding-block: 24px 28px;
}
.skills-content {
  color: var(--muted);
  font-size: 0.9rem;
}
.skills-content p {
  margin-bottom: 8px;
}
.skills-content strong {
  color: var(--ink);
  font-weight: 700;
}
.skills-content ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: "– ";
}
.skills-content li + li {
  margin-top: 4px;
}
.work-section-heading {
  display: block;
  margin-bottom: 28px;
}
.work-section-heading .eyebrow {
  margin-bottom: 0;
}
.home-updates {
  padding-block: clamp(70px, 9vw, 110px);
  background: var(--paper-deep);
}
.home-updates-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 8vw, 100px);
}
.home-updates-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}
.home-updates .empty-state {
  background: var(--paper);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 {
  max-width: 800px;
  margin-bottom: 30px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}
h1 em {
  color: var(--accent);
  font-weight: inherit;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
}
.hero-intro {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

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

.bio-before {
  display: inline-block;
  margin-top: 0.75rem;
}
.hero-actions,
.social-links,
.publication-links,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions {
  gap: 20px;
  margin-bottom: 40px;
}
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 100px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.button-primary {
  color: var(--paper);
  background: var(--ink);
}
.button-primary:hover {
  background: var(--accent);
}
.button-text {
  gap: 8px;
  padding-inline: 0;
  color: var(--accent);
}
.social-links {
  gap: 14px;
}
.social-links a,
.home-cv-link:not([hidden]) {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  opacity: 0.72;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}
.social-links a:hover,
.home-cv-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.social-links img,
.home-cv-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portrait-wrap {
  justify-self: end;
  width: min(100%, 370px);
}
.portrait-frame {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 50%;
  place-items: center;
}
.portrait-frame::after {
  display: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portrait-initials {
  color: rgb(255 255 255 / 78%);
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 8rem);
  letter-spacing: -0.08em;
}
.portrait-caption {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #39a66e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(57 166 110 / 12%);
}

.section {
  padding-block: clamp(90px, 12vw, 150px);
}
.section-tinted {
  background: var(--paper-deep);
}
.section-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  margin-bottom: 60px;
}
.section-number {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
}
.project-card h2 {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.project-card p {
  flex: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.publication-list {
  border-top: 1px solid var(--line);
}
.publication-item {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding-block: 24px;
  align-items: start;
}
.publication-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.publication-media img,
.publication-media video,
.publication-media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.publication-media img {
  object-fit: contain;
}
.publication-media video {
  object-fit: cover;
}
.publication-media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  place-items: center;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.publication-item .publication-title {
  max-width: 720px;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
}
.publication-main {
  min-width: 0;
}
.publication-authors,
.publication-venue,
.publication-event {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.publication-self {
  color: var(--ink);
}
.publication-track-link {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.publication-track-link:hover {
  color: var(--accent);
}
.publication-award {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}
.publication-award-inline {
  color: var(--accent);
  font-weight: 700;
}
.publication-links {
  margin-top: 6px;
  gap: 4px;
  justify-content: flex-start;
}
.publication-links a,
.publication-links button,
.selected-paper-link,
.project-link {
  padding: 7px 12px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
}
.publication-links a,
.publication-links button,
.selected-paper-link {
  display: inline-flex;
  height: 22px;
  padding: 2px 6px 0;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
}
.publication-links button[aria-expanded="true"] {
  background: var(--accent-soft);
}
.publication-abstract {
  max-width: 820px;
  padding-left: 16px;
  margin-top: 18px;
  border-left: 2px solid var(--accent);
}
.publication-abstract p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.empty-state {
  padding: 46px;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.section-tinted .empty-state {
  background: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.project-card {
  display: flex;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-direction: column;
}
.project-media {
  display: block;
  width: 100%;
  height: clamp(140px, 18vw, 180px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-carousel {
  position: relative;
  margin-bottom: 6px;
}
.project-abstract-toggle {
  display: inline-flex;
  height: 22px;
  padding: 2px 6px 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font: 750 0.65rem/1 var(--sans);
  text-transform: uppercase;
  cursor: pointer;
}
.project-abstract-toggle:hover,
.project-abstract-toggle[aria-expanded="true"] {
  background: var(--accent-soft);
}
.project-abstract-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.project-abstract-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.project-abstract-overlay p {
  margin: 0;
  color: var(--ink);
}
.project-carousel.is-abstract-open .project-carousel-controls,
.project-carousel.is-abstract-open .project-media {
  visibility: hidden;
}
.project-carousel-controls {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  background: rgb(255 255 255 / 94%);
  pointer-events: none;
}
.project-carousel-controls button {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #176b58;
  cursor: pointer;
  font: 600 0.75rem/1 var(--sans);
  pointer-events: auto;
}
.project-carousel-controls button:hover {
  background: var(--accent-soft);
}
.project-carousel:focus-visible,
.project-carousel-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.project-slide-count {
  min-width: 44px;
  text-align: center;
  padding: 0 2px;
  background: transparent;
  color: #66706c;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.project-resource-link {
  margin-top: 16px;
}
.project-resource-link .project-link {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 0.7rem;
}
.project-tags {
  gap: 4px;
  margin: 0 0 10px;
}
.project-tags span {
  display: inline-flex;
  height: 22px;
  padding: 2px 6px 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.65rem;
  line-height: 1;
}
.news-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}
.news-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.updates-page .news-list {
  width: min(100%, 820px);
  margin-left: auto;
}
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news-date {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.news-item p {
  margin: 0;
}
.news-inline-image {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-5px);
  object-fit: contain;
}
.news-papers {
  display: grid;
  gap: 10px;
  padding-left: 1.25rem;
  margin: 14px 0 0;
}
.news-papers li {
  padding-left: 0.25rem;
  line-height: 1.5;
}
.news-paper-title {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.news-paper-authors {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}
.news-paper-self {
  color: var(--ink);
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.contact-section {
  padding-block: clamp(90px, 13vw, 160px);
  color: #f4f6f4;
  background: #153d34;
  text-align: center;
}
.contact-section .eyebrow {
  color: #8fd4ba;
}
.contact-section h2 {
  margin-bottom: 38px;
  color: #f4f6f4;
}
.button-light {
  color: #153d34;
  background: #f4f6f4;
}
.site-footer {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-inner p {
  margin: 0;
}
.footer-inner a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-page {
  display: grid;
  flex: 1;
  color: var(--ink);
  background: var(--paper);
  place-items: center;
}
.contact-page-inner {
  padding-block: clamp(80px, 12vw, 150px);
  text-align: center;
}
.contact-page h1 {
  margin: 0;
  color: var(--ink);
  line-height: 0;
}
.connect-greeting {
  width: min(100%, 460px);
  margin: 0 auto 24px;
}
.connect-greeting img {
  display: block;
  width: 100%;
  height: auto;
}
.connect-contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.connect-contact-links a {
  display: block;
  width: clamp(36px, 4vw, 44px);
  transition: transform 160ms ease, opacity 160ms ease;
}
.connect-contact-links img {
  display: block;
  width: 100%;
  height: auto;
}
.connect-contact-links a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}
.connect-contact-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.contact-page-inner > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.05rem;
}
.connect-visitors {
  width: min(100%, 300px);
  margin: 48px auto 0;
}
.connect-visitors h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.visitor-map-slot {
  min-height: 150px;
  width: 100%;
  overflow: hidden;
  color: var(--muted);
}
.visitor-map-slot p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
}
.visitor-map-slot #mapmyvisitors-widget {
  max-width: 100%;
}
.visitor-tracker-background[hidden] {
  display: none !important;
}
.visitor-map-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
}
.contact-socials {
  margin-top: 30px;
  justify-content: center;
}
.contact-socials a {
  color: var(--muted);
}
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: start;
}
.life-card {
  min-width: 0;
}
.life-carousel {
  position: relative;
}
.life-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
}
.life-media img,
.life-media video,
.life-media iframe,
.life-media > a {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.life-media iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(100% / 0.55);
  height: calc(100% / 0.55);
  transform: scale(0.55);
  transform-origin: top left;
}
.life-media iframe.life-youtube-player {
  width: 100%;
  height: 100%;
  transform: none;
}
.life-media-placeholder {
  display: flex;
  height: 100%;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
}
.life-media-placeholder span {
  font-size: 1rem;
  font-weight: 700;
}
.life-media-placeholder small {
  font-size: 0.8rem;
  font-weight: 400;
}
.life-carousel-controls {
  z-index: 1;
}
.life-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.life-card-content {
  padding-top: 5px;
}
.life-card-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.life-card h2 {
  margin-bottom: 0px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.life-card-content > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.life-card-content .life-caption-placeholder {
  font-weight: 400;
}
.life-media-credit a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.life-card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.life-empty {
  grid-column: 1 / -1;
}
.reveal {
  animation: none;
  /* animation: page-enter 500ms ease both; */
}
/* @keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

@media (max-width: 840px) {
  .menu-toggle {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
  }
  .menu-toggle span:not(.sr-only) {
    position: absolute;
    left: 7px;
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }
  .menu-toggle span:nth-child(2) {
    top: 15px;
  }
  .menu-toggle span:nth-child(3) {
    top: 23px;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    top: 19px;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }
  .site-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 24px 20px 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open {
    display: flex;
  }
  .language-options {
    right: auto;
    left: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .page-heading-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-updates-layout {
    grid-template-columns: 1fr;
  }
  .portrait-wrap {
    justify-self: start;
    width: min(82%, 370px);
  }
  .publication-item {
    grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  }
  .publication-links {
    justify-content: flex-start;
  }
  .news-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .updates-page .news-list {
    margin-left: 0;
  }
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .life-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: min(calc(100% - 28px), var(--container));
  }
  .page-section {
    width: min(calc(100% - 28px), var(--container));
  }
  .wordmark-logo {
    height: 27px;
  }
  h1 {
    font-size: clamp(2.85rem, 15vw, 4.5rem);
  }
  .section-heading {
    grid-template-columns: 46px 1fr;
    margin-bottom: 42px;
  }
  .publication-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .publication-links {
    margin-top: 6px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .footer-inner {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.home-layout {
  display: grid;
  max-width: 900px;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  padding-block: 48px 60px;
  align-items: start;
}
.home-profile {
  position: sticky;
  top: 110px;
  margin-top: 40px;
  text-align: center;
}
.home-content {
  min-width: 0;
}
.home-profile-name {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.home-profile-role,
.home-profile-location {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.home-profile-role {
  margin-bottom: 12px;
}
.home-profile-location {
  margin-top: 16px;
  margin-bottom: 18px;
}
.home-profile .social-links a,
.home-profile .home-cv-link:not([hidden]) {
  width: 28px;
  height: 28px;
}
.home-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.home-page .hero {
  display: block;
  min-height: auto;
  padding-block: 0 28px;
}
.home-page .hero h1 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.home-page .hero .home-greeting {
  width: min(100%, 340px);
  margin-left: -24px;
  line-height: 0;
}
.home-greeting img {
  display: block;
  width: 100%;
  height: auto;
}
.home-page .hero-intro {
  max-width: 60ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}
.home-page .hero-intro p {
  margin-bottom: 14px;
}
.home-page .hero-intro p:last-child {
  margin-bottom: 0;
}
.home-page .portrait-wrap {
  width: 180px;
  margin-inline: auto;
}
.home-page .portrait-frame {
  aspect-ratio: auto;
  border-radius: 0;
}
.home-page #profile-image {
  display: block;
  height: auto;
  object-fit: contain;
}
.home-recent-work,
.home-academic-service {
  padding-block: 24px 28px;
  border-top: 1px solid var(--line);
}
.academic-service-list {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.92rem;
}
.academic-service-list dt {
  display: inline;
  font-weight: 700;
}
.academic-service-list dd {
  display: inline;
  margin: 0;
  color: var(--muted);
}
.home-section-heading {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}
.home-section-heading h2,
.home-page .home-updates-heading h2,
.work-section-heading h2 {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}
.home-section-heading > a {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}
.home-work-list {
  display: block;
}
.selected-publication {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding-block: 16px;
  align-items: start;
}
.selected-publication:first-child {
  padding-top: 0;
}
.selected-publication:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.selected-publication h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.selected-authors {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.selected-authors strong {
  color: var(--ink);
}
.selected-award {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.5;
}
.selected-contest {
  color: var(--muted);
}
.selected-media {
  position: relative;
  border-radius: 4px;
}
.selected-media .publication-media-placeholder {
  font-size: 0.6rem;
  padding-top: 30px;
}
.selected-conference {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 8px;
  color: #fff;
  background: var(--accent);
  border-bottom-right-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}
.selected-paper-link:hover {
  background: var(--accent-soft);
}
.selected-publication h3 .selected-paper-link {
  margin-left: 4px;
  height: 18px;
  padding: 1px 4px 0;
  vertical-align: middle;
  transform: translateY(-1px);
  white-space: nowrap;
}
.selected-award-inline {
  margin-left: 4px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.home-work-item h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}
.home-work-item h3 a {
  text-decoration: none;
}
.home-work-item h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.home-page .home-updates {
  padding-block: 24px 28px;
  border-top: 1px solid var(--line);
  background: transparent;
}
.home-page .home-updates-layout {
  grid-template-columns: 1fr;
  gap: 12px;
}
.home-page .news-item {
  padding-block: 6px;
  font-size: 0.92rem;
  border-bottom: 0;
}
.publication-item {
  scroll-margin-top: 100px;
}
@media (max-width: 760px) {
  .home-page .hero .home-greeting {
    margin-left: 0;
  }
  .home-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 30px 40px;
  }
  .home-profile {
    position: static;
    margin-top: 0;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }
  .home-page .portrait-wrap {
    width: 90px;
    grid-row: span 2;
  }
  .home-profile-name {
    margin-top: 0;
  }
  .home-profile-location {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .selected-publication {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
