:root {
  --paper:#f8fafc;
  --ink:#243142;
  --muted:#626f80;
  --accent:#345a85;
  --line:#dfe5ec;
  --soft:#edf2f7;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:32px;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a {
  color:var(--accent);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}
a:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px;
}
p,h1,h2,h3,figure {
  margin:0;
}
a,summary {
  -webkit-tap-highlight-color:transparent;
}
.home-header,main,.home-footer {
  max-width:1080px;
  margin:0 auto;
  padding-left:40px;
  padding-right:40px;
}
.home-header nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:27px 0;
  border-bottom:1px solid var(--line);
}
.wordmark {
  font-size:18px;
  font-weight:700;
  letter-spacing:-.6px;
  color:var(--ink);
}
.wordmark span {
  color:var(--accent);
}
.home-header nav div {
  display:flex;
  gap:30px;
}
.home-header nav div a {
  font-size:14px;
  color:var(--muted);
}
.skip-link {
  position:absolute;
  top:-100px;
  left:16px;
  background:var(--paper);
  padding:12px;
  z-index:10;
}
.skip-link:focus {
  top:12px;
}
.research-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  align-items:center;
  gap:72px;
  padding:78px 0 44px;
}
.research-kicker {
  text-transform:uppercase;
  letter-spacing:1.6px;
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  margin-bottom:14px;
}
.research-hero h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4.3vw,52px);
  font-weight:400;
  letter-spacing:-1.8px;
  line-height:1.16;
}
.research-hero h1 span {
  display:block;
  margin-top:10px;
  font-family:"Songti SC","Noto Serif CJK SC",serif;
  font-size:25px;
  letter-spacing:4px;
  color:var(--muted);
}
.research-role {
  margin-top:22px;
  font-size:14px;
  color:var(--muted);
}
.research-hero__lead,
.research-hero__context {
  max-width:620px;
  margin-top:18px;
  font-size:17px;
  line-height:1.8;
}
.research-portrait img {
  display:block;
  width:220px;
  height:260px;
  object-fit:cover;
  object-position:center;
  border-radius:5px;
  background:var(--soft);
}
.research-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:26px;
}
.research-actions a {
  display:inline-flex;
  gap:16px;
  align-items:center;
  border:1px solid var(--line);
  padding:9px 15px;
  border-radius:4px;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  min-height:44px;
}
.research-actions a.primary {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.research-actions a:hover {
  background:var(--soft);
  text-decoration:none;
}
.research-actions a.primary:hover {
  background:#284667;
}
.research-social {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-top:22px;
}
.research-social a {
  font-size:12px;
  color:var(--muted);
}
.research-opening {
  display:flex;
  gap:12px;
  align-items:center;
  padding:15px 18px;
  background:var(--soft);
  border-radius:4px;
  font-size:12px;
}
.research-opening p {
  flex:1;
  color:var(--muted);
}
.research-opening strong {
  color:var(--ink);
  font-weight:600;
}
.research-opening>a {
  white-space:nowrap;
  min-height:30px;
  display:flex;
  align-items:center;
}
.opening-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  flex-shrink:0;
}
.research-brief {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
  padding:34px 0 38px;
}
.research-metric {
  font-family:Georgia,serif;
  font-size:23px;
  color:var(--ink);
}
.research-brief p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-top:8px;
}
.research-section {
  border-top:1px solid var(--line);
  padding:42px 0;
}
.research-section h2 {
  font-family:Georgia,serif;
  font-size:31px;
  line-height:1.25;
  font-weight:400;
  letter-spacing:-.6px;
}
.research-section--split {
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:60px;
}
.research-direction__body>p {
  font-size:14px;
  color:var(--muted);
}
.research-direction__approach {
  margin-top:24px;
}
.research-questions {
  display:grid;
  gap:20px;
  margin-top:20px;
}
.research-questions h3 {
  font-size:14px;
  font-weight:600;
  margin-bottom:5px;
}
.research-questions p {
  font-size:13px;
  color:var(--muted);
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}
.section-heading>a {
  font-size:12px;
}
#projects .section-heading {
  max-width:940px;
}
.research-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 940px;
  gap: 12px;
  margin-top: 20px;
}
.project-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 16px 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.project-group h3 {
  min-height: 56px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.project-group__entries {
  display: grid;
  grid-template-rows: 1fr 1fr;
  flex: 1;
}
.project-group__entry {
  min-width: 0;
  padding: 14px 0;
}
.project-group__entry + .project-group__entry {
  border-top: 1px solid var(--line);
}
.project-group h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.25px;
  line-height: 1.45;
}
.project-group h4 a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 28px;
  color: var(--ink);
}
.project-group h4 a:hover {
  color: var(--accent);
}
.project-group h4 a span:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}
.project-group h4 a span[aria-hidden] {
  flex-shrink: 0;
  color: var(--accent);
}
.project-group p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.project-metric {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:9px;
  padding:2px 8px;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--muted);
  background:var(--paper);
  font-size:10px;
  line-height:1.8;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.project-metric [data-stars-count],
