* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #171717;
  --text: #252b33;
  --muted: #5d6673;
  --faint: #7d8793;
  --line: #d9dee6;
  --soft-line: #edf0f4;
  --link: #075aa6;
  --link-soft: #eaf3ff;
  --page: min(1220px, calc(100% - 44px));
  --sidebar: 245px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

article[id],
section[id] {
  scroll-margin-top: 78px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(7, 90, 166, 0.18);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 10px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  width: var(--page);
  min-height: 58px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1;
}

.nav-links a[aria-current="page"] {
  color: var(--link);
  font-weight: 650;
}

.nav-links a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 2px;
  background: var(--link);
  content: "";
}

main {
  width: var(--page);
  margin: 0 auto;
}

.academic-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 78px;
  min-height: calc(100vh - 78px);
  border-right: 1px solid var(--line);
  padding: 38px 28px 44px 0;
}

.profile-photo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
  object-fit: cover;
  object-position: center;
}

.profile-sidebar h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.2;
  text-align: center;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.profile-updated {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.profile-updated time {
  font-variant-numeric: tabular-nums;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  border-top: 1px solid var(--soft-line);
  padding-top: 20px;
}

.profile-links a {
  display: grid;
  place-items: center;
  color: var(--link);
  line-height: 1.28;
}

.profile-links a:hover .profile-icon {
  border-color: rgba(7, 90, 166, 0.34);
  background: rgba(7, 90, 166, 0.06);
}

.profile-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--link);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.profile-icon svg,
.profile-icon img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.profile-icon--huggingface img {
  width: 16px;
  height: 16px;
}

.profile-icon--alpha img {
  width: 17px;
  height: 17px;
}

.profile-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-text-links a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.keyword-panel {
  margin-top: 24px;
  border-top: 1px solid var(--soft-line);
  padding-top: 20px;
}

.keyword-panel h2 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.keyword-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.keyword-panel span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  padding: 6px 9px;
}

.content-column {
  padding: 34px 0 54px;
}

.content-column section {
  margin-top: 34px;
}

.content-column section:first-child {
  margin-top: 0;
}

.content-column h2 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(1.14rem, 1.55vw, 1.38rem);
  font-weight: 680;
  line-height: 1.26;
}

.content-column p {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
}

.content-column .lead-copy {
  max-width: 900px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
}

.content-column a,
.section-head a {
  color: var(--link);
}

.content-column p a,
.content-column li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted) !important;
  font-size: 0.92rem;
  line-height: 1.6 !important;
}

.section-head + .section-intro {
  margin-top: 12px;
}

.section-head + .paper-list {
  margin-top: 10px;
}

.section-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.section-anchors a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  padding: 6px 9px;
}

.section-anchors a:hover {
  background: var(--link-soft);
  border-color: rgba(7, 90, 166, 0.32);
}

.status-legend {
  max-width: 760px;
  margin-top: 10px !important;
  color: var(--faint) !important;
  font-size: 0.84rem;
  line-height: 1.55 !important;
}

.section-intro + .paper-list,
.section-intro + .project-list,
.section-intro + .project-stack {
  margin-top: 14px;
}

.highlights ul,
.compact-signals ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--soft-line);
}

.entry-links a {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-right: 1px solid var(--soft-line);
  padding: 13px 18px 14px 0;
}

.entry-links a:last-child {
  border-right: 0;
}

.entry-links a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-links span,
.entry-links strong {
  display: block;
}

.entry-links span {
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.25;
}

.entry-links strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.highlights ul {
  gap: 0;
  border-top: 1px solid var(--soft-line);
  list-style: none;
  padding-left: 0;
}

.highlights li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px solid var(--soft-line);
  padding: 9px 0;
}

.highlights time {
  display: inline-block;
  min-width: 82px;
  color: var(--link);
  font-variant-numeric: tabular-nums;
}

.highlights span {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.48;
}

.highlights a {
  color: var(--ink);
  font-weight: 650;
}

.highlights a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 10px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head a {
  font-size: 0.88rem;
  white-space: nowrap;
}

.paper-list {
  border-bottom: 1px solid var(--soft-line);
}

.paper-section-title {
  margin: 24px 0 0 !important;
  border-top: 1px solid var(--line);
  color: var(--faint) !important;
  font-family: var(--sans) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  line-height: 1.25 !important;
  padding-top: 16px;
  text-transform: uppercase;
}

.paper-section-title:first-child {
  margin-top: 14px !important;
}

.paper-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--soft-line);
  padding: 16px 0;
}

.paper-list .paper-entry--with-figure {
  grid-template-columns: minmax(420px, 52%) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 22px 0 20px;
}

