@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --paper: #fcfbf8;
  --white: #fffefa;
  --ink: #172136;
  --body: #414a5b;
  --muted: #4e5b70;
  --blue: #263da7;
  --blue-dark: #1b2d81;
  --blue-tint: #eef1fa;
  --line: #d6dbe5;
  --dark: #172740;
  --masthead: #182a44;
  --header-height: 4.5rem;
  --sans: Inter, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1.2rem); }
body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.036em; }
h3 { font-weight: 650; line-height: 1.32; }
p { overflow-wrap: break-word; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #3955df; outline-offset: 4px; }
::selection { color: var(--ink); background: #d9e2ff; }

.wrap { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 20;
  top: .8rem;
  left: .8rem;
  padding: .6rem 1rem;
  color: white;
  background: var(--blue-dark);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
#main:focus { outline: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: var(--header-height);
}
.wordmark {
  color: var(--ink);
  font: 600 1.36rem/1.15 var(--serif);
  letter-spacing: -.038em;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav ul, .mobile-menu ul, .profile-links, .footer-profiles, .link-list, .method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-nav ul { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.3rem); }
.desktop-nav a, .mobile-menu a { color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .mobile-menu a:hover, nav a[aria-current] { color: var(--blue); text-decoration: underline; }
.desktop-nav a[aria-current] { text-decoration-thickness: .13em; text-underline-offset: .4em; }
.desktop-nav .nav-cv { padding: .48rem .88rem; border: 1px solid #b6c0e4; border-radius: .25rem; color: var(--blue); }
.mobile-menu { display: none; }

.eyebrow {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow span { margin-inline: .25em; }
.hero-shell { background: var(--masthead); color: #e2e8f2; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(235px, 1fr);
  align-items: center;
  gap: clamp(2.8rem, 5.2vw, 5rem);
  padding-block: clamp(3rem, 5vw, 4.75rem);
}
.hero-copy { min-width: 0; }
.hero-label { display: flex; align-items: center; gap: .8rem; color: #c5d4f7; }
.hero-label::before { width: 1.65rem; height: 1px; background: #a7bffc; content: ""; }
.hero h1 {
  margin: .68rem 0 .95rem;
  color: var(--white);
  font-size: clamp(3.6rem, 7.3vw, 6.35rem);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero-role { color: #f7f9ff; font-size: clamp(1.06rem, 1.5vw, 1.24rem); font-weight: 650; line-height: 1.45; }
.hero-intro { max-width: 36rem; margin-top: .67rem; font-size: 1.07rem; line-height: 1.67; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: .56rem 1.13rem;
  border: 1px solid var(--blue);
  border-radius: .25rem;
  background: var(--blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button:hover { color: #fff; background: var(--blue-dark); }
.button-secondary { color: var(--blue); background: transparent; border-color: #b3bde3; }
.button-secondary:hover { color: var(--blue-dark); background: var(--blue-tint); }
.hero .button { color: #142440; border-color: #f1f4ff; background: #f1f4ff; }
.hero .button:hover { background: #dce7ff; }
.hero .button-secondary { color: #f3f6ff; border-color: #7f92b7; background: transparent; }
.hero .button-secondary:hover { background: #2d4266; }
.hero :focus-visible, .publication-band :focus-visible { outline-color: #d4dfff; }
.profile-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.2rem; }
.profile-links a { color: #e1e9f8; font-size: .9rem; font-weight: 550; }

.hero-portrait { width: min(100%, 26.5rem); justify-self: end; border: 1px solid #536989; }
.hero-portrait img { aspect-ratio: 1.13; object-fit: cover; object-position: center 40%; }
.hero-project { margin-top: .9rem; }
.hero-project a { color: #f1f4ff; }
.hero-project .text-link { font-size: 1rem; }

.block { padding-block: 4rem; }
.research-band { border-bottom: 1px solid #dfe4f3; background: #f0f3fa; }
.section-heading { padding-bottom: .85rem; border-bottom: 1px solid #cfd7e8; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.4rem; margin-bottom: 1.85rem; }
.section-heading h2 { font-size: clamp(2.15rem, 4.2vw, 3.35rem); }
.section-heading a, .text-link { font-size: .9rem; font-weight: 650; }
.poster { align-self: start; }
.poster img { border-radius: .28rem; }
.poster figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.heading-link { color: inherit; }
.heading-link:hover { color: var(--blue); }
.compacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.compact-case { min-width: 0; padding: 1.2rem 0 .1rem; border-top: 1px solid #aeb9d5; }
.compact-case h3, .home-roles h3 { margin-block: .4rem .48rem; font-size: 1.2rem; }
.card-result { margin-top: .65rem; color: var(--ink); }
.project-indexes, .document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.15rem; }
.project-indexes, .experience-link { margin-top: 1.45rem; }
.compact-case p:not(.eyebrow) { max-width: 36rem; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.publication-band { background: var(--dark); color: #f1f3ff; }
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .75rem 2rem;
  padding-block: 1.65rem 1.8rem;
}
.spotlight h2 { margin-bottom: .45rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2rem); }
.spotlight a { color: #fff; }
.home-roles { gap: 2rem 4rem; }
.home-roles p { margin-bottom: .4rem; }
.home-cv { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.home-cv h2 { font-size: 1.75rem; }

.site-footer { margin-top: 1rem; background: #e8edf8; border-top: 1px solid #dce3f3; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding-block: 2.6rem; }
.footer-inner h2 { margin: .28rem 0 .5rem; font-size: clamp(1.8rem, 3.5vw, 2.45rem); }
.footer-email { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.footer-right p { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.footer-profiles { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-profiles a { white-space: nowrap; }
.footer-profiles + .footer-profiles { margin-top: .45rem; }

.page-heading { padding-block: 3.65rem 2.85rem; }
.page-heading h1 { max-width: 59rem; margin-top: 0; font-size: clamp(2.9rem, 5.6vw, 4.7rem); }
.page-heading .eyebrow + h1 { margin-top: .5rem; }
.page-description { max-width: 49rem; margin-top: .85rem; color: var(--body); font-size: 1.12rem; line-height: 1.65; }
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(11.25rem, .24fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem clamp(2rem, 4vw, 3.65rem);
  padding-bottom: 4rem;
}
.contents {
  position: sticky;
  top: calc(var(--header-height) + 1.45rem);
  min-width: 0;
  padding-top: .85rem;
  border-top: 2px solid #9aaadc;
}
.contents .eyebrow { margin-bottom: .5rem; letter-spacing: .04em; }
.contents li + li { margin-top: .58rem; }
.contents a { font-weight: 550; }
.case-study, .experience-section, .citation-group { border-top: 1px solid var(--line); padding-top: 1.37rem; }
.case-study + .case-study, .experience-section + .experience-section, .citation-group + .citation-group { margin-top: 2.8rem; }
.case-study > header { margin-bottom: 1.12rem; }
.case-study h2, .experience-section h2, .citation-group h2 { margin-block: .42rem .72rem; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.case-first-link, .case-document { margin-top: .6rem; }
.case-main > h3:first-child { margin-top: 0; }
.case-summary { max-width: 46rem; color: var(--ink); font-size: 1.12rem; font-weight: 550; }
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(12rem, 1fr);
  align-items: start;
  gap: clamp(1.4rem, 3vw, 2.7rem);
}
.case-main h3 { margin-top: 1.2rem; margin-bottom: .25rem; }
.case-main h3, .case-evidence h3 { font-size: 1rem; }
.case-main .poster { max-width: 39rem; margin-block: 1.12rem; }
.bench-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 39rem; }
.case-main .bench-photos .poster { margin-block: .4rem 0; }
.result-table { width: 100%; margin-top: .9rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result-table caption { padding-bottom: .45rem; color: var(--ink); font-weight: 650; text-align: left; }
.result-table th, .result-table td { padding: .45rem .55rem; border-bottom: 1px solid var(--line); text-align: right; }
.result-table thead { background: var(--blue-tint); color: var(--ink); }
.result-table th:first-child { text-align: left; }
.case-result-links { margin-top: .85rem; }
.result-note, .citation-doi { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.citation-doi span { overflow-wrap: anywhere; }
.citation-action { display: inline-flex; align-items: center; min-height: 2.75rem; }

.workflow-figure {
  margin-block: 1.3rem;
  padding: clamp(.9rem, 2.2vw, 1.25rem);
  border: 1px solid #d6dfea;
  border-top: 2px solid #9caddd;
  background: #f1f4fa;
}
.workflow-figure figcaption { font-size: .9rem; line-height: 1.5; }
.workflow-figure figcaption strong { display: block; margin-bottom: .18rem; color: var(--ink); font-size: 1rem; }
.workflow-figure ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .7rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style-position: inside;
}
.workflow-figure li { padding: .65rem; border: 1px solid #d6dfea; background: var(--white); font-size: .875rem; line-height: 1.5; }
.workflow-figure li::marker { color: var(--blue); font-weight: 650; }
.workflow-figure li strong { color: var(--ink); }
.workflow-figure li span { display: block; margin-top: .15rem; }

.case-evidence { padding: 1rem; border-top: 2px solid #9caddd; background: #eff3fa; }
.case-evidence h3 { margin-bottom: .48rem; }
.case-evidence ul + h3 { margin-top: 1.2rem; }
.method-list { display: grid; gap: .4rem; }
.method-list li { padding-bottom: .35rem; border-bottom: 1px solid #d4dceb; color: #36456a; font-size: .9rem; }
.link-list { display: flex; flex-wrap: wrap; gap: .35rem 1.18rem; }
.case-evidence .link-list { display: grid; gap: .5rem; }
.timeline-item .link-list, .citation .link-list { margin-top: .75rem; }
.listing { padding-bottom: 4rem; }
.citation-group { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr); gap: .9rem 2rem; }
.citation-group > h2 { max-width: 16rem; margin: .15rem 0 0; font-size: clamp(1.6rem, 2.55vw, 2.04rem); }
.citation h3 { max-width: 49rem; font: 600 clamp(1.38rem, 2.4vw, 1.85rem)/1.24 var(--serif); letter-spacing: -.025em; }
.citation + .citation { margin-top: 1.55rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.authors, .citation-venue { margin-top: .5rem; }
.authors strong { color: var(--ink); }
.citation-venue { color: var(--muted); font-size: .9rem; }
.timeline-item { display: grid; grid-template-columns: minmax(7rem, .55fr) minmax(0, 2fr); gap: .2rem 1.1rem; padding-block: .95rem; }
.timeline-item + .timeline-item { border-top: 1px solid var(--line); }
.timeline-item > .eyebrow { padding-top: .18rem; }
.timeline-item h3, .competency h3 { font-size: 1.09rem; }
.timeline-item h3 + p { margin-top: .24rem; }
.where { color: var(--ink); font-weight: 550; }
.where + p { margin-top: .3rem; }
.competencies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.7rem; }
.competency { padding-top: .8rem; border-top: 1px solid var(--line); }
.competency p { margin-block: .3rem; }

.document-layout { padding-bottom: .55rem; }
.cv-layout { padding-top: .45rem; }
.cv-section { padding-block: 1rem .3rem; border-top: 1px solid var(--line); }
.cv-section + .cv-section { margin-top: 1.85rem; }
.cv-section h2 { margin-bottom: .9rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.cv-entry + .cv-entry { margin-top: 1.05rem; }
.cv-entry h3 { font-size: 1.05rem; }
.cv-entry p { margin-top: .25rem; }
.cv-entry .link-list { margin-top: .26rem; }
.cv-meta { color: var(--muted); font-size: .9rem; }
.cv-fellowships { margin: 0; padding-inline-start: 1.1rem; }
.cv-fellowships li + li { margin-top: .32rem; }
.document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 53rem;
  margin-bottom: 1.2rem;
  padding: clamp(1.15rem, 3.3vw, 2.1rem);
  border: 1px solid #ced7ee;
  border-radius: .28rem;
  background: var(--blue-tint);
}
.document-options {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.1rem;
}
.document-options > div {
  display: grid;
  justify-items: start;
  gap: .35rem;
}
.document-reader { max-width: 58rem; padding-bottom: 3rem; }
.document-reader .document-actions { margin-bottom: 1.4rem; }
.document-body h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 1.8rem 0 .55rem; }
.document-body h3 { font-size: 1.1rem; margin: 1rem 0 .35rem; }
.document-body p, .document-body li { margin-block: .28rem; overflow-wrap: anywhere; }
.document-body ul { margin-block: .35rem .8rem; padding-inline-start: 1.35rem; }
.document-detail { font-weight: 650; }
.role-details { margin: .4rem 0 0; padding-inline-start: 1.3rem; }
.role-details li + li { margin-top: .25rem; }

.page-heading h1 { overflow-wrap: break-word; }

.reading-layout { max-width: 54rem; margin-inline: auto; padding-bottom: 3.65rem; }
.reading-panel { border-top: 1px solid var(--line); }
.reading-panel:nth-last-of-type(1) { border-bottom: 1px solid var(--line); }
.reading-panel summary { min-height: 3.45rem; padding: .8rem .56rem; color: var(--ink); cursor: pointer; font-weight: 650; }
.reading-panel summary::marker { color: var(--blue); }
.reading-panel > div { padding: 0 .7rem 1.2rem 1.55rem; }
.reading-panel .link-list { margin-top: .5rem; }
.reading-note { margin-block: 1.55rem; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.4rem; }
.overview-grid h2 { margin-block: 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.22rem); }
.prose h2 { margin-block: 1.5rem .5rem; font-size: 2rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { padding-block: 3.1rem; gap: 2rem; }
  .hero h1 { font-size: clamp(3.3rem, 7.1vw, 5.2rem); }
  .hero-label { font-size: .82rem; }
  .editorial-layout { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.65rem; }
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .case-evidence { max-width: 39rem; }
}

@media (max-width: 760px) {
  :root { --header-height: 3.8rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 4.85rem;
    min-height: 2.75rem;
    gap: .45rem;
    padding: .4rem .58rem;
    color: var(--blue);
    border: 1px solid #b6c0e4;
    border-radius: .25rem;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { width: .78rem; height: .53rem; border-block: 1.5px solid currentColor; }
  .mobile-menu[open] summary { background: var(--blue-tint); }
  .mobile-menu nav {
    position: absolute;
    inset: calc(100% + .2rem) 0 auto auto;
    z-index: 2;
    width: min(100%, 17rem);
    padding: .38rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .25rem;
    box-shadow: 0 .45rem 1.1rem #18254722;
  }
  .mobile-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: .45rem .67rem; }
  .mobile-menu a:hover { background: var(--blue-tint); }
  .editorial-layout, .citation-group { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; padding: .68rem 0 .25rem; }
  .contents .link-list { display: flex; gap: 0 1rem; }
  .contents a { display: inline-flex; align-items: center; min-height: 2.5rem; }
  .contents li + li { margin-top: 0; }
  .citation-group > h2 { max-width: none; }
  .block { padding-block: 3rem; }
}

@media (max-width: 630px) {
  .bench-photos { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 2.5rem); }
  .wordmark { font-size: 1.25rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; padding-block: 2.1rem 1.55rem; }
  .hero h1 { margin: .55rem 0 .62rem; font-size: clamp(2.85rem, 9.7vw, 4.8rem); }
  .hero-role { max-width: 24rem; }
  .hero-intro { max-width: 28rem; margin-top: .5rem; font-size: 1rem; }
  .hero-label { gap: .55rem; font-size: .8rem; letter-spacing: .045em; }
  .hero-label::before { width: 1rem; }
  .actions { margin-top: 1rem; }
  .profile-links { gap: .35rem 1rem; margin-top: .72rem; }
  .profile-links a { display: inline-flex; align-items: center; min-height: 2rem; }
  .hero-portrait { width: min(100%, 22rem); justify-self: start; }
  .hero-portrait img { aspect-ratio: 1.8; object-position: center 38%; }
  .section-heading { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
  .compacts, .three, .spotlight, .competencies, .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .compacts { gap: 1.15rem; }
  .spotlight { padding-block: 1.65rem; }
  .case-index .link-list { column-gap: .9rem; row-gap: 0; }
  .case-index a { min-height: 2rem; }
  .result-table { table-layout: fixed; font-size: .875rem; }
  .result-table th, .result-table td { padding-inline: .3rem; }
  .result-table th:first-child { width: 29%; }
  .result-table th:first-child:nth-last-child(2) { width: 64%; }
  .result-table thead th { overflow-wrap: anywhere; }
  .home-cv { align-items: flex-start; flex-direction: column; }
  .document-card { flex-wrap: wrap; }
  .footer-inner { display: grid; align-items: start; gap: 1.35rem; padding-block: 2rem; }
  .page-heading { padding-block: 2.4rem 1.65rem; }
  .page-description { font-size: 1.03rem; }
  .timeline-item { grid-template-columns: 1fr; }
  .document-card { align-items: center; padding: .9rem; }
  .cv-layout .contents .link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .85rem; }
  .cv-layout .contents a { padding-block: .25rem; line-height: 1.4; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 2rem); }
  .hero h1 { font-size: clamp(2.55rem, 9.9vw, 3.25rem); }
  .document-card { align-items: start; flex-direction: column; }
}