.project-metric [data-downloads-count] {
  color:var(--ink);
  font-weight:600;
}
a.project-metric {
  color:var(--accent);
}
a.project-metric:hover {
  border-color:var(--accent);
}
.research-timeline {
  list-style:none;
  margin:22px 0 0;
  padding:0;
}
.research-timeline li {
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:24px;
  padding:17px 0;
  border-bottom:1px solid var(--line);
}
.research-timeline li:last-child {
  border-bottom:0;
}
.research-timeline time {
  font-size:12px;
  color:var(--muted);
  padding-top:2px;
  font-variant-numeric:tabular-nums;
}
.research-timeline p {
  font-size:14px;
  color:var(--muted);
}
strong {
  font-weight:600;
  color:var(--ink);
}
.research-archive {
  margin-top:16px;
}
.research-archive summary {
  cursor:pointer;
  font-size:13px;
  color:var(--accent);
  padding:12px 0;
}
.research-archive summary span {
  color:var(--muted);
  font-size:12px;
  margin-left:10px;
}
.research-archive .research-timeline {
  margin-top:0;
}
.research-service {
  list-style:none;
  padding:0;
  margin:24px 0 0;
  font-size:14px;
  color:var(--muted);
}
.research-service li+li {
  margin-top:14px;
}
.home-footer {
  padding-top:26px;
  padding-bottom:34px;
  display:flex;
  align-items:center;
  gap:24px;
  border-top:1px solid var(--line);
}
.home-footer p {
  font-size:12px;
  color:var(--muted);
}
.home-footer>span {
  margin-left:auto;
  font-size:11px;
  color:var(--muted);
}
@media(min-width:1400px) {
  .research-hero {
    padding-top:90px;
    padding-bottom:56px;
  }
}
@media(max-width:760px) {
  .home-header,main,.home-footer {
    padding-left:24px;
    padding-right:24px;
  }
  .research-hero {
    grid-template-columns:minmax(0,1fr) 140px;
    gap:28px;
    padding-top:48px;
  }
  .research-portrait img {
    width:140px;
    height:175px;
  }
  .research-hero__lead,
  .research-hero__context {
    font-size:15px;
  }
  .research-brief {
    gap:20px;
  }
  .research-section--split {
    grid-template-columns:1fr;
    gap:24px;
  }
  .research-projects {
    grid-template-columns:1fr;
  }
  .project-group {
    padding: 16px 16px 2px;
  }
  .project-group h3 {
    min-height: auto;
  }
  .project-group__entries {
    grid-template-rows: auto auto;
  }
  .project-group h4 a {
    min-height: 44px;
  }
  .home-footer {
    flex-wrap:wrap;
    gap:8px 20px;
  }
  .home-footer>span {
    width:100%;
    margin-left:0;
  }
  .research-opening {
    align-items:flex-start;
  }
  .opening-dot {
    margin-top:7px;
  }
}
@media(max-width:480px) {
  .home-header nav {
    gap:12px;
    padding:20px 0;
  }
  .home-header nav div {
    gap:15px;
  }
  .home-header nav div a {
    font-size:12px;
  }
  .wordmark {
    font-size:16px;
  }
  .research-hero {
    position:relative;
    display:block;
    padding-top:36px;
  }
  .research-hero__copy>.research-kicker {
    max-width:230px;
    font-size:10px;
  }
  .research-hero h1 {
    font-size:36px;
    max-width:230px;
  }
  .research-hero h1 span {
    font-size:22px;
  }
  .research-role {
    max-width:220px;
    margin-top:16px;
    font-size:12px;
  }
  .research-portrait {
    position:absolute;
    right:0;
    top:78px;
  }
  .research-portrait img {
    width:78px;
    height:96px;
  }
  .research-hero__lead,
  .research-hero__context {
    margin-top:24px;
  }
  .research-actions {
    gap:8px;
  }
  .research-actions a {
    padding:8px 11px;
    gap:8px;
    font-size:12px;
  }
  .research-social {
    gap:17px;
  }
  .research-opening {
    flex-wrap:wrap;
    gap:8px;
  }
  .research-opening p {
    flex-basis:calc(100% - 24px);
  }
  .research-opening>a {
    margin-left:15px;
  }
  .research-brief {
    grid-template-columns:1fr;
    gap:20px;
    padding:28px 0;
  }
  .research-brief>div {
    display:grid;
    grid-template-columns:70px 1fr;
    gap:16px;
  }
  .research-brief p {
    margin:0;
  }
  .research-metric {
    font-size:20px;
  }
  .research-section {
    padding:32px 0;
  }
  .research-section h2 {
    font-size:28px;
  }
  .research-timeline li {
    grid-template-columns:1fr;
    gap:5px;
    padding:16px 0;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-heading>a {
    margin-top:4px;
    max-width:80px;
    text-align:right;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    transition:none!important;
  }
}
@media(max-width:480px) {
  .research-hero h1,.research-role {
    max-width:calc(100% - 96px);
  }
  .research-hero__copy>.research-kicker {
    max-width:100%;
    font-size:9px;
    letter-spacing:1.2px;
  }
}
/* Current profile and shared navigation. */
.research-portrait {
  align-self: start;
  margin-top: 36px;
}
.home-header nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 480px) {
  .research-portrait {
    margin-top: 0;
  }
  .research-brief > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .research-metric {
    font-size: 18px;
    white-space: nowrap;
  }
}

.research-progression { margin-top: 16px; }
@media (max-width: 400px) {
  .home-header nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-header nav div { gap: 24px; }
}
