:root {
  color-scheme: light;
  --ink: #17202e;
  --muted: #626b7a;
  --accent: #5351b9;
  --line: #e3e5ed;
  --tint: #f7f8fc;
  --soft: #eeeefa;
  --paper: #fff;
  --display: "Manrope", "Segoe UI", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: #fbfbfd;
  color: var(--ink);
  font: 18px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
::selection {
  background: #deddf6;
  color: var(--ink);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
}
.container {
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 9px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 251 253 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 17px/1.3 var(--display);
  letter-spacing: -0.4px;
  flex-shrink: 0;
}
.personal-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 25%;
  object-fit: cover;
}
.primary-navigation {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.primary-navigation a {
  padding-block: 15px;
  position: relative;
}
.primary-navigation a:hover,
.primary-navigation a[aria-current="location"] {
  color: var(--accent);
}
.primary-navigation a[aria-current="location"]::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 15px;
}
.menu-toggle span {
  margin-left: 9px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  align-items: center;
  gap: 96px;
  padding: 78px 0 76px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}
.eyebrow > span {
  color: #a4a7bd;
  margin-inline: 10px;
}
.eyebrow .hero-location {
  color: inherit;
  margin: 0;
  white-space: nowrap;
}
h1 {
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -3.4px;
  margin: 18px 0 24px;
}
.name-dot {
  color: var(--accent);
}
.hero-intro {
  max-width: 650px;
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: -0.2px;
}
.hero-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #d0cfee;
  text-decoration-thickness: 1px;
}
.hero-intro a:hover {
  text-decoration-color: var(--accent);
}
.hero-description {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
}
.hero-links a:not(.primary-link):hover,
.text-link:hover,
.contact-links a:hover {
  color: var(--accent);
}
.hero-links a > span {
  margin-left: 7px;
}
.hero-links .primary-link {
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hero-links .primary-link:hover {
  background: #413f9c;
}
.portrait {
  transform: rotate(2deg);
}
.portrait-frame {
  padding: 7px;
  background: white;
  border: 1px solid #dedfe8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(31 39 70 / 5%);
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 7px;
}
.portrait figcaption {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 13px;
  text-align: center;
  letter-spacing: 0.2px;
}
.caption-rule {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #a3a6be;
  margin-right: 5px;
  vertical-align: middle;
}
.section {
  border-top: 1px solid var(--line);
  padding: 56px 0 62px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1.2px;
  margin-top: 9px;
}
.section-note {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-card {
  padding: 26px 28px 24px;
  border: 1px solid #dedfeb;
  border-radius: 12px;
  background: white;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.proof-project {
  background: linear-gradient(130deg, #f3f3ff, #fff 65%);
}
.xrag-project {
  background: linear-gradient(130deg, #f0f7f7, #fff 65%);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #a6a4d5;
  box-shadow: 0 12px 24px rgb(45 43 103 / 5%);
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-category {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-arrow {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.project-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 23px 0 20px;
}
.project-image {
  width: 96px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
}
.project-image img {
  max-height: 104px;
  object-fit: contain;
}
.xrag-project .project-image img {
  width: 86px;
}
.project-card h3 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
.project-subtitle {
  font-size: 17px;
  line-height: 1.45;
  margin-top: 8px;
  color: #3f495c;
}
.project-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 400px;
}
.project-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  margin-top: 24px;
}
.project-link span {
  transition: transform 0.2s;
}
.project-card:hover .project-link span {
  transform: translateX(4px);
}
.text-link {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.text-link span {
  margin-left: 7px;
}
.publication-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 4px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.publication-count {
  font-size: 14px;
  color: var(--muted);
}
.publication-filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #efeff5;
  border-radius: 7px;
}
.publication-filters button {
  padding: 5px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  min-height: 32px;
}
.publication-filters button:hover {
  color: var(--accent);
}
.publication-filters button[aria-pressed="true"] {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 4px rgb(29 30 65 / 6%);
}
.publication {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  column-gap: 30px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}
.publication:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pub-meta {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.pub-venue {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  background: var(--soft);
  border-radius: 4px;
  padding: 2px 8px;
}
[data-venue="preprint"] .pub-venue {
  background: #eff0f4;
  color: #626b7a;
}
.pub-year {
  font-size: 13px;
  color: var(--muted);
  padding-left: 8px;
}
.publication h3,
.pub-authors,
.pub-links {
  grid-column: 2;
}
.publication h3 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.35px;
}
.publication h3 a:hover {
  color: var(--accent);
}
.pub-authors {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 10px 0 13px;
}
.pub-authors strong {
  color: #343c4b;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #c2c4d3;
  text-underline-offset: 3px;
}
.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 0;
}
.pub-links > a,
.citation summary {
  padding-block: 3px;
}
.pub-links > a:hover,
.citation summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.citation summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}
.citation summary::-webkit-details-marker {
  display: none;
}
.citation summary::after {
  content: "+";
  display: inline-block;
  margin-left: 5px;
  font-weight: 400;
}
.citation[open] {
  width: 100%;
  margin-top: 3px;
}
.citation[open] summary::after {
  content: "−";
}
.citation pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: #444d5e;
  font:
    12px/1.8 Consolas,
    monospace;
  max-width: 100%;
  margin: 10px 0 0;
}
.citation code {
  font: inherit;
}
.copy-citation {
  margin-top: 9px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--accent);
  font-size: 12px;
  font-weight: 550;
}
.copy-citation:hover {
  border-color: var(--accent);
}
.education-section {
  padding-bottom: 52px;
}
.education-list {
  border-top: 1px solid var(--line);
}
.education-item {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 76px;
  gap: 30px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.education-item:last-child {
  border-bottom: 0;
}
.education-date {
  font-size: 14px;
  color: var(--muted);
  padding-top: 5px;
}
.education-item h3 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.4px;
}
.institution {
  font-size: 17px;
  margin-top: 6px;
}
.education-detail {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}
.degree-mark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 650;
  color: #8a8da5;
  text-align: right;
}
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #e1e1ed;
  border-radius: 12px;
  padding: 34px 38px;
  background: #f1f1f9;
}
.contact-section .eyebrow {
  margin: 0;
}
.email-link {
  display: inline-block;
  font: 600 26px/1.5 var(--display);
  letter-spacing: -0.8px;
  margin-top: 9px;
}
.email-link span {
  color: var(--accent);
  margin-left: 12px;
}
.email-link:hover {
  color: var(--accent);
}
.contact-location {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a:hover {
  color: var(--accent);
}
@media (min-width: 1500px) {
  .hero {
    gap: 120px;
  }
}
@media (max-width: 1024px) {
  .container {
    width: calc(100% - 72px);
  }
  .hero {
    gap: 54px;
    grid-template-columns: minmax(0, 1fr) 230px;
    padding-block: 60px;
  }
  .hero-intro {
    font-size: 20px;
  }
  .primary-navigation {
    gap: 21px;
  }
  .project-card {
    padding: 24px;
  }
  .project-main {
    gap: 20px;
  }
  .project-image {
    width: 80px;
    flex-basis: 80px;
  }
  .publication,
  .education-item {
    column-gap: 20px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 96px;
  }
  .container {
    width: calc(100% - 44px);
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 18px;
  }
  .wordmark {
    font-size: 16px;
  }
  .personal-logo {
    width: 32px;
    height: 32px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .primary-navigation {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 23px;
    padding: 0 0 13px;
    font-size: 15px;
  }
  .primary-navigation a {
    padding-block: 10px;
  }
  .js .primary-navigation:not(.is-open) {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 25px;
    padding: 48px 0;
    align-items: start;
  }
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .hero .eyebrow > span {
    margin-inline: 5px;
  }
  h1 {
    font-size: 46px;
    letter-spacing: -2.5px;
    margin-block: 14px 20px;
  }
  .hero-intro {
    font-size: 19px;
  }
  .hero-description {
    font-size: 17px;
    margin-top: 16px;
  }
  .hero-links {
    gap: 19px;
    margin-top: 24px;
    font-size: 14px;
  }
  .hero-links .primary-link {
    padding: 9px 12px;
  }
  .portrait {
    margin-top: 19px;
  }
  .portrait figcaption {
    display: none;
  }
  .section {
    padding-block: 43px;
  }
  .section-heading {
    align-items: start;
    gap: 20px;
  }
  h2 {
    font-size: 28px;
    letter-spacing: -0.9px;
  }
  .section-note {
    font-size: 13px;
    padding-top: 12px;
  }
  .project-grid {
    gap: 16px;
  }
  .project-card {
    padding: 21px;
  }
  .project-category {
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .project-main {
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }
  .project-image {
    height: 90px;
    flex-basis: auto;
  }
  .project-image img {
    max-height: 90px;
  }
  .project-card h3 {
    font-size: 26px;
  }
  .project-description {
    font-size: 15px;
  }
  .project-link {
    font-size: 13px;
  }
  .publications-section .section-heading {
    flex-direction: column;
    gap: 12px;
  }
  .publication {
    grid-template-columns: 1fr;
    padding-block: 25px;
  }
  .pub-meta {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin-bottom: 12px;
  }
  .pub-year {
    padding-left: 3px;
  }
  .publication h3,
  .pub-authors,
  .pub-links {
    grid-column: 1;
  }
  .publication h3 {
    font-size: 19px;
  }
  .pub-authors {
    font-size: 15px;
  }
  .pub-links {
    font-size: 14px;
    gap: 8px 22px;
  }
  .education-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 23px;
  }
  .degree-mark {
    display: none;
  }
  .education-date {
    padding: 0;
  }
  .education-item h3 {
    font-size: 19px;
  }
  .institution {
    font-size: 16px;
  }
  .contact-section {
    padding: 26px;
    flex-direction: column;
    align-items: start;
    gap: 23px;
  }
  .email-link {
    font-size: 23px;
    letter-spacing: -0.7px;
  }
  .contact-links {
    flex-direction: row;
    gap: 28px;
  }
  .contact-links a {
    gap: 8px;
  }
}
@media (max-width: 540px) {
  .hero {
    display: block;
    position: relative;
    padding-top: 40px;
  }
  h1 {
    font-size: clamp(32px, 10vw, 46px);
    max-width: calc(100% - 112px);
    white-space: nowrap;
    margin-bottom: 30px;
  }
  .hero-intro {
    font-size: 20px;
  }
  .hero-description {
    font-size: 17px;
  }
  .portrait {
    position: absolute;
    right: 0;
    top: 40px;
    width: 100px;
    margin: 0;
    transform: rotate(2deg);
  }
  .portrait-frame {
    padding: 4px;
  }
  .portrait-frame img {
    aspect-ratio: 1;
    object-position: 50% 37%;
  }
  .hero-copy > .eyebrow {
    max-width: calc(100% - 120px);
    min-height: 32px;
  }
  .hero .eyebrow > .eyebrow-divider {
    display: none;
  }
  .hero .eyebrow > .hero-location {
    display: block;
    margin: 0;
  }
  .section-note {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-main {
    flex-direction: row;
    align-items: center;
    gap: 23px;
    margin-block: 21px 18px;
  }
  .project-image {
    width: 84px;
    flex: 0 0 84px;
  }
  .project-description {
    font-size: 16px;
  }
  .project-link {
    margin-top: 18px;
    font-size: 14px;
  }
  .publication-toolbar {
    align-items: start;
    flex-direction: column-reverse;
    gap: 14px;
    margin-top: 24px;
  }
  .publication-filters {
    width: 100%;
  }
  .publication-filters button {
    flex: 1;
    padding-block: 7px;
    font-size: 14px;
  }
  .email-link {
    font-size: clamp(18px, 5.4vw, 24px);
    overflow-wrap: anywhere;
  }
  .email-link span {
    margin-left: 3px;
  }
  .contact-section {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .project-card:hover,
  .project-card:hover .project-link span {
    transform: none;
  }
}
