:root {
  --black: #111111;
  --text: #262626;
  --dark: #333333;
  --muted: #6f6f6f;
  --light-muted: #999999;
  --line: #d8d8d8;
  --soft: #f5f5f5;
  --background: #ffffff;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--dark);
  text-decoration-color: var(--light-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--black);
  text-decoration-color: var(--black);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 4px;
}
img {
  max-width: 100%;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 20;
  padding: 0.55rem 0.75rem;
  background: var(--black);
  color: white;
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 0.75rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1120px, calc(100% - 3rem));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-name {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  gap: 1.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 450;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--black);
}
main {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: 3.5rem;
}
.portrait {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
}
.hero-copy {
  padding-top: 0.1rem;
}
.hero h1 {
  margin: 0 0 0.55rem;
  color: var(--black);
  font-size: clamp(2.5rem, 4vw, 2.85rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.market {
  margin: 0 0 1.35rem;
  color: var(--black);
  font-size: 1rem;
  font-weight: 550;
}
.affiliation {
  margin: 0.08rem 0;
  font-size: 0.96rem;
}
.fields {
  max-width: 670px;
  margin: 1.25rem 0 0.75rem;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 550;
}
.research-bio {
  max-width: 690px;
  margin-top: 0.9rem;
}
.research-bio p {
  margin: 0 0 0.55rem;
  font-size: 0.96rem;
  line-height: 1.58;
}
.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}
.social-links {
  display: flex;
  gap: 0.8rem;
}
.social-link {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}
.social-link:hover {
  color: var(--black);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}
.cv-link {
  margin-left: 0.35rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
}
.references {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.references strong {
  color: var(--dark);
  font-weight: 600;
}
.references a {
  color: inherit;
  text-decoration-color: transparent;
}
.references a:hover {
  color: var(--black);
  text-decoration-color: currentColor;
}
.section-rule {
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  padding: 3rem 0;
}
.project-media {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  justify-self: center;
  object-fit: contain;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.feature .project-media {
  max-height: 340px;
}
.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%);
}
.project-image.contain {
  object-fit: contain;
  filter: none;
}
.kicker,
.category-heading {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.feature h2 {
  max-width: 680px;
  margin: 0.65rem 0 1rem;
  color: var(--black);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.feature .abstract {
  max-width: 700px;
  margin: 0;
}
.document-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin-top: 1.1rem;
}
.document-links a,
.project-links a {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 600;
}
.portfolio {
  padding-top: 0.5rem;
}
.category {
  padding-top: 2.2rem;
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dark);
}
.category-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.feature-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.feature-project .project-media {
  max-height: 320px;
  align-self: center;
}
.feature-project h3 {
  margin: 0 0 0.5rem;
  color: var(--black);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.feature-project h3 a {
  color: inherit;
  text-decoration: none;
}
.feature-project h3 a:hover {
  text-decoration: underline;
}
.award {
  margin: -0.45rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.feature .draft-note,
.feature .award {
  color: #7a1f2b;
}
.coverage {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.coverage strong {
  color: var(--dark);
  font-weight: 600;
}
.coverage a {
  color: inherit;
}
.compact-category {
  padding-bottom: 0.5rem;
}
.compact-papers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.compact-paper {
  padding: 1.5rem 1.5rem 1.7rem 0;
}
.compact-paper + .compact-paper {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.compact-paper h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
.compact-paper h3 a {
  color: inherit;
  text-decoration: none;
}
.compact-paper h3 a:hover {
  text-decoration: underline;
}
.compact-paper > p:not(.meta):not(.project-status) {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.project-row .project-media {
  min-height: 170px;
}
.project-status {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-row h3,
.index-item h3 {
  margin: 0 0 0.4rem;
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.32;
}
.project-row h3 a,
.index-item h3 a {
  color: inherit;
  text-decoration: none;
}
.project-row h3 a:hover,
.index-item h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.meta {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.project-summary {
  max-width: 720px;
  margin: 0;
  font-size: 0.94rem;
}
.page-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.page-title {
  margin: 0 0 0.65rem;
  color: var(--black);
  font-size: 2rem;
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.page-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.index-section {
  margin-top: 2.2rem;
}
.index-section-title {
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.index-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.index-item p {
  max-width: 800px;
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}
.index-item .project-links {
  margin-top: 0.65rem;
}
.catalog-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.catalog-row .project-media {
  max-height: 180px;
  align-self: center;
}
.catalog-row h3 {
  margin: 0 0 0.35rem;
  color: var(--black);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
}
.catalog-row h3 a {
  color: inherit;
  text-decoration: none;
}
.catalog-row h3 a:hover {
  text-decoration: underline;
}
.catalog-row p:not(.meta):not(.project-status) {
  max-width: 760px;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.course-title {
  font-weight: 600;
}
.teaching-list {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.teaching-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.75fr) 110px;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.teaching-list thead .teaching-row {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.teaching-row th,
.teaching-row td {
  padding: 0;
  font-weight: inherit;
}
.course {
  font-size: 0.9rem;
  font-weight: 500;
}
.institution,
.term {
  color: var(--muted);
  font-size: 0.82rem;
}
.unit {
  display: block;
  margin-top: 0.12rem;
  color: var(--light-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.thesis-supervision {
  margin-top: 2.5rem;
  max-width: 820px;
}
.thesis-supervision h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
}
details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 0.8rem 0;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 600;
}
.details-content {
  padding: 0 0 1rem;
}
.details-content h3 {
  margin: 1rem 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.details-content ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.paper-page {
  max-width: 850px;
}
.paper-page .page-header {
  max-width: 850px;
}
.paper-page .abstract {
  max-width: 790px;
  margin-top: 1.5rem;
}
.notice {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--dark);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.85rem;
}
.pdf-viewer {
  width: 100%;
  height: 78vh;
  min-height: 560px;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-wrap {
  width: min(1120px, calc(100% - 3rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-wrap a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav-wrap,
  main,
  .footer-wrap {
    width: min(100% - 2rem, 1120px);
  }
  .nav-wrap {
    display: block;
    padding: 0.85rem 0;
  }
  .site-nav {
    margin-top: 0.55rem;
  }
  .site-nav ul {
    gap: 1.15rem;
  }
  main {
    padding: 2.25rem 0 3.5rem;
  }
  .hero,
  .feature,
  .feature-project {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .portrait {
    width: min(220px, 65vw);
  }
  .hero h1 {
    font-size: 2.45rem;
  }
  .hero {
    padding-bottom: 2.5rem;
  }
  .feature {
    padding: 2.4rem 0;
  }
  .project-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.5rem 0;
  }
  .compact-papers {
    grid-template-columns: 1fr;
  }
  .compact-paper {
    padding: 1.3rem 0;
  }
  .compact-paper + .compact-paper {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .jmp-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .jmp-video {
    max-width: 100%;
  }
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .catalog-row .project-media {
    max-height: 260px;
  }
  .project-row .project-media {
    min-height: 210px;
  }
  .teaching-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    padding: 0.8rem 0;
  }
  .teaching-list thead .teaching-row {
    display: none;
  }
  .footer-wrap {
    min-height: 85px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .portrait,
  .project-media {
    filter: none;
  }
}

.feature .video-frame {
  align-self: center;
}
.jmp-intro {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.jmp-intro .page-header {
  padding-bottom: 0;
}
.jmp-video {
  width: 100%;
  margin: 0;
}
.jmp-presentations {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.jmp-presentations h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.jmp-presentations p {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.pdf-modal {
  width: min(900px, calc(100% - 2rem));
  height: min(82vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--background);
}
.pdf-modal::backdrop {
  background: rgba(17, 17, 17, 0.72);
}
.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.pdf-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.pdf-modal-header button {
  border: 0;
  background: transparent;
  color: var(--dark);
  font: inherit;
  cursor: pointer;
}
.pdf-modal iframe {
  display: block;
  width: 100%;
  height: calc(100% - 84px);
}
.pdf-modal-fallback {
  margin: 0.55rem 1rem;
  font-size: 0.82rem;
}
.draft-note {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .jmp-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .jmp-video {
    max-width: 100%;
  }
}