.paper-list article:first-of-type {
  border-top: 0;
}

.paper-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--paper-figure-ratio, 1916 / 821);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-figure-bg, #fff);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.paper-figure--esgenius {
  --paper-figure-ratio: 3322 / 1177;
}

.paper-figure--mmesgbench {
  --paper-figure-ratio: 4000 / 2050;
  max-height: 176px;
}

.paper-figure--sp2dpo {
  --paper-figure-ratio: 2560 / 1410;
}

.paper-figure--human-ai-productivity {
  --paper-figure-ratio: 1312 / 422;
}

.paper-figure--recsys-agents {
  --paper-figure-ratio: 1188 / 460;
}

.paper-figure--multi-scale-recsys {
  --paper-figure-ratio: 1272 / 562;
}

.paper-figure--esglass {
  --paper-figure-ratio: 2417 / 1138;
}

.paper-figure--synthetic-media-exchange {
  --paper-figure-ratio: 2471 / 1400;
}

.paper-figure--agentic-multimedia-firms {
  --paper-figure-ratio: 2380 / 1475;
}

.paper-figure--kg4esg {
  --paper-figure-ratio: 1536 / 1024;
}

.paper-figure--sskg {
  --paper-figure-ratio: 1442 / 758;
}

.paper-figure--openclaw {
  --paper-figure-ratio: 998 / 782;
  max-height: 360px;
}

.paper-figure--autoresearch {
  --paper-figure-ratio: 1446 / 622;
}

.paper-figure--harness {
  --paper-figure-ratio: 1536 / 1024;
}

.paper-figure:hover {
  border-color: rgba(7, 90, 166, 0.35);
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.07);
}

.paper-figure span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(7, 90, 166, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--link);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  padding: 5px 7px;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.paper-figure:hover span,
.paper-figure:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.paper-kicker span,
.paper-kicker strong {
  display: inline-flex;
  align-items: center;
}

.paper-kicker span + strong::before,
.paper-kicker strong + span::before {
  color: var(--line);
  content: "/";
  margin-right: 8px;
}

.paper-kicker strong {
  color: var(--link);
  font-weight: 700;
}

.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.figure-lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.figure-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.74);
}

.figure-lightbox figure {
  position: relative;
  z-index: 1;
  width: min(1420px, 96vw);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.figure-lightbox--wide figure {
  width: min(1640px, 96vw);
}

.figure-lightbox--fit figure {
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.figure-lightbox.figure-lightbox--fit img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 116px);
  margin: 0 auto;
  object-fit: contain;
}

.figure-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.figure-lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.figure-lightbox figcaption a {
  color: var(--link);
  font-weight: 650;
}

.figure-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  padding: 8px 10px;
}

.figure-lightbox__close:hover {
  color: #fff;
  background: #000;
}

.paper-meta span,
.paper-meta strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
}

.paper-meta span {
  color: var(--text);
}

.paper-meta strong {
  color: var(--link);
  font-weight: 500;
}

.paper-list h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.34;
}

.paper-list h3 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.paper-list h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.paper-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.paper-list .paper-authors {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.42;
}

.paper-authors strong {
  color: var(--ink);
  font-weight: 700;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.paper-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--link);
  font-size: 0.76rem;
  line-height: 1;
  padding: 5px 8px;
}

.paper-links a:hover {
  border-color: rgba(7, 90, 166, 0.38);
  background: var(--link-soft);
}

.paper-links--dense {
  gap: 6px;
}

.research-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.research-card {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.research-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.32;
}

.research-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.58;
}

.topic-chips,
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.topic-chips span {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1;
  padding: 5px 8px;
}

