:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #606975;
  --line: #d9dee5;
  --soft-line: #edf0f3;
  --blue: #245f9d;
  --blue-dark: #174775;
  --cream: #f5efe3;
  --accent: #a9472f;
  --shadow: 0 18px 42px rgba(33, 43, 54, 0.08);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 239, 227, 0.66), rgba(255, 255, 255, 0) 360px),
    var(--bg);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

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

.site-header,
.page,
.footer {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
  padding-top: 58px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 18px;
  color: #16181b;
  font-size: clamp(3.8rem, 9vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.native-name {
  color: var(--muted);
  font-family: "Songti SC", "Noto Serif CJK SC", "Iowan Old Style", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  color: #17191c;
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h3 {
  margin-bottom: 7px;
  color: #17191c;
  font-size: 1.15rem;
  line-height: 1.28;
}

.lead {
  color: #29313a;
  font-size: 1.18rem;
  line-height: 1.7;
}

.intro-copy p:not(.eyebrow) {
  max-width: 720px;
}

.intro-copy,
.profile-card,
.paper,
.paper-body,
.timeline,
.compact-papers,
.career-list,
.news-list,
.interest-grid {
  min-width: 0;
}

.link-row,
.paper-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row {
  margin-top: 24px;
}

.link-row a,
.paper-links a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.link-row a:hover,
.paper-links a:hover,
.contact-links a:hover {
  color: var(--blue-dark);
  background: #f7fbff;
  border-color: #b6cce2;
  transform: translateY(-1px);
}

.profile-card {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  display: grid;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 239, 227, 0.92), rgba(232, 238, 241, 0.86)),
    var(--cream);
  border: 1px solid var(--soft-line);
  border-radius: 14px;
}

.portrait-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card dl {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.profile-card dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.profile-card dt {
  color: var(--muted);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 0;
}

.compact-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
}

#biography.compact-section {
  grid-template-columns: 1fr;
  gap: 24px;
}

.section-title {
  min-width: 0;
}

.with-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.with-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.news-list {
  display: grid;
  gap: 13px;
}

.career-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.career-list::before {
  position: absolute;
  top: 38px;
  right: 8%;
  left: 8%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(169, 71, 47, 0.5), rgba(96, 105, 117, 0.18));
}

.career-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(33, 43, 54, 0.05);
}

.career-card.active {
  background: #fff;
  border-color: rgba(169, 71, 47, 0.46);
  box-shadow: 0 18px 38px rgba(169, 71, 47, 0.13);
}

.career-card.inactive {
  color: #737b84;
  background: rgba(248, 249, 250, 0.72);
  border-color: rgba(217, 222, 229, 0.78);
  box-shadow: none;
}

.career-card.inactive .logo-frame,
.career-card.inactive img {
  filter: grayscale(1);
}

.career-card.inactive .logo-frame {
  background: #f8f9fa;
  box-shadow: none;
}

.career-card.inactive h3,
.career-card.inactive p,
.career-card.inactive .muted,
.career-card.inactive time {
  color: #737b84;
}

.career-meta {
  display: grid;
  gap: 6px;
  align-items: start;
}

.career-card p {
  margin-bottom: 0;
  color: #3e4854;
  font-size: 0.92rem;
  line-height: 1.52;
}

.logo-frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(33, 43, 54, 0.06);
}

.logo-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-frame-wide {
  padding: 8px;
}

.news-list article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
}

time,
.venue {
  color: var(--accent);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-list p {
  margin-bottom: 0;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.interest-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.interest-grid p,
.paper p,
.compact-papers p,
.timeline p {
  color: #3e4854;
}

.interest-grid p,
.paper p:last-child,
.compact-papers p:last-child,
.timeline p:last-child {
  margin-bottom: 0;
}

.publication-list {
  display: grid;
  gap: 22px;
}

.paper {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.paper:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.paper-thumb {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(22, 24, 27, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(33, 43, 54, 0.08);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.media-thumb {
  aspect-ratio: 16 / 10;
  min-height: 210px;
  background: #fff;
}

.media-thumb img,
.media-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: contain;
}

.thumb-3d {
  background:
    linear-gradient(135deg, rgba(21, 71, 117, 0.86), rgba(33, 114, 112, 0.84)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.16) 10px 11px);
}

.thumb-video {
  background:
    linear-gradient(135deg, rgba(144, 68, 40, 0.9), rgba(225, 149, 83, 0.86)),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.35), transparent 0 18%, transparent 19%);
}

.thumb-scene {
  background:
    linear-gradient(135deg, rgba(38, 49, 84, 0.92), rgba(94, 114, 150, 0.86)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.thumb-llm {
  background:
    linear-gradient(135deg, rgba(43, 89, 122, 0.92), rgba(95, 136, 102, 0.86)),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 2px);
  background-size: auto, 18px 18px;
}

.thumb-event {
  background:
    linear-gradient(135deg, rgba(61, 67, 92, 0.94), rgba(173, 76, 54, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 12px);
}

.thumb-thermal {
  background:
    linear-gradient(135deg, rgba(122, 54, 63, 0.92), rgba(217, 128, 72, 0.84), rgba(41, 82, 107, 0.84)),
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.26), transparent 0 22%, transparent 23%);
}

.paper-body {
  min-width: 0;
}

.venue {
  margin-bottom: 7px;
}

.authors {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.authors a {
  color: inherit;
  text-decoration-color: rgba(36, 95, 157, 0.36);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.authors a:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.me {
  color: #14171a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.15em;
}

.paper-links {
  margin-top: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
}

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

.timeline article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}

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

.compact-papers {
  display: grid;
  gap: 18px;
}

.compact-papers article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.compact-papers article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-links {
  margin-top: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 42px;
  color: var(--muted);
  font-family: "Avenir Next", "Optima", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .intro,
  .compact-section,
  .two-column {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 440px;
  }

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

  .career-list {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    margin-right: -22px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .career-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page,
  .footer {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .section {
    padding: 36px 0;
  }

  .intro {
    padding-top: 38px;
  }

  .lead {
    font-size: 1.08rem;
  }

  .intro-copy,
  .intro-copy p,
  .profile-card,
  .publication-list,
  .paper-body,
  .career-list,
  .news-list,
  .timeline,
  .compact-papers,
  .interest-grid {
    width: 100%;
    max-width: 100%;
  }

  .intro-copy,
  .intro-copy p,
  .authors,
  .paper h3,
  .compact-papers h3,
  .compact-papers p {
    overflow-wrap: anywhere;
  }

  .with-note {
    display: block;
  }

  .with-note h2 {
    margin-bottom: 8px;
  }

  .news-list article,
  .timeline article,
  .paper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paper-thumb {
    min-height: 120px;
  }

  .profile-card dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .link-row a,
  .contact-links a {
    width: 100%;
  }

  .footer {
    display: grid;
  }
}