.text-links a {
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experience-education {
  display: grid;
  gap: 24px;
}

.timeline-group h3,
.education-group h3 {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-list {
  border-top: 1px solid var(--line);
}

.timeline-list article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  position: relative;
  border-bottom: 1px solid var(--soft-line);
  padding: 15px 0 15px 20px;
}

.timeline-list article::before {
  position: absolute;
  top: 21px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.timeline-list article::after {
  position: absolute;
  top: 28px;
  bottom: -16px;
  left: 3px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-list article:last-child::after {
  display: none;
}

.timeline-list time {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.timeline-list h4,
.education-list h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.34;
}

.timeline-list p,
.education-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.role-highlights {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.role-highlights li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-list article {
  border-bottom: 1px solid var(--soft-line);
  padding: 13px 0;
}

.compact-signals li {
  color: var(--muted);
}

.compact-signals strong {
  color: var(--text);
}

.thoughts-list {
  margin-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.content-column .thoughts-disclaimer {
  margin-top: 8px;
  color: var(--faint);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
}

.thoughts-list article,
.thought-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--soft-line);
  padding: 16px 0;
}

.thought-card {
  color: inherit;
  transition: background-color 150ms ease, padding 150ms ease;
}

.thought-card:hover {
  background: #f8fafc;
  color: inherit;
  padding-right: 12px;
  padding-left: 12px;
}

.thoughts-list time {
  color: var(--link);
  font-size: 0.84rem;
  font-weight: 650;
}

.thoughts-list h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.25;
}

.thoughts-list p {
  margin: 0;
  color: var(--muted);
}

.thought-card-topic {
  margin-bottom: 5px !important;
  color: var(--faint) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

.thought-card-cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--link);
  font-size: 0.84rem;
  font-weight: 650;
}

.essay-note {
  margin-top: 26px;
  border-top: 1px solid var(--soft-line);
  padding-top: 22px;
}

.essay-header {
  max-width: 820px;
}

.essay-kicker {
  margin: 0 0 9px !important;
  color: var(--link) !important;
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.essay-header h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.82rem, 3vw, 2.55rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.08;
}

.essay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 13px;
  color: var(--faint);
  font-size: 0.86rem;
  font-weight: 600;
}

.essay-deck {
  margin-top: 18px !important;
  color: var(--text) !important;
  font-size: 1.04rem;
  line-height: 1.68 !important;
}

.essay-body {
  max-width: 820px;
  margin-top: 28px;
}

.essay-figure {
  max-width: 820px;
  margin: 28px 0;
}

.essay-figure--wide {
  max-width: 920px;
  margin-top: 26px;
}

.essay-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--soft-line);
  background: #f8fafc;
}

.essay-figure figcaption {
  margin-top: 9px;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.5;
}

.essay-body p + p,
.essay-body p + ul,
.essay-body ul + p {
  margin-top: 16px;
}

.essay-body h4 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.essay-thesis {
  border-left: 3px solid var(--link);
  margin: 0 0 20px !important;
  padding-left: 16px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55 !important;
}

.essay-bullets {
  margin: 0;
  padding-left: 20px;
}

.essay-bullets li {
  color: var(--text);
  line-height: 1.7;
  margin-top: 8px;
}

.state-transition {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  background: #f8fafc;
  color: var(--ink) !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55 !important;
  padding: 12px 14px;
  white-space: nowrap;
}

.citation-bibtex {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  background: #f8fafc;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  padding: 13px 14px;
  white-space: pre;
}

.citation-bibtex code {
  font-family: inherit;
}

.reference-list {
  margin: 0;
  padding-left: 20px;
}

.reference-list li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
}

.reference-list a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-stack {
  display: grid;
  gap: 30px;
}

.project-group {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.content-column .project-group {
  margin-top: 0;
}

.project-group h3 {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-group--private .repo-card {
  border-left: 2px solid var(--soft-line);
  padding-left: 12px;
}

.repo-list {
  border-top: 1px solid var(--soft-line);
}

.repo-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--soft-line);
  padding: 15px 0;
}

.repo-visual {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--link);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.repo-visual::before,
.repo-visual::after {
  position: absolute;
  inset: 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  content: "";
  opacity: 0.16;
}

.repo-visual::after {
  inset: auto 12px 12px auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.repo-visual span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

a.repo-visual:hover {
  border-color: rgba(7, 90, 166, 0.34);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.07);
  transform: translateY(-1px);
}

.repo-visual--vision {
  background: linear-gradient(145deg, #eef8ff, #ffffff);
  color: #075aa6;
}

.repo-visual--geometry {
  background: linear-gradient(145deg, #fff7e9, #ffffff);
  color: #b15f00;
}

.repo-visual--graph {
  background: linear-gradient(145deg, #eefaf1, #ffffff);
  color: #217a44;
}

.repo-visual--action {
  background: linear-gradient(145deg, #f2f1ff, #ffffff);
  color: #4d52ad;
}

.repo-visual--private {
  background: linear-gradient(145deg, #f4f6f8, #ffffff);
  color: #596270;
}

.repo-visual--field {
  background: linear-gradient(145deg, #fff2f2, #ffffff);
  color: #a23b3b;
}

.repo-visual--alignment {
  background: linear-gradient(145deg, #ecfbf8, #ffffff);
  color: #15746c;
}

.repo-visual--security {
  background: linear-gradient(145deg, #fff9df, #ffffff);
  color: #8b6a00;
}

.repo-visual--demo {
  background: linear-gradient(145deg, #f5f8ff, #ffffff);
  color: #3055a4;
}

.repo-visual--upgrade {
  background: linear-gradient(145deg, #f7f1fb, #ffffff);
  color: #76509d;
}

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

.repo-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.repo-kicker span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  padding: 4px 7px;
}

.repo-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.repo-card h4 a {
  color: var(--link);
}

.repo-card h4 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.repo-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.repo-tags span {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1;
  padding: 5px 8px;
}

@media (max-width: 980px) {
  :root {
    --page: min(1120px, calc(100% - 32px));
  }

  .site-header {
    min-height: 0;
    padding: 14px 0 12px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 16px;
  }

  .academic-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0 24px;
  }

  .profile-sidebar {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 18px;
    align-items: center;
  }

  .profile-photo {
    grid-row: span 2;
    margin: 0;
    width: 86px;
    height: 86px;
  }

  .profile-sidebar h1,
  .profile-role,
  .profile-updated {
    text-align: left;
  }

  .profile-links,
  .profile-text-links,
  .keyword-panel {
    grid-column: 1 / -1;
  }

  .profile-links {
    gap: 9px;
  }

  .keyword-panel div {
    gap: 6px;
  }

  .content-column {
    padding-top: 28px;
  }
}

@media (max-width: 760px) {
  .paper-list article,
  .paper-list .paper-entry--with-figure,
  .thoughts-list article,
  .thought-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .paper-figure {
    margin: 4px 0 6px;
    max-width: 100%;
  }

  .paper-figure--mmesgbench {
    max-height: none;
  }

  .paper-figure span {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(1120px, calc(100% - 28px));
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 14.5px;
  }

  main,
  .site-header {
    width: var(--page);
    max-width: var(--page);
  }

  .site-header {
    position: static;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 14px 17px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .nav-links a[aria-current="page"]::after {
    bottom: -8px;
  }

  .profile-sidebar {
    display: contents;
  }

  .content-column {
    display: contents;
  }

  .academic-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .profile-photo {
    grid-column: 1;
    grid-row: auto;
    width: 66px;
    height: 66px;
    margin: 0 auto 10px;
  }

  .profile-sidebar h1 {
    grid-column: 1;
    align-self: auto;
    font-size: 1.25rem;
    text-align: center;
  }

  .profile-role {
    grid-column: 1;
    align-self: auto;
    text-align: center;
  }

  .profile-updated {
    grid-column: 1;
    margin-top: 3px;
    text-align: center;
  }

  .profile-links,
  .profile-text-links,
  .keyword-panel,
  .content-column section {
    grid-column: 1 / -1;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .content-column p,
  .highlights span,
  .entry-links span,
  .entry-links strong,
  .keyword-panel div,
  .paper-list h3,
  .essay-header h3,
  .paper-list p,
  .paper-authors,
  .interest-list span,
  .timeline-list p,
  .education-list p,
  .project-desc,
  .repo-card h4,
  .repo-card p,
  .repo-tags,
  .thought-card,
  .thoughts-list h3,
  .essay-figure figcaption,
  .thoughts-list p {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .content-column p,
  .highlights ul,
  .compact-signals ul,
  .interest-list,
  .entry-links,
  .thoughts-list,
  .paper-list,
  .project-list,
  .project-stack,
  .essay-note,
  .essay-header,
  .essay-body,
  .essay-figure {
    width: 100%;
    max-width: 100%;
  }

  #about {
    order: 3;
    margin-top: 28px;
  }

  .profile-links {
    order: 4;
    gap: 8px;
  }

  .profile-text-links {
    order: 5;
  }

  .keyword-panel {
    order: 6;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }

  .content-column section:not(#about) {
    order: 7;
  }

  .content-column h2 {
    font-size: 1.25rem;
  }

  .paper-list article,
  .timeline-list article,
  .research-card-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

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

  .entry-links a {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
    padding: 11px 0;
  }

  .entry-links a:last-child {
    border-bottom: 0;
  }

  .highlights li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }

  .figure-lightbox {
    padding: 14px;
  }

  .figure-lightbox figure {
    width: 100%;
    padding: 8px;
  }

  .figure-lightbox__close {
    top: 8px;
    right: 8px;
    border-color: rgba(23, 23, 23, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
  }

  .paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .timeline-list article {
    gap: 6px;
    padding-left: 16px;
  }

  .project-list a,
  .project-list a:nth-child(2n) {
    min-height: 0;
    border-right: 0;
    padding-right: 0;
  }

  .project-stack {
    gap: 24px;
  }

  .repo-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding: 13px 0;
  }

  .repo-visual {
    width: 52px;
    height: 52px;
  }

  .repo-visual span {
    font-size: 0.74rem;
  }

}

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

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